/* ================================================================
   ESCUELA EMILIA ROMAGNA - HOJA DE ESTILOS PRINCIPAL
   Paleta institucional + tipografía Fraunces/Manrope
   ================================================================ */

:root {
    /* Paleta institucional */
    --negro: #0A0A0A;
    --hueso: #FAFAF7;
    --crema: #EFEAE0;
    --verde: #1B5E3F;
    --verde-claro: #2A7A52;
    --rojo: #A0182B;
    --gris: #4A4A4A;
    --gris-suave: #888;
    --linea: rgba(10, 10, 10, 0.08);
    --linea-fuerte: rgba(10, 10, 10, 0.18);
}

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

html {
    scroll-behavior: auto; /* Lenis se encarga del smooth scroll */
}

body {
    font-family: 'Manrope', system-ui, -apple-system, sans-serif;
    background: var(--hueso);
    color: var(--gris);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Lenis smooth scroll requirements */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

h1, h2, h3, h4 {
    font-family: 'Fraunces', 'Times New Roman', serif;
    color: var(--negro);
    font-weight: 500;
    letter-spacing: -0.015em;
    line-height: 1.1;
}

[data-lucide] {
    width: 18px;
    height: 18px;
    stroke-width: 1.75;
    display: inline-block;
    vertical-align: middle;
}

/* ================================================================
   NAVBAR
   ================================================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 2rem;
    transition: all 0.4s ease;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(250, 250, 247, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 var(--linea);
    padding: 0.7rem 2rem;
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.nav-logo img {
    height: 50px;
    transition: height 0.4s ease;
}

.navbar.scrolled .nav-logo img { height: 42px; }

.nav-logo span {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: 1.15rem;
    color: white;
    transition: color 0.4s ease;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.navbar.scrolled .nav-logo span { color: var(--negro); }

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 500;
    font-size: 0.92rem;
    transition: all 0.3s ease;
    position: relative;
}

.navbar.scrolled .nav-links a { color: var(--negro); }

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--rojo);
    transition: width 0.3s ease;
}

.nav-links a:hover::after { width: 100%; }

.btn-nav {
    background: var(--negro);
    color: var(--hueso) !important;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-nav:hover {
    background: var(--rojo);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    cursor: pointer;
    color: white;
    transition: color 0.4s ease;
    background: none;
    border: none;
}

.menu-toggle [data-lucide] { width: 28px; height: 28px; }
.navbar.scrolled .menu-toggle { color: var(--negro); }

/* ================================================================
   HERO
   ================================================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--negro);
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 115%;
    min-height: 115%;
    object-fit: cover;
    object-position: center top;
    z-index: 0;
    opacity: 1;
    transition: opacity 0.25s ease;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10, 10, 10, 0.5) 0%,
        rgba(10, 10, 10, 0.6) 60%,
        rgba(10, 10, 10, 0.8) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    max-width: 1000px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(250, 250, 247, 0.1);
    color: var(--hueso);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin-bottom: 1.8rem;
    border: 1px solid rgba(250, 250, 247, 0.18);
    letter-spacing: 0.02em;
}

.hero-badge [data-lucide] { width: 14px; height: 14px; }

.hero-title {
    font-family: 'Fraunces', serif;
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 500;
    color: var(--hueso);
    line-height: 1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.025em;
}

.hero-title .char {
    display: inline-block;
    will-change: transform, opacity;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: rgba(250, 250, 247, 0.85);
    max-width: 620px;
    margin: 0 auto 2.5rem;
    font-weight: 400;
}

.hero-cta {
    display: inline-flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-primary {
    background: var(--hueso);
    color: var(--negro);
    padding: 0.95rem 2.2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    background: var(--rojo);
    color: var(--hueso);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--hueso);
    padding: 0.95rem 2.2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border: 1px solid rgba(250, 250, 247, 0.4);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(250, 250, 247, 0.1);
    border-color: var(--hueso);
    transform: translateY(-2px);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    cursor: pointer;
    color: var(--hueso);
    background: none;
    border: none;
    animation: bounce 2.5s infinite;
}

.scroll-indicator [data-lucide] { width: 28px; height: 28px; }

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-15px); }
    60% { transform: translateX(-50%) translateY(-7px); }
}

/* ================================================================
   SECCIONES GENERALES
   ================================================================ */

section {
    padding: 7rem 2rem;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-number {
    font-family: 'Manrope', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gris-suave);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: block;
}

.section-title {
    font-family: 'Fraunces', serif;
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    font-weight: 500;
    color: var(--negro);
    margin-bottom: 1.2rem;
    letter-spacing: -0.025em;
    line-height: 1.05;
}

.section-subtitle {
    color: var(--gris);
    max-width: 620px;
    font-size: 1.05rem;
    line-height: 1.6;
}

.section-header {
    margin-bottom: 4rem;
}

.section-header.centered {
    text-align: center;
}

.section-header.centered .section-subtitle {
    margin: 0 auto;
}

/* ================================================================
   02 - SOBRE LA ESCUELA
   ================================================================ */

.sobre {
    background: var(--hueso);
}

.sobre-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.sobre-imagen {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    aspect-ratio: 4/5;
}

.sobre-imagen img {
    width: 100%;
    height: 110%;
    object-fit: cover;
    will-change: transform;
}

.sobre-texto p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--gris);
    margin-bottom: 1.5rem;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 2.5rem 0;
    padding: 2rem 0;
    border-top: 1px solid var(--linea);
    border-bottom: 1px solid var(--linea);
}

