/* --- RESETEO DE ESTILOS BÁSICOS --- */
html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #ffffff;
}

/* BARRA SUPERIOR COLOR NEGRO SÓLIDO */
.top-bar {
    background-color: #000000; 
    width: 100%;
    height: 35px; 
}

/* NAVBAR GENERAL */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center; 
    padding: 0 60px;      
    background-color: #ffffff;
    height: 70px; 
    position: relative;
    z-index: 1000;
}

.logo {
    font-family: 'Georgia', 'Times New Roman', serif; 
    font-size: 26px; 
    font-weight: 500; 
    color: #000000; 
    text-decoration: none;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 10000; 
}

/* Contenedor Flex para Desktop */
.nav-container-responsive {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-grow: 1;
    margin-left: 40px;
}

.navbar .nav-center {
    margin-auto: auto;
    display: flex;
    justify-content: center;
    flex-grow: 1;
}

.navbar .nav-center .nav-menu {
    display: flex;
    list-style: none;
    gap: 35px; 
}

.navbar .nav-center .nav-menu a {
    text-decoration: none;
    color: #000000;
    font-weight: 600; 
    font-size: 15px;
    padding-bottom: 4px; 
    position: relative; 
    transition: color 0.2s ease;
}

.navbar .nav-center .nav-menu a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: #000000;
    transform: scaleX(0); 
    transition: transform 0.25s ease;
}

.navbar .nav-center .nav-menu a:hover::after {
    transform: scaleX(1); 
}

.nav-right .btn-join-now {
    text-decoration: none;
    background-color: #c2daf0; 
    color: #000000;
    font-weight: 700;
    font-size: 15px;
    padding: 10px 24px;
    border-radius: 8px; 
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.nav-right .btn-join-now:hover {
    background-color: #b0cee8;
    transform: translateY(-1px);
}

/* BOTÓN HAMBURGUESA (Oculto en Escritorio) */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10000; 
}

.hamburger-bar {
    width: 100%;
    height: 3px;
    background-color: #000000;
    transition: all 0.3s ease;
    transform-origin: left center;
}

/* Animación del botón a cruz X */
.menu-toggle.is-open .hamburger-bar:nth-child(1) {
    transform: rotate(45deg);
    position: relative;
    top: -2px;
    left: 3px;
}
.menu-toggle.is-open .hamburger-bar:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}
.menu-toggle.is-open .hamburger-bar:nth-child(3) {
    transform: rotate(-45deg);
    position: relative;
    top: 2px;
    left: 3px;
}

