/* ==========================================================================
   ESCUELA VILLA FLORIDA - STYLE SHEETS (VANILLA CSS)
   ========================================================================== */

/* Importing Modern Typography from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

:root {
    /* Color Palette based on current villaflorida.cl & logo accents */
    --brand-primary: #FCC419;       /* Amarillo Sol / Principal */
    --brand-primary-light: #FEEFB3; /* Amarillo Suave */
    --brand-primary-dark: #D49B00;  /* Amarillo Mostaza Oscuro */
    --brand-header-text: #4A525D;   /* Gris corporativo agradable y legible */
    
    --brand-gray-900: #1D1E22;      /* Charcoal Oscuro / Textos y Botones */
    --brand-gray-800: #2E3339;      /* Gris Oscuro / Fondo */
    --brand-gray-700: #495057;      /* Gris Medio */
    --brand-gray-500: #767F88;      /* Gris Muted */
    --brand-gray-200: #E9ECEF;      /* Gris Borde */
    --brand-gray-100: #F1F3F5;      /* Gris Muy Claro / Fondos */
    --brand-gray-50: #F8F9FA;       /* Off-White */
    
    /* Extra vibrant colors from the logo & seals */
    --logo-red: #D90429;            /* Rojo Fuego / Afectividad */
    --logo-blue: #1D2A44;           /* Azul Golondrina / DAEM Banner Background */
    --logo-brown: #8D5B4C;          /* Marrón Guitarra / Tradición */
    --logo-green: #2B9348;          /* Verde Ecológico / Medioambiente */
    
    --accent: #FDCC3E;              /* Amarillo Acento */
    --accent-hover: #E0B328;
    --text-white: #FFFFFF;
    --text-dark: #1D1E22;
    --success: #2B9348;             /* Verde para estados exitosos */
    --danger: #D90429;              /* Rojo de validación/error */

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Layout & Spacing */
    --max-width: 1240px;
    --header-height: 85px;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 28px;
    
    /* Shadows */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 8px 20px -3px rgba(0, 0, 0, 0.08), 0 4px 10px -2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 35px -5px rgba(28, 30, 33, 0.12), 0 10px 15px -5px rgba(28, 30, 33, 0.06);
    --shadow-glow: 0 10px 25px rgba(253, 196, 25, 0.22);
    
    /* Transitions */
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--brand-gray-50);
    color: var(--brand-gray-700);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--brand-gray-900);
    font-weight: 700;
    line-height: 1.25;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

iframe {
    border: none;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--brand-gray-50);
}
::-webkit-scrollbar-thumb {
    background: var(--brand-gray-500);
    border-radius: 5px;
    border: 2px solid var(--brand-gray-50);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--brand-primary);
}

/* ==========================================================================
   COMMON COMPONENTS & UTILITIES
   ========================================================================== */
.section-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 90px 24px;
}

.section-header {
    text-align: center;
    margin-bottom: 55px;
    position: relative;
}

.section-subtitle {
    font-family: var(--font-heading);
    color: var(--brand-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.6rem;
    color: var(--brand-gray-900);
    font-weight: 800;
    position: relative;
    padding-bottom: 16px;
    display: inline-block;
}

.title-underline {
    width: 70px;
    height: 4px;
    background-color: var(--brand-primary);
    margin: 0 auto;
    border-radius: 2px;
    position: relative;
}

.title-underline::after {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    width: 30px;
    height: 4px;
    background-color: var(--brand-gray-800);
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 30px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition-normal);
    gap: 10px;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--brand-primary);
    color: var(--brand-header-text);
    box-shadow: 0 5px 15px rgba(212, 155, 0, 0.3);
}

