/* ==========================================================================
   ESRN CEFERINO NAMUNCURÁ - ESTILO PREMIUM FORMAL PASTEL
   Diseño luminoso, refinado, accesible y solemne.
   Sin tonos negros ni fondos oscuros.
   ========================================================================== */

:root {
    /* Paleta Pastel Formal */
    --primary: #486581;            /* Azul Pizarra Pastel Formal */
    --primary-hover: #334e68;
    --primary-light: #627d98;
    --primary-subtle: #f0f4f8;     /* Fondo azul pastel muy suave */
    --primary-soft: #e0ecf6;
    
    --secondary: #5b8296;          /* Celeste grisáceo patagónico */
    
    --accent: #bfa15f;             /* Champagne Dorado Pastel */
    --accent-hover: #ab8e4d;
    --accent-subtle: #fbf9f3;
    --accent-border: #e8dcc4;
    
    --sage: #6b8e73;               /* Salvia Pastel ADS */
    --sage-subtle: #ebf3ec;
    --sage-border: #c8decb;
    
    /* Fondos y Neutros */
    --bg-base: #faf9f5;            /* Alabastro / Marfil Cálido */
    --bg-card: #ffffff;            /* Blanco puro */
    --bg-alt: #f4f6f9;             /* Gris perla pastel */
    
    --border-color: #e6ebf0;
    --border-subtle: #f0f3f6;
    
    /* Tipografía */
    --text-main: #2d3748;          /* Gris pizarra suave de alta legibilidad (sin negro) */
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --text-light: #8c9ba5;
    
    /* Sombras sutiles luminosas */
    --shadow-sm: 0 2px 4px rgba(72, 101, 129, 0.04);
    --shadow-md: 0 6px 18px rgba(72, 101, 129, 0.06), 0 1px 3px rgba(72, 101, 129, 0.03);
    --shadow-lg: 0 12px 30px rgba(72, 101, 129, 0.08), 0 4px 8px rgba(72, 101, 129, 0.03);
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 9999px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-base);
    color: var(--text-main);
    line-height: 1.65;
    overflow-x: hidden;
}

/* ==========================================================================
   TIPOGRAFÍA FORMAL
   ========================================================================== */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--primary);
    font-weight: 600;
    line-height: 1.25;
}

h5, h6 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    color: var(--primary);
}

p {
    color: var(--text-secondary);
    font-size: 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.25s ease;
}

a:hover {
    color: var(--accent-hover);
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-center { text-align: center; }

.section-tag {
    display: inline-block;
    background: var(--primary-subtle);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    border: 1px solid var(--primary-soft);
    margin-bottom: 14px;
}

.section-title {
    font-size: 2.35rem;
    margin-bottom: 16px;
    color: var(--primary);
}

.section-subtitle {
    font-size: 1.08rem;
    color: var(--text-muted);
    max-width: 720px;
    margin: 0 auto 48px auto;
    line-height: 1.7;
}

/* ==========================================================================
   BOTONES FORMALES PASTEL
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 0.94rem;
    line-height: 1.25;
    padding: 12px 26px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: none;
    transition: all 0.25s ease;
    text-decoration: none;
    vertical-align: middle;
}

button.btn {
    appearance: none;
    -webkit-appearance: none;
    border: none;
    outline: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(72, 101, 129, 0.2);
}

.btn-primary:hover {
    background: var(--primary-hover);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(72, 101, 129, 0.28);
}

.btn-accent {
    background: var(--accent);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(191, 161, 95, 0.25);
}

.btn-accent:hover {
    background: var(--accent-hover);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(191, 161, 95, 0.35);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--primary-soft);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary-subtle);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1.02rem;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#btnSubmitForm {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    margin: 0 auto !important;
}

#btnSubmitForm span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* ==========================================================================
   TOPBAR & NAVBAR (PREMIUM FORMAL PASTEL)
   Alineación milimétrica, jerarquía visual equilibrada y estética refinada.
   ========================================================================== */
.topbar {
    background: linear-gradient(90deg, #edf2f7 0%, #faf9f5 100%);
    color: var(--primary);
    font-size: 0.81rem;
    padding: 7px 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 1001;
}

.topbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1340px;
    margin: 0 auto;
    padding: 0 24px;
    gap: 16px;
}

.topbar-info {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}

.topbar-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--text-secondary);
    font-size: 0.80rem;
    font-weight: 500;
}

