/* Little Seeds Montessori - estilos */
/* ==========================================================================
   VARIABLES DE TEMA LIQUID GLASS: LITTLE SEEDS MONTESSORI (COLORES DEL LOGO)
   ========================================================================== */
:root {
    --bg-base: #DDF5FA;
    --bg-mesh:
        radial-gradient(at 0% 0%, rgba(53, 194, 214, 0.55) 0px, transparent 52%),
        radial-gradient(at 98% 8%, rgba(255, 208, 21, 0.50) 0px, transparent 50%),
        radial-gradient(at 88% 88%, rgba(244, 100, 154, 0.42) 0px, transparent 52%),
        radial-gradient(at 8% 85%, rgba(108, 192, 46, 0.45) 0px, transparent 50%),
        linear-gradient(135deg, #D9F4FA 0%, #EAF9E6 50%, #FFF5D6 100%);
    --header-glass: linear-gradient(110deg, rgba(29, 143, 225, 0.90) 0%, rgba(53, 194, 214, 0.90) 52%, rgba(108, 192, 46, 0.90) 100%);
    --navbar-bg: rgba(24, 38, 66, 0.94);
    --primary: #1D8FE1;
    --secondary: #6CC02E;
    --accent: #FFD015;
    --glass-surface: rgba(255, 255, 255, 0.66);
    --glass-surface-strong: rgba(255, 255, 255, 0.82);
    --glass-highlight: rgba(255, 255, 255, 0.96);
    --glass-outline: rgba(53, 194, 214, 0.42);
    --text-main: #1A2233;
    --text-muted: #3A465E;
    --beam-1: #35C2D6;
    --beam-2: #FFD015;
    --beam-3: #F4649A;
    --beam-4: #6CC02E;
    --radius-lg: 24px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

@property --beam-angle {
    syntax: "<angle>";
    inherits: false;
    initial-value: 0deg;
}
@keyframes spinLightBeam {
    to { --beam-angle: 360deg; }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-base);
    background-image: var(--bg-mesh);
    background-attachment: fixed;
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    transition: background-color 0.45s ease;
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 10; }
.hidden { display: none !important; }
.brand-nowrap { white-space: nowrap; display: inline-block; }

/* Letras con los colores exactos del logo Little Seeds Montessori */
.let-l1 { color: #FFD015; } .let-i1 { color: #6CC02E; } .let-t1 { color: #E83F44; }
.let-t2 { color: #6CC02E; } .let-l2 { color: #1D8FE1; } .let-e1 { color: #FFD015; }
.let-s1 { color: #1D8FE1; } .let-ee1 { color: #FFD015; } .let-ee2 { color: #6CC02E; }
.let-d1 { color: #1D8FE1; } .let-ss2 { color: #FFD015; }
.let-m, .let-n, .let-e2, .let-s4, .let-r { color: #E83F44; }
.let-o1, .let-t, .let-s3, .let-o2, .let-i2 { color: #1D8FE1; }

/* ==========================================================================
   PANTALLA DE ANTESALA LIQUID GLASS (OPTIMIZADA PARA MÓVIL Y PC)
   ========================================================================== */
.antesala-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background:
        radial-gradient(circle at 14% 18%, rgba(53, 194, 214, 0.50), transparent 46%),
        radial-gradient(circle at 86% 20%, rgba(255, 208, 21, 0.46), transparent 46%),
        radial-gradient(circle at 82% 84%, rgba(244, 100, 154, 0.40), transparent 46%),
        radial-gradient(circle at 18% 82%, rgba(108, 192, 46, 0.44), transparent 46%),
        linear-gradient(135deg, #E2F6FA 0%, #EFFAE9 50%, #FFF7DC 100%);
    transition: opacity 0.5s ease, visibility 0.5s ease;
    overflow: hidden;
}
.antesala-overlay.fade-out { opacity: 0; visibility: hidden; pointer-events: none; }

.antesala-sparkles { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.sparkle-dot {
    position: absolute;
    border-radius: 50%;
    filter: blur(12px);
    opacity: 0;
    will-change: transform, opacity;
    animation: sparkleSoftGlow var(--dur, 7s) ease-in-out var(--delay, 0s) infinite;
}
@keyframes sparkleSoftGlow {
    0%, 100% { transform: scale(0.82) translate3d(0, 0, 0); opacity: 0.25; }
    50% { transform: scale(1.22) translate3d(8px, -10px, 0); opacity: 0.78; }
}

.antesala-glass-panel {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 820px;
    border-radius: 34px;
    padding: 40px 30px;
    text-align: center;
    background: rgba(255, 255, 255, 0.52);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border: 3px solid transparent;
    background-image:
        linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.48)),
        conic-gradient(from var(--beam-angle), #35C2D6, #FFD015, #F4649A, #6CC02E, #35C2D6);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    animation: spinLightBeam 5s linear infinite;
    box-shadow:
        inset 0 2px 3px rgba(255, 255, 255, 0.95),
        0 22px 50px rgba(29, 143, 225, 0.20);
    transition: transform 0.35s ease, opacity 0.35s ease;
}
.antesala-glass-panel.panel-hidden { opacity: 0; transform: scale(0.95); pointer-events: none; }

.antesala-logos-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 36px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.antesala-logo-pure {
    width: 240px;
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.35s ease;
}
.antesala-logo-pure:hover { transform: scale(1.04); }
.antesala-logo-pure img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.14));
}

.antesala-subtitle {
    font-size: 16.5px;
    font-weight: 800;
    color: #1E293B;
    margin-bottom: 26px;
    letter-spacing: 0.2px;
}

.btn-bienvenidos-liquid {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 46px;
    font-family: inherit;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 0.5px;
    color: #FFFFFF;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    border-radius: 999px;
    cursor: pointer;
    border: 3px solid transparent;
    background-image:
        linear-gradient(120deg, #1D8FE1 0%, #35C2D6 45%, #6CC02E 100%),
        conic-gradient(from var(--beam-angle), #FFD015, #FFFFFF, #F4649A, #FFD015);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    animation: spinLightBeam 3.5s linear infinite;
    box-shadow: 0 12px 28px rgba(29, 143, 225, 0.35);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.btn-bienvenidos-liquid:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 16px 34px rgba(29, 143, 225, 0.45);
}

/* Reproductor de Video ante.mp4 acelerado por GPU */
.antesala-video-stage {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(12, 18, 32, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transform: translateZ(0);
    transition: opacity 0.35s ease, visibility 0.35s ease;
}
.antesala-video-stage.is-playing { opacity: 1; visibility: visible; }
.antesala-video-box {
    position: relative;
    width: 100%;
    max-width: 960px;
    border-radius: 22px;
    overflow: hidden;
    border: 3px solid #35C2D6;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65);
    background: #000000;
    transform: translateZ(0);
}
.antesala-video-box video {
    width: 100%;
    max-height: 82vh;
    display: block;
    object-fit: contain;
    background: #000000;
    transform: translateZ(0);
}
.btn-cerrar-video {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #FFFFFF;
    background: rgba(15, 23, 42, 0.82);
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, background 0.2s;
}
.btn-cerrar-video:hover { background: #E83F44; transform: scale(1.08); }

/* ==========================================================================
   ENCABEZADO ESTILIZADO Y LIGERO
   ========================================================================== */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14);
}

.banner-top {
    background: var(--header-glass);
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    padding: 8px 0;
    border-bottom: 2.5px solid var(--accent);
}

.banner-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.brand-logo-wrap, .logos-selector {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-emblem-card {
    background: rgba(255, 255, 255, 0.24);
    border: 1.5px solid rgba(255, 255, 255, 0.50);
    border-radius: 16px;
    padding: 4px 10px;
    height: 66px;
    min-width: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.80;
    transform: scale(0.95);
    transition: all 0.25s ease;
}
.logo-emblem-card:hover { opacity: 1; transform: scale(1); background: rgba(255, 255, 255, 0.40); }
.logo-emblem-card.is-active {
    opacity: 1;
    transform: scale(1.04);
    background: rgba(255, 255, 255, 0.94);
    border-color: var(--accent);
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.85), 0 4px 12px rgba(0, 0, 0, 0.14);
}
.logo-emblem-card img { max-height: 54px; max-width: 98px; width: auto; object-fit: contain; }

.header-brand-info {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

/* Cápsula Liquid Glass animada para ambos colegios */
.header-title-custom {
    padding: 6px 18px;
    border-radius: 16px;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.18;
    border: 2.5px solid transparent !important;
    background-color: transparent !important;
    background-image:
        linear-gradient(135deg, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0.28)),
        conic-gradient(from var(--beam-angle), var(--beam-1) 0%, var(--beam-2) 25%, var(--beam-3) 50%, var(--beam-4) 75%, var(--beam-1) 100%) !important;
    background-origin: border-box !important;
    background-clip: padding-box, border-box !important;
    animation: spinLightBeam 5s linear infinite !important;
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    box-shadow:
        inset 0 1.5px 1px rgba(255, 255, 255, 0.92),
        0 6px 16px rgba(15, 23, 42, 0.15);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.92);
}

.header-brand-info .contact-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
    font-size: 12.5px;
    font-weight: 700;
    color: #FFFFFF;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}
.header-brand-info a { color: #FFFFFF; text-decoration: none; }
.header-brand-info a:hover { color: var(--accent); text-decoration: underline; }

.main-navbar { background: var(--navbar-bg); }
.nav-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    list-style: none;
    gap: 4px;
}
.nav-btn {
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: #FFFFFF;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 700;
    padding: 10px 15px;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
}
.nav-btn:hover { color: var(--accent); background: rgba(255, 255, 255, 0.08); }
.nav-btn.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    background: rgba(255, 255, 255, 0.12);
}

/* ==========================================================================
   APP INSTALADA: sin antesala, sin puente, sin botones de descarga
   ========================================================================== */
html.es-app #antesalaOverlay,
html.es-app #antesalaVideoStage,
html.es-app #bridge-section,
html.es-app #nav-app-blog-btn,
html.es-app #hero-app-blog-btn,
html.es-app #blog-app-download-btn,
html.es-app #selector-arboleda {
    display: none !important;
}

/* ==========================================================================
   SOLO EN LA APP INSTALADA: el calendario se oculta en la página web normal
   ========================================================================== */
html:not(.es-app) #nav-calendario-item,
html:not(.es-app) #tab-calendario {
    display: none !important;
}

/* ==========================================================================
   CONTENEDOR PRINCIPAL CON BORDE LUMINOSO EN MOVIMIENTO + LIQUID GLASS
   ========================================================================== */
.hero-wrapper { padding: 34px 0 26px; }

.hero-box {
    border-radius: 28px;
    padding: 34px;
    display: grid;
    grid-template-columns: 215px 1fr;
    gap: 30px;
    align-items: center;
    border: 3.5px solid transparent;
    background-image:
        linear-gradient(135deg, var(--glass-surface-strong), var(--glass-surface)),
        conic-gradient(from var(--beam-angle), var(--beam-1) 0%, var(--beam-2) 25%, var(--beam-3) 50%, var(--beam-4) 75%, var(--beam-1) 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    animation: spinLightBeam 5s linear infinite;
    box-shadow:
        inset 0 2px 2px var(--glass-highlight),
        0 18px 40px rgba(29, 143, 225, 0.15);
}

.hero-logo-showcase {
    width: 205px;
    height: 205px;
    margin: 0 auto;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.86);
    border: 2px solid var(--glass-highlight);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.10);
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-logo-showcase img { width: 100%; height: 100%; object-fit: contain; }

/* Portada con fotografía completa en el inicio */
.hero-box.hero-con-portada {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}
.hero-portada-img {
    width: 100%;
    max-width: 520px;
    height: auto;
    border-radius: 20px;
    display: block;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}
.hero-con-portada .hero-grades-pills,
.hero-con-portada .hero-cta-group {
    justify-content: center;
    margin: 0;
}

.kicker {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #FFFFFF;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    padding: 5px 15px;
    border-radius: 99px;
    margin-bottom: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

h1 { font-size: 33px; font-weight: 900; line-height: 1.2; color: var(--text-main); }
.hero-subtitle { font-size: 16px; font-weight: 800; color: var(--primary); margin-top: 6px; }
.hero-desc { font-size: 15px; color: var(--text-muted); margin-top: 10px; font-weight: 500; }

.hero-grades-pills { display: flex; flex-wrap: wrap; gap: 9px; margin: 18px 0 24px; }
.grade-tag {
    padding: 6px 15px;
    border-radius: 13px;
    font-size: 13px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.88);
    border: 2px solid var(--primary);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}
.grade-tag:nth-child(1) { border-color: #FFD015; background: #FFFBEB; color: #92400E; }
.grade-tag:nth-child(2) { border-color: #6CC02E; background: #F0FDF4; color: #166534; }
.grade-tag:nth-child(3) { border-color: #35C2D6; background: #ECFEFF; color: #155E75; }
.grade-tag:nth-child(4) { border-color: #F4649A; background: #FDF2F8; color: #9D174D; }
.grade-tag:nth-child(5) { border-color: #1D8FE1; background: #EFF6FF; color: #1E40AF; }

.hero-cta-group { display: flex; flex-wrap: wrap; gap: 12px; }

.btn-main {
    color: #FFFFFF;
    border-radius: 14px;
    padding: 13px 22px;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 800;
    cursor: pointer;
    border: 3px solid transparent;
    background-image:
        linear-gradient(135deg, var(--primary), var(--secondary)),
        conic-gradient(from var(--beam-angle), var(--beam-2), #FFFFFF, var(--beam-3), var(--beam-1), var(--beam-2));
    background-origin: border-box;
    background-clip: padding-box, border-box;
    animation: spinLightBeam 3.5s linear infinite;
    box-shadow: 0 8px 20px rgba(29, 143, 225, 0.25);
    transition: transform 0.2s ease;
}
.btn-main:hover { transform: translateY(-2px); }

.btn-outline {
    background: rgba(255, 255, 255, 0.86);
    color: var(--text-main);
    border: 2px solid var(--glass-highlight);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.07);
    border-radius: 14px;
    padding: 12px 20px;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-outline:hover { background: #FFFFFF; transform: translateY(-2px); }

/* ==========================================================================
   SECCIONES Y TARJETAS LIQUID GLASS CON BORDE LUMINOSO EN MOVIMIENTO
   ========================================================================== */
.page-section, .section { padding: 36px 0 48px; }
.section-header { text-align: center; max-width: 780px; margin: 0 auto 30px; }
.section-header h2 { font-size: 28px; font-weight: 900; color: var(--text-main); }
.section-header p, .subtitle-text { font-size: 15px; color: var(--text-muted); margin-top: 8px; font-weight: 500; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.growth-pathway-wrapper {
    position: relative;
    padding: 18px 0 36px;
}
.growth-arrow-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}
.growth-steps-row {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(195px, 1fr));
    gap: 18px;
    align-items: end;
}

.card, .level-card, .quick-link-card, .areas-panel, .bridge-card, .map-card {
    border-radius: var(--radius-lg);
    padding: 26px;
    border: 2.5px solid transparent;
    background-image:
        linear-gradient(145deg, var(--glass-surface-strong), var(--glass-surface)),
        conic-gradient(from var(--beam-angle), var(--beam-1), var(--beam-2), var(--beam-3), var(--beam-4), var(--beam-1));
    background-origin: border-box;
    background-clip: padding-box, border-box;
    animation: spinLightBeam 6.5s linear infinite;
    box-shadow:
        inset 0 1.5px 1px var(--glass-highlight),
        0 12px 28px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease;
}
.card:hover, .level-card:hover, .quick-link-card:hover { transform: translateY(-4px); }

.icon-circle {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 23px;
    margin-bottom: 14px;
    color: #FFFFFF;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.14);
}

@media (min-width: 960px) {
    .growth-steps-row.steps-5 .level-card:nth-child(1) { transform: translateY(18px); }
    .growth-steps-row.steps-5 .level-card:nth-child(2) { transform: translateY(8px); }
    .growth-steps-row.steps-5 .level-card:nth-child(3) { transform: translateY(-2px); }
    .growth-steps-row.steps-5 .level-card:nth-child(4) { transform: translateY(-12px); }
    .growth-steps-row.steps-5 .level-card:nth-child(5) { transform: translateY(-22px); }

    .growth-steps-row.steps-2 {
        max-width: 760px;
        margin: 0 auto;
    }
    .growth-steps-row.steps-2 .level-card:nth-child(1) { transform: translateY(10px); }
    .growth-steps-row.steps-2 .level-card:nth-child(2) { transform: translateY(-12px); }
}
.level-card {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 235px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.level-card:hover {
    transform: translateY(-16px) scale(1.02) !important;
    box-shadow: 0 18px 36px rgba(29, 143, 225, 0.20);
}
.level-step-pill {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 10px;
}
.level-step-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.grid-3 > div:nth-child(1) .icon-circle { background: linear-gradient(135deg, #35C2D6, #1D8FE1); }
.grid-3 > div:nth-child(2) .icon-circle { background: linear-gradient(135deg, #FFD015, #F59E0B); }
.grid-3 > div:nth-child(3) .icon-circle { background: linear-gradient(135deg, #F4649A, #E83F44); }

.card h3, .level-card h3 { font-size: 19px; font-weight: 800; margin-bottom: 8px; }
.card p, .level-card p { font-size: 14px; color: var(--text-muted); }

.level-age {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    color: var(--primary);
    background: rgba(255, 255, 255, 0.85);
    border: 1.5px solid var(--glass-outline);
    padding: 4px 12px;
    border-radius: 99px;
    margin-bottom: 10px;
}

.areas-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.area-badge {
    background: rgba(255, 255, 255, 0.88);
    border: 2px solid var(--primary);
    border-radius: 12px;
    padding: 8px 14px;
    font-size: 13.5px;
    font-weight: 800;
    color: var(--text-main);
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.18s ease, background 0.18s ease;
}
.area-badge:hover {
    background: #FFFFFF;
    transform: translateY(-2px);
}

.filter-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 24px; }
.filter-chip {
    background: rgba(255, 255, 255, 0.82);
    border: 2px solid var(--glass-outline);
    border-radius: 99px;
    padding: 8px 18px;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
}
.filter-chip.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: transparent;
    color: #FFFFFF;
    box-shadow: 0 6px 14px rgba(29, 143, 225, 0.25);
}

.cal-date-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    color: #FFFFFF;
    background: var(--primary);
    padding: 4px 12px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.modelo-banner {
    background: linear-gradient(125deg, var(--primary) 0%, var(--secondary) 100%);
    color: #FFFFFF;
    border-radius: 28px;
    padding: 36px;
    margin-bottom: 26px;
    border: 3px solid var(--accent);
    box-shadow: 0 16px 34px rgba(29, 143, 225, 0.22);
}
.modelo-banner h2 { font-size: 27px; font-weight: 900; margin-bottom: 8px; }
.modelo-banner p { font-size: 15px; opacity: 0.96; max-width: 780px; }

.blog-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #FFFFFF;
    background: var(--secondary);
    padding: 4px 11px;
    border-radius: 99px;
    margin-bottom: 10px;
}

.modal-carousel {
    margin-top: 16px;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid var(--primary);
    background: #F8FAFC;
}
.modal-carousel-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0F172A;
    min-height: 220px;
}
.modal-carousel-stage img {
    width: 100%;
    max-height: 46vh;
    object-fit: cover;
    display: block;
}
.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #FFFFFF;
    background: rgba(15, 23, 42, 0.78);
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.carousel-nav-btn.prev { left: 10px; }
.carousel-nav-btn.next { right: 10px; }
.modal-carousel-footer {
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(8px);
    z-index: 250;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-card {
    background: #FFFFFF;
    border-radius: 26px;
    max-width: 680px;
    width: 100%;
    max-height: 86vh;
    overflow-y: auto;
    padding: 32px;
    border: 3px solid var(--primary);
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.30);
}
.modal-card p { margin-bottom: 12px; font-size: 14.5px; color: var(--text-main); }
.modal-card ol { margin: 12px 0 16px 22px; font-size: 14.5px; color: var(--text-main); }
.modal-card li { margin-bottom: 8px; }

.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 13px; font-weight: 800; color: var(--text-main); }
.input-box {
    padding: 12px 14px;
    border: 2px solid var(--glass-outline);
    border-radius: 12px;
    font-family: inherit;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.92);
}
.input-box:focus { outline: none; border-color: var(--primary); }

.map-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.map-canvas-wrap { position: relative; width: 100%; height: 320px; overflow: hidden; background: #E6F4F1; }
.map-zoom-controls {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.zoom-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 2px solid var(--primary);
    background: #FFFFFF;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.14);
}
.map-overlay-info {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.96);
    padding: 12px 14px;
    border-radius: 14px;
    border: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}
.map-external-actions {
    display: flex;
    gap: 10px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.72);
    border-top: 1.5px solid var(--glass-outline);
}
.btn-maps-ext {
    flex: 1;
    text-align: center;
    text-decoration: none;
    padding: 11px 14px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 800;
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
    transition: transform 0.2s;
}
.btn-maps-ext:hover { transform: translateY(-2px); }

.toast-notice {
    position: fixed;
    bottom: 22px;
    right: 22px;
    z-index: 380;
    background: #1A2233;
    color: #FFFFFF;
    border: 2px solid var(--accent);
    padding: 11px 18px;
    border-radius: 14px;
    font-size: 13.5px;
    font-weight: 800;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
}

footer {
    background: var(--navbar-bg);
    color: #F8FAFC;
    padding: 36px 0;
    margin-top: 36px;
    border-top: 3px solid var(--accent);
}
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; }
.footer-links a { color: #FDE68A; text-decoration: none; font-weight: 700; }

/* ==========================================================================
   OPTIMIZACIÓN MÓVIL COMPLETA
   ========================================================================== */
@media (max-width: 900px) {
    .hero-box, .grid-2, .grid-3, .form-grid, .growth-steps-row { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    header { position: relative; }
    .banner-top { padding: 6px 0; backdrop-filter: blur(8px); }
    .banner-inner {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }
    .logos-selector { gap: 6px; flex-shrink: 0; }
    .logo-emblem-card { height: 46px; min-width: 68px; padding: 3px 6px; border-radius: 12px; }
    .logo-emblem-card img { max-height: 38px; max-width: 62px; }
    .header-brand-info { align-items: flex-end; text-align: right; min-width: 0; }
    .header-title-custom { font-size: 13px; padding: 3px 9px; border-radius: 10px; }
    .header-brand-info .contact-links { display: none; }

    .main-navbar {
        position: sticky;
        top: 0;
        z-index: 120;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .main-navbar::-webkit-scrollbar { display: none; }
    .nav-list {
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding: 5px 10px;
        gap: 6px;
        width: max-content;
    }
    .nav-btn {
        padding: 7px 13px;
        font-size: 12.5px;
        border-radius: 99px;
        border-bottom: none;
        background: rgba(255, 255, 255, 0.10);
        white-space: nowrap;
    }
    .nav-btn.active {
        background: var(--accent);
        color: #1A2233;
        font-weight: 900;
    }

    .hero-wrapper { padding: 18px 0 22px; }
    .hero-box { padding: 20px 16px; gap: 16px; text-align: center; border-radius: 22px; }
    .hero-logo-showcase { width: 135px; height: 135px; padding: 8px; }
    h1 { font-size: 24px; }
    .hero-grades-pills, .hero-cta-group { justify-content: center; }
    .btn-main, .btn-outline { width: 100%; }

    .antesala-glass-panel {
        padding: 26px 18px;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        background: rgba(255, 255, 255, 0.82);
    }
    .antesala-logos-row { gap: 16px; margin-bottom: 18px; }
    .antesala-logo-pure { width: 140px; height: 105px; }
    .btn-bienvenidos-liquid { padding: 14px 34px; font-size: 18px; }
    .sparkle-dot:nth-child(n+7) { display: none; }
}

/* ==========================================================================
   CARRUSEL DE FOTOS DEBAJO DEL TEXTO EN VENTANA DE ÁREAS / CURSOS
   ========================================================================== */
.area-modal-text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-main, #0f172a);
    margin-bottom: 18px;
}

.area-modal-text p + p {
    margin-top: 10px;
}

.area-carousel-wrap {
    margin-top: 14px;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid var(--primary, #1F86E1);
    background: #0f172a;
}

.area-carousel-stage {
    position: relative;
    width: 100%;
    height: 270px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0f172a;
}

.area-carousel-stage img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.area-car-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    background: rgba(15, 23, 42, 0.78);
    color: #ffffff;
    font-size: 18px;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.area-car-arrow.prev { left: 10px; }
.area-car-arrow.next { right: 10px; }

.area-car-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(15, 23, 42, 0.85);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 999px;
}

.area-carousel-bar {
    background: #ffffff;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.area-car-caption {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted, #475569);
}

.area-car-dots {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.area-car-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: none;
    background: #cbd5e1;
    cursor: pointer;
    padding: 0;
}

.area-car-dot.active {
    background: var(--primary, #1F86E1);
    transform: scale(1.2);
}

@media (max-width: 680px) {
    .area-carousel-stage { height: 205px; }
}

/* ==========================================================================
   CALENDARIO PÚBLICO (Google Calendar): vista embebida responsiva + botones
   ========================================================================== */
.cal-public-card { margin-bottom: 24px; }
.cal-embed-wrap {
    position: relative;
    width: 100%;
    height: clamp(420px, 70vh, 600px);
    margin: 14px 0 16px;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid var(--primary);
    background: #FFFFFF;
}
.cal-embed-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cal-sub-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cal-sub-actions > * { flex: 1 1 230px; text-align: center; text-decoration: none; box-sizing: border-box; }
.cal-sub-actions .is-recomendado { order: -1; box-shadow: 0 0 0 3px var(--accent); }
.cal-sub-note { margin-top: 12px; font-size: 12.5px; font-weight: 700; color: var(--text-muted); }