.btn-primary:hover {
    background-color: var(--brand-primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(212, 155, 0, 0.4);
}

.btn-secondary {
    background-color: var(--brand-gray-800);
    color: var(--text-white);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background-color: var(--brand-gray-900);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

.btn-outline:hover {
    background-color: var(--brand-primary);
    color: var(--text-white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.btn-outline-white {
    background-color: transparent;
    border-color: var(--text-white);
    color: var(--text-white);
}

.btn-outline-white:hover {
    background-color: var(--text-white);
    color: var(--brand-gray-900);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.25);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.badge-primary {
    background-color: var(--brand-primary);
    color: var(--text-white);
}

.badge-gray {
    background-color: var(--brand-gray-100);
    color: var(--brand-gray-800);
    border: 1px solid var(--brand-gray-200);
}

/* Scroll Reveal base animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.85s cubic-bezier(0.25, 1, 0.5, 1), transform 0.85s cubic-bezier(0.25, 1, 0.5, 1);
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   TOP BAR (ANNOUNCEMENTS)
   ========================================================================== */
.top-bar {
    background-color: var(--brand-gray-900);
    color: var(--text-white);
    height: 34px; /* Fixed compact height */
    font-size: 0.8rem;
    border-bottom: 2px solid var(--brand-primary);
    z-index: 1001;
    position: relative;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.top-bar-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.top-bar-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.top-bar-text i {
    color: var(--brand-primary);
}

.top-bar-btn {
    background-color: var(--brand-primary);
    color: var(--brand-gray-900);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(212, 155, 0, 0.2);
}

.top-bar-btn:hover {
    background-color: var(--brand-primary-light);
    transform: translateY(-1px);
}

/* ==========================================================================
   HEADER NAVIGATION
   ========================================================================== */
.main-header {
    position: fixed;
    top: 34px; /* Offset for top bar */
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: var(--brand-primary);
    border-bottom: 2px solid var(--brand-primary-dark);
    z-index: 1000;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

body.scrolled-past-topbar .main-header {
    top: 0;
    background-color: var(--brand-primary);
    box-shadow: var(--shadow-md);
}

/* Scrolled visual adaptabilities */
.main-header.scrolled {
    background-color: var(--brand-primary);
    border-bottom-color: var(--brand-primary-dark);
    box-shadow: var(--shadow-md);
}

.main-header.scrolled .school-name {
    color: var(--brand-header-text);
}

.main-header.scrolled .school-sub {
    color: var(--brand-gray-700);
}

.main-header.scrolled .nav-link {
    color: var(--brand-header-text);
}

.main-header.scrolled .nav-link:hover,
.main-header.scrolled .nav-link.active {
    color: var(--brand-header-text);
}

.main-header.scrolled .mobile-menu-toggle span {
    background-color: var(--brand-header-text);
}

.header-container {
    max-width: var(--max-width);
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 14px;
}

.school-logo {
    height: 72px;
    width: auto;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.08));
    transform: translateY(-4px); /* Visually center emblem with the text */
    transition: var(--transition-normal);
}

.school-title {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.school-name {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 850;
    color: var(--brand-header-text);
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    transition: var(--transition-fast);
}

.school-sub {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--brand-gray-700);
    letter-spacing: 0.5px;
    line-height: 1.1;
    margin-top: 3px;
    transition: var(--transition-fast);
}

/* Nav Menu Desktop */
.nav-menu {
    margin-left: auto;
    margin-right: 45px;
}

.nav-menu ul {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--brand-header-text);
    position: relative;
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--brand-header-text);
    border-radius: 2px;
    transition: var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--brand-header-text);
}

/* DAEM Connection */
.header-daem {
    display: flex;
    align-items: center;
}

.daem-logo-img {
    height: 36px;
    width: auto;
    object-fit: contain;
    background-color: var(--text-white);
    padding: 5px 12px;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.daem-logo-img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

/* Menu Toggle Button Mobile */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1010;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--brand-header-text);
    border-radius: 2px;
    transition: var(--transition-normal);
}

/* ==========================================================================
   MOBILE DRAWER NAVIGATION
   ========================================================================== */
.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: -310px;
    width: 310px;
    height: 100%;
    background-color: var(--brand-gray-900);
    color: var(--text-white);
    z-index: 1050;
    padding: 35px 30px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    transition: right 0.45s cubic-bezier(0.35, 1, 0.45, 1);
}

.mobile-nav-drawer.open {
    right: 0;
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.drawer-logo {
    height: 48px;
}

.drawer-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--text-white);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.drawer-title span {
    color: var(--brand-primary);
}

.drawer-close {
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 1.6rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.drawer-close:hover {
    color: var(--brand-primary);
}

.drawer-links {
    margin-top: 35px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.drawer-link {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.85);
    padding: 8px 0;
}

.drawer-link i {
    width: 20px;
    color: var(--brand-primary);
    font-size: 0.95rem;
}

.drawer-link:hover {
    color: var(--brand-primary);
    transform: translateX(6px);
}

.drawer-footer {
    margin-top: auto;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
}

.drawer-daem-logo {
    height: 38px;
    width: auto;
    object-fit: contain;
    background-color: var(--text-white);
    padding: 5px 12px;
    border-radius: var(--border-radius-sm);
    margin: 0 auto 12px;
    display: block;
    box-shadow: var(--shadow-sm);
}

.drawer-footer p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 6px;
}

.drawer-footer .hashtag {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--brand-primary);
    font-weight: 800;
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1040;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.drawer-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

/* ==========================================================================
   HERO CAROUSEL SECTION
   ========================================================================== */
.hero-section {
    position: relative;
    height: 85vh;
    min-height: 600px;
    background-color: var(--brand-gray-900);
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    opacity: 0;
    z-index: 1;
    transition: opacity 0.9s ease-in-out;
}

.carousel-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(28, 30, 33, 0.4), rgba(28, 30, 33, 0.75));
    z-index: 2;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 3;
}