.topbar-icon {
    color: var(--accent);
    flex-shrink: 0;
}

.topbar-info a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.topbar-info a:hover {
    color: var(--accent-hover);
}

.topbar-schedule {
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 400;
    margin-left: 2px;
}

.topbar-actions {
    display: flex;
    align-items: center;
}

.topbar-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #ffffff;
    color: var(--primary);
    border: 1px solid var(--primary-soft);
    padding: 4px 14px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.74rem;
    letter-spacing: 0.3px;
    box-shadow: 0 1px 3px rgba(72, 101, 129, 0.05);
    white-space: nowrap;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--sage);
    display: inline-block;
}

/* NAVBAR PRINCIPAL */
.navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 18px rgba(72, 101, 129, 0.04);
}

.navbar-container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 20px;
    height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* LOGO & IDENTIDAD DE MARCA */
.brand-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 1;
    min-width: 0;
    transition: opacity 0.2s ease;
}

.brand-wrapper:hover {
    opacity: 0.92;
}

.brand-emblems {
    display: inline-flex;
    align-items: center;
    padding: 3px 6px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(72, 101, 129, 0.04);
}

.brand-emblem-img {
    display: block;
    width: auto;
    object-fit: contain;
}

.brand-emblem-img.emblem-school {
    height: 40px;
}

.brand-emblem-img.emblem-ads {
    height: 35px;
}

.emblem-sep {
    display: inline-block;
    width: 1px;
    height: 22px;
    background: var(--accent-border);
    margin: 0 8px;
    opacity: 0.8;
}

.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.brand-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.15;
    letter-spacing: -0.2px;
}

.brand-sub {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-top: 2px;
    line-height: 1;
}

/* MENÚ Y ACCIONES */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 100%;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
}