.stat-mini .stat-number {
    font-family: 'Fraunces', serif;
    font-size: 2.4rem;
    font-weight: 500;
    color: var(--negro);
    letter-spacing: -0.02em;
    line-height: 1;
}

.stat-mini .stat-label {
    font-size: 0.78rem;
    color: var(--gris);
    margin-top: 0.4rem;
    letter-spacing: 0.02em;
}

.documentos-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--negro);
    color: var(--hueso);
    padding: 0.85rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    margin-right: 0.6rem;
    margin-top: 0.4rem;
}

.documentos-link:hover {
    background: var(--rojo);
    transform: translateY(-2px);
}

.documentos-link.outline {
    background: transparent;
    color: var(--negro);
    border: 1px solid var(--linea-fuerte);
}

.documentos-link.outline:hover {
    background: var(--negro);
    color: var(--hueso);
    border-color: var(--negro);
}

.documentos-link [data-lucide] { width: 16px; height: 16px; }

/* ================================================================
   03 - NIVELES EDUCATIVOS
   ================================================================ */

.niveles {
    background: var(--crema);
}

.niveles-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.nivel-card {
    background: var(--hueso);
    border-radius: 28px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.nivel-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(10, 10, 10, 0.12);
}

.nivel-imagen {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.nivel-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.nivel-card:hover .nivel-imagen img {
    transform: scale(1.05);
}

.nivel-info {
    padding: 2.5rem;
}

.nivel-tag {
    display: inline-block;
    background: var(--crema);
    color: var(--verde);
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.nivel-info h3 {
    font-family: 'Fraunces', serif;
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    color: var(--negro);
}

.nivel-info p {
    color: var(--gris);
    font-size: 0.98rem;
    line-height: 1.65;
}

/* ================================================================
   04 - RECONOCIMIENTOS (MARQUEE)
   ================================================================ */

.reconocimientos {
    background: var(--negro);
    color: var(--hueso);
    padding: 5rem 0;
    overflow: hidden;
}

.reconocimientos .container {
    margin-bottom: 3rem;
    padding: 0 2rem;
}

.reconocimientos .section-title {
    color: var(--hueso);
}

.reconocimientos .section-number {
    color: rgba(250, 250, 247, 0.5);
}

.reconocimientos .section-subtitle {
    color: rgba(250, 250, 247, 0.7);
}

.marquee {
    width: 100%;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(
        to right,
        transparent,
        black 10%,
        black 90%,
        transparent
    );
    -webkit-mask-image: linear-gradient(
        to right,
        transparent,
        black 10%,
        black 90%,
        transparent
    );
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee-scroll 40s linear infinite;
    gap: 1.5rem;
}

.marquee:hover .marquee-track {
    animation-play-state: paused;
}

@keyframes marquee-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.sello-card {
    flex-shrink: 0;
    background: rgba(250, 250, 247, 0.05);
    border: 1px solid rgba(250, 250, 247, 0.12);
    border-radius: 16px;
    padding: 1.8rem 2.5rem;
    min-width: 280px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sello-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(250, 250, 247, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--hueso);
}

.sello-card-icon [data-lucide] { width: 22px; height: 22px; }

.sello-card-text {
    display: flex;
    flex-direction: column;
}

.sello-card-text strong {
    font-family: 'Fraunces', serif;
    font-size: 1.05rem;
    color: var(--hueso);
    font-weight: 500;
}

.sello-card-text span {
    font-size: 0.82rem;
    color: rgba(250, 250, 247, 0.65);
    margin-top: 0.15rem;
}

/* ================================================================
   05 - MENSAJE DE LA DIRECTORA
   ================================================================ */

.directora {
    background: var(--verde);
    color: var(--hueso);
    padding: 7rem 2rem;
    position: relative;
    overflow: hidden;
}

.directora-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.directora-foto {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    aspect-ratio: 4/5;
}

.directora-foto img {
    width: 100%;
    height: 110%;
    object-fit: cover;
    will-change: transform;
}

.directora-texto .section-number {
    color: rgba(250, 250, 247, 0.55);
}

.directora-cita {
    font-family: 'Fraunces', serif;
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    line-height: 1.35;
    color: var(--hueso);
    font-weight: 400;
    font-style: italic;
    margin: 1.5rem 0 2rem;
    letter-spacing: -0.01em;
}

.directora-cita::before {
    content: '"';
    font-family: 'Fraunces', serif;
    font-size: 4rem;
    line-height: 0;
    vertical-align: -0.3em;
    margin-right: 0.2rem;
    opacity: 0.4;
}

.directora-firma {
    border-top: 1px solid rgba(250, 250, 247, 0.2);
    padding-top: 1.5rem;
}

.directora-firma strong {
    font-family: 'Fraunces', serif;
    font-size: 1.2rem;
    color: var(--hueso);
    font-weight: 500;
    display: block;
    margin-bottom: 0.2rem;
}

.directora-firma span {
    font-size: 0.92rem;
    color: rgba(250, 250, 247, 0.7);
}

/* ================================================================
   06 - COMUNIDAD
   ================================================================ */

.comunidad {
    background: var(--hueso);
}

.comunidad-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.comunidad-card {
    background: var(--crema);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    transition: all 0.4s ease;
}

.comunidad-card:hover {
    transform: translateY(-4px);
    background: var(--negro);
    color: var(--hueso);
}

.comunidad-card:hover h3,
.comunidad-card:hover p { color: var(--hueso); }

.comunidad-card:hover .comunidad-icon {
    background: var(--hueso);
    color: var(--negro);
}

.comunidad-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--negro);
    color: var(--hueso);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    transition: all 0.4s ease;
}