.slide-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    color: var(--text-white);
    width: 100%;
    z-index: 4;
    position: relative;
    transform: translateY(35px);
    opacity: 0;
    transition: transform 0.85s cubic-bezier(0.25, 1, 0.5, 1) 0.2s, opacity 0.85s cubic-bezier(0.25, 1, 0.5, 1) 0.2s;
}

.carousel-slide.active .slide-content {
    transform: translateY(0);
    opacity: 1;
}

.welcome-badge {
    background-color: var(--brand-primary);
    color: var(--brand-gray-900);
    padding: 6px 14px;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-weight: 750;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(212, 155, 0, 0.35);
}

.slide-title {
    font-size: 3.6rem;
    color: var(--text-white);
    font-weight: 900;
    margin-bottom: 20px;
    max-width: 750px;
    line-height: 1.15;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.slide-title .highlight {
    color: var(--brand-primary);
}

.slide-description {
    font-size: 1.2rem;
    max-width: 620px;
    margin-bottom: 35px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    font-weight: 400;
}

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

/* Carousel Controls */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
    height: 54px;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    z-index: 10;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: var(--transition-normal);
}

.carousel-btn:hover {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    color: var(--brand-gray-900);
    transform: translateY(-50%) scale(1.08);
    box-shadow: var(--shadow-glow);
}

.prev-btn {
    left: 24px;
}

.next-btn {
    right: 24px;
}

.carousel-indicators {
    position: absolute;
    bottom: 85px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 14px;
    z-index: 10;
}

.indicator {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.35);
    border: none;
    cursor: pointer;
    transition: var(--transition-normal);
}

.indicator.active {
    background-color: var(--brand-primary);
    transform: scale(1.4);
    box-shadow: 0 0 10px rgba(212, 155, 0, 0.5);
}

/* Overlapping Quick Features Bar */
.quick-features {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: var(--max-width);
    background-color: var(--text-white);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    z-index: 20;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 30px 24px;
    border-right: 1px solid var(--brand-gray-200);
    transition: var(--transition-normal);
}

.feature-item:last-child {
    border-right: none;
}

.feature-item:hover {
    background-color: var(--brand-gray-50);
    transform: translateY(-4px);
}

.feature-icon-box {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    background-color: var(--brand-gray-100);
    color: var(--brand-gray-800);
    transition: var(--transition-normal);
}

.feature-item:hover .feature-icon-box {
    background-color: var(--brand-primary);
    color: var(--brand-gray-900);
    transform: rotateY(180deg);
}

.feature-icon-box.yellow-style {
    background-color: rgba(212, 155, 0, 0.1);
    color: var(--brand-primary);
}

.feature-text h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    font-weight: 700;
}

.feature-text p {
    font-size: 0.8rem;
    color: var(--brand-gray-500);
    line-height: 1.4;
}

/* ==========================================================================
   DAEM & MUNICIPAL RED INTEGRATION BANNER
   ========================================================================== */
.daem-banner {
    background: linear-gradient(135deg, var(--logo-blue), #2D3E5D);
    padding: 110px 0 65px;
    color: var(--text-white);
    margin-top: 0;
    position: relative;
    overflow: hidden;
    border-top: 4px solid var(--brand-primary);
    border-bottom: 4px solid var(--brand-primary);
}

.daem-banner::before {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -10%;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(253, 196, 25, 0.12) 0%, transparent 65%);
    pointer-events: none;
}

.daem-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 45px;
}

.daem-logo-wrapper {
    background-color: var(--text-white);
    padding: 22px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
}

.daem-logo-wrapper:hover {
    transform: scale(1.04) rotate(-2deg);
}

.daem-banner-img {
    height: 72px;
    width: auto;
}

.daem-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.daem-tag {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2.2px;
    color: var(--brand-primary);
}

.daem-title {
    color: var(--text-white);
    font-size: 2.1rem;
    font-weight: 850;
    line-height: 1.2;
}

.daem-description {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.95rem;
    max-width: 720px;
    line-height: 1.6;
}

.daem-hashtag-box {
    display: inline-block;
    margin-top: 5px;
}

.hashtag-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--brand-primary);
    letter-spacing: 0.5px;
}

.escuela-logo-wrapper {
    transition: var(--transition-normal);
}

.daem-escuela-img {
    height: 100px;
    width: auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
}

.daem-logo-wrapper-link {
    display: block;
}

/* ==========================================================================
   ABOUT US SECTION (HISTORIA & IDENTIDAD)
   ========================================================================== */
.about-section {
    background-color: var(--text-white);
}

/* SNED Excellence Highlight Banner */
.sned-highlight-banner {
    display: flex;
    align-items: center;
    gap: 24px;
    background: linear-gradient(135deg, rgba(252, 196, 25, 0.05) 0%, rgba(253, 204, 62, 0.1) 100%);
    border: 1px solid rgba(252, 196, 25, 0.25);
    border-left: 6px solid var(--brand-primary);
    border-right: 6px solid var(--brand-primary);
    padding: 16px 30px 24px;
    border-radius: var(--border-radius-md);
    margin-bottom: 45px;
    box-shadow: 0 8px 30px rgba(252, 196, 25, 0.06);
}