.nav-links li {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 10px;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.nav-links a:hover {
    background: var(--primary-subtle);
    color: var(--primary);
    transform: translateY(-1px);
}

.nav-links a.active {
    background: var(--primary-subtle);
    color: var(--primary);
    font-weight: 700;
    box-shadow: inset 0 0 0 1px var(--primary-soft);
}

/* BOTÓN CTA PREINSCRIPCIÓN */
.nav-cta-wrapper {
    display: flex;
    align-items: center;
    margin-left: 6px;
}

.btn-preinscripcion-nav {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    height: 38px !important;
    padding: 0 15px !important;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif !important;
    font-size: 0.83rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, #bfa15f 0%, #aa8d4b 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 50px !important;
    text-decoration: none !important;
    box-shadow: 0 3px 10px rgba(191, 161, 95, 0.3) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    white-space: nowrap !important;
    cursor: pointer;
}

.btn-preinscripcion-nav:hover {
    background: linear-gradient(135deg, #c7aa6a 0%, #b59652 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 16px rgba(191, 161, 95, 0.4) !important;
    color: #ffffff !important;
}

.btn-preinscripcion-nav.active-cta {
    box-shadow: 0 0 0 3px rgba(191, 161, 95, 0.35), 0 4px 14px rgba(191, 161, 95, 0.4) !important;
}

.cta-sparkle {
    color: #fff8e1;
    font-size: 0.82rem;
    line-height: 1;
}

.cta-arrow {
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.btn-preinscripcion-nav:hover .cta-arrow {
    transform: translateX(3px);
}

/* BOTÓN TOGGLE RESPONSIVE (HAMBURGER) */
.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    width: 42px;
    height: 42px;
    padding: 10px 8px;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    transition: all 0.25s ease;
}

.nav-toggle:hover {
    background: var(--primary-subtle);
    border-color: var(--primary-soft);
}

.hamburger-bar {
    width: 22px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.25s ease;
}

.nav-toggle.active .hamburger-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle.active .hamburger-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-toggle.active .hamburger-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ==========================================================================
   PORTADA HERO (HOME)
   ========================================================================== */
.hero {
    position: relative;
    background: linear-gradient(180deg, #f0f4f8 0%, #faf9f5 100%);
    padding: 85px 0 100px 0;
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(191, 161, 95, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    max-width: 860px;
    position: relative;
    z-index: 2;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.badge-tag {
    background: #ffffff;
    border: 1px solid var(--border-color);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.badge-tag.highlight {
    background: var(--accent-subtle);
    border-color: var(--accent-border);
    color: #8c7136;
}

.badge-tag.green {
    background: var(--sage-subtle);
    border-color: var(--sage-border);
    color: #4a6850;
}

.hero-title {
    font-size: 3.3rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.15;
    margin-bottom: 18px;
    letter-spacing: -0.5px;
}

.hero-title span {
    color: var(--accent);
    display: block;
    font-style: italic;
    font-size: 2.3rem;
    font-weight: 500;
    margin-top: 6px;
}

.hero-lead {
    font-size: 1.18rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 28px;
    line-height: 1.7;
}

.hero-quote {
    background: #ffffff;
    border-left: 4px solid var(--accent);
    padding: 18px 24px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.08rem;
    color: var(--primary);
    margin-bottom: 36px;
    box-shadow: var(--shadow-sm);
    border-top: 1px solid var(--border-subtle);
    border-right: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.hero-quote cite {
    display: block;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-style: normal;
    font-size: 0.84rem;
    color: var(--text-muted);
    margin-top: 6px;
    font-weight: 600;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ==========================================================================
   CABECERAS DE PÁGINAS INDIVIDUALES (SUBPAGE HEADERS)
   ========================================================================== */
.page-header {
    background: linear-gradient(180deg, #f0f4f8 0%, #faf9f5 100%);
    padding: 60px 0 50px 0;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.breadcrumbs {
    display: flex;
    justify-content: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.breadcrumbs a {
    color: var(--primary);
    font-weight: 600;
}

.page-header-title {
    font-size: 2.6rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.page-header-lead {
    font-size: 1.12rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* ==========================================================================
   SECCIONES Y TARJETAS MODULARES
   ========================================================================== */
.section {
    padding: 75px 0;
}

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

.cards-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
}

.card-box {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    padding: 32px;
    box-shadow: var(--shadow-md);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-icon-header {
    font-size: 2.2rem;
    margin-bottom: 16px;
    display: inline-block;
}

.card-box h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
    color: var(--primary);
}

.card-box p {
    font-size: 0.96rem;
    line-height: 1.65;
    margin-bottom: 18px;
}

.card-link {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.card-link:hover {
    color: var(--accent);
    transform: translateX(4px);
}

/* ==========================================================================
   BANNER DESTACADO PREINSCRIPCIONES EN HOME
   ========================================================================== */
.preinscription-cta-banner {
    background: linear-gradient(135deg, #f0f4f8 0%, #ebf3ec 100%);
    border: 1px solid var(--sage-border);
    border-radius: var(--radius-lg);
    padding: 44px;
    margin: 40px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    box-shadow: var(--shadow-md);
}

.cta-banner-text h3 {
    font-size: 1.85rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.cta-banner-text p {
    font-size: 1.05rem;
    color: var(--text-secondary);
}

.tuition-pill {
    display: inline-block;
    background: #ffffff;
    color: var(--sage);
    border: 1px solid var(--sage-border);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    margin-bottom: 12px;
}

/* ==========================================================================
   PLAN DE ESTUDIOS INTERACTIVO
   ========================================================================== */
.curriculum-tabs {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    background: #ffffff;
    border: 1.5px solid var(--border-color);
    padding: 12px 26px;
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
}

.tab-btn.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(72, 101, 129, 0.25);
}

.tab-pane {
    display: none;
    animation: fadeIn 0.35s ease;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.curriculum-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.curriculum-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 26px;
    box-shadow: var(--shadow-sm);
}

.curriculum-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-soft);
}

.curriculum-card-header h4 {
    font-size: 1.3rem;
    color: var(--primary);
}

.curriculum-card-header span {
    font-size: 0.75rem;
    background: var(--primary-subtle);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-weight: 700;
}

.subject-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.subject-item {
    background: var(--bg-base);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.subject-item.specialized {
    border-left: 3.5px solid var(--accent);
    background: var(--accent-subtle);
    font-weight: 600;
}

.badge-tag-sm {
    font-size: 0.7rem;
    padding: 2px 7px;
    border-radius: 4px;
    background: #ffffff;
    color: var(--primary);
    border: 1px solid var(--border-color);
}

/* ==========================================================================
   CENTRO DE DOCUMENTACIÓN & DESCARGAS
   ========================================================================== */
.doc-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.doc-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.doc-icon {
    font-size: 2.2rem;
    margin-bottom: 14px;
}

.doc-card h4 {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.doc-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 22px;
}

.doc-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-subtle);
    padding-top: 14px;
}

.doc-size {
    font-size: 0.78rem;
    color: var(--text-light);
    font-weight: 600;
}

/* ==========================================================================
   PORTAL DE PREINSCRIPCIONES (PÁGINA DEDICADA)
   ========================================================================== */
.tuition-pastel-banner {
    background: #ffffff;
    border: 1.5px solid var(--sage-border);
    border-left: 6px solid var(--sage);
    border-radius: var(--radius-md);
    padding: 20px 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    box-shadow: var(--shadow-sm);
}

.tuition-pastel-banner h3 {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 4px;
}

.tuition-pastel-banner p {
    font-size: 0.92rem;
    color: var(--text-secondary);
}

.badge-social {
    background: var(--sage-subtle);
    color: #3b5a41;
    font-weight: 800;
    font-size: 0.95rem;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    border: 1px solid var(--sage-border);
}

.requirements-pastel-box {
    background: var(--primary-subtle);
    border: 1px solid var(--primary-soft);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 36px;
}

.requirements-pastel-box h4 {
    font-size: 1.15rem;
    color: var(--primary);
    margin-bottom: 14px;
}

.req-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.req-item {
    background: #ffffff;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    font-weight: 500;
}

/* FORMULARIO ESTILOS PASTEL */
.form-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.form-fieldset {
    border: none;
    margin-bottom: 34px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border-subtle);
}

.form-fieldset:last-of-type {
    border-bottom: none;
    margin-bottom: 16px;
}

.legend-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.legend-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 22px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group label .req {
    color: #c53030;
    margin-left: 2px;
}

.form-control {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.94rem;
    background: #ffffff;
    color: var(--text-main);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(72, 101, 129, 0.12);
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 6px;
    align-items: center;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    cursor: pointer;
    font-size: 0.92rem;
}

/* DROPZONE / ARCHIVOS PASTEL */
.upload-box {
    background: var(--bg-base);
    border: 2px dashed #cbd5e1;
    border-radius: var(--radius-md);
    padding: 22px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.upload-box:hover {
    border-color: var(--primary);
    background: var(--primary-subtle);
}

.upload-box.drag-active {
    border-color: var(--primary);
    background: #eef6fc;
    border-style: solid;
    transform: scale(1.01);
}

.upload-box.has-file {
    border-color: #4a6850;
    border-style: solid;
    background: #f4fbf5;
}

.upload-box.is-invalid {
    border-color: #c53030;
    border-style: solid;
    background: #fff5f5;
}


.upload-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 6px;
}

.upload-title {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--primary);
    margin-bottom: 4px;
}

.upload-hint {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.file-selected-name {
    margin-top: 8px;
    font-size: 0.83rem;
    color: var(--sage);
    font-weight: 700;
}

.condicional-cud {
    display: none;
    margin-top: 16px;
    padding: 18px;
    background: var(--accent-subtle);
    border: 1.5px dashed var(--accent-border);
    border-radius: var(--radius-md);
}

.condicional-cud.visible {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Declaración jurada */
.terms-box {
    background: var(--bg-base);
    border: 1px solid var(--border-color);
    padding: 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
}

.checkbox-label {
    display: flex;
    gap: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

.checkbox-label input {
    margin-top: 3px;
    width: 17px;
    height: 17px;
    accent-color: var(--primary);
}

/* ==========================================================================
   CONTACTO & MAPA
   ========================================================================== */
.contact-item-box {
    display: flex;
    gap: 16px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.contact-item-icon {
    font-size: 1.5rem;
    background: var(--primary-subtle);
    color: var(--primary);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.map-card {
    height: 100%;
    min-height: 400px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.map-card iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ==========================================================================
   PIE DE PÁGINA (FOOTER PASTEL FORMAL)
   ========================================================================== */
.footer {
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    padding: 70px 0 24px 0;
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-brand-logos {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.footer-logo {
    height: 44px;
    width: auto;
    object-fit: contain;
}

.footer-brand h4 {
    color: var(--primary);
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.footer-brand p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 14px;
}

.footer-motto {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 0.95rem;
    color: var(--primary);
    border-left: 2px solid var(--accent);
    padding-left: 12px;
}

.footer-col h5 {
    font-size: 0.98rem;
    color: var(--primary);
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 8px;
}

.footer-col h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 24px;
    height: 2px;
    background: var(--accent);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 4px;
}

.footer-contact-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.footer-contact-info strong {
    color: var(--text-secondary);
}

.footer-admin-link {
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1px dashed var(--border-color);
}

.footer-admin-link a {
    font-size: 0.78rem;
    color: var(--text-light);
}

.footer-admin-link a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid var(--border-subtle);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* ==========================================================================
   MODAL DE ÉXITO PREINSCRIPCIÓN
   ========================================================================== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(72, 101, 129, 0.45);
    backdrop-filter: blur(4px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    max-width: 560px;
    width: 100%;
    padding: 36px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    text-align: center;
    animation: modalPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPop {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

.modal-icon-success {
    font-size: 3.2rem;
    color: var(--sage);
    margin-bottom: 12px;
}

.modal-code-box {
    background: var(--bg-base);
    border: 1.5px dashed var(--accent-border);
    border-radius: var(--radius-md);
    padding: 16px;
    margin: 20px 0;
}

.modal-code-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-muted);
}

.modal-code-val {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
    font-family: monospace;
    letter-spacing: 1px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
    flex-wrap: wrap;
}

/* ==========================================================================
   ESTILOS DE GALERÍA DE FOTOS INTERACTIVA Y LIGHTBOX
   ========================================================================== */
.gallery-filter-bar {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.gallery-filter-btn {
    background: #ffffff;
    border: 1.5px solid var(--border-color);
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.gallery-filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.gallery-filter-btn.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(72, 101, 129, 0.2);
}

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

.gallery-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.gallery-img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: var(--bg-base);
}

.gallery-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-card:hover .gallery-img-wrapper img {
    transform: scale(1.06);
}

.gallery-category-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(4px);
    border: 1px solid var(--border-color);
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: var(--radius-full);
}

.gallery-card-body {
    padding: 16px 18px;
}

.gallery-card-body h5 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary);
    line-height: 1.4;
}

/* Lightbox */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(45, 55, 72, 0.85);
    backdrop-filter: blur(6px);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.lightbox-overlay.visible {
    display: flex;
    animation: fadeIn 0.25s ease;
}

.lightbox-container {
    position: relative;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-container img {
    max-width: 100%;
    max-height: 75vh;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 2px solid rgba(255, 255, 255, 0.2);
    object-fit: contain;
}

.lightbox-caption {
    margin-top: 14px;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 600;
    text-align: center;
    background: rgba(0, 0, 0, 0.4);
    padding: 6px 18px;
    border-radius: var(--radius-full);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
}

/* ==========================================================================
   RESPONSIVIDAD & NAVEGACIÓN ADAPTATIVA
   ========================================================================== */
@media (max-width: 1240px) {
    .nav-links a {
        padding: 0 8px;
        font-size: 0.82rem;
    }
    .btn-preinscripcion-nav {
        padding: 0 14px !important;
        font-size: 0.82rem !important;
    }
    .brand-name {
        font-size: 1.12rem;
    }
    .brand-sub {
        font-size: 0.64rem;
    }
}

@media (max-width: 1080px) {
    .topbar-item-location {
        display: none;
    }
    .nav-toggle {
        display: flex;
    }
    .nav-menu {
        position: fixed;
        top: 78px;
        left: 0;
        width: 100%;
        height: calc(100vh - 78px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 24px;
        gap: 16px;
        transform: translateY(-12px);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: var(--shadow-lg);
        overflow-y: auto;
        z-index: 999;
    }
    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    .nav-links {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        height: auto;
    }
    .nav-links li {
        width: 100%;
        height: auto;
    }
    .nav-links a {
        width: 100%;
        height: 46px;
        padding: 0 16px;
        font-size: 1rem;
        border-radius: 10px;
        justify-content: flex-start;
        border: 1px solid transparent;
    }
    .nav-links a:hover,
    .nav-links a.active {
        background: var(--primary-subtle);
        border-color: var(--primary-soft);
    }
    .nav-cta-wrapper {
        margin-left: 0;
        width: 100%;
        margin-top: 10px;
    }
    .btn-preinscripcion-nav {
        width: 100% !important;
        height: 48px !important;
        font-size: 1rem !important;
        justify-content: center !important;
        border-radius: 12px !important;
    }
}

@media (max-width: 992px) {
    .cards-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .cards-grid-2 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .preinscription-cta-banner { flex-direction: column; text-align: center; }
    .hero-title { font-size: 2.6rem; }
}

@media (max-width: 768px) {
    .topbar-schedule {
        display: none;
    }
    .topbar-badge {
        font-size: 0.70rem;
        padding: 3px 10px;
    }
    .brand-emblem-img.emblem-school {
        height: 38px;
    }
    .brand-emblem-img.emblem-ads {
        height: 32px;
    }
    .brand-name {
        font-size: 1.05rem;
    }
    .brand-sub {
        font-size: 0.62rem;
    }
    .cards-grid-3 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 2.2rem; }
    .hero-title span { font-size: 1.7rem; }
    .form-card { padding: 22px; }
}

@media (max-width: 520px) {
    .topbar {
        padding: 5px 0;
    }
    .topbar-content {
        padding: 0 14px;
        justify-content: center;
        gap: 6px;
    }
    .topbar-info {
        gap: 12px;
        justify-content: center;
    }
    .topbar-item {
        font-size: 0.74rem;
    }
    .topbar-item:nth-child(2) {
        display: none; /* Oculta email largo en móvil estrecho para mantener limpieza */
    }
    .topbar-actions {
        display: none;
    }
    .navbar-container {
        padding: 0 12px;
        height: 64px;
        gap: 8px;
    }
    .brand-wrapper {
        gap: 8px;
        flex: 1;
        min-width: 0;
        max-width: calc(100% - 46px);
    }
    .brand-emblems {
        padding: 2px 4px;
        border-radius: 6px;
        flex-shrink: 0;
    }
    .brand-emblem-img.emblem-school {
        height: 32px;
    }
    .brand-emblem-img.emblem-ads {
        height: 28px;
    }
    .emblem-sep {
        height: 16px;
        margin: 0 4px;
    }
    .brand-text {
        min-width: 0;
        flex: 1;
    }
    .brand-name {
        font-size: 0.88rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        min-width: 0;
    }
    .brand-sub {
        display: none;
    }
    .nav-toggle {
        width: 38px;
        height: 38px;
        padding: 9px 7px;
        flex-shrink: 0;
        margin-left: auto;
    }
    .hamburger-bar {
        width: 20px;
    }
}
