.why{
    width: 100%;
    height: 110vh;
    display: flex;
    flex-direction: row;
    gap: 5%;
    
}

.contnent-why{
    padding-top: 10vh;
    padding-left: 5vw;
    display: flex;
    flex-direction: column;
    gap: 10vh;
}

.text .subtext{
    color: #766d73;
}
.text span{
    font-weight: bold;
}
.text ul {
  list-style: none; /* 1. Elimina las viñetas predeterminadas */
  padding-left: 3vw;
}

.text li {
  padding-left: 30px; /* 4. Añade espacio para que el texto no se superponga */
  position: relative; /* Necesario para posicionar el pseudo-elemento correctamente */
}
.text li::before {
  content: ""; /* 2. Crea el pseudo-elemento */
  display: inline-block;
  width: 20px; /* 4. Establece el ancho deseado para la imagen */
  height: 20px; /* 4. Establece el alto deseado para la imagen */
  background-image: url("./../assets/ok2.png"); /* 3. Carga la imagen */
  background-size: cover; /* 4. Ajusta la imagen para cubrir el área de 20x20px */
  background-repeat: no-repeat;
  position: absolute; /* Posiciona el marcador */
  left: 0;
  top: 50%; /* Centra verticalmente */
  transform: translateY(-50%); /* Ajuste fino para centrado vertical */
}

.why .img_why{
    width: 50%;
    height: 90vh;
}
/* ----------------------------- */
/*           RESPONSIVE          */
/*        SECCIÓN WHY            */
/* ----------------------------- */

@media (max-width: 768px) {

    /* CONTENEDOR PRINCIPAL */
    .why {
        flex-direction: column;      /* texto arriba, imagen abajo */
        height: 80vh;                /* ya no fija */
        padding-top: 12vh;           /* espacio bajo el header */
        gap: 40px;
    }

    /* CONTENEDOR DE TEXTO */
    .contnent-why {
        padding: 0 5vw;
        gap: 40px;
        text-align: left;
    }

    .contnent-why h1 {
        font-size: 28px;
        line-height: 1.3;
    }

    .text .subtext {
        font-size: 14px;
    }

    /* LISTA AJUSTADA PARA MOBILE */
    .text ul {
        padding-left: 8vw;
    }

    .text li {
        padding-left: 28px;
        font-size: 14px;
        line-height: 1.4;
    }

    .text li::before {
        width: 18px;
        height: 18px;
        left: 0;
    }

    /* IMAGEN AJUSTADA */
    .why .img_why {
        width: 70%;
        max-width: 600px;
        height: auto;               /* altura automática */
        margin: 0 0 10vh auto;  /* centrada con margen inferior */
    }
}


.whatsapp{
    display: flex;
    flex-direction: row;
    position: absolute;
    margin-top: 40px;
    width: 60%;
    height: 22vh;
    justify-content: space-between;
    left: 20%;
    right: 20%;
    z-index: 20;
    bottom: -300vh;
    background-color: white;
    box-shadow: 6px -7px 10px 0px rgba(0,0,0,389.75);
-webkit-box-shadow: 6px -7px 10px 0px rgba(0,0,0,0.389);
-moz-box-shadow: 6px -7px 10px 0px rgba(0, 0, 0, 0.389);
    border-radius: 20px;
    align-items: center;
}
.whatsapp h2{
    width: 50%;
    align-self: center;
    margin: 10px 0 10px 60px;
    font-weight: 600;
    
}
.whatsapp div{
    width: auto;
    background: #54e6f5;
    margin-right: 20px;
  padding: 15px 35px;
  border-radius: 10px;
  color: white;
  font-weight: 600;
  text-decoration: none;
}
.whatsapp div:hover,
.whatsapp div:focus {
    color: white; /* Mantenemos el blanco para que se vea en el fondo azul */
    background: #46c7d3; /* Opcional: Un ligero cambio de color de fondo al hacer hover */
}
.whatsapp a{
    font-size: 18px;
    text-decoration: none;
    color: whitesmoke;
}
/* --------------------------- */
/*        RESPONSIVE MOBILE     */
/* --------------------------- */
@media (max-width: 1300px) {

    .whatsapp {
        position: relative;      /* elimina posiciones extremas */
        bottom: -10vh;
        left: 0;
        right: 0;

        width: 90%;              /* ocupa casi todo el ancho */
        height: auto;            /* crece según su contenido */

        flex-direction: column;  /* texto arriba, botón abajo */
        justify-content: center;
        align-items: center;

        margin: 40px auto 0 auto;
        padding: 25px 15px;      /* aire interno */

        box-shadow: 6px -7px 10px 0px rgba(0,0,0,389.75);
-webkit-box-shadow: 6px -7px 10px 0px rgba(0,0,0,0.389);
-moz-box-shadow: 6px -7px 10px 0px rgba(0, 0, 0, 0.389);
        border-radius: 16px;
        z-index: 20;
    }

    .whatsapp h2 {
        width: 100%;
        margin: 0;
        text-align: center;
        font-size: 20px;
        line-height: 1.3;
        padding: 0 10px;
    }

    .whatsapp div {
        width: auto;
        margin: 20px 0 0 0;
        padding: 12px 30px;

        border-radius: 10px;
        background: #54e6f5;
        text-align: center;
    }
    .whatsapp div:hover,
.whatsapp div:focus {
    color: white; /* Mantenemos el blanco para que se vea en el fondo azul */
    background: #46c7d3; /* Opcional: Un ligero cambio de color de fondo al hacer hover */
}
    .whatsapp a {
        font-size: 16px;
        text-decoration: none;
        color: white;
        font-weight: 600;
    }
}
