/* ==========================================================================
   HOJA DE ESTILOS MAESTRA - 8M: NUESTRO SELLO ES LA IGUALDAD
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. CARGA DE FUENTES (LOCALES)
   -------------------------------------------------------------------------- */

@font-face {
    font-family: 'Buson';
    src: url('fonts/buson.woff2') format('woff2'),
         url('fonts/buson.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Nord';
    src: url('fonts/nord.woff2') format('woff2'),
         url('fonts/nord.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* --------------------------------------------------------------------------
   1. VARIABLES Y CONFIGURACIÓN GLOBAL
   -------------------------------------------------------------------------- */

:root {
    /* --- COLORES SÓLIDOS (Para SVG, Textos, Botones) --- */
    --solid-cream: #ffebdf;
    --solid-yellow: #ffd95c;
    --solid-dark-yellow: #ffc600;
    --solid-purple-light: #bf63f5;
    --solid-purple-dark: #522970;

    /* --- COLORES TRANSLÚCIDOS (Para Fondos de Sección - 0.9 Opacidad) --- */
    --bg-cream: rgba(255, 235, 223, 0.75);
    --bg-yellow: rgba(255, 217, 92, 0.85);
    --bg-dark-yellow: rgba(255, 198, 0, 0.85);
    --bg-purple-light: rgba(191, 99, 245, 0.85);
    --bg-purple-dark: rgba(82, 41, 112, 0.85);
    
    /* --- CONFIGURACIÓN --- */
    --text-color: #000000;
    --text-purple: #4e1c6a;
    --max-width: 1280px;

    /* --- FUENTES --- */
    --font-main: 'Nord', Arial, Helvetica, sans-serif;
    --font-heading: 'Buson', 'Segoe UI', Tahoma, sans-serif;
}

/* Reset Básico */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Body con Textura Parallax */
body {
    background-color: var(--solid-cream);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.5;
    
    background-image: url('images/full-bg.png');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

h1, h2, h3, h4, h5, h6 { 
    font-weight: normal !important; 
    text-transform: uppercase !important;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* --------------------------------------------------------------------------
   2. LAYOUT Y UTILIDADES
   -------------------------------------------------------------------------- */

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0;
}

.img-fluid { width: 100%; height: auto; }
.center-img { margin: 0 auto; }
.right-img { float: right; }

/* Espaciados */
.mb-2 { margin-bottom: 2rem; }
.gap-large { gap: 40px; }
.section-intro { padding-top: 30px; }

/* Grillas */
.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: center;
}

.grid-3-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
}

/* Paddings Estándar */
.section-article, .section-charts, .section-slider, .section-video-main, .section-projections, .section-videos-gallery {
    padding: 40px 0; 
}


/* --------------------------------------------------------------------------
   3. FONDOS DE SECCIÓN (FUSIÓN CON SVG)
   -------------------------------------------------------------------------- */
/* Degradado: Sólido arriba (0%) -> Translúcido abajo (150px) */

.bg-yellow { background: linear-gradient(to bottom, var(--solid-yellow) 0%, var(--bg-yellow) 150px); }
.bg-dark-yellow { background: linear-gradient(to bottom, var(--solid-dark-yellow) 0%, var(--bg-dark-yellow) 150px); }
.bg-purple-light { background: linear-gradient(to bottom, var(--solid-purple-light) 0%, var(--bg-purple-light) 150px); }
.bg-purple-dark { background: linear-gradient(to bottom, var(--solid-purple-dark) 0%, var(--bg-purple-dark) 150px); }
.bg-cream { background: linear-gradient(to bottom, var(--solid-cream) 0%, var(--bg-cream) 150px); }


/* --------------------------------------------------------------------------
   4. HEADER Y FOOTER
   -------------------------------------------------------------------------- */

.site-header,
.site-footer {
    height: 80px;
    width: 100%;
    padding: 0;
    position: relative;
    z-index: 100;
}

.header-flex,
.footer-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 20px;
}

.site-header img,
.site-footer img {
    max-height: 60px;
    width: auto;
    display: block;
}


/* --------------------------------------------------------------------------
   5. COMPONENTES DE CONTENIDO
   -------------------------------------------------------------------------- */

/* Video Responsivo */
.video-responsive {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}
.video-responsive iframe {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%; border: 0;
}

/* Artículo de Texto */
.section-article { padding: 40px 20px; }
.section-article .article-title {
    color: var(--bg-purple-light);
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: normal;
    margin-bottom: 16px;
}
.section-article .article-body {
    color: var(--text-purple);
    font-size: 16px;
    text-align: justify;
}
.section-article .article-body p { margin-bottom: 16px; }

/* Botones */
.btn-center {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.btn-main {
    display: inline-block;
    background-color: var(--solid-purple-dark);
    color: var(--solid-cream);
    border: 1px solid var(--solid-dark-yellow);
    font-family: var(--font-main);
    font-size: 1rem;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 0;
    padding: 12px 30px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-main:hover {
    background-color: var(--solid-dark-yellow);
    color: var(--solid-purple-dark);
}

/* Tipografía Especial (Headings) */
.big-h-container { margin-bottom: 30px; }
.big-h-container p { margin: 30px auto; text-align: center; max-width: 1024px; }

.big-heading, .mid-heading {
    font-family: 'Buson', sans-serif; 
    font-weight: normal;
    margin: 0;
    text-align: center;
}

.big-heading { font-size: 4.5em; line-height: 1; }
.mid-heading { font-size: 3em; line-height: 1; }

.text-purple-dark { color: #522970; } 
.text-purple-light { color: #bf63f5; } 
.text-cream { color: #ffebdf; } 
.text-yellow { color: #ffc600; } 


/* --------------------------------------------------------------------------
   6. SLIDER (SplideJS)
   -------------------------------------------------------------------------- */
.slider-container { margin-bottom:30px; }
.splide-container { max-width: 1024px; width: 100%; margin: 0 auto; }
.splide { padding: 0 3rem; }

.splide__arrow { background: rgba(255, 255, 255, 0.8); opacity: 1; }
.splide__arrow--prev { left: 0.5rem; }
.splide__arrow--next { right: 0.5rem; }

.splide__slide {
    border-radius: 8px;
    overflow: hidden;
    min-height: 400px; 
}

.color-1 { background-color: #ffebdf; }
.color-2 { background-color: #ffc600; }
.color-3 { background-color: #ad56f3; }

.slide-content {
    display: flex; align-items: center; height: 100%; padding: 10px; box-sizing: border-box;
}
.slide-image { flex: 1; display: flex; justify-content: center; padding: 20px 0; }
.slide-image img { max-width: 80%; }
.slide-text { flex: 1; padding: 20px; color: #333; }
.slide-text h3 { margin: 0 0 10px; font-size: 1.5rem; }
.slide-text p { line-height: 1.5; font-size: 1.1rem; font-weight: normal; }

.my-slider-progress {
    background: #ccc; height: 4px; width: 100%; position: relative; border-radius: 2px; overflow: hidden;
}
.my-slider-progress-bar {
    background: #4e1c6a; height: 100%; width: 0; transition: width 0.1s linear;
}


/* --------------------------------------------------------------------------
   7. INFOGRAFÍAS (HORIZONTAL)
   -------------------------------------------------------------------------- */

.chart-wrapper-col { width: 100%; }

.chart-container {
    background-color: var(--bg-purple-dark); /* Translúcido para el fondo */
    padding: 25px;
    border-radius: 0;
    border: 1px solid var(--solid-dark-yellow);
    color: white; 
}

.chart-title {
    text-align: center; margin-bottom: 25px; font-size: 1.5em; font-family: var(--font-heading);
}

.chart-row { display: flex; align-items: center; margin-bottom: 12px; flex-wrap: nowrap; }

.country-name {
    width: 220px; font-weight: 600; font-size: 14px;
    display: flex; align-items: center; gap: 8px; font-family: var(--font-main);
}
.flag { font-size: 1.4em; font-family: sans-serif; }

/* new flags */

.flag-icon {
    display: inline-block;
    width: 22px;         /* Ancho fijo */
    height: auto;        /* Altura automática */
    vertical-align: middle; /* Alinear con el texto */
    margin-left: 8px;    /* Separación del nombre */
}

.bar-track {
    flex-grow: 1; background-color: var(--solid-cream); height: 24px;
    border-radius: 12px; margin: 0 15px; overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.bar-fill {
    height: 100%; border-radius: 12px 0 0 12px;
    max-width: 0; transition: max-width 2s ease-out; 
}
.animate-charts .bar-fill { max-width: 100%; }

.fill-top { background-color: var(--solid-dark-yellow); } 
.fill-bottom { background-color: var(--solid-purple-dark); } 

.score {
    width: 50px; text-align: right; font-weight: normal; font-size: 14px; font-family: var(--font-main);
}


/* --------------------------------------------------------------------------
   8. GRÁFICA VERTICAL (PROYECCIONES)
   -------------------------------------------------------------------------- */

.vertical-chart-wrapper {
    display: flex; justify-content: space-between; align-items: flex-end; 
    height: 450px; padding-top: 60px; gap: 10px;
    max-width: 1280px; margin: 0 auto; 
}

.v-col {
    display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
    width: 100%; height: 100%; position: relative;
}

.v-data {
    text-align: center; margin-bottom: 10px; 
    font-family: var(--font-main); /* CORRECCIÓN APLICADA: Usa fuente de cuerpo */
    line-height: 1.2;
}
.v-year { display: block; font-size: 1.2em; font-weight: bold; color: var(--solid-dark-yellow); }
.v-years-left { display: block; font-size: 0.9em; color: #fff; opacity: 0.8; }

.v-bar-track {
    width: 40px; height: 100%; display: flex; align-items: flex-end; 
    border-radius: 20px 20px 0 0; background-color: rgba(255, 255, 255, 0.1); 
}

.v-bar-fill {
    width: 100%; background-color: var(--solid-dark-yellow); border-radius: 20px 20px 0 0;
    height: 0; transition: height 2s cubic-bezier(0.22, 1, 0.36, 1); 
}
.animate-charts .v-bar-fill { height: var(--percent); }

.v-label {
    margin-top: 15px; text-align: center; font-size: 0.85em;
    height: 60px; display: flex; align-items: flex-start; justify-content: center;
    line-height: 1.2; color: white;
}


/* --------------------------------------------------------------------------
   9. SEPARADORES SVG CURVOS
   -------------------------------------------------------------------------- */

section { position: relative; z-index: 1; }

.separator-top {
    position: absolute; top: 0; left: 0; width: 100%;
    line-height: 0; z-index: 10; pointer-events: none;
    transform: translateY(-99%); 
}

.separator-top svg {
    display: block; width: 100%; height: 90px; max-height: 90px;
    preserveAspectRatio: none; 
}

/* Colores SVG (Siempre Sólidos) */
.bg-yellow .separator-fill { fill: var(--solid-yellow); }
.bg-purple-light .separator-fill { fill: var(--solid-purple-light); }
.bg-purple-dark .separator-fill { fill: var(--solid-purple-dark); }
.bg-cream .separator-fill { fill: var(--solid-cream); }
.bg-dark-yellow .separator-fill { fill: var(--solid-dark-yellow); }

.pb-safe { padding-bottom: 100px !important; }


/* --------------------------------------------------------------------------
   10. MEDIA QUERIES UNIFICADAS (MÓVIL - MAX 768px)
   -------------------------------------------------------------------------- */

@media (max-width: 768px) {
    
    /* Layout */
    .section-intro .grid-intro, .grid-2-col, .grid-3-col {
        grid-template-columns: 1fr; padding: 10px;
    }
    .right-img { float: none; }
    .section-intro .grid-intro .col-img img { width: 100%; }

    /* Header & Footer */
    .site-header img, .site-footer img { max-height: 40px; }

    /* Tipografía */
    .big-heading { font-size: 2.7em; }
    .mid-heading { font-size: 2em; }

    /* Separadores */
    .separator-top svg { height: auto !important; max-height: 40px; }
    .pb-safe { padding-bottom: 50px !important; }

    /* Slider */
    .splide { padding: 0; }
    .slide-content { flex-direction: column; text-align: center; padding-bottom: 40px; }
    .slide-image { width: 100%; padding: 20px 0 0 0; }
    .slide-text { width: 100%; padding: 10px 20px; }
    .splide__arrow { width: 2em; height: 2em; }

    /* Gráficas Horizontales */
    .chart-row { flex-wrap: wrap; justify-content: space-between; margin-bottom: 25px; }
    .country-name { width: auto; font-size: 15px; order: 1; }
    .score { width: auto; text-align: right; order: 2; }
    .bar-track { width: 100%; margin: 8px 0 0 0; height: 18px; order: 3; }

    /* Gráficas Verticales (Transformación a Horizontal) */
    .vertical-chart-wrapper { 
        flex-direction: column; height: auto; align-items: stretch; 
        margin: 15px; padding: 20px; gap: 0; 
    }
    .v-col { 
        flex-direction: row; align-items: center; flex-wrap: wrap; 
        height: auto; justify-content: flex-start; margin-bottom: 10px; 
    }
    .v-label { 
        width: 100%; text-align: left; margin: 0 0 5px 0; height: auto; 
        font-size: 1em; justify-content: flex-start; font-weight: bold; 
    }
    .v-bar-track { 
        width: 100%; height: 24px; background-color: var(--bg-cream); 
        border-radius: 0 12px 12px 0; align-items: center; flex-grow: 1; 
        margin-right: 10px; background: rgba(255,255,255,0.2); 
    }
    .v-bar-fill { 
        height: 100%; width: 0; border-radius: 0 12px 12px 0; 
        transition: width 2s ease-out; 
    }
    .animate-charts .v-bar-fill { height: 100%; width: var(--percent); }
    .v-data { 
        width: 80px; text-align: right; margin: 0; display: flex; 
        flex-direction: column; justify-content: center; 
    }
    .v-year { font-size: 1em; }
    .v-years-left { font-size: 0.8em; }
}


/* =========================================
   14. MENÚ DE NAVEGACIÓN (RESPONSIVE MULTI-PAGE)
   ========================================= */

.site-nav {
    background-color: var(--solid-purple-dark);
    width: 100%;
    position: sticky; 
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    border-bottom: 1px solid var(--solid-dark-yellow);
    height: 60px; /* Altura fija */
}

.nav-flex {
    display: flex;
    justify-content: center; 
    align-items: center;
    height: 100%;
}

/* Ocultos por defecto en escritorio */
.mobile-nav-title, .hamburger, .nav-logo-mobile, .nav-overlay {
    display: none; 
}

/* --- Estilos de Lista (Escritorio) --- */
.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 15px; /* Reducimos un poco el gap para que quepan bien */
    align-items: center; /* Centrado vertical de los bloques de texto */
    height: 100%;
}

.nav-list a {
    color: var(--solid-cream);
    text-decoration: none;
    font-family: var(--font-main);
    text-transform: uppercase;
    transition: all 0.3s ease;
    
    /* --- AJUSTE SOLICITADO --- */
    font-size: 0.8rem; 
    line-height: 1;    
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 5px; /* Padding lateral pequeño */
    
    border-bottom: none; /* Borde invisible para evitar saltos */
}

/* Hover y Estado Activo en Escritorio */
.nav-list a:hover,
.nav-list a.active {
    color: var(--solid-dark-yellow);
    border-bottom: none;
    font-weight: bold;
}

/* =========================================
   ESTILOS MÓVILES (PANEL AMARILLO)
   ========================================= */

@media (max-width: 1024px) { 
    
    .nav-flex {
        justify-content: space-between;
        padding: 0 20px;
    }

    .mobile-nav-title {
        display: block;
        color: var(--solid-cream);
        font-family: var(--font-main);
        font-size: 1.2rem;
        letter-spacing: 1px;
    }

    /* --- Botón Hamburguesa --- */
    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 2001; 
    }

    .hamburger span {
        display: block;
        width: 100%;
        height: 3px;
        background-color: var(--solid-dark-yellow);
        border-radius: 3px;
        transition: all 0.3s ease;
    }

    .hamburger.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); background-color: var(--text-purple); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); background-color: var(--text-purple); }

    /* --- Panel Lateral --- */
    .nav-menu-wrapper {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--solid-dark-yellow); 
        padding: 80px 30px 30px;
        transition: right 0.4s ease-in-out;
        z-index: 2000;
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
        display: flex;
        flex-direction: column;
        overflow-y: auto; 
    }

    .nav-menu-wrapper.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
        width: 100%;
        height: auto; /* Reset de altura escritorio */
    }

    /* Logo Móvil */
    .nav-logo-mobile {
        display: block;
        margin-bottom: 20px;
        text-align: center;
        border-bottom: none !important; 
    }
    .nav-logo-mobile img {
        max-width: 140px;
        margin: 0 auto;
    }

    /* Enlaces Móvil */
    .nav-list li {
        width: 100%;
        border-bottom: 1px solid rgba(82, 41, 112, 0.2); 
    }
    .nav-list li:last-child {
        border-bottom: none;
    }

    .nav-list a {
        display: block; /* Reset del flex de escritorio */
        height: auto;   /* Reset de altura */
        padding: 15px 0; /* Padding vertical generoso para dedo */
        color: var(--solid-purple-dark); 
        
        /* --- AJUSTE SOLICITADO TAMBIÉN EN MÓVIL --- */
        font-size: 0.8rem;
        line-height: 1;
        text-align: left; /* En móvil se lee mejor a la izquierda */
        
        border-bottom: none; 
    }

    .nav-list a.active {
        font-weight: bold;
        text-decoration: underline;
        color: var(--text-purple); 
        border-bottom: none;
    }

    /* Overlay */
    .nav-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0,0,0,0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1999;
    }
    .nav-overlay.active { opacity: 1; visibility: visible; }
}

/* =========================================
   15. PANTALLA DE CARGA (PRELOADER)
   ========================================= */

.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--solid-purple-dark); /* Fondo morado corporativo */
    z-index: 99999; /* Por encima de absolutamente todo */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

/* El círculo giratorio */
.loader-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.1); /* Círculo base tenue */
    border-top: 5px solid var(--solid-dark-yellow); /* Color que gira */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Animación de giro */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Clase para ocultar el loader */
.loader-wrapper.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none; /* Permite hacer clic en el sitio aunque el div siga ahí invisible */
}

/* =========================================
   HERO VIDEO (LOGO ANIMADO)
   ========================================= */

.hero-section {
    position: relative;
    width: 100%;
    height: 360px; /* La altura fija que solicitaste */
    overflow: hidden; /* Corta lo que sobre del video */
    background-color: var(--solid-cream); /* Color de fondo mientras carga */
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%) scale(1); /* Centrado perfecto absoluto */
    
    width: 100%;
    height: 100%;
    
    /* Esta es la magia: hace que el video actúe como background-size: cover */
    object-fit: cover; 
    
    z-index: 1;
}

.hero-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    /* Si el video es muy brillante y quisieras oscurecerlo un poco, descomenta esto: */
    /* background: rgba(0, 0, 0, 0.1); */
}