.sned-icon-box {
    width: 60px;
    height: 60px;
    background-color: var(--brand-primary);
    color: var(--brand-gray-900);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(252, 196, 25, 0.3);
}

.sned-text-box h3 {
    font-size: 1.25rem;
    color: var(--brand-gray-900);
    margin-bottom: 6px;
    font-weight: 800;
}

.sned-text-box p {
    font-size: 0.95rem;
    color: var(--brand-gray-700);
    line-height: 1.6;
}

.excelencia-badge {
    background-color: #E65100;
    color: var(--text-white);
    padding: 6px 14px;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-weight: 750;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(230, 81, 0, 0.35);
}

@media (max-width: 768px) {
    .sned-highlight-banner {
        flex-direction: column;
        text-align: center;
        padding: 24px;
        gap: 16px;
        margin-bottom: 25px;
    }
}

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: flex-start;
}

.about-text-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-heading {
    font-size: 2rem;
    color: var(--brand-gray-900);
    margin-bottom: 5px;
    position: relative;
}

.about-paragraph {
    font-size: 1rem;
    color: var(--brand-gray-700);
    line-height: 1.7;
}

.about-paragraph strong {
    color: var(--brand-gray-900);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.stat-card {
    background-color: var(--brand-gray-50);
    border: 1px solid var(--brand-gray-200);
    padding: 24px 15px;
    border-radius: var(--border-radius-md);
    text-align: center;
    transition: var(--transition-normal);
}

.stat-card:hover {
    border-color: var(--brand-primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-sm);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 850;
    color: var(--brand-primary);
    display: block;
    line-height: 1.2;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--brand-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Identity Cards Column */
.about-cards-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.identity-card {
    background-color: var(--brand-gray-50);
    border: 1px solid var(--brand-gray-200);
    border-left: 5px solid var(--brand-gray-800);
    padding: 26px;
    border-radius: var(--border-radius-md);
    display: flex;
    gap: 20px;
    transition: var(--transition-normal);
}

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

.identity-card.border-yellow {
    border-left-color: var(--brand-primary);
}

.identity-card.border-dark {
    border-left-color: var(--brand-gray-900);
}

.identity-card.border-muted {
    border-left-color: var(--brand-gray-500);
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--brand-gray-200);
    color: var(--brand-gray-900);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.identity-card.border-yellow .card-icon {
    background-color: rgba(212, 155, 0, 0.12);
    color: var(--brand-primary);
}

.card-content h4 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    font-weight: 750;
}

.card-content p {
    font-size: 0.9rem;
    color: var(--brand-gray-700);
    line-height: 1.55;
}

/* ==========================================================================
   EDUCATIONAL SEALS SECTION (PILAR FORMATIVO)
   ========================================================================== */
.seals-section {
    background-color: var(--brand-gray-100);
}

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

.seal-card {
    background-color: var(--text-white);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    border: 1px solid rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
}

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

.seal-img-wrap {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.seal-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.seal-card:hover .seal-img {
    transform: scale(1.08);
}

.seal-badge {
    position: absolute;
    top: -24px; /* Centered visually on the boundary */
    right: 25px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-md);
    z-index: 5;
    border: 3px solid var(--text-white);
    transition: var(--transition-normal);
}

.seal-card:nth-child(1) {
    border-top: 5px solid var(--logo-red);
}
.seal-card:nth-child(1) .seal-badge {
    background-color: var(--logo-red);
    color: var(--text-white);
}

.seal-card:nth-child(2) {
    border-top: 5px solid var(--logo-green);
}
.seal-card:nth-child(2) .seal-badge {
    background-color: var(--logo-green);
    color: var(--text-white);
}

.seal-card:nth-child(3) {
    border-top: 5px solid var(--brand-primary-dark);
}
.seal-card:nth-child(3) .seal-badge {
    background-color: var(--brand-primary);
    color: var(--brand-gray-900);
}

.seal-content {
    padding: 35px 28px 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative; /* Relative anchor for the badge overlay */
}

.seal-content h3 {
    font-size: 1.35rem;
    font-weight: 800;
}

.seal-content p {
    font-size: 0.95rem;
    color: var(--brand-gray-700);
    line-height: 1.6;
}

/* ==========================================================================
   EDUCATIONAL LEVELS (NIVELES)
   ========================================================================== */
.levels-section {
    background-color: var(--text-white);
}

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

.level-card {
    background-color: var(--brand-gray-50);
    border: 1px solid var(--brand-gray-200);
    border-radius: var(--border-radius-md);
    padding: 35px 30px;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.level-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    transition: var(--transition-normal);
}

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

.level-icon-box {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 25px;
    transition: var(--transition-normal);
}

/* Level 1: Parvularia (Blue Theme) */
.level-card:nth-child(1)::before {
    background-color: #0288D1;
}
.level-card:nth-child(1) .level-icon-box {
    background-color: rgba(2, 136, 209, 0.08);
    color: #0288D1;
}
.level-card:nth-child(1):hover .level-icon-box {
    background-color: #0288D1;
    color: var(--text-white);
}
.level-card:nth-child(1):hover {
    border-color: rgba(2, 136, 209, 0.3);
}

/* Level 2: Básica (Orange Theme) */
.level-card:nth-child(2)::before {
    background-color: #E65100;
}
.level-card:nth-child(2) .level-icon-box {
    background-color: rgba(230, 81, 0, 0.08);
    color: #E65100;
}
.level-card:nth-child(2):hover .level-icon-box {
    background-color: #E65100;
    color: var(--text-white);
}
.level-card:nth-child(2):hover {
    border-color: rgba(230, 81, 0, 0.3);
}

/* Level 3: Talleres (Red Theme) */
.level-card:nth-child(3)::before {
    background-color: var(--logo-red);
}
.level-card:nth-child(3) .level-icon-box {
    background-color: rgba(217, 4, 41, 0.08);
    color: var(--logo-red);
}
.level-card:nth-child(3):hover .level-icon-box {
    background-color: var(--logo-red);
    color: var(--text-white);
}
.level-card:nth-child(3):hover {
    border-color: rgba(217, 4, 41, 0.3);
}

.level-content h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
    font-weight: 800;
}

