/* ==========================================
   1. RESET Y ESTILOS BASE
   ================================---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    color: #333333;
    background: #ffffff;
    line-height: 1.6;
}

/* ==========================================
   2. NAVEGACIÓN GLOBAL
   ================================---------- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    background: #ffffff;
    border-bottom: 1px solid #eeeeee;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav .logo {
    font-weight: 600;
    font-size: 1.2rem;
    letter-spacing: 2px;
    color: #333333;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 24px;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: #555555;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #B98F98;
}

/* ==========================================
   3. SECCIÓN HERO
   ================================---------- */
#hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 80px 8%;
    background: #ffffff;
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 620px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.72);
}

/* Estilo moderno tipo "pastilla" para los subtítulos */
.hero-eyebrow, .section-eyebrow {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(185, 143, 152, 0.1);
    border-radius: 20px;
    font-size: 12px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #B98F98;
    margin-bottom: 24px;
    font-weight: 600;
}

#hero h1 {
    font-size: 64px;
    line-height: 1.05;
    font-weight: 500;
    margin-bottom: 24px;
}

.hero-text {
    font-size: 19px;
    line-height: 1.7;
    max-width: 560px;
    margin-bottom: 40px;
}

/* Botones principales con sombras y efectos dinámicos */
.hero-whatsapp, .primer-paso-btn {
    display: inline-block;
    background: #B98F98;
    color: #ffffff;
    border: 1px solid #B98F98;
    border-radius: 4px;
    padding: 15px 32px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(185, 143, 152, 0.3);
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-whatsapp:hover, .primer-paso-btn:hover {
    background: transparent;
    color: #333333;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(185, 143, 152, 0.4);
}

.hero-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}

.hero-logo {
    width: 30px;
    height: 30px;
    object-fit: contain;
    flex-shrink: 0;
}

/* ==========================================
   4. SECCIÓN ESPACIO
   ================================---------- */
#espacio {
    padding: 120px 8%;
    background: #ffffff;
    display: grid;
    grid-template-columns: 45% 55%;
    align-items: center;
    gap: 5%;
}

.espacio-content {
    max-width: 600px;
}

#espacio h2 {
    font-size: 48px;
    line-height: 1.15;
    font-weight: 500;
    margin-bottom: 24px;
}

#espacio p {
    font-size: 19px;
    line-height: 1.7;
}

.espacio-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.espacio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ==========================================
   5. SECCIÓN EXPERIENCIA
   ================================---------- */
#experiencia {
    padding: 90px 8%;
    background: #ffffff;
}

.experiencia-header {
    max-width: 760px;
    margin: 0 auto 60px;
    text-align: center;
}

.experiencia-header h2 {
    font-size: 48px;
    line-height: 1.15;
    font-weight: 500;
    margin-bottom: 20px;
}

.experiencia-header p {
    font-size: 19px;
    line-height: 1.7;
    color: #555555;
}

.experiencia-timeline {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: relative;
}

.experiencia-timeline::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 12.5%;
    right: 12.5%;
    height: 1.5px;
    background: #B98F98;
}

.experiencia-step {
    position: relative;
    text-align: center;
    z-index: 1;
}

.experiencia-dot {
    width: 17px;
    height: 17px;
    margin: 0 auto 24px;
    border: 1.5px solid #B98F98;
    border-radius: 50%;
    background: #ffffff;
}

.experiencia-step p {
    font-size: 16px;
    margin: 0;
}

.experiencia-header,
.experiencia-step {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.experiencia-header.visible,
.experiencia-step.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   6. SECCIÓN POR QUÉ LOTUS
   ================================---------- */
#porque-lotus {
    padding: 80px 8%;
    background: #ffffff;
}

.porque-header {
    max-width: 820px;
    margin: 0 auto 15px;
    text-align: center;
}

.porque-header h2 {
    font-size: 48px;
    line-height: 1.15;
    font-weight: 500;
    margin-bottom: 20px;
}

.porque-header p {
    font-size: 19px;
    line-height: 1.7;
    color: #555555;
}

