


/* VARIABLES DE COLOR INSTITUCIONAL */
:root {
    --guinda: #611232; /* Color oficial Gobierno */
    --guinda-claro: #8d204d;
    --dorado: #a57f2c;
    --gris-fondo: #f4f4f4;
    --blanco: #ffffff;
    --texto: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--texto);
    line-height: 1.6;
    background-color: var(--blanco);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- MODIFICACIÓN PARA EVITAR PARPADEO --- */

.top-bar {
    background: var(--guinda);
    color: white;
    font-size: 0.8rem;
    padding: 8px 0;
    width: 100%;
    /* No le pongas position fixed a la top bar */
}



/* HEADER */
header {
    background: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    color: var(--guinda);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: var(--texto);
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--guinda);
}

.btn-contacto {
    background: var(--dorado);
    color: white !important;
    padding: 8px 15px;
    border-radius: 5px;
}

/* HERO SECTION */
.hero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('/img/palacio.jpg'); /* Imagen genérica */
    background-size: cover;
    background-position: center;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-family: 'Montserrat';
}

.search-box {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.search-box input {
    padding: 12px;
    width: 300px;
    border: none;
    border-radius: 5px 0 0 5px;
}

.search-box button {
    padding: 12px 20px;
    background: var(--dorado);
    border: none;
    color: white;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}

/* GRID DE SERVICIOS */
.servicios {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    color: var(--guinda);
    font-family: 'Montserrat';
}

.grid-servicios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--blanco);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    color: var(--texto);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: 0.3s;
    border-top: 4px solid transparent;
}