.level-tag {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 4px;
    margin-bottom: 18px;
}

/* Custom Colors for Level Tags */
.level-card:nth-child(1) .level-tag {
    background-color: #E1F5FE;
    color: #0288D1;
}
.level-card:nth-child(2) .level-tag {
    background-color: #FFE0B2;
    color: #E65100;
}
.level-card:nth-child(3) .level-tag {
    background-color: #FFEBEE;
    color: var(--logo-red);
}

.level-content p {
    font-size: 0.92rem;
    color: var(--brand-gray-700);
    line-height: 1.6;
    margin-bottom: 20px;
}

.level-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.level-features li {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--brand-gray-800);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Custom Colors for checkmark bullets */
.level-card:nth-child(1) .level-features li i {
    color: #0288D1;
    font-size: 0.9rem;
}
.level-card:nth-child(2) .level-features li i {
    color: #E65100;
    font-size: 0.9rem;
}
.level-card:nth-child(3) .level-features li i {
    color: var(--logo-red);
    font-size: 0.9rem;
}

/* ==========================================================================
   IMAGE GALLERY SECTION
   ========================================================================== */
.gallery-section {
    background-color: var(--brand-gray-50);
}

.gallery-section .section-container {
    padding-top: 45px; /* Reduced top padding to raise text and decrease gap */
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: -15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: var(--text-white);
    border: 1px solid var(--brand-gray-200);
    padding: 8px 20px;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-normal);
}

.filter-btn:hover {
    background-color: var(--brand-gray-100);
    border-color: var(--brand-gray-500);
}

.filter-btn.active {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    color: var(--brand-gray-900);
    box-shadow: 0 4px 10px rgba(212, 155, 0, 0.25);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    height: 260px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.01);
}

.gallery-img-box {
    width: 100%;
    height: 100%;
}

.gallery-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(28, 30, 33, 0.2), rgba(28, 30, 33, 0.9));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    opacity: 0;
    transition: var(--transition-normal);
    z-index: 2;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-tag {
    background-color: var(--brand-primary);
    color: var(--brand-gray-900);
    padding: 4px 10px;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    width: fit-content;
    margin-bottom: 8px;
}

.gallery-overlay h4 {
    color: var(--text-white);
    font-size: 1.2rem;
    margin-bottom: 4px;
    font-weight: 700;
}

.gallery-overlay p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    line-height: 1.4;
}

.zoom-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition-normal);
}

.gallery-item:hover .zoom-icon {
    transform: scale(1.1);
    background-color: var(--brand-primary);
    color: var(--brand-gray-900);
}

/* ==========================================================================
   LIGHTBOX MODAL FOR GALLERY
   ========================================================================== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(20, 22, 25, 0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.lightbox.open {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 2.5rem;
    cursor: pointer;
    transition: var(--transition-fast);
    z-index: 10;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    color: var(--brand-primary);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: var(--transition-normal);
    z-index: 5;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.lightbox-nav:hover {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    color: var(--brand-gray-900);
    transform: translateY(-50%) scale(1.08);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-content {
    max-width: 80%;
    max-height: 75vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    transition: opacity 0.2s ease;
}

.lightbox-caption {
    margin-top: 20px;
    color: var(--text-white);
    text-align: center;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: opacity 0.2s ease;
}

.lightbox-tag {
    background-color: var(--brand-primary);
    color: var(--brand-gray-900);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
}

#lightboxCaptionText {
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
}

/* ==========================================================================
   CONTACT & LOCATION SECTION
   ========================================================================== */
