/* ==========================================================================
   Variables & Reset
   ========================================================================== */
:root {
    /* Colors inspired by the school's logo */
    --primary: #2563eb;
    /* Vibrant Deep blue */
    --primary-light: #3b82f6;
    --primary-dark: #1e3a8a;
    --accent: #f59e0b;
    /* Vibrant amber/orange */
    --accent-hover: #d97706;

    /* Green/olive accent — inspired by the school flyer */
    --green: #7B8F3C;
    --green-light: #9AB34A;
    --green-dark: #5E6E2A;
    --teal: #0E918C;
    --teal-light: #1DB5B0;

    --text-main: #1f2937;
    --text-muted: #4b5563;
    --bg-main: #ffffff;
    --bg-light: #f8fafc;
    --bg-dark: #0f172a;

    /* Typography - Cheerful & Rounded */
    --font-heading: 'Quicksand', sans-serif;
    --font-body: 'Nunito', sans-serif;

    /* Layout & Utilities */
    --max-width: 1200px;
    --nav-height: 80px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;

    /* Shadows */
    --shadow-sm: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-dark);
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   Utilities & Layout
   ========================================================================== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    max-width: 800px;
}

.section {
    padding: 100px 0;
}

.border-top {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.bg-light {
    background-color: var(--bg-light);
}

.bg-primary {
    background-color: var(--primary);
}

.text-white {
    color: #fff;
}

.text-white h1,
.text-white h2,
.text-white h3,
.text-white p {
    color: #fff;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.center {
    text-align: center;
}

.grid {
    display: grid;
    gap: 32px;
}

.lead-text {
    font-size: 1.25rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-top: 16px;
}

/* Base Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    font-family: var(--font-body);
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--accent);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.125rem;
}

/* Animation on scroll classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 100ms;
}

.delay-200 {
    transition-delay: 200ms;
}

.delay-300 {
    transition-delay: 300ms;
}

/* Skip Navigation */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--primary);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    z-index: 10000;
    font-weight: 600;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 12px;
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    transition: box-shadow var(--transition-fast), padding var(--transition-fast);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar.scrolled {
    box-shadow: var(--shadow-sm);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 55px;
    /* Adjust based on actual logo proportion */
    transition: transform var(--transition-fast);
}

.logo:hover img {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 36px;
    align-items: center;
}

.nav-links a:not(.btn) {
    font-weight: 500;
    color: var(--text-muted);
    transition: color var(--transition-fast);
    position: relative;
    padding: 8px 0;
}

.nav-links a:not(.btn):hover {
    color: var(--primary);
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width var(--transition-fast);
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-dark);
    cursor: pointer;
    padding: 8px;
}

/* ==========================================================================
   Hero Section - Cinematic Full Screen
   ========================================================================== */
.hero-cinematic {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg-cinematic {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg-cinematic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    filter: saturate(1.15) brightness(1.0);
    animation: hero-zoom 20s ease-in-out infinite alternate;
}

@keyframes hero-zoom {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.08);
    }
}

.hero-overlay-cinematic {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        /* Capa 1: Tinte azul institucional suave arriba */
        linear-gradient(180deg,
            rgba(30, 58, 138, 0.30) 0%,
            rgba(37, 99, 235, 0.12) 20%,
            transparent 45%),
        /* Capa 2: Fade blanco suave solo en la zona inferior (donde va el texto) */
        linear-gradient(180deg,
            transparent 0%,
            transparent 40%,
            rgba(255, 255, 255, 0.35) 60%,
            rgba(255, 255, 255, 0.70) 78%,
            rgba(255, 255, 255, 0.90) 100%);
}

.hero-center-content {
    position: relative;
    z-index: 2;
    padding-top: calc(var(--nav-height) + 40px);
    padding-bottom: 80px;
}

.hero-inner {
    max-width: 800px;
    margin: 0 auto;
}

.hero-eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 16px;
    border-bottom: 3px solid var(--accent);
    padding-bottom: 8px;
}

.hero-cinematic h1 {
    font-size: clamp(3rem, 7vw, 5.5rem);
    line-height: 1.1;
    color: var(--primary-dark);
    margin-bottom: 32px;
    letter-spacing: -1px;
    font-weight: 700;
}

