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

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

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

.container {
    width: 95%;
    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/fondo-rehabilitatek_LE_upscale_balanced_x4.jpeg');
    background-size: cover;
    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__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-block;
    background-color: #2091F9;
    justify-self: center;
    color: #fff;
    text-decoration: none;
    padding: 13px 30px;
    border-radius: 32px;
}

/* About */

.about {
    text-align: center;
}

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

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

.about__paragraph {
    line-height: 1.7;
}

.about__main {
    padding-top: 80px;
    display: grid;
    margin: 0 auto;
    gap: 2em;
    overflow: hidden;
}


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

.about__icon {
    width: 40px;
}

.about__images{
    width: 200px;
}

/* services */

.services {
    background-color: #e5e5f7;
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    overflow: hidden;
}

.services__container{
    display: grid;
    grid-template-columns: 1fr 1fr;     
    gap: 5em;
}

.services__picture{
    max-width: 1500px;
}

.services__paragraph{
    text-align: justify;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 15px;
}

.services__list{
    line-height: 2.1;
    margin-bottom: 15px;
}

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

/*Circulos*/
.distribu {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 80%;
    max-width: 800px;
    margin-bottom: 50px;
    justify-content: center;
    margin-left: 30px;
  }
  
  .image-container {
    text-align: center;
  }
  
  .image-container img {
    width: 100px;
    height: 100px;
    border-radius: 100%;
    object-fit: cover;
    border: 2px solid #ffffff;
  }
  
  .image-container p {
    margin-top: 10px;
    font-size: 14px;
    color: #000000;
  }

  /*----------------------------------*/

  .distribu-big {
    display: grid;
    justify-content: center;
    gap: 20px;
    width: 100%;
    max-width: 800px;
    margin-bottom: 50px;
    justify-content: center;
  }
  
  .image-container-big {
    text-align: center;
  }
  
  .image-container-big img {
    width: 320px;
    height: 300px;
    border-radius: 5%;
    border: 2px solid #ffffff;
  }
  
  .image-container-big p {
    margin-top: 10px;
    font-size: 14px;
    color: #000000;
  }

/* Estilos para el Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 20;
}

.lightbox-content {
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: left;
    max-width: 90%;
    max-height: 90%;
}

.lightbox img {
    max-width: 70%;
    max-height: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    margin-right: 20px; /* Espacio entre la imagen y el texto */
}

.lightbox p {
    max-width: 300px; /* Ajusta el tamaño máximo del texto */
    font-size: 1.2rem;
    margin-left: 20px;
    word-wrap: break-word;
}

/* 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: 60px 40px;
    background-color: #FF7143;
    --color-plan: rgb(255 255 255 / 75%);
    --color-price: #fff;
    --bg-cta: #9F3919;
    --color-cta: #FFF;
    --color-items: #fff;
} */


.price__name{
    color: var(--color-plan);
    margin-bottom: 15px;
    font-weight: 800;
    font-size: 1.2rem;

}

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

.price__items{
    margin-top: 35px;
    display: grid;
    gap: 1em;
    font-weight: 300;
    font-size: 1rem;
    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);
}

/* work */

/* .work{
    background-color: #e5e5f7;
} */

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

.work__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;
}


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

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

.work__texts{
    max-width: 700px;
}

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

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

.work__review{
    text-align: justify;
}

 /* 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: justify;
    height: 0;
    transition: height .3s;
}

.questions__img{
    display: block;
}

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

/* Form Main Contact */

/* .form__main {
    background: #f9f9f9;
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}
    
.form__main label {
    margin-top: 10px;
}

.form__main input, .form__main textarea {
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
}

.form__main button {
    margin-top: 15px;
    background-color: #0066cc;
    color: white;
    padding: 10px;
    border: none;
    cursor: pointer;
}

.form__main button:hover {
    background-color: #004080;
} */