.contact-section {
    background-color: var(--text-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 55px;
    align-items: flex-start;
}

.contact-form-card {
    background-color: var(--brand-gray-50);
    border: 1px solid var(--brand-gray-200);
    padding: 45px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
}

.contact-form-card h2 {
    font-size: 2.1rem;
    margin-bottom: 12px;
}

.contact-form-card p {
    font-size: 0.95rem;
    color: var(--brand-gray-500);
    margin-bottom: 25px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brand-gray-800);
}

.required {
    color: var(--danger);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--brand-gray-200);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--brand-gray-900);
    background-color: var(--text-white);
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(212, 155, 0, 0.15);
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: var(--danger);
    background-color: rgba(217, 4, 41, 0.01);
}

.error-msg {
    font-size: 0.78rem;
    color: var(--danger);
    font-weight: 500;
    display: none;
    margin-top: -3px;
}

.form-group.error .error-msg {
    display: block;
}

.btn-block {
    width: 100%;
    margin-top: 10px;
}

/* Spinner inside button */
.btn-loading {
    display: none;
    align-items: center;
    gap: 8px;
}

.btn.loading .btn-text {
    display: none;
}

.btn.loading .btn-loading {
    display: inline-flex;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
.animate-spin {
    animation: spin 1s linear infinite;
}

/* Feedback alert inside card */
.form-feedback {
    background-color: rgba(43, 147, 72, 0.1);
    border-left: 4px solid var(--success);
    padding: 16px 20px;
    border-radius: var(--border-radius-sm);
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.feedback-icon {
    font-size: 1.3rem;
    color: var(--success);
    margin-top: 2px;
}

.feedback-text h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--brand-gray-900);
    margin-bottom: 4px;
}

.feedback-text p {
    font-size: 0.8rem;
    color: var(--brand-gray-700);
    margin: 0;
}

/* Contact Details Panel */
.contact-details-panel h2 {
    font-size: 2.1rem;
    margin-bottom: 12px;
}

.contact-details-panel p {
    font-size: 0.95rem;
    color: var(--brand-gray-500);
}

.details-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 30px 0;
}

.detail-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.detail-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--brand-gray-100);
    color: var(--brand-gray-800);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: var(--transition-normal);
}

.detail-item:hover .detail-icon {
    background-color: var(--brand-primary);
    color: var(--brand-gray-900);
}

.detail-item:hover .detail-icon.whatsapp-style {
    background-color: #25D366;
    color: var(--text-white);
}

.detail-icon.whatsapp-style:hover {
    background-color: #128C7E !important;
}

.detail-info h4 {
    font-size: 1rem;
    margin-bottom: 4px;
    font-weight: 700;
}

.detail-info p {
    font-size: 0.88rem;
    color: var(--brand-gray-700);
    line-height: 1.5;
}

.detail-info a:hover {
    color: var(--brand-primary);
}

