/* =========================================
   1. ESTILOS GENERALES Y TIPOGRAFÍA
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /* Fuente más moderna y limpia */
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #444; /* Un gris oscuro es más elegante que negro puro */
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px; /* Un poco más ancho para que quepan bien las 3 cajas */
    margin: 0 auto;
    padding: 0 20px;
}

a { text-decoration: none; }

/* =========================================
   2. MENÚ DE NAVEGACIÓN (ESTILO OFICIAL)
   ========================================= */
.navbar {
    display: flex;
    justify-content: flex-start; /* Alineado a la izquierda */
    align-items: center;
    background-color: #ffffff;
    
    /* LA RAYA GUINDA GRUESA ARRIBA */
    border-top: 20px solid #9D2449; 
    border-bottom: 1px solid #e0e0e0;
    
    padding: 15px 50px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
    
    /* ESTA ES LA LÍNEA VERTICAL GRIS */
    border-right: 2px solid #ccc; 
    
    /* Espacio para que la línea no pegue con el logo ni con el texto */
    padding-right: 30px; 
    margin-right: 30px;  
}

.logo-img {
    height: 70px; 
    width: auto;
}

.nav-links { 
    list-style: none; 
    display: flex;
    gap: 25px;
}
.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    color: #9D2449; /* Color Guinda para el texto */
    font-weight: bold;
    text-transform: uppercase;
    font-size: 18px;
    text-decoration: none;
}

/* =========================================
   3. BANNER (VIDEO ORIGINAL - PANTALLA COMPLETA)
   ========================================= */
.hero {
    position: relative;
    /* Le dejamos una buena altura para que luzca, pero sin exagerar */
    height: 500px; 
    width: 100%;
    overflow: hidden;
    background-color: #000;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* 'cover' es la clave: estira el video para llenar todo el hueco */
    object-fit: cover; 
    
    z-index: 0;
}

.hero-overlay-transparent {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Sombra muy suave arriba para que el menú se lea bien */
    background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, transparent 20%);
}
/* =========================================
   4. TRÁMITES Y SERVICIOS (ESTILO SAT MEJORADO)
   ========================================= */
.tramites-seccion {
    text-align: center;
    margin-top: -60px; /* Sube sobre el banner */
    position: relative;
    z-index: 10;
    padding-bottom: 60px;
}

.titulo-seccion {
    background: white;
    padding: 12px 40px;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    color: #9D2449;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 40px;
    display: inline-block;
    border: 1px solid #e0e0e0;
}

/* --- GRID 1: PRINCIPALES (GRANDES) --- */
.grid-principales {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* Columnas anchas */
    gap: 30px;
    margin-bottom: 40px; /* Espacio antes de los pequeños */
}

.card-grande {
    height: 280px; /* Altura imponente */
    background: white;
    border-radius: 20px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 4px solid transparent;
}

.card-grande .icon-box { font-size: 60px; margin-bottom: 20px; color: #9D2449; }
.card-grande h3 { font-size: 20px; color: #222; font-weight: 700; margin-bottom: 20px; }

/* --- GRID 2: SECUNDARIOS (PEQUEÑOS) --- */
/* --- MENÚ SECUNDARIO (AJUSTE PARA 4 BOTONES) --- */
.grid-secundarios {
    display: grid;
    /* Esto crea columnas automáticas de mínimo 220px, llenando el espacio */
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); 
    gap: 20px;
    margin-top: 30px;
    justify-content: center; /* Centra los botones si sobran espacios */
}

.card-chica {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 150px; /* Altura uniforme para todos */
}

.card-chica:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    border-color: #8B1D35;
}