/* --- AJUSTE RESPONSIVE (TABLETS / LAPTOPS PEQUEÑAS) --- */
@media (max-width: 1024px) {
    .hero-video {
        /* Zoom intermedio para pantallas medianas */
        transform: translate(-50%, -60%) scale(1.75);
    }
    /* Nota: Aquí heredará la altura de escritorio (420px) 
       a menos que quieras cambiarla también */
}

/* --- AJUSTE RESPONSIVE (MÓVIL) --- */
@media (max-width: 768px) {
    .hero-section {
        /* Altura reducida para celulares */
        height: 240px; 
    }

    .hero-video {
        /* Zoom fuerte para celulares */
        /* Al estar debajo, esto le gana a la regla de 1024px cuando la pantalla es chica */
        transform: translate(-50%, -50%) scale(2.5);
    }
}

/* =========================================
   17. PROGRAMACIÓN (DISEÑO CARDS)
   ========================================= */

/* Título del Sector (Gestión Pública, Gobierno, etc.) */
.sector-block {
    margin-bottom: 20px; /* Separación entre sectores */
}

.sector-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--solid-cream);
    border-bottom: 4px solid var(--solid-dark-yellow);
    display: inline-block;
    margin-bottom: 30px;
    padding-right: 20px;
}

/* Contenedor de la Grilla (Grid) */
.cards-grid {
    display: grid;
    /* Esto hace la magia: columnas automáticas de mínimo 300px */
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px; /* Espacio entre tarjetas */
    align-items: start; /* Para que las tarjetas no se estiren a la fuerza */
}