/* Map Card */
.map-card {
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--brand-gray-200);
}

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */
.toast-notification {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background-color: var(--brand-gray-900);
    color: var(--text-white);
    padding: 16px 24px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: var(--shadow-lg);
    z-index: 3000;
    transform: translateY(120px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
    border-left: 4px solid var(--brand-primary);
}

.toast-notification.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.toast-icon {
    font-size: 1.5rem;
    color: var(--brand-primary);
}

.toast-content h4 {
    color: var(--text-white);
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.toast-content p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
.main-footer {
    background-color: var(--brand-gray-900);
    color: rgba(255, 255, 255, 0.75);
    border-top: 4px solid var(--brand-primary);
}

.footer-top {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 60px;
}

.footer-about {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-school-logo {
    height: 52px;
}

.footer-logo h3 {
    color: var(--text-white);
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
}

.footer-about p {
    font-size: 0.9rem;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    transition: var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    background-color: var(--brand-primary);
    color: var(--brand-gray-900);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
    border-color: var(--brand-primary);
}

/* Footer Links Column */
.footer-links h4,
.footer-daem h4 {
    color: var(--text-white);
    font-size: 1.15rem;
    font-weight: 750;
    margin-bottom: 25px;
    position: relative;
}

.footer-links h4::after,
.footer-daem h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--brand-primary);
    border-radius: 1px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-links li a {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links li a i {
    font-size: 0.75rem;
    color: var(--brand-primary);
    transition: var(--transition-fast);
}

.footer-links li a:hover {
    color: var(--text-white);
    transform: translateX(5px);
}

.footer-links li a:hover i {
    transform: translateX(2px);
}

/* Footer DAEM Column */
.footer-daem p {
    font-size: 0.88rem;
    line-height: 1.5;
}

.footer-daem .daem-note {
    margin-top: 15px;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.55);
}

.footer-daem .footer-hashtag {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--brand-primary);
    margin-top: 15px;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

/* Footer Bottom */
.footer-bottom {
    padding: 24px 0;
    font-size: 0.8rem;
    background-color: #121316;
}

.footer-bottom-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    color: rgba(255, 255, 255, 0.45);
}

.footer-bottom-content p:last-child {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1200px) {
    .quick-features {
        bottom: -70px;
    }
    .feature-item {
        padding: 24px 18px;
        gap: 14px;
    }
    .feature-icon-box {
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
    }
    .feature-text h3 {
        font-size: 0.95rem;
    }
    .feature-text p {
        font-size: 0.75rem;
    }
}

@media (max-width: 1024px) {
    .section-title {
        font-size: 2.2rem;
    }
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .about-stats {
        margin-top: 15px;
    }
    .seals-grid,
    .levels-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    .daem-container {
        grid-template-columns: auto 1fr;
        gap: 30px;
    }
    .daem-logo-wrapper {
        padding: 16px;
    }
    .daem-banner-img {
        height: 60px;
    }
    .escuela-logo-wrapper {
        display: none; /* Hide secondary logo on smaller screens to clean view */
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    .footer-daem {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 75px;
    }
    
    /* Responsive Spacing Reductions */
    .section-container {
        padding: 40px 16px;
    }
    .section-header {
        margin-bottom: 30px;
    }
    .social-section .section-container,
    .gallery-section .section-container {
        padding-top: 25px;
    }
    
    .top-bar {
        display: none; /* Hide top bar to gain vertical space on mobile */
    }
    .main-header {
        top: 0;
    }
    .mobile-menu-toggle {
        display: flex;
    }
    .nav-menu,
    .header-daem {
        display: none; /* Hide desktop nav and daem header logo */
    }
    .school-name {
        font-size: 1.25rem;
    }
    .school-logo {
        height: 56px;
        transform: translateY(-2px);
    }
    
    .hero-section {
        height: auto;
        min-height: auto;
        display: flex;
        flex-direction: column;
    }
    .carousel-container {
        height: 55vh;
        min-height: 380px;
    }
    .slide-title {
        font-size: 2.6rem;
    }
    .slide-description {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    .carousel-btn {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }
    .prev-btn { left: 12px; }
    .next-btn { right: 12px; }
    .carousel-indicators {
        bottom: 60px;
    }
    
    .quick-features {
        position: relative;
        bottom: 0;
        left: 0;
        transform: none;
        width: 100%;
        grid-template-columns: 1fr 1fr;
        border-radius: 0;
        border-left: none;
        border-right: none;
        box-shadow: none;
        border-top: 1px solid var(--brand-gray-200);
    }
    .feature-item {
        border-bottom: 1px solid var(--brand-gray-200);
        padding: 24px;
    }
    .feature-item:nth-child(2) {
        border-right: none;
    }
    .feature-item:nth-child(3) {
        border-bottom: none;
    }
    .feature-item:nth-child(4) {
        border-bottom: none;
        border-right: none;
    }
    
    .seals-grid,
    .levels-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .seal-img-wrap {
        height: 200px;
    }
    
    .daem-container {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }
    .daem-logo-wrapper {
        margin: 0 auto;
        width: fit-content;
    }
    .daem-title {
        font-size: 1.7rem;
    }
    .daem-banner {
        padding: 60px 0;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 15px;
    }
    .gallery-item {
        height: 220px;
    }
    
    .contact-form-card {
        padding: 25px;
    }
    .form-group-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .lightbox-nav {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }
    .lightbox-prev { left: 15px; }
    .lightbox-next { right: 15px; }
    .lightbox-content {
        max-width: 90%;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    .footer-daem {
        grid-column: span 1;
    }
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .slide-title {
        font-size: 2rem;
    }
    .slide-actions {
        flex-direction: column;
        width: 100%;
    }
    .slide-actions .btn {
        width: 100%;
    }
    .quick-features {
        grid-template-columns: 1fr;
    }
    .feature-item {
        border-right: none;
        border-bottom: 1px solid var(--brand-gray-200);
    }
    .feature-item:nth-child(3) {
        border-bottom: 1px solid var(--brand-gray-200);
    }
    .section-title {
        font-size: 1.8rem;
    }
    .about-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* ==========================================================================
   SNED TOP SECTION & SOCIAL NEWS FEED
   ========================================================================== */

/* Top SNED section offset below fixed header (Precise fit) */
.sned-top-section {
    padding-top: 85px; /* Fits flush under the 85px desktop header */
    padding-bottom: 0;
    background-color: var(--brand-gray-50);
}

/* Override default padding of section-container to avoid large white space */
.sned-container {
    padding-top: 0 !important; /* Set to 0 to eliminate top gap */
    padding-bottom: 0 !important; /* Fits flush above the hero section */
}

@media (max-width: 768px) {
    .sned-top-section {
        padding-top: 75px; /* Fits flush under the 75px mobile header */
    }
    .sned-container {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
}

/* Social Media Section */
.social-section {
    background-color: var(--brand-gray-50);
}

.social-section .section-container {
    padding-top: 45px; /* Reduced top padding to raise text and decrease gap */
}

/* Social Media Embed Grid (Facebook & Instagram Side by Side) */
.social-embed-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

@media (max-width: 992px) {
    .social-embed-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.social-embed-card {
    background: var(--text-white);
    border: 1px solid var(--brand-gray-200);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.embed-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    color: var(--text-white);
}

.embed-card-header.facebook-color {
    background-color: #1877f2;
}

.embed-card-header.instagram-color {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.embed-card-header i {
    font-size: 1.5rem;
}

.embed-card-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
}

.embed-card-body {
    flex-grow: 1;
    display: flex;
}

.instagram-cta-body,
.facebook-cta-body {
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    flex-grow: 1;
    min-height: 500px;
}

.instagram-profile-info,
.facebook-profile-info {
    margin-bottom: 20px;
}

.instagram-avatar-box,
.facebook-avatar-box {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    padding: 3px;
    overflow: hidden;
}

.instagram-avatar-box {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    box-shadow: 0 4px 15px rgba(220, 39, 67, 0.25);
}

.facebook-avatar-box {
    background-color: #1877f2;
    box-shadow: 0 4px 15px rgba(24, 119, 242, 0.25);
}

.social-profile-avatar {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    background-color: #ffffff;
    padding: 5px;
    display: block;
}

.instagram-profile-info h4,
.facebook-profile-info h4 {
    font-size: 1.3rem;
    color: var(--brand-gray-900);
    font-weight: 800;
    margin-bottom: 8px;
}

.instagram-profile-info p,
.facebook-profile-info p {
    font-size: 0.95rem;
    color: var(--brand-gray-600);
    line-height: 1.6;
    max-width: 360px;
    margin: 0 auto;
}

.instagram-mock-feed,
.facebook-mock-feed {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    width: 100%;
    margin-bottom: 30px;
}

.mock-post-slot {
    aspect-ratio: 1;
    background-color: var(--brand-gray-100);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-gray-400);
    font-size: 1.25rem;
    transition: var(--transition-fast);
    overflow: hidden; /* Clips images to rounded corners */
}

.mock-post-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition-normal);
}

.mock-post-slot:hover img {
    transform: scale(1.08);
}

.mock-post-slot:hover {
    background-color: var(--brand-gray-200);
    color: var(--brand-primary-dark);
}

.instagram-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 30px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: var(--text-white);
    font-family: var(--font-heading);
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition-normal);
    box-shadow: 0 4px 15px rgba(220, 39, 67, 0.3);
}

.instagram-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 39, 67, 0.4);
}