.comunidad-icon [data-lucide] { width: 24px; height: 24px; }

.comunidad-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.6rem;
    color: var(--negro);
    transition: color 0.4s ease;
}

.comunidad-card p {
    font-size: 0.95rem;
    color: var(--gris);
    line-height: 1.6;
    transition: color 0.4s ease;
}

/* ================================================================
   07 - CLUB DEPORTIVO
   ================================================================ */

.club { background: var(--crema); }

.club-logo-container {
    text-align: center;
    margin-bottom: 3rem;
}

.club-logo-container img {
    max-width: 240px;
    height: auto;
}

.descripcion-club {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
    font-size: 1.05rem;
    color: var(--gris);
    line-height: 1.7;
}

.proyectos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.proyecto-card {
    background: var(--hueso);
    border-radius: 24px;
    padding: 2.2rem;
    border-left: 3px solid var(--rojo);
    transition: all 0.4s ease;
}

.proyecto-card:hover {
    transform: translateY(-4px);
}

.proyecto-year {
    display: inline-block;
    background: var(--negro);
    color: var(--hueso);
    padding: 0.3rem 0.9rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.75rem;
    margin-bottom: 0.9rem;
    letter-spacing: 0.04em;
}

.proyecto-card h3 {
    color: var(--negro);
    font-size: 1.3rem;
    margin-bottom: 0.6rem;
    line-height: 1.3;
    font-family: 'Fraunces', serif;
}