.porque-image {
    max-width: 880px;
    margin: 0 auto 40px;
    aspect-ratio: 16 / 9;
    background: #f3f3f3;
}

.porque-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.porque-pilares {
    max-width: 1150px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 32px;
}

.porque-pilar {
    text-align: center;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.porque-pilar.visible {
    opacity: 1;
    transform: translateY(0);
}

.porque-dot {
    width: 12px;
    height: 12px;
    border: 1.5px solid #B98F98;
    border-radius: 50%;
    margin: 0 auto 22px;
}

.porque-pilar h3 {
    font-size: 17px;
    font-weight: 500;
    margin-bottom: 12px;
}

.porque-pilar p {
    font-size: 15px;
    line-height: 1.6;
    color: #555555;
    margin: 0;
}

/* ==========================================
   7. SECCIÓN TODO LISTO
   ================================---------- */
#todo-listo {
    padding: 45px 8%;
    background: #ffffff;
}

.todo-header {
    max-width: 760px;
    margin: 0 auto 25px;
    text-align: center;
}

.todo-header h2 {
    font-size: 48px;
    line-height: 1.15;
    font-weight: 500;
    margin-bottom: 18px;
}

.todo-header p {
    font-size: 19px;
    line-height: 1.7;
    color: #555555;
}

.todo-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Efecto de elevación moderna 3D en las tarjetas */
.todo-item, .convenio-card, .video-container {
    background: #fcfcfc;
    border: 1px solid #eeeeee;
    border-radius: 8px;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease !important;
}

.todo-item:hover, .convenio-card:hover, .video-container:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(185, 143, 152, 0.15) !important;
    border-color: #B98F98 !important;
}

.todo-item {
    text-align: center;
    padding: 24px;
    cursor: pointer;
    opacity: 0;
}

.todo-item.visible {
    opacity: 1;
}

.todo-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
}

.todo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: filter 0.35s ease;
}

.todo-item:hover .todo-icon img {
    filter: invert(66%) sepia(12%) saturate(700%) hue-rotate(296deg) brightness(91%) contrast(83%);
}

.todo-item h3 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 10px;
}

.todo-item p {
    font-size: 15px;
    line-height: 1.6;
    color: #555555;
    margin: 0 auto;
}

.todo-extra {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin-top: 0 !important;
    transition: max-height 0.45s ease, opacity 0.35s ease, margin-top 0.45s ease;
}

.todo-item.open .todo-extra {
    max-height: 100px;
    opacity: 1;
    margin-top: 12px !important;
}

/* ==========================================
   8. ESPACIO CRECER Y GALERÍA LIGHTBOX
   ================================---------- */
#espacio-crecer {
    padding: 70px 8%;
    background: #ffffff;
}

.espacio-header {
    max-width: 780px;
    margin: 0 auto 30px;
    text-align: center;
}

.espacio-header h2 {
    font-size: 48px;
    line-height: 1.15;
    font-weight: 500;
    margin-bottom: 18px;
}

.espacio-header p {
    font-size: 19px;
    line-height: 1.7;
    color: #555555;
}