.facebook-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 30px;
    background-color: #1877f2;
    color: var(--text-white);
    font-family: var(--font-heading);
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition-normal);
    box-shadow: 0 4px 15px rgba(24, 119, 242, 0.3);
}

.facebook-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(24, 119, 242, 0.4);
    background-color: #166fe5;
}

.social-profile-header-link {
    display: block;
    width: 100%;
    color: inherit;
    text-decoration: none;
}

.social-profile-header-link:hover h4 {
    color: var(--brand-primary-dark);
}

.social-profile-header-link:hover .social-profile-avatar {
    transform: scale(1.05);
}

.social-handle {
    display: block;
    font-size: 0.9rem;
    color: var(--brand-gray-500);
    margin-top: -4px;
    margin-bottom: 8px;
    font-weight: 600;
}

.social-bio {
    font-size: 0.92rem;
    color: var(--brand-gray-600);
    line-height: 1.5;
    max-width: 380px;
    margin: 8px auto 0;
}

/* ==========================================================================
   FLOATING CALL BUTTON
   ========================================================================== */
.floating-call-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background-color: var(--brand-primary);
    color: var(--brand-gray-900);
    padding: 12px 22px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.18);
    z-index: 999;
    transition: var(--transition-normal);
    border: 2px solid var(--brand-primary-dark);
}

.floating-call-btn:hover {
    background-color: var(--brand-gray-900);
    color: var(--text-white);
    border-color: var(--brand-gray-900);
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.floating-call-btn i {
    font-size: 1.05rem;
    animation: phone-bounce 2s infinite;
}

@keyframes phone-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

@media (max-width: 768px) {
    .floating-call-btn {
        bottom: 20px;
        right: 20px;
        padding: 10px 18px;
        font-size: 0.85rem;
    }
}