/* HERO SECTION */
.hero-minimalist-section {
    background-color: #ffffff; 
    width: 100%;
    padding: 90px 20px 70px 20px; 
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-minimalist-container {
    max-width: 850px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-min-title {
    font-family: 'Georgia', 'Times New Roman', serif; 
    font-size: clamp(36px, 4.5vw, 64px); 
    font-weight: 500; 
    color: #111111;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 25px;
}

.hero-min-subtitle {
    font-size: clamp(16px, 1.3vw, 19px);
    color: #222222; 
    line-height: 1.5;
    max-width: 680px;
    margin-bottom: 40px;
}

.btn-min-black {
    display: inline-block;
    background-color: #000000;
    color: #ffffff;
    font-weight: 700;
    font-size: 15px;
    padding: 15px 36px;
    border-radius: 8px; 
    transition: background-color 0.2s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.btn-min-black:hover {
    background-color: #222222;
    transform: translateY(-1px);
}

/* EXPERIENCES GALLERY */
.experiences-gallery-section {
    background-color: #162c4e; 
    width: 100%;
    padding: 80px 20px 100px 20px;
    display: flex;
    justify-content: center;
    scroll-margin-top: 40px;
}

.gallery-wrapper {
    max-width: 1200px; 
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gallery-main-title {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: clamp(24px, 2.5vw, 36px);
    font-weight: 400;
    color: #ffffff; 
    text-align: center;
    margin-bottom: 50px;
    letter-spacing: -0.5px;
}

.gallery-scroll-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 25px; 
}

.card-white-box {
    background-color: #ffffff; 
    border-radius: 20px; 
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12); 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-white-box:hover {
    transform: translateY(-5px); 
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.2);
}

.gallery-card-content {
    padding: 40px 30px; 
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.gallery-card-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 19px;
    margin-bottom: 24px;
}

.icon-box-blue { background-color: #e0f2fe; color: #0369a1; }
.icon-box-cyan { background-color: #e0f7fa; color: #00838f; }
.icon-box-purple { background-color: #e8eaf6; color: #283593; }

.gallery-card-tag {
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.color-blue-tag { color: #0369a1; }
.color-cyan-tag { color: #0369a1; }
.color-purple-tag { color: #283593; }

.gallery-card-title {
    font-size: 22px; 
    font-weight: 700;
    color: #0a192f; 
    line-height: 1.3;
    margin-bottom: 14px;
}

.gallery-card-desc {
    font-size: 14px;
    color: #4a5568; 
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1; 
}

.gallery-card-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 1px solid #e2e8f0; 
    padding-top: 20px;
}

.gallery-card-features li {
    font-size: 13.5px;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 10px;
}

.gallery-card-features li i.check-blue { color: #0369a1; }
.gallery-card-features li i.check-cyan { color: #0369a1; }
.gallery-card-features li i.check-purple { color: #283593; }

/* LEGAL SECTION */
.legal-centered-section {
    background-color: #ffffff; 
    width: 100%;
    padding: 90px 20px 50px 20px; 
    display: flex;
    justify-content: center;
    scroll-margin-top: 40px;
}

.legal-centered-container {
    max-width: 800px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center; 
    text-align: center;   
}

.legal-section-title {
    font-family: 'Georgia', 'Times New Roman', serif; 
    font-size: clamp(28px, 3.2vw, 42px); 
    font-weight: 500;
    color: #111111;
    letter-spacing: -0.5px;
    margin-bottom: 30px;
}

.legal-block-heading {
    font-size: 15px;
    font-weight: 700;
    color: #000000;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.legal-block-paragraph {
    font-size: clamp(15.5px, 1.25vw, 18.5px); 
    color: #222222; 
    line-height: 1.6;
}

.legal-quote-footer {
    font-size: 14.5px;
    font-style: italic;
    color: #64748b;
    margin-top: 25px;
}

/* STATS SECTION */
.stats-next-section {
    background-color: #ffffff; 
    width: 100%;
    padding: 30px 20px 80px 20px; 
    display: flex;
    justify-content: center;
}

.stats-next-container {
    max-width: 1100px;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 40px; 
    text-align: center; 
}

.stat-next-bullet {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 20px;
}

.stat-next-number {
    font-family: 'Georgia', 'Times New Roman', serif; 
    font-size: clamp(38px, 3.5vw, 52px); 
    font-weight: 700; 
    line-height: 1;
    letter-spacing: -0.5px;
}

.stat-next-number.color-blue { color: #38bdf8; }
.stat-next-number.color-dark { color: #64748b; }
.stat-next-number.color-green { color: #60a5fa; }

.stat-next-label {
    font-size: 12px;
    font-weight: bold;
    color: #1e293b;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.stat-next-sub {
    font-size: 13.5px;
    color: #4a5568;
    line-height: 1.4;
    max-width: 280px; 
}

/* PASTEL CLOSING SECTION */
.pastel-closing-section {
    background-color: #e0f2fe; 
    width: 100%;
    padding: 90px 20px 100px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pastel-closing-container {
    max-width: 850px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.closing-title {
    font-family: 'Georgia', 'Times New Roman', serif; 
    font-size: clamp(28px, 3.2vw, 42px); 
    font-weight: 500;
    color: #111111; 
    letter-spacing: -0.5px;
    margin-bottom: 25px;
    line-height: 1.2;
}

.closing-desc {
    font-size: clamp(16px, 1.3vw, 19px); 
    color: #334155; 
    line-height: 1.6;
    max-width: 720px;
    margin-bottom: 35px; 
}

.closing-actions-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    width: 100%;
}

.contact-direct-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 35px;
    flex-wrap: wrap;
    margin-top: 5px;
}

.contact-info-line {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: #1e293b; 
    font-weight: 700;
}

.contact-info-line .contact-black-icon {
    color: #000000; 
    font-size: 17px;
}

/* FOOTER DESKTOP CLÁSICO */
.main-footer {
    background-color: #ffffff;
    width: 100%;
    padding: 40px 60px 50px 60px; 
    text-align: left; 
}

.footer-credits {
    font-size: 13.5px;
    color: #4a5568; 
    font-weight: 700; 
    letter-spacing: -0.2px; 
}

/* MODAL OVERLAY */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); 
    backdrop-filter: blur(4px);           
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;                         
    opacity: 0;                           
    pointer-events: none;                 
    transition: opacity 0.3s ease;
}

.modal-overlay.is-active {
    opacity: 1;
    pointer-events: auto;
}

.modal-container {
    background-color: #ffffff;
    width: 100%;
    max-width: 480px;
    padding: 45px 40px;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    position: relative;
    transform: translateY(-30px);
    transition: transform 0.3s ease;
}

.modal-overlay.is-active .modal-container {
    transform: translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    font-size: 28px;
    color: #64748b;
    cursor: pointer;
    transition: color 0.2s ease;
}

.modal-close-btn:hover {
    color: #000000;
}

.modal-title {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 28px;
    font-weight: 500;
    color: #111111;
    margin-bottom: 10px;
}

.modal-subtitle {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    font-size: 12px;
    font-weight: 700;
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14.5px;
    color: #000000;
    background-color: #f8fafc;
    outline: none;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #000000;
    background-color: #ffffff;
}

.btn-submit-form {
    width: 100%;
    background-color: #000000;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 14px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.2s ease;
}

.btn-submit-form:hover {
    background-color: #222222;
}

/* ==========================================================================
    DISEÑO MÓVIL REFINADO COMPLETO (MAX-WIDTH: 900PX)
   ========================================================================== */
@media (max-width: 900px) {
    /* Ocultar la barra superior negra en versión móvil */
    .top-bar {
        display: none;
    }

    /* Convertir la barra en Sticky para fijarla arriba al bajar */
    .main-header {
        position: sticky;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 10000; 
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05); 
    }

    .navbar {
        padding: 0 24px;
        height: 75px;
        background-color: #ffffff;
    }

    /* Reducimos el tamaño global del botón de las tres rayas */
    .menu-toggle {
        display: flex;
        width: 24px;   
        height: 16px;  
    }

    /* Ajustamos el grosor de las líneas individuales */
    .hamburger-bar {
        height: 2px;   
        background-color: #000000;
    }

    /* Ajuste de la X cuando el menú está desplegado */
    .menu-toggle.is-open .hamburger-bar {
        height: 2px;   
        background-color: #000000;
    }
    .menu-toggle.is-open .hamburger-bar:nth-child(1) {
        transform: rotate(45deg);
        position: relative;
        top: -1px;
        left: 2px;
    }
    .menu-toggle.is-open .hamburger-bar:nth-child(3) {
        transform: rotate(-45deg);
        position: relative;
        top: 1px;
        left: 2px;
    }

    /* Animación de arriba hacia abajo (Top to Bottom) */
    .nav-container-responsive {
        position: fixed;
        top: -100%; 
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: #ffffff;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start; 
        padding: 120px 40px 60px 40px;
        margin-left: 0;
        transition: top 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 999;
    }

    .nav-container-responsive.is-open {
        top: 0;
    }

    /* Espacio separador bajo el título (Logo) */
    .navbar .nav-center {
        flex-grow: 0;
        margin-top: 35px; 
        margin-bottom: 45px;
    }

    .navbar .nav-center .nav-menu {
        flex-direction: column;
        gap: 32px; 
    }

    /* Fuentes de Ecosistema y Normativa */
    .navbar .nav-center .nav-menu a {
        font-size: 26px;   
        font-weight: 400;  
        color: #000000;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
        letter-spacing: -0.2px;
    }

    .navbar .nav-center .nav-menu a::after {
        display: none; 
    }

    .nav-right {
        width: 100%;
        margin-top: 10px;
    }

    .nav-right .btn-join-now {
        width: 100%;
        text-align: center;
        padding: 16px;
        font-size: 16px;
        background-color: #c2daf0;
        border-radius: 8px;
        display: block;
    }

    /* CONTENEDORES DE LA GALERÍA MÁS PEQUEÑOS Y COMPACTOS */
    .experiences-gallery-section {
        padding: 50px 16px 60px 16px; 
    }

    .gallery-scroll-grid {
        grid-template-columns: 1fr;
        gap: 20px; 
    }

    .gallery-card-content {
        padding: 28px 22px; 
    }

    .gallery-card-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
        margin-bottom: 16px;
    }

    .gallery-card-title {
        font-size: 20px; 
        margin-bottom: 10px;
    }

    .gallery-card-desc {
        font-size: 13.5px; 
        margin-bottom: 20px;
    }

    .gallery-card-features {
        padding-top: 16px;
        gap: 10px;
    }

    .gallery-card-features li {
        font-size: 12.5px; 
    }

    /* REAJUSTES DE OTRAS SECCIONES GENERALES */
    .hero-minimalist-section {
        padding: 60px 24px 50px 24px;
    }
    .stats-next-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .legal-centered-section {
        padding: 60px 20px 30px 20px;
    }
    .stats-next-section {
        padding: 20px 20px 50px 20px;
    }
    .pastel-closing-section {
        padding: 60px 20px;
    }
    .contact-direct-info {
        flex-direction: column;
        gap: 18px;
    }

    /* NUEVO AJUSTE: FOOTER SECCIÓN Y COPYRIGHT EXTRA COMPACTO */
    .main-footer {
        padding: 20px 15px; 
        text-align: left; 
    }

    .footer-credits {
        font-size: 11px; 
        letter-spacing: 0px; 
    }

    .modal-container {
        margin: 0 15px;
        padding: 35px 25px;
    }
}