.hero-highlight {
    background: linear-gradient(135deg, var(--accent), #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-date-block {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 2px solid rgba(37, 99, 235, 0.25);
    border-radius: var(--radius-md);
    padding: 18px 32px;
    margin-bottom: 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.date-icon {
    color: var(--accent);
    flex-shrink: 0;
}

.date-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.date-info strong {
    color: var(--primary-dark);
    font-size: 1.2rem;
    font-family: var(--font-heading);
    font-weight: 700;
}

.date-info span {
    color: var(--text-main);
    font-size: 0.9rem;
    margin-top: 4px;
    font-weight: 500;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-main);
    margin-bottom: 36px;
    line-height: 1.7;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px 28px;
    border-radius: var(--radius-md);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent), #fbbf24);
    color: #1a1a1a;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

.btn-accent:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -5px rgba(245, 158, 11, 0.5);
}

.btn-glow {
    box-shadow: 0 10px 25px -5px rgba(245, 158, 11, 0.4);
}

.btn-glass {
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary-dark);
    border: 2px solid rgba(37, 99, 235, 0.2);
}

.btn-glass:hover {
    background: rgba(37, 99, 235, 0.15);
    transform: translateY(-2px);
    border-color: var(--primary);
}

/* Countdown Timer */
.countdown-bar {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
}

.cd-number {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 4px;
}

.cd-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.scroll-indicator span {
    color: var(--primary-light);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--primary-light);
    border-bottom: 2px solid var(--primary-light);
    transform: rotate(45deg);
    animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {

    0%,
    100% {
        transform: rotate(45deg) translateY(0);
    }

    50% {
        transform: rotate(45deg) translateY(8px);
    }
}

/* ==========================================================================
   Wave Section Dividers (inspired by school flyer)
   ========================================================================== */
.wave-divider {
    position: relative;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-divider svg {
    display: block;
    width: 100%;
    height: auto;
}

.wave-divider--flip {
    transform: scaleY(-1);
}

/* Squiggle decoration (top-right floating waves like the flyer) */
.squiggle-deco {
    position: absolute;
    right: -10px;
    top: calc(var(--nav-height) + 20px);
    z-index: 3;
    opacity: 0.7;
    pointer-events: none;
}

.squiggle-deco svg {
    width: 120px;
    height: auto;
}

@media (max-width: 768px) {
    .squiggle-deco {
        display: none;
    }
}

/* ==========================================================================
   Hero Pills / Stage Badges (inspired by flyer)
   ========================================================================== */
.hero-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 28px;
}

.hero-pill {
    display: inline-block;
    padding: 8px 22px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    color: #fff;
    text-decoration: none;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.hero-pill:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.hero-pill--infantil {
    background: var(--green);
}

.hero-pill--primaria {
    background: var(--teal);
}

.hero-pill--secundaria {
    background: var(--green-light);
}

/* Te esperamos tagline */
.hero-tagline {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--teal);
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.85);
    display: inline-block;
    padding: 6px 20px;
    border-radius: 50px;
}

/* ==========================================================================
   Etapas Educativas
   ========================================================================== */
.section-header {
    margin-bottom: 64px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.75rem;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-muted);
}

.stages-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    top: 0;
}

.card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
}

.card-img {
    height: 260px;
    overflow: hidden;
    position: relative;
}

.card-img::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.card:hover .card-img img {
    transform: scale(1.08);
}

.card-content {
    padding: 32px;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--primary-dark);
}

.card-content p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* ==========================================================================
   Valores / Esencia
   ========================================================================== */
.split-grid {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.align-center {
    align-items: center;
}

.split-grid h2 {
    font-size: 2.75rem;
    margin-bottom: 24px;
}

.split-grid p {
    font-size: 1.125rem;
    color: var(--text-muted);
}

.feature-list {
    list-style: none;
    margin-top: 40px;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
    font-size: 1.125rem;
    color: var(--text-main);
    font-weight: 500;
}

.feature-list .icon {
    color: var(--primary-light);
    flex-shrink: 0;
    margin-top: 2px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    padding: 6px;
    width: 36px;
    height: 36px;
}

.rounded-image {
    border-radius: var(--radius-lg);
    width: 100%;
}

.image-block {
    position: relative;
}

.image-block::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    background-color: var(--primary-light);
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: 0.1;
}

/* Organic clip-path for valores image (inspired by flyer photo frame) */
.organic-shape {
    clip-path: ellipse(85% 80% at 55% 50%);
    border-radius: 0;
}

.organic-shape-wrapper {
    position: relative;
}

.organic-shape-wrapper::before {
    content: '';
    position: absolute;
    top: -12px;
    left: -12px;
    right: -12px;
    bottom: -12px;
    background: linear-gradient(135deg, var(--teal-light), var(--green-light), var(--primary-light));
    clip-path: ellipse(85% 80% at 55% 50%);
    z-index: -1;
    opacity: 0.3;
}

/* ==========================================================================
   Ubicación - Info Card & Map
   ========================================================================== */