.espacio-galeria {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.espacio-foto {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #f3f3f3;
    overflow: hidden;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.espacio-foto.visible {
    opacity: 1;
    transform: translateY(0);
}

.espacio-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.espacio-cta {
    text-align: center;
    margin-top: 25px;
}

.espacio-cta button {
    padding: 14px 32px;
    border: 1px solid #B98F98;
    background: transparent;
    color: #333333;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.espacio-cta button:hover {
    background-color: #B98F98;
    color: #ffffff;
}

/* Lightbox */
.galeria-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(20, 20, 20, 0.88);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.galeria-lightbox.abierta {
    display: flex;
}

.galeria-lightbox-content {
    position: relative;
    width: min(100%, 1100px);
    max-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.galeria-imagen {
    display: none;
    max-width: 100%;
    max-height: 88vh;
    object-fit: contain;
}

.galeria-imagen.activa {
    display: block;
}

.galeria-cerrar {
    position: absolute;
    top: 24px;
    right: 28px;
    z-index: 2;
    border: 0;
    background: transparent;
    color: #ffffff;
    font-size: 38px;
    font-weight: 300;
    cursor: pointer;
}

.galeria-anterior,
.galeria-siguiente {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
}

.galeria-anterior { left: 18px; }
.galeria-siguiente { right: 18px; }

/* ==========================================
   9. PREGUNTAS FRECUENTES (FAQ)
   ================================---------- */
#faq {
    padding: 90px 8%;
    background: #ffffff;
}

.faq-header {
    max-width: 760px;
    margin: 0 auto 50px;
    text-align: center;
}

.faq-header h2 {
    font-size: 48px;
    line-height: 1.15;
    font-weight: 500;
    margin-bottom: 18px;
}

.faq-header p {
    font-size: 19px;
    line-height: 1.7;
    color: #555555;
    margin: 0;
}

.faq-list {
    max-width: 820px;
    margin: 0 auto;
    border-top: 1px solid #dddddd;
}

.faq-item {
    border-bottom: 1px solid #dddddd;
}

.faq-question {
    width: 100%;
    padding: 22px 0;
    border: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    font-family: inherit;
    font-size: 17px;
    font-weight: 500;
    color: #333333;
    text-align: left;
    cursor: pointer;
}

.faq-icon {
    flex: 0 0 auto;
    font-size: 24px;
    font-weight: 300;
    line-height: 1;
    color: #B98F98;
}

.faq-answer {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.45s ease, opacity 0.35s ease;
}

.faq-answer p {
    margin: 0;
    padding: 0 40px 22px 0;
    font-size: 15px;
    line-height: 1.7;
    color: #555555;
}

/* ==========================================
   10. TEST INTERACTIVO
   ================================---------- */
#lotus-test {
    padding: 90px 8%;
    background: #ffffff;
}

.test-container {
    max-width: 760px;
    margin: 0 auto;
}

.test-intro,
.test-experiencia,
.test-resultado {
    text-align: center;
}

.test-intro h2,
.test-resultado h2 {
    font-size: 48px;
    line-height: 1.12;
    font-weight: 500;
    margin-bottom: 20px;
}

.test-intro > p:not(.section-eyebrow),
.test-resultado > p:not(.section-eyebrow) {
    max-width: 620px;
    margin: 0 auto 32px;
    font-size: 18px;
    line-height: 1.7;
    color: #555555;
}

#iniciar-test,
#repetir-test {
    border: 1px solid #B98F98;
    background: transparent;
    color: #333333;
    padding: 14px 30px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

#iniciar-test:hover,
#repetir-test:hover {
    background: #B98F98;
    color: #ffffff;
}

.test-experiencia,
.test-resultado {
    display: none;
}

.test-progreso {
    width: 100%;
    height: 3px;
    background: #eeeeee;
    margin-bottom: 18px;
    overflow: hidden;
}

.test-progreso-barra {
    width: 20%;
    height: 100%;
    background: #B98F98;
    transition: width 0.4s ease;
}

.test-contador {
    margin: 0 0 40px;
    font-size: 13px;
    letter-spacing: 0.12em;
    color: #888888;
}

.test-pregunta-titulo {
    max-width: 680px;
    margin: 0 auto 34px;
    font-size: 32px;
    line-height: 1.25;
    font-weight: 500;
}

.test-opciones {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.test-opcion {
    min-height: 78px;
    padding: 18px 20px;
    border: 1px solid #dddddd;
    background: #ffffff;
    color: #333333;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.45;
    cursor: pointer;
    transition: border-color 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.test-opcion:hover {
    border-color: #B98F98;
    background: rgba(185, 143, 152, 0.08);
}

#repetir-test {
    display: block;
    margin: 22px auto 0;
    border-color: transparent;
    color: #777777;
    padding: 8px 14px;
}

#repetir-test:hover {
    background: transparent;
    color: #B98F98;
}

.test-fade {
    opacity: 0;
    transform: translateY(8px);
}