.proyecto-card p {
    color: var(--gris);
    font-size: 0.95rem;
    line-height: 1.6;
}

.lineas-accion {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    margin-top: 2.5rem;
}

.linea-item {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--hueso);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.linea-item:hover {
    background: var(--negro);
    transform: translateY(-4px);
}

.linea-item:hover h4,
.linea-item:hover p { color: var(--hueso); }
.linea-item:hover .linea-icon { background: var(--hueso); color: var(--negro); }

.linea-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--negro);
    color: var(--hueso);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.linea-icon [data-lucide] { width: 22px; height: 22px; }

.linea-item h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--negro);
    transition: color 0.3s ease;
}

.linea-item p {
    font-size: 0.88rem;
    color: var(--gris);
    transition: color 0.3s ease;
}

/* ================================================================
   08 - JUEGOS NAHUELBUTA
   ================================================================ */

.nahuelbuta {
    background: var(--negro);
    color: var(--hueso);
    position: relative;
    overflow: hidden;
}

.nahuelbuta .section-title { color: var(--hueso); }
.nahuelbuta .section-number { color: rgba(250, 250, 247, 0.5); }
.nahuelbuta .section-subtitle { color: rgba(250, 250, 247, 0.7); }

.nahuelbuta-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.nahuelbuta-logo img {
    max-width: 280px;
    height: auto;
}

.nahuelbuta-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.05rem;
    line-height: 1.75;
    color: rgba(250, 250, 247, 0.85);
}

.nahuelbuta-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 3rem auto;
    max-width: 700px;
}

.n-stat {
    text-align: center;
    padding: 2rem 1.2rem;
    border: 1px solid rgba(250, 250, 247, 0.12);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.n-stat:hover {
    border-color: rgba(250, 250, 247, 0.3);
    transform: translateY(-4px);
}

.n-stat-number {
    font-family: 'Fraunces', serif;
    font-size: 3rem;
    font-weight: 500;
    color: var(--hueso);
    letter-spacing: -0.025em;
    line-height: 1;
}

.n-stat-label {
    font-weight: 500;
    color: rgba(250, 250, 247, 0.7);
    margin-top: 0.5rem;
    font-size: 0.88rem;
}

.sede-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: var(--rojo);
    color: var(--hueso);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    margin: 2.5rem auto;
    width: fit-content;
}

.sede-badge [data-lucide] { width: 18px; height: 18px; }

/* ================================================================
   09 - NOTICIAS
   ================================================================ */

.noticias { background: var(--hueso); }

.swiper { padding: 1rem 0 3.5rem; }

.swiper-slide {
    background: var(--hueso);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--linea);
    transition: all 0.4s ease;
}

.swiper-slide:hover {
    transform: translateY(-6px);
    border-color: var(--linea-fuerte);
}

.swiper-slide img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.swiper-slide:hover img { transform: scale(1.04); }

.slide-content { padding: 1.6rem; }

.slide-tag {
    display: inline-block;
    background: var(--negro);
    color: var(--hueso);
    padding: 0.2rem 0.8rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.slide-content h3 {
    font-family: 'Fraunces', serif;
    font-size: 1.2rem;
    color: var(--negro);
    margin-bottom: 0.5rem;
    line-height: 1.3;
    font-weight: 500;
}

.slide-content p {
    font-size: 0.9rem;
    color: var(--gris);
    line-height: 1.55;
}

.swiper-button-prev,
.swiper-button-next {
    color: var(--negro) !important;
    background: var(--hueso);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--linea);
}

.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 16px !important;
    font-weight: 700;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background: var(--negro);
    color: var(--hueso) !important;
}

.swiper-pagination-bullet-active { background: var(--rojo) !important; }

/* ================================================================
   10 - APODERADOS
   ================================================================ */

.apoderados { background: var(--crema); }

.apoderados-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 1.5rem;
}

