@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --padding-container: 100px 0;
    --color-title: #001A49;
}


/* Elimina márgenes y padding que puedan generar desbordes */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Previene el scroll horizontal en toda la página */
html, body {
  width: 100%;
  overflow-x: hidden;
}

/* Contenedor principal adaptable */
.container {
  max-width: 100%;
  width: 100vw;
  padding-left: 16px;
  padding-right: 16px;
  margin: 0 auto;
}

/* Las imágenes nunca exceden el ancho de su contenedor */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Los textos y otros bloques no deben causar desbordamiento */
p, h1, h2, h3, h4, h5, h6, div, section {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Opcional: elementos flexibles no se desborden */
.flex-row {
  display: flex;
  flex-wrap: wrap;
}

/* Para tablas o elementos grandes */
.responsive-table {
  overflow-x: auto;
  width: 100%;
}



body {
    font-family: 'Poppins', sans-serif;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    padding: var(--padding-container);
}

.hero {
    width: 100%;
    height: 100vh;
    min-height: 600px;
    max-height: 800px;
    position: relative;
    display: grid;
    grid-template-rows: 100px 1fr;
    color: #fff;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(180deg, #0000008c 0%, #0000008c 100%), url('../images/Imagenes\ Oficina.jpeg');
    background-size: cover;
    background-position: 50%;
    clip-path: polygon(0 0, 100% 0, 100% 80%, 50% 95%, 0 80%);
    z-index: -1;
}


/* Nav */

.nav {
    --padding-container: 0;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav__title {
    font-weight: 300;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 20px; /* Espacio entre el logo y el texto */
}

.nav__icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.cta {
    display: inline-flex;
    align-items: center; /* Centra verticalmente el icono y el texto */
    justify-content: center;
    gap: 8px; /* Espacio entre el ícono y el texto */
    padding: 8px 12px;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    color: white;
    background-color: #25D366; /* Verde de WhatsApp o el color de tu diseño */
    border-radius: 8px;
    transition: background-color 0.3s ease;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    display: block;
  }
  
  .cta-container {
    display: flex;
    justify-content: center;
}

  
  .cta__icon {
    width: 24px;
    height: 24px;
  }

  .cta__text {
  font-size: 14px;          /* Cambia el tamaño del texto */
  font-weight: 600;         /* Ajusta el grosor */
  margin-top: 5px;          /* Puedes moverlo verticalmente */
  margin-left: 5px;         /* Espacio entre el ícono y el texto */
  color: white;             /* Color del texto */
}
  



.nav__link {
    margin-left: auto;
    padding: 0;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    gap: 2em;
}

.nav__items {
    list-style: none;
}

.nav__links {
    color: #fff;
    text-decoration: none;
}

.nav__menu {
    margin-left: auto;
    cursor: pointer;
    display: none;
}

.nav__img {
    display: block;
    width: 30px;
}


.nav__close {
    display: var(--show, none);
}


/* Hero container */

.hero__container {
    max-width: 800px;
    --padding-container: 0;
    display: grid;
    grid-auto-rows: max-content;
    align-content: center;
    gap: 1em;
    padding-bottom: 100px;
    text-align: center;
}

.hero__title {
    font-size: 3rem;
}

.hero__paragraph {
    margin-bottom: 20px;
}

.cta {
    display: inline-flex; /* Cambiamos a inline-flex para centrar mejor el contenido */
    align-items: center; /* Centra verticalmente ícono y texto */
    justify-content: center; /* Centra horizontalmente */
    gap: 10px; /* Espacio entre ícono y texto */
    background-color: #2091F9;
    color: #fff;
    text-decoration: none;
    padding: 13px 30px;
    border-radius: 32px;
    font-size: 1rem;
    line-height: 1.2;
}

.cta__icon {
    width: 20px; /* Ajusta según el tamaño del ícono */
    height: 20px;
    object-fit: contain;
    display: inline-block;
}



/* About */

.about {
    text-align: center;
}

.subtitle {
    color: var(--color-title);
    font-size: 2rem;
    margin-bottom: 25px;
}


.about__paragraph {
    line-height: 1.7;
}

.about__main {
    padding-top: 80px;
    display: grid;
    width: 90%;
    margin: 0 auto;
    gap: 1em;
    overflow: hidden;
    grid-template-columns: repeat(4, minmax(100px, auto));
}

.cifras{
    display: flex; /* Activa Flexbox para los elementos hijos */
    justify-content: space-around; /* Distribuye el espacio entre los títulos */
    align-items: center; /* Alinea verticalmente los títulos al centro (opcional) */
    text-align: center; /* Centra el texto dentro de cada título y párrafo */
    color: #FFFFFF;
}

.hero__title {
    /* Estilos para los títulos h1 */
    margin-right: 150px; /* Añade un espacio de 10 píxeles debajo de cada título */
    margin-top: 100px;
    margin-left: 120px;
}

.hero__paragraph{
    margin-right: 150px;
    margin-left: 120px;
}

.about__icons {
    display: grid;
    gap: 1em;
    justify-items: center;
    width: 260px;
    overflow: hidden;
    margin: 0 auto;
}

.about__icon {
    width: 80px;
}

/* Knowledge */

.knowledge {
    background-color: #e5e5f7;
    background-image: radial-gradient(#444cf7 0.5px, transparent 0.5px), radial-gradient(#444cf7 0.5px, #e5e5f7 0.5px);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    overflow: hidden;
}

.knowledge__container{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1em;
    align-items: center;
}

.knowledge__picture{
    max-width: 500px;
}

.knowledge__paragraph{
    line-height: 1.7;
    margin-bottom: 15px;
}

.knowledge__img{
    width: 100%;
    display: block;
}

/* price */

.price{
    text-align: center;
}

.price__table{
    padding-top: 60px;
    display: flex;
    flex-wrap: wrap;
    gap: 2.5em;
    justify-content: space-evenly;
    align-items: center;
}

.price__element{
    background-color: #e5e5f7;
    text-align: center;
    border-radius: 10px;
    width: 330px;
    padding: 40px;
    --color-plan: #696871;
    --color-price: #1D293F;
    --bg-cta: #fff;
    --color-cta: #5454D4;
    --color-items: #696871;
}

.price__element--best{
    width: 370px;
    padding: 80px 40px;
    background-color: #FF7143;
    --color-plan: rgb(255 255 255 / 75%);
    --color-price: #fff;
    --bg-cta: #9F3919;
    --color-cta: #FFF;
    --color-items: #fff;
}

.testimony__body--bubble {
    position: relative; /* Necesario para posicionar la "cola" */
    background-color: #f9f9f9; /* Color de fondo de la burbuja */
    color: #333; /* Color del texto */
    border-radius: 15px; /* Bordes redondeados para la forma de burbuja */
    padding: 20px;
    margin-bottom: 20px; /* Espacio entre burbujas */
    max-width: 60%; /* Ajusta este valor según el espacio que necesites para la imagen */
    margin-left: auto; /* Centra horizontalmente */
    margin-right: auto; /* Centra horizontalmente */
  }
  
  .testimony__tail {
    position: absolute;
    bottom: -20px; /* Ajusta la posición vertical de la cola */
    left: 30px; /* Ajusta la posición horizontal de la cola */
    width: 0;
    height: 0;
    border-top: 20px solid #f9f9f9; /* Color de la cola igual al fondo de la burbuja */
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
  }

.hero__container.cifras {
    position: relative; /* Necesario para que el ::before se posicione correctamente */
    min-height: 100px; /* Define una altura mínima para la sección */
    min-width: 1350px;
    /* Otros estilos que desees aplicar a la sección (color de texto, padding, etc.) */
}

.hero__container.cifras::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(180deg, #0000008c 0%, #0000008c 100%), url('../images/Imagen Oficina 4.jpeg');
    background-size: cover;
    background-position: center;
    z-index: -1;
}



.hero__title {
    /* Estilos para los títulos h1 (tamaño de fuente, color, etc.) */
    margin-bottom: 5px; /* Espacio entre el título y el párrafo */
}

.hero__paragraph {
    /* Estilos para los párrafos p (tamaño de fuente, color, etc.) */
}

.price__name{
    color: var(--color-plan);
    margin-bottom: 15px;
    font-weight: 300;
}

.price__price{
    font-size: 2.5rem;
    color: var(--color-price);
}

.price__items{
    margin-top: 35px;
    display: grid;
    gap: 1em;
    font-weight: 300;
    font-size: 1.2rem;
    margin-bottom: 50px;
    color: var(--color-items);
}

.price__cta{
    display: block;
    padding: 20px 0;
    border-radius: 10px;
    text-decoration: none;
    background-color: var(--bg-cta);
    font-weight: 600;
    color: var(--color-cta);
    box-shadow: 0 0 1px rgba(0, 0, 0, .5);
}

/* Testimony */

.testimony{
    background-color: #e5e5f7;
}

.testimony__container{
    display: grid;
    grid-template-columns: 50px 1fr 50px;
    gap: 1em;
    align-items: center;
}

.testimony__body{
    display: grid;
    grid-template-columns: 1fr max-content;
    justify-content: space-between;
    align-items: center;
    gap: 2em;
    grid-column: 2/3;
    grid-row: 1/2;
    opacity: 0;
    pointer-events: none;
}


.testimony__body--show{
    pointer-events: unset;
    opacity: 1;
    transition: opacity 1.5s ease-in-out;
}

.testimony__img{
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    object-position: 50% 30%;
}

.testimony__texts{
    max-width: 700px;
}

.testimony__course{
    background-color: royalblue;
    color: #fff;
    display: inline-block;
    padding: 5px;
}

.testimony__arrow{
    width: 90%;
    cursor: pointer;
}

/* Questions */
.questions{
    text-align: center;
}

.questions__container{
    display: grid;
    gap: 2em;
    padding-top: 50px;
    padding-bottom: 100px;
}

.questions__padding{
    padding: 0;
    transition: padding .3s;
    border: 1px solid #5454D4;
    border-radius: 6px;
}

.questions__padding--add{
    padding-bottom: 30px;
}

.questions__answer{
    padding: 0 30px 0;
    overflow: hidden;
}

.questions__title{
    text-align: left;
    display: flex;
    font-size: 20px;
    padding: 30px 0 30px;
    cursor: pointer;
    color: var(--color-title);
    justify-content: space-between;
}

.questions__arrow{
    border-radius: 50%;
    background-color: var(--color-title);
    width: 25px;
    height: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    align-self: flex-end;
    margin-left: 10px;
    transition:  transform .3s;
}

.questions__arrow--rotate{
    transform: rotate(180deg);
}

.questions__show{
    text-align: left;
    height: 0;
    transition: height .3s;
}

.questions__img{
    display: block;
}

.questions__copy{
    width: 60%;
    margin: 0 auto;
    margin-bottom: 30px;
}





.questions__offer {
    padding: 2rem;
    background-color: #f9f9f9;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .subtitle {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: bold;
    color: #333;
  }
  
  .questions__content {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    align-items: center;
    flex-wrap: nowrap;
  }
  
  .questions__image {
    flex: 1;
  }
  
  .questions__image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
  }
  
  .questions__reasons {
    flex: 1;
  }
  
  .questions__reasons ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    text-align: left;
    margin-bottom: 1rem;
  }
  
  .questions__reasons li {
    margin-bottom: 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
  }
  
  .cta {
    display: inline-block;
    background-color: #007bff;
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s ease;
  }
  
  .cta:hover {
    background-color: #0056b3;
  }
  
  @media screen and (max-width: 768px) {
    .questions__content {
      flex-direction: column;
    }
  
    .questions__image,
    .questions__reasons {
      width: 100%;
    }
  }
    

/* Footer */

.footer{
    background-color: #1D293F;
}

.footer__title{
    font-weight: 300;
    font-size: 2rem;
    margin-bottom: 30px;
}

.footer__title, .footer__newsletter{
    color: #fff;
}


.footer__container{
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #fff;
    padding-bottom: 60px;
}

.nav--footer{
    padding-bottom: 20px;
    display: grid;
    gap: 1em;
    grid-auto-flow: row;
    height: 100%;
}

.nav__link--footer{
    display: flex;
    margin: 0;
    margin-right: 20px;
    flex-wrap: wrap;
}

.footer__inputs{
    margin-top: 10px;
    display: flex;
    overflow: hidden;
}

.footer__input{
    background-color: #fff;
    height: 50px;
    display: block;
    padding-left: 10px;
    border-radius: 6px;
    font-size: 1rem;
    outline: none;
    border: none;
    margin-right: 16px;
}

.footer__submit{
    margin-left: auto;
    display: inline-block;
    height: 50px;
    padding: 0 20px ;
    background-color: #2091F9;
    border: none;
    font-size: 1rem;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
}

.footer__copy{
    --padding-container: 30px 0;
    text-align: center;
    color: #fff;
    padding: var(--padding-container);
}

.footer__copyright{
    font-weight: 300;
}

.footer__icons{
    margin-bottom: 10px;
}

.footer__img{
    width: 30px;
}

.footer__social {
    display: flex;
    flex-direction: column;
    align-items: center; /* Alineado a la izquierda */
    gap: 10px; /* Espacio entre cada red social */
    margin-top: 20px;
}

.social-item {
    display: flex;
    align-items: center;
    gap: 10px; /* Espacio entre ícono y texto */
    color: #fff;
}

.social-item .footer__legend {
    margin: 0;
}

textarea.footer__input {
  padding: 10px;             /* Espaciado interno regular */
  line-height: 1.5;          /* Espaciado entre líneas */
  resize: vertical;          /* Redimensionable solo en vertical */
  box-sizing: border-box;
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #fff;
  color: #333;
}

textarea.footer__input::placeholder {
  color: #888;
  text-align: left;          /* Placeholder alineado a la izquierda */
}




/* Media queries */

@media (max-width:800px){
  .cta {
    display: block;               /* Permite usar margin auto */
    margin: 0 auto;               /* Centra el botón */
    padding: 10px 14px;           /* Ajusta el padding para pantallas pequeñas */
    font-size: 0.95rem;
    width: fit-content;           /* El botón se adapta al contenido */
    max-width: 90%;               /* Para evitar desbordamientos */
  }

  .cta__icon {
    width: 24px;
    height: 24px;
  }

  .cta__text {
    font-size: 14px;
    margin: 0;
  }
}

    
    
    .nav__menu{
        display: block;
    }

    .nav__link--menu{
        position: fixed;
        background-color: #000;
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-evenly;
        align-items: center;
        z-index: 100;
        opacity: 0;
        pointer-events: none;
        transition: .7s opacity;
    }

    .nav__link--show{
        --show: block;
        opacity:1 ;
        pointer-events: unset;
    }

    .nav__close{
        position: absolute;
        top: 30px;
        right: 30px;
        width: 30px;
        cursor: pointer;
    }

    .hero__title{
        font-size: 2.5rem;
    }


    .knowledge__container{
        grid-template-columns: 1fr;
        grid-template-rows: max-content 1fr;
        gap: 3em;
        text-align: center;
    }

    .knowledge__picture{
        grid-row: 1/2;
        justify-self: center;
    }

    .testimony__container{
        grid-template-columns: 30px 1fr 30px;
    }

    .testimony__body{
        grid-template-columns: 1fr;
        grid-template-rows: max-content max-content;
        gap: 3em;
        justify-items:center ;
    }


    .testimony__img{
        width: 200px;
        height: 200px;
        
    }

    .questions__copy{
        width: 100%;
    }

    .footer__container{
        flex-wrap: wrap;
    }

    .nav--footer{
        width: 100%;
        justify-items: center;
    }

    .nav__link--footer{
        width: 100%;
        justify-content: space-evenly;
        margin: 0;
    }


@media (max-width:600px){

      .testimony__container {
        padding: 0 1rem; /* Agrega algo de espacio a los lados */
      }
    
      .testimony__body--bubble {
        max-width: 100%; /* Que ocupe todo el ancho disponible */
        padding: 15px;
        font-size: 0.95rem;
        border-radius: 12px;
        margin-bottom: 30px;
      }
    
      .testimony__texts .subtitle {
        font-size: 1.1rem; /* Ajusta tamaño del nombre/testimonio */
        line-height: 1.3;
      }
    
      .testimony__review {
        font-size: 0.95rem; /* Tamaño cómodo para lectura en celular */
        line-height: 1.5;
      }
    
      .testimony__tail {
        bottom: -15px; /* Ajusta la posición de la cola */
        left: 20px;
        border-top: 15px solid #f9f9f9;
        border-left: 15px solid transparent;
        border-right: 15px solid transparent;
      }
    
      .testimony__arrow {
        width: 30px; /* Disminuye el tamaño de las flechas en móvil */
        height: auto;
      }

    .about__main {
        display: flex;
        flex-direction: column;
        gap: 1.5rem; /* Espacio entre íconos, ajustable */
        align-items: center; /* Centra el contenido */
    }

    .about__icons {
        width: 100%;
        text-align: center;
    }

    .about__icon {
        width: 80px; /* o el tamaño que quieras para móviles */
        height: auto;
    }
    .hero__title{
        font-size: 2rem;
    }

    .hero__paragraph{
        font-size: 1rem;
    }

    .subtitle{
        font-size: 1.8rem;
    }

    .price__element{
        width: 90%;
    }

    .price__element--best{
        width: 90%;
        /* padding: 40px; */
    }

    .price__price{
        font-size: 2rem;
    }

    .testimony{
        --padding-container: 60px 0;
    }

    .testimony__container{
        grid-template-columns: 28px 1fr 28px;
        gap: .9em;
    }

    .testimony__arrow{
        width: 100%;
    }

    .testimony__course{
        margin-top: 15px;
    }

    .questions__title{
        font-size: 1rem;
    }

}


.footer__social {
    display: flex;
    align-items: center;
    align-self: center;
    align-content: center;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    font-weight: 500;
}

.footer__legend {
    font-weight: 500;
    color: #FFFFFF;
    align-items: center;
    align-self: center;
    align-content: center;
}




.footer__container {
    display: flex;
    justify-content: center; /* Centra horizontalmente */
    align-items: center;
    padding: 2rem;
    background-color: #f9f9f9;
  }

  .footer__form {
    width: 100%;
    max-width: 400px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: stretch;
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* efecto de recuadro */
  }
  
  .footer__newsletter {
    text-align: center; /* Centra el título */
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: #333;
  }
  
  .footer__inputs {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .footer__input {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
    text-align: left;
    align-items: center;
  }
  
  .footer__submit {
    padding: 0.75rem;
    font-size: 1rem;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    align-self: center;
    text-align: center;
    width: fit-content;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  
  .footer__submit:hover {
    background-color: #0056b3;
    align-self: center;
  }
  