/* Sección principal del formulario */
.form__main {
    max-width: 600px;
    margin: 50px auto;
    padding: 20px;
    background-color: #e5e5f7;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Estilo de los grupos del formulario */
.form__group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.subtitle__form {
    text-align: center;
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 20px;
}

.form__label {
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.form__input,
.form__textarea {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

.form__textarea {
    resize: none;
}

@media (min-width: 480px) {
    .form__group {
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }

    .form__label {
        flex: 0 0 150px;
        text-align: right;
    }

    .form__input,
    .form__textarea {
        flex: 1;
    }
}

/* Estilo del botón */
.form__button {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    color: #fff;
    background-color: #007BFF;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.form__button:hover {
    background-color: #0056b3;
}


/* Footer */

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

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

.footer__titlehidden{
    font-weight: 300;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 10px;
    padding: 2px;
    border-bottom: 1px solid #fff;
    visibility: hidden;
}

.subtitle__Footer{
    font-weight: 300;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 15px;
    padding: 2px;
    border-bottom: 1px solid #fff;
}

.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__contact-info {
    display: flex;
    justify-content: center; /* Centra los elementos horizontalmente */
    gap: 20px; /* Espaciado entre los elementos */
    color: white;
    background-color: #1e293b; /* Color oscuro del fondo */
    padding: 10px 0;
  }
  
  .footer__contact-info span {
    font-size: 16px; /* Ajusta el tamaño del texto */
  }
  

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

.footer__copyright{
    font-weight: 300;
}

.footer__icons{
    width: 20px;
}

.footer__img{
    width: 30px;
}

/* Media queries */

@media (max-width:820px){
    .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;
    }


    .about__main{
        gap: 2em;
    }

    .about__icons:last-of-type{
        grid-column: 1/-1;
        width: 100%;
    }


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

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

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

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

    .distribu {
        margin-left: 32px;
    }

    .lightbox-content {
        flex-direction: column; /* Apilar imagen y texto en dispositivos más pequeños */
        align-items: center; /* Centrar los elementos */
    }

    .lightbox img {
        max-width: 100%; /* Hacer que la imagen ocupe el 100% del contenedor */
        margin-right: 0; /* Eliminar el margen entre la imagen y el texto */
        margin-bottom: 20px; /* Añadir espacio debajo de la imagen */
    }

    .lightbox p {
        max-width: 100%; /* Permitir que el texto ocupe más espacio en dispositivos pequeños */
        font-size: 1rem; /* Reducir el tamaño del texto */
        margin-left: 0; /* Eliminar el margen izquierdo */
        text-align: center; /* Centrar el texto */
    }


    .work__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;
    }

    .footer__contact-info {
        flex-direction: column; /* Apila los elementos verticalmente */
        gap: 10px; /* Reduce el espacio entre los elementos */
      }

}

@media (max-width:600px){

    .about__main {
        width: 100%;
    }

    #next {
        display: block; /* Asegura que sea visible */
        visibility: visible; /* Asegura que no esté oculta */
        opacity: 1; /* Garantiza que sea completamente visible */
    }

    .about__title {
        font-size: 1.5rem;
    }
    .about__paragraph {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .hero__title{
        font-size: 2rem;
    }

    .hero__paragraph{
        font-size: 1rem;
    }

    .subtitle{
        font-size: 1.8rem;
    }

    .services__paragraph{
        font-size: 0.9em;
        margin: 13px;
    }

    .distribu {
        grid-template-columns: 1fr; /* Cambia a una columna en pantallas pequeñas */
        gap: 1rem;
        margin-left: 32px;
    }

    .image-container p {
        font-size: 0.9rem; /* Reduce el tamaño del texto */
        line-height: 1.2; /* Ajusta el espaciado */
    }

    .lightbox-content {
        flex-direction: column;
        align-items: center; 
    }

    .lightbox img {
        max-width: 100%;
        margin-bottom: 15px;
    }

    .lightbox p {
        font-size: 0.9rem; 
        text-align: center;
    }

    .price__element{
        width: 90%;
    }

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

    .price__price{
        font-size: 2rem;
    }

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

    .work__container{
        grid-template-columns: 23px 1fr 23px;
        gap: .9em;
    }

    .work__arrow{
        width: 100%;
    }

    .work__course{
        margin-top: 15px;
    }

    .questions__title{
        font-size: 1rem;
    }

    .form__main{
        margin: 30px;
    }

    .footer__title{
        justify-self: center;
        margin-bottom: 15px;
    }

    .nav--footer{
        padding-bottom: 60px;
    }

    .nav__link--footer{
        justify-content: space-between;
    }

    .footer__contact-info{
        display: flex;
        flex-direction: column;
    }

}