.apoderado-card {
    background: var(--hueso);
    border-radius: 24px;
    padding: 2.5rem;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.apoderado-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(10, 10, 10, 0.1);
}

.apoderado-card.principal {
    background: var(--negro);
    color: var(--hueso);
}

.apoderado-card.principal:hover {
    background: var(--verde);
}

.apoderado-card.proximamente {
    background: transparent;
    border: 1px dashed var(--linea-fuerte);
}

.apoderado-icono {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--crema);
    color: var(--verde);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
}

.apoderado-card.principal .apoderado-icono {
    background: rgba(250, 250, 247, 0.12);
    color: var(--hueso);
}

.apoderado-icono [data-lucide] { width: 24px; height: 24px; }

.apoderado-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.6rem;
    font-family: 'Fraunces', serif;
}

.apoderado-card.principal h3 { color: var(--hueso); }
.apoderado-card.proximamente h3 { color: var(--negro); }

.apoderado-card p {
    color: var(--gris);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.apoderado-card.principal p { color: rgba(250, 250, 247, 0.85); }

.apoderado-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--hueso);
    color: var(--negro);
    padding: 0.85rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.apoderado-cta:hover {
    background: var(--rojo);
    color: var(--hueso);
}

.apoderado-cta [data-lucide] { width: 16px; height: 16px; }

.documentos-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.documentos-list li {
    border-top: 1px solid var(--linea);
    padding: 0.7rem 0;
}

.documentos-list li:last-child { border-bottom: 1px solid var(--linea); }

.documentos-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--negro);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.documentos-list a:hover { color: var(--rojo); }

.documentos-list [data-lucide] { width: 14px; height: 14px; }

.proximamente-badge {
    display: inline-block;
    background: var(--crema);
    color: var(--verde);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    align-self: flex-start;
}

/* ================================================================
   FOOTER
   ================================================================ */

footer {
    background: var(--negro);
    color: var(--hueso);
    padding: 5rem 2rem 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    max-width: 160px;
    margin-bottom: 1.2rem;
}

footer h3 {
    font-family: 'Fraunces', serif;
    color: var(--hueso);
    font-size: 1.05rem;
    margin-bottom: 1.2rem;
    font-weight: 500;
}

footer ul { list-style: none; padding: 0; }
footer ul li { margin-bottom: 0.6rem; }

footer a, footer p {
    color: rgba(250, 250, 247, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.92rem;
}

footer a:hover { color: var(--hueso); }

.footer-contact-line {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
}

.footer-contact-line [data-lucide] {
    width: 16px;
    height: 16px;
    color: rgba(250, 250, 247, 0.55);
    flex-shrink: 0;
}

.footer-bottom {
    text-align: center;
    margin-top: 3.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(250, 250, 247, 0.12);
    color: rgba(250, 250, 247, 0.5);
    font-size: 0.82rem;
}

/* ================================================================
   ANIMATION HELPERS
   ================================================================ */

.fade-up {
    opacity: 0;
    transform: translateY(40px);
    will-change: transform, opacity;
}

.fade-in {
    opacity: 0;
    will-change: opacity;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */

@media (max-width: 1024px) {
    .sobre-grid { grid-template-columns: 1fr; gap: 3rem; }
    .niveles-grid { grid-template-columns: 1fr; }
    .directora-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .comunidad-grid { grid-template-columns: 1fr; }
    .proyectos-grid { grid-template-columns: 1fr; }
    .lineas-accion { grid-template-columns: 1fr; }
    .nahuelbuta-stats { grid-template-columns: 1fr; }
    .apoderados-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--hueso);
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    }

    .nav-links.active { display: flex; }
    .nav-links a { color: var(--negro) !important; }
    .menu-toggle { display: block; }
}

@media (max-width: 768px) {
    section { padding: 4.5rem 1.5rem; }
    .hero-title { font-size: 2.6rem; }
    .stats-row { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
    .stat-mini .stat-number { font-size: 2rem; }
    .nivel-info { padding: 1.8rem; }
    .directora { padding: 5rem 1.5rem; }
    .directora-cita { font-size: 1.3rem; }
    .sello-card { min-width: 240px; padding: 1.4rem 1.8rem; }
}