/* La Tarjeta (Entidad) */
.entity-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    height: auto;
}

.entity-card:hover {
    transform: translateY(-5px); /* Pequeña animación al pasar el mouse */
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

/* Cabecera de la tarjeta (Nombre Entidad) */
.card-header {
    background-color: var(--solid-purple-dark);
    color: var(--solid-cream);
    padding: 15px 20px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    text-transform: uppercase;
    line-height: 1.3;
}

/* Cuerpo de la tarjeta */
.card-body {
    padding: 0;
}

/* Cada Evento dentro de la tarjeta */
.event-item {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.event-item:last-child {
    border-bottom: none;
}

/* Título del evento */
.event-name {
    color: var(--solid-purple-dark);
    line-height: 1;
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 10px;
    display: block;
}

/* Datos meta (Lugar y fecha) */
.event-meta {
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 5px;
    display: flex;
    align-items: flex-start;
}

.event-icon {
    margin-right: 8px;
    font-size: 1.1rem;
}

/* =========================================
   18. MODIFICADORES DE COLUMNAS (CORREGIDO: TETRIS)
   ========================================= */

/* Solo aplica en Tablet/Escritorio (mínimo 768px) */
@media (min-width: 768px) {
    
    /* --- TARJETA DOBLE (SPAN 2) --- */
    /* Ocupa 2 huecos en la grilla principal y tiene 2 columnas internas */
    .entity-card.card-cols-2 {
        grid-column: span 2; 
    }
    
    .entity-card.card-cols-2 .card-body {
        display: grid;
        grid-template-columns: 1fr 1fr; /* Internamente se divide en 2 */
    }

    /* --- TARJETA TRIPLE (SPAN 3) --- */
    /* Ocupa 3 huecos (o todo el ancho si la pantalla solo da para 3) */
    .entity-card.card-cols-3 {
        grid-column: span 3;
    }
    
    .entity-card.card-cols-3 .card-body {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr; /* Internamente se divide en 3 */
    }

    /* --- ESTILOS COMUNES (BORDES) --- */
    .entity-card[class*="card-cols-"] .event-item {
        border-right: 1px solid #eee;
        border-bottom: 1px solid #eee;
        height: 100%;
    }
    
    /* Quitar bordes derechos finales para limpieza visual */
    .entity-card.card-cols-2 .event-item:nth-child(2n) { border-right: none; }
    .entity-card.card-cols-3 .event-item:nth-child(3n) { border-right: none; }
}

/* =========================================
   19. LAYOUT DE SECTORES (GRID PRINCIPAL)
   ========================================= */

/* Móvil: Una sola columna vertical */
.sectors-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px; /* Separación vertical entre sectores */
    margin-top: 20px;
}

/* Escritorio: Dos columnas (Tetris) */
@media (min-width: 992px) {
    .sectors-layout {
        grid-template-columns: 1fr 1fr; 
        gap: 50px; 
        align-items: start; 
    }

    /* Clase para que un Sector ocupe todo el ancho */
    .sector-block.sector-full {
        grid-column: 1 / -1; 
    }
}

/* =========================================
   20. ESTILOS ACORDEÓN (CORREGIDO)
   ========================================= */

.accordion-btn {
    background-color: var(--solid-purple-dark);
    color: var(--solid-cream);
    cursor: pointer;
    padding: 18px;
    width: 100%;
    text-align: left;
    border: none;
    outline: none;
    
    /* REGLA DE ORO APLICADA: */
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: normal; 
    
    font-size: 1.1rem; /* Ajusté un poco el tamaño por el uppercase */
    letter-spacing: 1px; /* Queda mejor con mayúsculas */
    transition: 0.4s;
    border-bottom: 1px solid var(--solid-dark-yellow);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* El resto del CSS del acordeón sigue igual... */
.accordion-btn:hover, .accordion-btn.active {
    background-color: var(--solid-dark-yellow);
    color: var(--solid-purple-dark);
}

.accordion-btn:after { content: '+'; font-size: 1.5rem; font-weight: bold; }
.accordion-btn.active:after { content: '-'; }

.panel {
    padding: 0 18px;
    background-color: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    border-bottom: 4px solid var(--solid-purple-dark);
}

/* =========================================
   21. ESTILOS DE INFORMACIÓN (SIN TABLA)
   ========================================= */

.info-content {
    padding: 20px 0;
}

.info-block {
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.info-block:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

/* Fecha destacada */
.info-date {
    font-family: var(--font-heading);
    color: var(--solid-purple-dark);
    font-size: 1.2rem;
    margin-bottom: 15px;
    display: block;
    background-color: var(--solid-purple-light);
    padding: 5px 10px;
    border-radius: 4px;
    display: inline-block;
}

/* Filas de detalles (Lugar, Hora, Actividad) */
.info-row {
    margin-bottom: 12px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.info-label {
    font-weight: bold;
    color: #333;
    margin-right: 5px;
}

/* Para textos largos como la actividad */
.info-text {
    display: block;
    margin-top: 4px;
    color: #444;
}

/* =========================================
   22. ESTILOS POR FECHA (LOCALIDADES)
   ========================================= */

/* Etiqueta de la Localidad dentro del panel de fecha */
.loc-badge {
    display: inline-block;
    background-color: var(--solid-purple-dark);
    color: var(--solid-cream);
    padding: 6px 12px;
    border-radius: 4px;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 10px;
    letter-spacing: 1px;
}