.card-chica .icon-box { font-size: 35px; margin-bottom: 10px; color: #9D2449; }
.card-chica h3 { font-size: 15px; color: #555; font-weight: 600; margin-bottom: 0; }


/* EFECTOS COMUNES */
.sat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    border-bottom-color: #9D2449; /* Borde de color al pasar mouse */
}
.arrow-icon { display: none; } /* Ocultamos flechas para limpiar diseño, o las activas si gustas */

/* =========================================
   5. INTRO ELEGANTE (TEXTO)
   ========================================= */
.intro-elegante {
    background: white;
    padding: 60px 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    margin-bottom: 60px;
    max-width: 900px; /* Más estrecho para mejor lectura */
}

.intro-elegante h2 {
    color: #9D2449;
    font-size: 32px;
    margin-bottom: 20px;
}

.intro-elegante p {
    font-size: 18px;
    color: #666;
    margin-bottom: 10px;
}

.texto-destacado {
    font-size: 22px !important;
    color: #333 !important;
    font-weight: 500;
}

/* BADGES (Info rápida bonita) */
.info-badges {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.badge {
    background: #fdf2f5; /* Tono rosado muy tenue */
    padding: 15px 30px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid #f0dbe2;
}

.badge i { font-size: 24px; color: #9D2449; }
.badge span { text-align: left; font-size: 15px; line-height: 1.2; color: #555; }
.badge strong { color: #9D2449; display: block; font-size: 16px; }

/* =========================================
   6. CARRUSEL INFINITO (3 FOTOS A LA VEZ)
   ========================================= */
.galeria-seccion {
    text-align: center;
    margin-bottom: 60px;
    overflow: hidden; /* Oculta lo que se sale de la pantalla */
}

.slider-area {
    width: 100%;
    margin: auto;
    position: relative;
    /* Sombras a los lados para dar efecto de profundidad */
    box-shadow: inset 0 0 20px rgba(0,0,0,0.1); 
}
.slider-track {
    display: flex;
    /* 20 fotos x 2 grupos = 40 fotos en total */
    width: calc(350px * 40); 
    /* Aumentamos el tiempo a 80s para que no vaya demasiado rápido al ser tantas fotos */
    animation: scroll 80s linear infinite; 
}

@keyframes scroll {
    0% { transform: translateX(0); }
    /* Se mueve el ancho de las primeras 20 fotos y luego se reinicia invisiblemente */
    100% { transform: translateX(calc(-350px * 20)); } 
}

.slide-item {
    width: 350px; /* Ancho de cada foto */
    padding: 15px; /* Espacio entre fotos */
    perspective: 100px;
}

.slide-item img {
    width: 100%;
    height: 250px; /* Altura fija para que todas se vean parejas */
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.5s; /* Suavidad para el efecto hover */
    cursor: pointer;
}

/* EFECTO: Al pasar el mouse, la foto crece (Zoom) */
.slide-item img:hover {
    transform: scale(1.1); /* Crece un 10% */
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

/* ANIMACIÓN: Mueve la cinta hacia la izquierda */
/* Detiene la animación si pones el mouse encima */
.slider-track:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-350px * 8)); } /* Se mueve hasta la mitad (8 fotos) y se reinicia */
}

/* =========================================
   7. FOOTER (PIE DE PÁGINA CORREGIDO)
   ========================================= */
footer {
    background-color: #2c2c2c; /* Gris muy oscuro, casi negro */
    color: #ffffff;            /* Texto blanco */
    
    /* ESTO ARREGLA LA ALINEACIÓN: */
    text-align: center;        
    display: flex;             
    flex-direction: column;    
    align-items: center;       
    justify-content: center;   
    
    padding: 40px 20px;        /* Espacio arriba y abajo */
    margin-top: 60px;          /* Separación de la sección anterior */
    width: 100%;               /* Asegura que cubra todo el ancho */
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-content p {
    margin-bottom: 20px;       /* Espacio entre el texto y el botón */
    font-size: 15px;
    opacity: 0.9;              /* Un poco más suave para que no brille tanto */
    line-height: 1.6;
}

/* Botón de Facebook en el Footer */
.btn-facebook {
    display: inline-block;
    background-color: #1877F2; /* Azul oficial FB */
    color: white !important;   /* Fuerza el color blanco */
    padding: 10px 25px;
    border-radius: 50px;       /* Bordes redondos modernos */
    font-weight: bold;
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3); /* Sombra para que resalte */
    transition: transform 0.2s;
}

.btn-facebook:hover {
    background-color: #145dbf;
    transform: scale(1.05);    /* Crece un poquito al pasar el mouse */
}

/* =========================================
   SECCIÓN DOBLE COLUMNA (ALTURAS IGUALES)
   ========================================= */
.doble-columna {
    display: flex;
    justify-content: space-between;
    
    /* CAMBIO CLAVE: 'stretch' hace que ambas columnas midan lo mismo de alto */
    align-items: stretch; 
    
    gap: 40px;
    margin-bottom: 60px;
}

/* Lado Izquierdo: Facebook */
.doble-columna .facebook-seccion {
    flex: 0 0 400px; /* Ancho fijo para FB */
    background: transparent;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.fb-container {
    background: white;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    width: 100%;
    flex-grow: 1; /* Ocupa todo el alto disponible */
}

/* Lado Derecho: Texto */
.doble-columna .intro-elegante {
    flex: 1;
    margin: 0;
    text-align: left;
    
    /* Para centrar el contenido verticalmente si la caja es alta */
    display: flex;
    flex-direction: column;
    justify-content: center; 
}

/* Ajustes responsivos */
@media (max-width: 900px) {
    .doble-columna {
        flex-direction: column;
        align-items: center; /* En celular volvemos al centro */
    }
    .doble-columna .facebook-seccion,
    .doble-columna .intro-elegante {
        width: 100%;
        max-width: 500px;
    }
}

/* =========================================
   ESTILOS PÁGINA DELEGACIONES
   ========================================= */
.header-simple {
    background-color: #9D2449; /* Color Guinda */
    color: white;
    text-align: center;
    padding: 60px 20px;
    margin-bottom: 40px;
}

.header-simple h1 {
    margin: 0;
    font-size: 36px;
}

.header-simple p {
    font-size: 18px;
    margin-top: 10px;
    opacity: 0.9;
}

/* =========================================
   ESTILOS PARA DELEGACIONES (CORREGIDO)
   ========================================= */

.header-delegaciones {
    background-color: #9D2449;
    color: white;
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 40px;
}

.header-delegaciones h1 { margin: 0; font-size: 32px; }
.header-delegaciones p { margin-top: 5px; opacity: 0.9; }

/* Sede Central */
.sede-principal {
    background: #fff;
    border-left: 8px solid #9D2449;
    padding: 30px;
    
    /* CAMBIO: Aumentamos de 50px a 100px para dar bastante espacio */
    margin-bottom: 100px; 
    
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-radius: 0 10px 10px 0;
}

/* Grid de Tarjetas */
.delegaciones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding-bottom: 60px;
}

.delegacion-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border: 1px solid #eee;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.delegacion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* --- CORRECCIÓN DE FOTOS --- */

.foto-delegado {
    width: 100%;
    height: 350px; /* Buena altura para retrato */
    background-color: #e0e0e0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.foto-delegado img {
    width: 100%;
    height: 100%;
    
   
    object-fit: cover;       /* Rellena el cuadro */
    object-position: center; /* Enfoca el puro centro de la imagen (ni muy arriba ni muy abajo) */
    
    transition: transform 0.5s ease;
}

/* Efecto Zoom */
.delegacion-card:hover .foto-delegado img {
    transform: scale(1.05);
}
/* -------------------------------- */

.info-delegacion {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.info-delegacion h3 { color: #9D2449; margin-bottom: 5px; font-size: 22px; text-transform: uppercase; }
.titular { font-weight: bold; color: #333; margin-bottom: 5px; }
.materias { font-size: 13px; color: #666; font-style: italic; margin-bottom: 15px; }

.datos-contacto {
    margin-top: auto;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.datos-contacto p { font-size: 14px; margin-bottom: 10px; color: #555; }

.btn-llamada {
    display: block;
    text-align: center;
    background: #333;
    color: white;
    padding: 10px;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
    text-decoration: none;
}

.btn-llamada:hover { background: #9D2449; }
.btn-facebook { color: white; background: #1877F2; padding: 5px 10px; border-radius: 4px; margin-left: 10px; }

/* =========================================
   7. AJUSTES DEL DIRECTORIO
   ========================================= */

.foto-perfil {
    width: 300px;     /* ajusta este valor */
    height: auto;     /* mantiene proporción */
    border-radius: 10px;
}

.directorio-card {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 20px;
    background: #ffffff;
    padding: 20px;
    margin: 25px 0;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    max-width: 800px;
}

.directorio-card img {
    width: 200px;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.directorio-info h3 {
    margin: 0;
    font-size: 20px;
    color: #1A1A1A;
}

.directorio-info p {
    margin: 5px 0;
    font-size: 14px;
    color: #555;
}

.directorio-info .titulo {
    font-weight: bold;
    color: #9D2449;
}

/* === GRID PRINCIPAL === */
.directorio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 40px;
    padding: 40px 20px;
    text-align: center;
}

.directorio-item img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.12);
    transition: transform 0.5s; /* Suavidad para el efecto hover */
    cursor: pointer;
}

.directorio-item img:hover {
    transform: scale(1.1); /* Crece un 10% */
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.directorio-item h3 {
    font-size: 18px;
    font-weight: bold;
    color: #6A0C39;
    margin-bottom: 6px;
}

.directorio-item .puesto {
    font-size: 15px;
    color: #444;
    margin-bottom: 6px;
    font-weight: 600;
}

.directorio-item .desc {
    font-size: 14px;
    color: #555;
    margin: 0 20px;
    line-height: 1.3em;
}

.directorio-item .cv-icon {
    margin-top: 8px;
    font-size: 14px;
    color: #6A0C39;
    cursor: pointer;
}

.separador {
    border: none;
    border-top: 1px solid #b6a5a5;
    margin: 40px auto;
    width: 90%;
}

.organigrama {
    text-align: center;
}


/* =========================================
   TESTING AREA
   ========================================= */





.directorio-foto {
    width: 350px; /* Ancho de cada foto */
    padding: 15px; /* Espacio entre fotos */
    perspective: 100px;
}

.directorio-foto img {
    width: 100%;
    height: 250px; /* Altura fija para que todas se vean parejas */
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.5s; /* Suavidad para el efecto hover */
    cursor: pointer;
}

/* EFECTO: Al pasar el mouse, la foto crece (Zoom) */
.directorio-foto img:hover {
    transform: scale(1.1); /* Crece un 10% */
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}




/* --- Contenedor de la foto --- */
.foto-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.foto-wrapper img {
    width: 100%;
    display: block;
    object-fit: cover;
    height: 260px;
}

/* --- Botón invisible hasta hover --- */
.zoom-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    padding: 8px 10px;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    transition: 0.3s;
    font-size: 18px;
}

.foto-wrapper:hover .zoom-btn {
    opacity: 1;
}

/* --- Lightbox --- */
#lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#lightbox-img {
    max-width: 80%;
    max-height: 80%;
    box-shadow: 0 0 20px rgba(0,0,0,0.6);
    border-radius: 6px;
}

#close-lightbox {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

/* Botón de Sonido para el Banner */
        .btn-mute {
            position: absolute;
            bottom: 30px;
            right: 30px;
            z-index: 10; /* Para que quede encima del video y el overlay */
            background-color: rgba(0, 0, 0, 0.5);
            border: 2px solid #fff;
            color: #fff;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 1.2rem;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .btn-mute:hover {
            background-color: #fff;
            color: #8B1D35; /* Color guinda al pasar el mouse */
            transform: scale(1.1);
        }
/* --- ESTILOS LEXIUS Y TRANSPARENCIA --- */

/* Banner Lexius */
.banner-lexius {
    display: block;
    background: linear-gradient(90deg, #9D2449 0%, #5e1224 100%); /* Degradado Guinda */
    color: white;
    text-decoration: none;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
    border: 1px solid #BC955C; /* Borde Dorado */
}

.banner-lexius:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.lexius-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    text-align: left;
}

.lexius-content i.fa-book-open {
    font-size: 3.5rem;
    color: #BC955C;
}

.banner-lexius h3 {
    font-size: 1rem;
    margin: 0;
    font-weight: 400;
    letter-spacing: 2px;
    color: #ffd700;
}

.banner-lexius h2 {
    font-size: 2.5rem;
    margin: 5px 0;
    font-weight: 800;
    letter-spacing: 1px;
}

.banner-lexius p {
    font-size: 1.1rem;
    margin: 0;
    font-weight: 500;
}

/* Ajustes de columnas */
.doble-columna {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

/* Transparencia (PNT) */
.pnt-link {
    display: block;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #eee;
    text-decoration: none;
    transition: all 0.3s;
}

.pnt-link:hover {
    border-color: #BC955C;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.pnt-img {
    max-width: 100%;
    width: 250px; /* Tamaño controlado */
    height: auto;
}

/* Responsivo */
@media (max-width: 768px) {
    .lexius-content { flex-direction: column; text-align: center; gap: 10px; }
    .banner-lexius h2 { font-size: 1.8rem; }
    .doble-columna { grid-template-columns: 1fr; }
}

/* --- TITULAR Y BANNER SEDE (MODIFICADO) --- */
        .titular-box { 
            background-color: #fff; 
            border-top: 5px solid #8B1D35; 
            padding: 0; /* Importante: 0 padding para que la foto toque los bordes */
            margin-bottom: 40px; 
            border-radius: 8px; 
            text-align: center; 
            box-shadow: 0 4px 15px rgba(0,0,0,0.1); 
            overflow: hidden; /* Recorta la imagen si se sale de las esquinas redondeadas */
        }
        
        /* Estilo para la imagen que funciona como banner */
        .banner-sede {
            width: 100%;
            height: 300px; /* Altura fija para que parezca banner */
            object-fit: cover; /* Rellena el espacio sin deformarse */
            object-position: center; /* Centra la imagen */
            display: block;
        }

        /* Espacio para el texto del nombre debajo de la foto */
        .titular-info { 
            padding: 25px; 
        }

        /* --- MODIFICACIÓN: BANNER DE SEDE EN LUGAR DE FOTO REDONDA --- */
        .titular-box { 
            background-color: #fff; 
            border-top: 5px solid #8B1D35; 
            padding: 0; /* QUITAR PADDING para que la imagen toque los bordes */
            margin-bottom: 40px; 
            border-radius: 8px; 
            text-align: center; 
            box-shadow: 0 4px 15px rgba(0,0,0,0.1); 
            overflow: hidden; 
        }
        
        .banner-sede {
            width: 100%;
            height: 250px; /* Altura del banner */
            object-fit: cover;
            object-position: center;
            display: block;
        }

        .titular-info { 
            padding: 25px; /* Espacio para el texto del nombre */
        }

      /* --- SECCIÓN TRANSPARENCIA (DISEÑO PREMIUM) --- */
.transparencia-section {
    padding: 80px 20px;
    background-color: #fcfcfc; /* Un fondo casi blanco para diferenciarlo sutilmente */
    max-width: 900px;
    margin: 0 auto;
}

.titulo-transparencia {
    text-align: center;
    color: #8B1D35;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 20px;
}
.titulo-transparencia::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #BC955C;
    border-radius: 2px;
}

/* Acordeón: Estilo Tarjeta Flotante */
.acordeon-item {
    background: #fff;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.04); /* Sombra suave en lugar de borde */
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(0,0,0,0.02);
}

/* Header del Acordeón */
.acordeon-header {
    background: #fff;
    padding: 25px 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s;
    border-left: 6px solid transparent; /* Línea lateral oculta */
}

.acordeon-header:hover {
    background: #fff9f0; /* Fondo crema muy suave al pasar mouse */
    border-left-color: #d4af37; /* Línea dorada aparece */
    transform: translateX(5px); /* Pequeño movimiento a la derecha */
}

/* Estado Activo */
.acordeon-item.active {
    box-shadow: 0 15px 30px rgba(139, 29, 53, 0.08);
}
.acordeon-item.active .acordeon-header {
    background: #fff;
    border-left-color: #8B1D35; /* Línea guinda cuando está abierto */
    border-bottom: 1px solid #f0f0f0;
}
.acordeon-item.active .icon-chevron {
    transform: rotate(180deg);
    color: #8B1D35;
}

/* Iconos y Texto */
.header-content { display: flex; align-items: center; gap: 20px; }

.header-icon {
    width: 45px; height: 45px;
    background: #f4ebe2; /* Fondo dorado muy pálido */
    color: #8B1D35;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    transition: 0.3s;
}
.acordeon-item.active .header-icon {
    background: #8B1D35; color: #fff; /* Cambio de color al abrir */
}

.header-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #444;
    margin: 0;
}

.icon-chevron { color: #ccc; transition: 0.3s; font-size: 0.9rem; }

/* Cuerpo del Acordeón */
.acordeon-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background: #fff;
}
.body-inner { padding: 30px 30px 40px 30px; }

/* Grid de Años (Botones Modernos) */
.years-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.btn-year {
    padding: 10px 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    color: #666;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
    transition: 0.2s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}
.btn-year:hover {
    border-color: #BC955C;
    color: #BC955C;
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(188, 149, 92, 0.15);
}
.btn-year.current {
    background: #BC955C;
    border-color: #BC955C;
    color: white;
}

/* Enlaces de Lista */
.list-links { display: flex; flex-direction: column; gap: 12px; margin-top: 10px; }

.link-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 15px 20px;
    background: #fcfcfc;
    border: 1px solid #eee;
    border-radius: 8px;
    color: #555;
    font-weight: 600;
    transition: 0.2s;
}
.link-row:hover {
    background: #fff;
    border-color: #BC955C;
    color: #8B1D35;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

@media (max-width: 768px) {
    .header-title { font-size: 1rem; }
    .header-icon { width: 35px; height: 35px; font-size: 1rem; }
    .acordeon-header { padding: 20px 15px; }
}

/* --- CORRECCIÓN SLIDER INFINITO --- */
.slider-area {
    height: 250px;
    margin: auto;
    position: relative;
    width: 100%;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #fff;
    /* Sombra interna para dar profundidad en los bordes */
    box-shadow: inset 0 0 20px rgba(0,0,0,0.05); 
}

.slider-track {
    display: flex;
    /* Ancho total = 20 imágenes * 250px cada una = 5000px */
    width: calc(250px * 20); 
    animation: scroll 40s linear infinite;
}

.slide-item {
    height: 200px;
    width: 250px;
    display: flex;
    align-items: center;
    padding: 15px;
    perspective: 100px;
    /* IMPORTANTE: Evita que las imágenes se encojan */
    flex-shrink: 0; 
}

.slide-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.5s;
    border: 2px solid white;
}

.slide-item img:hover {
    transform: scale(1.05);
    border-color: #BC955C;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Movemos SOLO el ancho de las 10 imágenes originales (10 * 250px = 2500px) */
        /* Al llegar aquí, la imagen 11 (copia de la 1) estará exactamente donde empezó la 1 */
        transform: translateX(calc(-250px * 10)); 
    }
}

/* --- AGREGAR ESTO AL CSS --- */

/* IMPORTANTE: Agrega "position: relative" a tu clase .navbar existente */
.navbar {
    position: relative; 
    /* ... tus otros estilos de navbar ... */
}

/* Contenedor que centra el botón */
.audio-center-container {
    position: absolute; /* Esto hace que flote */
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%); /* Centrado matemático exacto */
    z-index: 1001;
}

/* Estilo del Botón */
.btn-audio-nav {
    background-color: #8B1D35; /* Color Vino */
    color: white;
    border: 2px solid #BC955C; /* Borde Dorado */
    padding: 8px 25px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: inherit;
}

.btn-audio-nav:hover {
    background-color: #5e1224;
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.btn-audio-nav i { font-size: 1.1rem; }

/* Ajuste para que se vea bien en celulares */
@media (max-width: 900px) {
    .navbar { flex-direction: column; height: auto; padding: 15px; gap: 15px; }
    .audio-center-container { position: relative; left: 0; top: 0; transform: none; order: 2; margin: 10px 0; }
}

/* =========================================
   ESTILOS FOOTER (3 COLUMNAS: IZQ - CENTRO - DER)
   ========================================= */
footer {
    background-color: #1a1a1a; /* Fondo negro */
    color: #ffffff;
    padding: 50px 20px 20px 20px;
    font-size: 0.9rem;
    border-top: 5px solid #BC955C;
    margin-top: 40px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    /* 3 columnas iguales */
    grid-template-columns: 1fr 1fr 1fr; 
    gap: 20px;
    align-items: start;
}

/* Columna Izquierda (Transparencia) */
.footer-col-left {
    text-align: left;
}

/* Columna Centro (INDAJUCAM - Centrado) */
.footer-col-center {
    text-align: center;
}

/* Columna Derecha (Gobierno) */
.footer-col-right {
    text-align: right;
}

/* Estilos comunes para títulos y enlaces */
.footer-title {
    color: #BC955C;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links-list li {
    margin-bottom: 10px;
}
.footer-links-list a {
    color: #bbb;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s;
    display: block;
}
.footer-links-list a:hover {
    color: #BC955C;
}

/* Ajustes específicos para redes sociales centradas */
.social-footer-center {
    display: flex;
    justify-content: center; /* Centrado */
    gap: 15px;
    margin-top: 15px;
}

/* Redes sociales botones */
.social-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%;
    background-color: rgba(255,255,255,0.1); color: white;
    font-size: 1.2rem; text-decoration: none; transition: 0.3s;
}
.social-btn:hover { background-color: #BC955C; transform: translateY(-3px); }


/* Responsive: Una columna en móviles */
@media (max-width: 850px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-col-left, .footer-col-center, .footer-col-right {
        text-align: center;
        margin-bottom: 30px;
    }
    .social-footer-center {
        justify-content: center;
    }
}