.card:hover {
    transform: translateY(-10px);
    border-top: 4px solid var(--dorado);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.icon-box {
    font-size: 2.5rem;
    color: var(--guinda);
    margin-bottom: 15px;
}

.card h3 {
    margin-bottom: 10px;
    color: var(--guinda);
}

.btn-card {
    display: inline-block;
    margin-top: 15px;
    color: var(--dorado);
    font-weight: bold;
    font-size: 0.9rem;
}

/* FOOTER */
footer {
    background: #222;
    color: white;
    padding: 40px 0;
    margin-top: 60px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


/* ESTILO PARA EL LOGO COMO IMAGEN ÚNICA */
.logo {
    display: flex;
    align-items: center;
    padding: 5px 0;
}

.logo-img {
    height: 70px; /* Puedes subirlo a 80px si el logo es muy detallado */
    width: auto;  /* Esto mantiene la proporción original de la imagen */
    display: block;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05); /* Un pequeño efecto al pasar el mouse */
}


/* ESTILOS DE GOBIERNO */
.page-header {
    background: var(--guinda);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.cabildo {
    padding: 80px 0;
}

.presidente-row {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
}

.grid-regidores {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.card-funcionario {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: 0.3s;
}

.card-funcionario img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    filter: grayscale(20%);
}

.info-funcionario {
    padding: 20px;
}

.info-funcionario h4, .info-funcionario h5 {
    color: var(--guinda);
    margin-bottom: 5px;
}

.info-funcionario span {
    color: var(--dorado);
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.card-funcionario.presidente {
    max-width: 400px;
    border: 2px solid var(--dorado);
}

/* ESTILOS DE TRANSPARENCIA */
.transparency-section {
    padding: 60px 20px;
}

.intro-transparency {
    margin-bottom: 40px;
    text-align: center;
}

.intro-transparency h2 {
    color: var(--guinda);
    margin-bottom: 15px;
}

/* TABLA PRO */
.table-container {
    overflow-x: auto; /* Para que en celular se pueda deslizar */
    margin-bottom: 50px;
}

.transparency-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.transparency-table th {
    background-color: var(--guinda);
    color: white;
    text-align: left;
    padding: 15px;
    font-family: 'Montserrat';
}

.transparency-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.transparency-table tr:hover {
    background-color: #f9f9f9;
}

/* BOTONES DE DESCARGA */
.btn-download {
    text-decoration: none;
    background: var(--dorado);
    color: white;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    display: inline-block;
    transition: 0.3s;
}

.btn-download:hover {
    background: var(--guinda-claro);
}

/* CARDS EXTERNAS */
.external-links {
    display: flex;
    justify-content: center;
}

.link-card {
    border: 2px dashed var(--dorado);
    padding: 30px;
    text-align: center;
    max-width: 400px;
    border-radius: 10px;
}

.link-card i {
    font-size: 2rem;
    color: var(--guinda);
    margin-bottom: 15px;
}

.link-card a {
    display: inline-block;
    margin-top: 15px;
    color: var(--guinda);
    font-weight: bold;
}


/* CONTACTO PREMIUM */
.contact-page { padding: 80px 20px; }

.contact-header-text { text-align: center; margin-bottom: 50px; }

.badge {
    background: var(--dorado);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}

/* SIDEBAR INFO CARDS */
.info-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-left: 5px solid var(--guinda);
}

.info-card.highlighted {
    background: #e8f5e9;
    border-left-color: #25d366;
}

.icon-circle {
    width: 50px;
    height: 50px;
    background: var(--gris-fondo);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    color: var(--guinda);
    font-size: 1.2rem;
}

/* FORMULARIO MODERNO */
.form-container {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.modern-form .form-group label {
    font-weight: 600;
    color: var(--guinda);
    margin-bottom: 10px;
    display: block;
}

.modern-form input, .modern-form select, .modern-form textarea {
    border: 2px solid #edf2f7;
    background: #f8fafc;
    padding: 15px;
    border-radius: 8px;
    transition: all 0.3s;
}

.modern-form input:focus {
    border-color: var(--dorado);
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(165, 127, 44, 0.1);
}

.btn-enviar {
    background: var(--guinda);
    color: white;
    border: none;
    padding: 18px;
    border-radius: 8px;
    font-weight: 700;
    width: 100%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    transition: 0.3s;
}

.btn-enviar:hover {
    background: #4a0d26;
    transform: translateY(-2px);
}

/* --- ESTILOS DE LA GALERÍA MOLOACÁN --- */
.gallery-section {
    padding: 80px 0;
    background-color: var(--blanco);
}

.section-description {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    height: 280px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Esto evita que las fotos se estiren feo */
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(97, 18, 50, 0.8); /* Guinda institucional con transparencia */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
}

.gallery-overlay span {
    color: white;
    font-weight: 700;
    font-family: 'Montserrat';
    font-size: 1.2rem;
    border-bottom: 2px solid var(--dorado);
    padding-bottom: 5px;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

/* Efectos al pasar el mouse */
.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-overlay span {
    transform: translateY(0);
}

/* RESPONSIVE PARA EL FOOTER (Opcional para que no se vea amontonado) */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}

/* --- DISEÑO DE LISTA DE NOTICIAS --- */
.noticias-lista { padding: 60px 0; }

.news-list-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 900px; /* Centra y limita el ancho para que no se estire */
    margin: 0 auto;
}

.news-item {
    display: flex;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    transition: 0.3s;
}

.news-item:hover {
    transform: translateX(10px); /* Efecto sutil hacia la derecha */
    border-color: var(--dorado);
}

.news-item-img {
    width: 250px; /* TAMAÑO FIJO PARA QUE NO SEAN GRANDES */
    min-width: 250px;
    height: 180px;
}

.news-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-item-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}

.news-tag {
    background: var(--guinda);
    color: white;
    font-size: 0.7rem;
    padding: 3px 10px;
    border-radius: 4px;
    width: fit-content;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.news-tag.event { background: var(--dorado); }

.news-item-content h3 {
    color: var(--guinda);
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.news-item-content p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #999;
}

.news-link {
    color: var(--dorado);
    text-decoration: none;
    font-weight: bold;
}

/* Ajuste para celulares */
@media (max-width: 600px) {
    .news-item { flex-direction: column; }
    .news-item-img { width: 100%; }
}

/* --- ESTILOS DE ACCESOS RÁPIDOS EN INICIO --- */
.accesos-rapidos { padding: 60px 0; }

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.grid-servicios-short {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.card-mini {
    background: #fff;
    padding: 25px;
    text-align: center;
    text-decoration: none;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    transition: 0.3s;
    color: var(--guinda);
}

.card-mini i { font-size: 2rem; margin-bottom: 10px; display: block; }
.card-mini span { font-weight: 700; font-family: 'Montserrat'; }

.card-mini:hover {
    background: var(--guinda);
    color: white;
    transform: translateY(-5px);
}

.btn-ver-mas {
    color: var(--dorado);
    text-decoration: none;
    font-weight: 700;
    border: 2px solid var(--dorado);
    padding: 10px 20px;
    border-radius: 5px;
    transition: 0.3s;
}

.btn-ver-mas:hover {
    background: var(--dorado);
    color: white;
}

/* --- NUEVA SECCIÓN NOTICIAS 3 COLUMNAS --- */
.noticias-grid-section {
    padding: 60px 0;
}

.news-slider-container {
    position: relative;
    overflow: hidden; /* Oculta las noticias que sobran a los lados */
    padding: 20px 0;
}

.news-slider-track {
    display: flex;
    gap: 25px;
    transition: transform 0.5s ease-in-out;
}

.news-slider-track .news-card-v2 {
    min-width: calc(33.333% - 17px); /* Mantiene 3 noticias visibles */
    box-sizing: border-box;
}

/* Botones de navegación */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--guinda);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover { background: var(--dorado); }
.slider-btn.prev { left: 0; }
.slider-btn.next { right: 0; }

/* Ajuste Responsivo */
@media (max-width: 992px) {
    .news-slider-track .news-card-v2 { min-width: calc(50% - 13px); } /* 2 noticias en tablet */
}
@media (max-width: 600px) {
    .news-slider-track .news-card-v2 { min-width: 100%; } /* 1 noticia en móvil */
}

.news-card-v2 {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: 0.3s;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.news-card-v2:hover {
    transform: translateY(-10px);
    border-color: var(--dorado);
}

.news-card-img {
    position: relative;
    height: 180px;
}

.news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-card-body small {
    color: #999;
    font-size: 0.8rem;
    margin-bottom: 10px;
    display: block;
}

.news-card-body h3 {
    color: var(--guinda);
    font-size: 1.1rem;
    margin-bottom: 12px;
    font-family: 'Montserrat';
}

.news-card-body p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1; /* Empuja el botón hacia abajo */
}

/* BOTÓN LEER MÁS */
.btn-leer-mas {
    text-decoration: none;
    color: var(--dorado);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.btn-leer-mas:hover {
    color: var(--guinda);
    gap: 12px; /* Efecto de movimiento en la flecha */
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .news-grid-triple { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .news-grid-triple { grid-template-columns: 1fr; }
}

/* Estilo para la fecha arriba del título */
.news-date-top {
    display: block;
    color: var(--dorado); /* Usamos el dorado para que resalte después del guinda del tag */
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px; /* Espacio antes del título */
    letter-spacing: 0.5px;
}

.news-card-body h3 {
    margin-bottom: 12px;
    color: var(--guinda);
    font-size: 1.2rem;
    line-height: 1.3;
}

/* El tag se queda fijo sobre la imagen como estaba */
.news-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--guinda);
    color: white;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    z-index: 10;
}

/* --- FOOTER CON LOGO ORIGINAL --- */
footer {
    background: #222222; /* Gris oscuro que respeta los colores originales */
    color: white;
    padding: 50px 0;
    margin-top: 60px;
    border-top: 3px solid var(--dorado); /* Línea dorada superior para dar clase */
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.footer-logo-img {
    height: 85px; /* Un poco más grande para que luzcan los detalles */
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.footer-logo-img:hover {
    transform: scale(1.08);
}

.footer-info h3 {
    color: var(--blanco);
    font-family: 'Montserrat';
    margin-bottom: 5px;
}

.footer-info p {
    color: #bbb;
    font-size: 0.9rem;
}

.footer-copy {
    text-align: right;
    color: #888;
}

.footer-copy strong {
    color: var(--dorado); /* Resaltamos FiberTEC en dorado */
}

/* Ajuste para tablets y móviles */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-copy {
        text-align: center;
    }
}


/* =========================================
   SECCIÓN TRANSPARENCIA (ORFIS, IVAI, PNT)
   ========================================= */
.transparency-section {
    padding: 60px 0;
}

.intro-transparency {
    margin-bottom: 40px;
    text-align: center;
}

.intro-transparency h2 {
    color: var(--guinda);
    font-family: 'Montserrat';
    margin-bottom: 15px;
}

/* Grid de Enlaces Externos */
.external-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.link-card {
    background: #fff;
    border: 1px solid #eee;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: var(--texto);
}

.link-card:hover {
    box-shadow: var(--sombra);
    border-color: var(--dorado);
    transform: translateY(-5px);
}

.card-logo {
    height: 50px;
    width: auto;
    margin-bottom: 15px;
    object-fit: contain;
}

.link-card h4 { color: var(--guinda); margin-bottom: 5px; }
.link-card p { font-size: 0.8rem; margin-bottom: 15px; color: #666; }
.link-card a { color: var(--dorado); font-weight: bold; font-size: 0.9rem; text-decoration: none; }

/* TABLAS DE OBLIGACIONES */
.table-container {
    overflow-x: auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.transparency-table {
    width: 100%;
    border-collapse: collapse;
}

.transparency-table th {
    background-color: var(--guinda);
    color: white;
    text-align: left;
    padding: 15px;
    font-family: 'Montserrat';
}

.transparency-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.transparency-table tr:hover {
    background-color: #f9f9f9;
}

.btn-download {
    text-decoration: none;
    background: var(--dorado);
    color: white;
    padding: 6px 15px;
    border-radius: 4px;
    font-size: 0.85rem;
    display: inline-block;
    transition: 0.3s;
}

.btn-download:hover {
    background: var(--guinda-claro);
}

/* SEPARADOR */
.separator {
    border: 0;
    height: 1px;
    background: #eee;
    margin: 50px 0;
}

/* =========================================
   ESTILOS DE PRIVACIDAD (AVISO INTEGRAL)
   ========================================= */

.privacy-container {
    padding: 60px 0;
    display: flex;
    justify-content: center;
}

.privacy-card {
    background: var(--blanco);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--sombra);
    max-width: 850px;
    line-height: 1.8;
}

.privacy-card h2 {
    color: var(--guinda);
    border-bottom: 2px solid var(--dorado);
    padding-bottom: 10px;
    margin-bottom: 25px;
    font-family: 'Montserrat', sans-serif;
}

.privacy-card h3 {
    color: var(--guinda-claro);
    margin: 30px 0 15px 0;
    font-size: 1.2rem;
}

.privacy-card ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.9rem;
}

.data-table th, .data-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.data-table th {
    background-color: var(--guinda);
    color: white;
}

.contact-info-block {
    background: #f4f4f4;
    padding: 20px;
    border-radius: 5px;
    border-left: 4px solid var(--dorado);
    margin-top: 20px;
}

.contact-info-block i {
    color: var(--guinda);
    margin-right: 10px;
}
/* Estilos adicionales para Privacidad Completa */
.subtitle {
    display: block;
    font-weight: 500;
    color: var(--dorado);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.arco-list {
    background: #fdfdfd;
    padding: 20px 20px 20px 40px;
    border: 1px dashed #ccc;
    border-radius: 8px;
    margin: 15px 0;
}

.arco-list li {
    margin-bottom: 10px;
    position: relative;
}

.legal-box {
    background: rgba(97, 18, 50, 0.05); /* Color guinda muy clarito */
    border-left: 4px solid var(--guinda);
    padding: 20px;
    margin: 25px 0;
    font-size: 0.95rem;
}

.map-responsive {
    overflow: hidden;
    padding-bottom: 450px; /* Altura del mapa */
    position: relative;
    height: 0;
    border-radius: 15px;
    margin-bottom: 40px;
}

.map-responsive iframe {
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    position: absolute;
    filter: grayscale(10%) contrast(1.1); /* Toque profesional sutil */
    transition: filter 0.3s ease;
}

.map-responsive iframe:hover {
    filter: grayscale(0%);
}

/* BARRA DE EMERGENCIAS */
.emergency-strip {
    background: #fff;
    padding: 20px 0;
    border-bottom: 2px solid var(--gris-fondo);
    margin-bottom: 30px;
}

.emergency-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.emergency-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--gris-fondo);
    border-radius: 8px;
    transition: 0.3s;
}

.emergency-item:hover {
    background: #fdf2f2; /* Un tono rojizo muy leve al pasar el mouse */
    transform: translateY(-3px);
}

.emergency-icon {
    font-size: 1.8rem;
    color: var(--guinda);
}

.emergency-text span {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #666;
}

.emergency-text a {
    text-decoration: none;
    color: var(--guinda);
    font-size: 1.2rem;
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
}

/* RESPONSIVE */
@media (max-width: 600px) {
    .emergency-grid {
        grid-template-columns: 1fr; /* Una columna en móvil */
    }
}

/* BARRA SUPERIOR - DISEÑO CARDS MODERNAS */
.top-bar-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.emergency-label {
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Punto verde que parpadea */
.dot-live {
    width: 8px;
    height: 8px;
    background: #2ecc71;
    border-radius: 50%;
    box-shadow: 0 0 10px #2ecc71;
    animation: blink-live 1.5s infinite;
}

.emergency-actions {
    display: flex;
    gap: 15px;
}

.action-card {
    background: rgba(255, 255, 255, 0.15); /* Fondo semitransparente */
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
}

.action-card:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.action-card:hover .action-info strong, 
.action-card:hover .action-info small,
.action-card:hover .action-icon i {
    color: var(--guinda); /* Cambia de blanco a guinda al pasar el mouse */
}

.action-icon i {
    font-size: 1.2rem;
    color: var(--dorado);
}

.action-info {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.action-info small {
    font-size: 0.65rem;
    text-transform: uppercase;
    font-weight: 400;
    opacity: 0.9;
}

.action-info strong {
    font-size: 1.05rem;
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
}

@keyframes blink-live {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

/* RESPONSIVE PARA CELULARES */
@media (max-width: 850px) {
    .emergency-label { display: none; }
    .emergency-actions {
        width: 100%;
        justify-content: center;
        gap: 8px;
    }
    .action-card {
        padding: 5px 10px;
    }
    .action-info strong {
        font-size: 0.9rem;
    }
    .action-icon {
        display: none; /* Quitamos iconos en móvil para ganar espacio */
    }
}

footer {
    background: #222;
    color: white;
    padding: 60px 0 0 0;
    font-family: 'Roboto', sans-serif;
}

.footer-main-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-col h4 {
    color: var(--dorado);
    margin-bottom: 20px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #bbb;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #ddd;
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-col ul li a:hover {
    color: var(--dorado);
    padding-left: 5px;
}

.footer-social {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.footer-social a {
    color: white;
    font-size: 1.2rem;
    transition: 0.3s;
}

.footer-social a:hover {
    color: var(--dorado);
}

.footer-bottom {
    background: #111;
    padding: 20px 0;
    font-size: 0.8rem;
    border-top: 1px solid #333;
    color: #888;
}

.bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Responsive */
@media (max-width: 768px) {
    .footer-main-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-col ul li a {
        justify-content: center;
    }
    .footer-social {
        justify-content: center;
    }
    .bottom-flex {
        flex-direction: column;
        gap: 10px;
    }
}

.footer-logo-img {
    max-width: 180px;
    margin-bottom: 20px;
}

.slogan-container {
    border-left: 3px solid var(--dorado); /* Una línea dorada vertical le da orden */
    padding-left: 15px;
    margin-top: 10px;
}

.footer-slogan {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #ccc;
    max-width: 250px; /* Evita que el texto se estire demasiado */
    margin: 0;
}

.footer-slogan strong {
    color: white;
    font-weight: 500;
}

/* CONTENEDOR PRINCIPAL DEL CABILDO */
.cabildo {
    padding: 60px 0;
    text-align: center;
}

/* FILA DEL PRESIDENTE (MÁS GRANDE) */
.presidente-row {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
}

.card-funcionario.presidente {
    max-width: 450px; /* Tamaño destacado */
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-bottom: 5px solid var(--dorado);
    transition: transform 0.3s ease;
}

.card-funcionario.presidente img {
    width: 100%;
    height: 400px; /* Imagen más alta */
    object-fit: cover;
}

/* GRID PARA SÍNDICA Y REGIDORA (MISMO TAMAÑO) */
.grid-regidores {
    display: grid;
    grid-template-columns: repeat(2, 320px); /* Dos columnas iguales */
    justify-content: center;
    gap: 30px;
}

.card-funcionario {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.card-funcionario img {
    width: 100%;
    height: 300px; /* Imagen estándar */
    object-fit: cover;
}

/* TEXTOS DENTRO DE LAS TARJETAS */
.info-funcionario {
    padding: 20px;
}

.info-funcionario h4 {
    font-size: 1.4rem;
    color: var(--guinda);
    margin-bottom: 5px;
}

.info-funcionario h5 {
    font-size: 1.1rem;
    color: var(--guinda);
    margin-bottom: 5px;
}

.info-funcionario span {
    display: block;
    color: var(--dorado);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

/* EFECTO HOVER */
.card-funcionario:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

/* RESPONSIVO PARA MÓVILES */
@media (max-width: 768px) {
    .grid-regidores {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }
    .card-funcionario.presidente {
        width: 100%;
    }
}

/* CONTENEDOR PRINCIPAL */
.cabildo {
    padding: 80px 0;
    background-color: #f9f9f9;
}

/* ESTILO ÚNICO PARA TODAS LAS TARJETAS */
.card-funcionario {
    background: white;
    border-radius: 8px; /* Bordes menos redondeados para un look más serio */
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #eee; /* Marco sutil para todas */
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* Efecto hover igual para todos */
.card-funcionario:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    border-color: var(--dorado); /* El marco se ilumina en dorado al pasar el mouse */
}

/* IMÁGENES UNIFORMES */
.card-funcionario img {
    width: 100%;
    height: 350px; /* Altura estándar para las fotos */
    object-fit: cover;
    filter: grayscale(20%); /* Un toque elegante */
}

.card-funcionario:hover img {
    filter: grayscale(0%);
}

/* CONTENIDO DE TEXTO */
.info-funcionario {
    padding: 25px;
    text-align: center;
}

.info-funcionario h4, .info-funcionario h5 {
    font-family: 'Montserrat', sans-serif;
    color: #621132; /* Guinda */
    font-size: 1.25rem;
    margin: 0 0 8px 0;
    font-weight: 700;
}

.info-funcionario span {
    color: #D4AF37; /* Dorado */
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* ESTRUCTURA DE LA PÁGINA */
.presidente-row {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

/* La tarjeta del presidente usa el mismo estilo, solo limitamos su ancho */
.card-funcionario.presidente {
    width: 380px; 
}

.grid-regidores {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.grid-regidores .card-funcionario {
    width: 380px; /* Exactamente el mismo ancho que la del presidente */
}

/* Línea decorativa interna opcional */
.info-funcionario hr {
    width: 40px;
    border: 0;
    border-top: 2px solid #D4AF37;
    margin: 15px auto;
}

/* 1. ESTADO POR DEFECTO (Escritorio) */
.menu-toggle {
    display: none; /* ESTO LO ESCONDE EN ESCRITORIO */
    background: none;
    border: none;
    color: #621132; /* Tu color guinda */
    font-size: 1.8rem;
    cursor: pointer;
    padding: 10px;
}

/* 2. ESTADO PARA MÓVILES (Pantallas menores a 992px) */
@media (max-width: 992px) {
    .menu-toggle {
        display: block; /* ESTO LO MUESTRA SOLO EN MÓVIL */
    }

    .nav-links {
        display: none; /* Escondemos los links para que no se amontonen */
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #fff;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        z-index: 1000;
    }

    .nav-links.active {
        display: flex; /* Se muestra cuando das click al botón */
    }

    .nav-links li {
        margin: 10px 0;
        text-align: center;
    }
}