.info-card {
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.info-card h3 {
    margin-bottom: 24px;
    color: var(--primary-dark);
    font-size: 1.5rem;
}

.info-card .feature-list {
    margin-top: 0;
}

.info-card .feature-list li {
    margin-bottom: 20px;
}

.info-card .feature-list li:last-child {
    margin-bottom: 0;
}

.map-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    height: 400px;
    min-height: 400px;
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 400px;
}

/* ==========================================================================
   CTA Form Section
   ========================================================================== */
.cta-section {
    position: relative;
    overflow: hidden;
    padding: 120px 0;
}

.cta-section::before,
.cta-section::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(5px);
    pointer-events: none;
}

.cta-section::before {
    width: 500px;
    height: 500px;
    top: -150px;
    left: -200px;
}

.cta-section::after {
    width: 400px;
    height: 400px;
    bottom: -150px;
    right: -100px;
}

.cta-section h2 {
    font-size: 3rem;
    margin-bottom: 16px;
}

.cta-section .subtitle {
    margin-bottom: 48px;
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.glass-form {
    max-width: 550px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 48px;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
}

.form-group {
    margin-bottom: 24px;
}

.glass-form input,
.glass-form select {
    width: 100%;
    padding: 16px 24px;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    background: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-main);
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.glass-form input:focus,
.glass-form select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.2);
}

.submit-btn {
    width: 100%;
    margin-top: 16px;
    font-size: 1.125rem;
}

.msg-hidden {
    display: none;
    opacity: 0;
}

.msg-success {
    display: block;
    opacity: 1;
    margin-top: 24px;
    padding: 16px;
    background-color: #10b981;
    color: white;
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: opacity var(--transition-fast);
}

.msg-error {
    display: block;
    opacity: 1;
    margin-top: 24px;
    padding: 16px;
    background-color: #ef4444;
    color: white;
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: opacity var(--transition-fast);
}

/* Privacy Checkbox */
.privacy-group {
    text-align: left;
}

.privacy-group label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    line-height: 1.5;
}

.privacy-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--accent);
    cursor: pointer;
}

.privacy-group a {
    color: var(--accent);
    text-decoration: underline;
    font-weight: 600;
}

.privacy-group a:hover {
    color: var(--accent-hover);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--bg-dark);
    color: #f3f4f6;
    padding-top: 100px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

.footer-logo {
    height: 60px;
    margin-bottom: 24px;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    color: #9ca3af;
    max-width: 320px;
    font-size: 1.125rem;
}