#test-pregunta,
#test-resultado {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* ==========================================
   11. SECCIÓN PRIMER PASO & FOOTER
   ================================---------- */
#primer-paso {
    padding: 110px 8% 40px;
    background: #ffffff;
}

.primer-paso-content {
    max-width: 760px;
    margin: 0 auto 110px;
    text-align: center;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.primer-paso-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.primer-paso-content h2 {
    font-size: 56px;
    line-height: 1.08;
    font-weight: 500;
    margin-bottom: 24px;
}

.primer-paso-content p {
    max-width: 620px;
    margin: 0 auto 34px;
    font-size: 19px;
    line-height: 1.7;
    color: #555555;
}

.lotus-footer {
    max-width: 1100px;
    margin: 0 auto;
    padding-top: 32px;
    border-top: 1px solid #dddddd;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 30px;
}

.footer-logo {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.18em;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #555555;
}

.footer-logo-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a,
.footer-info a,
.footer-info p {
    color: #555555;
    text-decoration: none;
    font-size: 16px;
    margin: 0;
}

.footer-info {
    text-align: right;
}

.footer-info p {
    margin-bottom: 6px;
}

/* ==========================================
   12. PÁGINAS INTERNAS (Beneficios, Convenios)
   ================================---------- */
.page-container {
    padding: 80px 8%;
    max-width: 1200px;
    margin: 0 auto;
}

.page-header {
    text-align: center;
    margin-bottom: 50px;
}

.page-header h1 {
    font-size: 44px;
    font-weight: 500;
    margin-bottom: 16px;
}

.page-header p {
    font-size: 18px;
    color: #555555;
}

/* Grillas de Video */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.video-container {
    padding: 24px;
}

.video-container h3 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 15px;
}

.video-wrapper {
    position: relative;
    padding-bottom: 177.77%; /* Vertical 9:16 */
    height: 0;
    overflow: hidden;
    background: #000;
    border-radius: 4px;
    margin-top: 15px;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Convenios */
.convenio-categoria {
    margin-bottom: 50px;
}

.convenio-categoria h2 {
    font-size: 26px;
    font-weight: 500;
    color: #B98F98;
    border-bottom: 1px solid #eeeeee;
    padding-bottom: 10px;
    margin-bottom: 25px;
}

.convenios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.convenio-card {
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.convenio-card h3 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 10px;
}

.convenio-card p {
    font-size: 14px;
    color: #555555;
    margin-bottom: 15px;
    line-height: 1.6;
}

.convenio-card a {
    color: #B98F98;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
}

.convenio-card a:hover {
    text-decoration: underline;
}

/* ==========================================
   13. DISEÑO RESPONSIVO (MÓVILES)
   ================================---------- */
@media (max-width: 768px) {
    nav {
        padding: 15px 5%;
        flex-direction: column;
        gap: 15px;
    }

    nav ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    #hero {
        min-height: 100vh;
        padding: 0;
        display: flex;
        align-items: flex-start;
        justify-content: center;
        overflow: hidden;
    }

    .hero-content {
        width: calc(100% - 48px);
        max-width: 340px;
        margin: 500px auto 0;
        padding: 26px 22px 28px;
    }

    #hero h1 {
        font-size: 30px;
        line-height: 1.08;
        margin-bottom: 20px;
    }

    #espacio {
        display: flex;
        flex-direction: column;
        padding: 70px 24px;
        gap: 32px;
    }

    .espacio-content h2,
    .experiencia-header h2,
    .porque-header h2,
    .todo-header h2,
    .espacio-header h2,
    .faq-header h2,
    .test-intro h2,
    .test-resultado h2 {
        font-size: 34px !important;
        line-height: 1.12;
    }

    .porque-pilares {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .todo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .todo-icon {
        width: 78px;
        height: 78px;
    }

    .test-opciones {
        grid-template-columns: 1fr;
    }

    .lotus-footer {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 18px;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 14px 20px;
    }

    .footer-info {
        text-align: center;
    }
}