.footer h4 {
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 32px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-links a,
.footer-contact p {
    color: #9ca3af;
    transition: color var(--transition-fast);
    font-size: 1rem;
    margin-bottom: 4px;
}

.footer-links a:hover {
    color: var(--accent);
}

.socials {
    margin-top: 24px;
}

.socials a {
    color: var(--primary-light);
    font-weight: 500;
}

.socials a:hover {
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 32px 0;
    text-align: center;
    color: #6b7280;
    font-size: 0.875rem;
}

/* ==========================================================================
   Responsive Design (Mobile First principles via Breakpoints)
   ========================================================================== */
@media (max-width: 992px) {
    .split-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .image-block {
        order: -1;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--nav-height));
        background-color: #fff;
        flex-direction: column;
        justify-content: center;
        padding: 40px 24px;
        box-shadow: 0 10px 15px -10px rgb(0 0 0 / 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 999;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    /* === Mobile split hero: image top + content below === */
    .hero-cinematic {
        min-height: auto;
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .hero-bg-cinematic {
        position: relative;
        height: 48vh;
        flex-shrink: 0;
    }

    /* Organic curve at the bottom of the image (like the flyer) */
    .hero-bg-cinematic::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: -5%;
        width: 110%;
        height: 50px;
        background: #ffffff;
        border-radius: 50% 50% 0 0 / 100% 100% 0 0;
        z-index: 1;
    }

    .hero-bg-cinematic img {
        animation: none; /* Save battery on mobile */
    }

    /* Lighter overlay: subtle blue tint only — no white fade */
    .hero-overlay-cinematic {
        background:
            linear-gradient(180deg,
                rgba(30, 58, 138, 0.30) 0%,
                rgba(37, 99, 235, 0.08) 50%,
                rgba(30, 58, 138, 0.12) 100%) !important;
    }

    .hero-center-content {
        position: relative;
        z-index: 2;
        padding-top: 0;
        padding-bottom: 40px;
        margin-top: -24px; /* Slight overlap with the curve */
        background: #ffffff;
    }

    .hero-inner {
        max-width: 100%;
    }

    .hero-eyebrow {
        color: var(--primary);
    }

    .hero-cinematic h1 {
        font-size: 2.5rem;
        letter-spacing: -1px;
        color: var(--primary-dark);
    }

    /* Pills slightly smaller on mobile */
    .hero-pills {
        gap: 8px;
        margin-bottom: 20px;
    }

    .hero-pill {
        padding: 6px 16px;
        font-size: 0.78rem;
    }

    /* Date block: solid bg instead of glass */
    .hero-date-block {
        flex-direction: column;
        text-align: center;
        padding: 14px 20px;
        background: var(--bg-light);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border: 1px solid rgba(0, 0, 0, 0.06);
        box-shadow: var(--shadow-sm);
    }

    .date-info {
        text-align: center;
    }

    /* Description: no glass bg needed on solid white */
    .hero-desc {
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        box-shadow: none;
        padding: 0 8px;
        margin-bottom: 20px;
    }

    /* Tagline: soft teal tint */
    .hero-tagline {
        background: rgba(14, 145, 140, 0.08);
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    /* "Saber más" is redundant on mobile split layout — content flows naturally */
    .hero-buttons .btn-glass {
        display: none;
    }

    .section {
        padding: 80px 0;
    }

    .countdown-bar {
        gap: 16px;
        border-top-color: rgba(0, 0, 0, 0.06);
    }

    .cd-number {
        font-size: 1.75rem;
    }

    .scroll-indicator {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .cta-section h2 {
        font-size: 2.25rem;
    }

    .cta-section::before,
    .cta-section::after {
        display: none;
    }

    /* Form: reduce padding so inputs get full width */
    .glass-form {
        padding: 24px 18px;
        border-radius: var(--radius-md);
    }

    .glass-form input,
    .glass-form select {
        padding: 14px 16px;
        font-size: 0.95rem;
    }

    .form-group {
        margin-bottom: 18px;
    }

    /* Privacy checkbox: proper alignment on small screens */
    .privacy-group label {
        gap: 10px;
        font-size: 0.8rem;
        line-height: 1.45;
    }

    .privacy-group input[type="checkbox"] {
        width: 22px;
        min-width: 22px;
        height: 22px;
        margin-top: 0;
    }

    .submit-btn {
        padding: 14px 24px;
        font-size: 1rem;
    }

    .cta-section {
        padding: 80px 0;
    }

    .cta-section .subtitle {
        font-size: 1.05rem;
        margin-bottom: 32px;
    }
}

/* ==========================================================================
   Legal Pages (Privacidad & Cookies)
   ========================================================================== */
.legal-page {
    padding-top: calc(var(--nav-height) + 40px);
}

.legal-page h1 {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.legal-updated {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.legal-page h2 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    color: var(--primary);
    margin-top: 32px;
    margin-bottom: 12px;
}

.legal-page p,
.legal-page li {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 12px;
}

.legal-page ul {
    padding-left: 24px;
    margin-bottom: 16px;
}

.legal-page a {
    color: var(--primary);
    text-decoration: underline;
}

.legal-page a:hover {
    color: var(--primary-dark);
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 24px;
    font-size: 0.9rem;
}

.legal-table td,
.legal-table th {
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    text-align: left;
    color: var(--text-muted);
}

.legal-table th {
    background: var(--bg-light);
    font-weight: 700;
    color: var(--text-main);
}

.legal-table tr:nth-child(even) {
    background: var(--bg-light);
}

.legal-table td:first-child {
    white-space: nowrap;
    font-weight: 600;
    color: var(--text-main);
    width: 140px;
}

.cookies-table td:first-child {
    width: auto;
}

.legal-back {
    margin-top: 40px;
    text-align: center;
}

/* Footer legal links */
.footer-legal {
    font-size: 0.85rem;
    margin-top: 8px;
    opacity: 0.7;
}

.footer-legal a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.4);
}

.footer-legal a:hover {
    opacity: 1;
    text-decoration-color: rgba(255, 255, 255, 0.8);
}

.footer-legal-sep {
    margin: 0 8px;
    opacity: 0.5;
}

/* ==========================================================================
   Cookie Banner
   ========================================================================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--bg-dark);
    color: #ffffff;
    padding: 16px 24px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    animation: cookieSlideUp 0.4s ease-out;
}

@keyframes cookieSlideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-banner-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-banner-content p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #d1d5db;
    flex: 1;
}

.cookie-banner-content a {
    color: #93c5fd;
    text-decoration: underline;
}

.cookie-banner-content a:hover {
    color: #bfdbfe;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.85rem;
    white-space: nowrap;
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
}