/* CONTENEDOR PRINCIPAL */
.contenedor-institucional {
    width: 100%;
    margin: 20px 0;
    border: 1px solid #e1e1e1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0,0,0,.07);
}

/* ENCABEZADO */
.encabezado-institucional {
    background-color: #963B43;
    padding: 16px 20px;
}

.encabezado-institucional h2 {
    color: #ffffff !important;
    font-size: 20px !important;
    font-weight: 600;
    margin: 0;
    padding: 0;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

/* CUERPO */
.cuerpo-institucional {
    background-color: #F2F3F5;
    padding: 20px;
    color: #444444;
    font-size: 14px;
    line-height: 1.6;
}

/* PÁRRAFOS */
.cuerpo-institucional p {
    font-size: 14px !important;
    line-height: 1.6;
    text-align: justify;
    margin: 0 0 12px;
}

.cuerpo-institucional p:last-child {
    margin-bottom: 0;
}

/* SUBTÍTULOS */
.cuerpo-institucional h3 {
    color: #963B43;
    font-size: 18px;
    margin: 0 0 15px;
}

/* IMÁGENES */
.cuerpo-institucional img {
    max-width: 100%;
    height: auto;
}

/* TABLAS INTERNAS */
.cuerpo-institucional table {
    width: 100%;
}

/* RESPONSIVE */
@media(max-width: 576px) {

    .encabezado-institucional {
        padding: 14px 15px;
    }

    .encabezado-institucional h2 {
        font-size: 18px !important;
    }

    .cuerpo-institucional {
        padding: 14px;
    }
}

/* =====================================================
   ESTILOS - CONTENEDOR DE DOCUMENTOS
   ===================================================== */

/* CONTENEDOR */
.contenedor-documentos {
    width: 100%;
    margin: 20px 0;
    border: 1px solid #e1e1e1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0,0,0,.07);
}

/* ENCABEZADO */
.encabezado-documentos {
    background-color: #963B43;
    padding: 16px 20px;
    color: #fff;
}

.encabezado-documentos h2 {
    margin: 0;
    font-size: 21px;
    color: #fff !important;
    background: transparent !important;
    text-shadow: none !important;
    box-shadow: none !important;
}

/* CUERPO */
.cuerpo-documentos {
    background-color: #F2F3F5;
    padding: 18px;
}

/* TABLA */
.tabla-documentos {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: 14px;
}

/* ENCABEZADOS */
.tabla-documentos thead th {
    background-color: #80323A;
    color: #fff !important;
    padding: 13px 10px;
    text-align: center;
    border: 1px solid #a65b62;
}

/* CELDAS */
.tabla-documentos tbody td {
    padding: 13px 10px;
    border: 1px solid #e2e2e2;
    text-align: center;
    color: #444;
}

/* FILAS ALTERNADAS */
.tabla-documentos tbody tr:nth-child(odd) {
    background-color: #ffffff;
}

.tabla-documentos tbody tr:nth-child(even) {
    background-color: #f7f4f4;
}

/* NOMBRE DEL DOCUMENTO */
.tabla-documentos .nombre-documento {
    text-align: left;
}

/* ICONOS */
.tabla-documentos .icono-pdf {
    color: #c62828;
    font-size: 22px;
}

.tabla-documentos a {
    text-decoration: none;
}

.tabla-documentos a:hover {
    opacity: .7;
}

/* MÓVIL */
@media(max-width: 576px) {
    .cuerpo-documentos {
        padding: 8px;
    }

    .tabla-documentos {
        font-size: 12px;
    }

    .tabla-documentos thead th,
    .tabla-documentos tbody td {
        padding: 9px 5px;
    }

    .tabla-documentos .icono-pdf {
        font-size: 18px;
    }
}




/* CONTENEDOR PRINCIPAL */
.contenedor-evidencia {
    width: 100%;
    border: 1px solid #e1e1e1;
    border-radius: 10px;
    overflow: hidden;
    margin: 20px 0;
    box-shadow: 0 3px 12px rgba(0,0,0,.07);
}

/* ENCABEZADO */
.encabezado-evidencia {
    background-color: #963B43;
    padding: 18px 22px;
    color: #fff;
}

.encabezado-evidencia h2 {
    margin: 0;
    padding: 0;
    color: #fff !important;
    font-size: 22px;
    font-weight: 600;
    background: transparent !important;
    text-shadow: none !important;
    box-shadow: none !important;
}

/* CUERPO */
.cuerpo-evidencia {
    background-color: #F2F3F5;
    padding: 20px;
}

.titulo-galeria {
    color: #333;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 18px;
}

/* GALERÍA */
.galeria-municipal {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.foto-card {
    background: #fff;
    border: 1px solid #e5eaf0;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: .3s;
}

.foto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 7px 20px rgba(0,0,0,.12);
}

.foto-card .miniatura {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
    background: #f1f3f5;
}

.foto-info {
    padding: 15px;
}

.foto-info h5 {
    color: #174d75;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px;
}

.foto-info p {
    color: #666;
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

/* VISOR DE IMAGEN */
#visorMunicipal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(0,0,0,.93);
    justify-content: center;
    align-items: center;
    padding: 25px;
}

#visorMunicipal img {
    max-width: 95%;
    max-height: 85vh;
    object-fit: contain;
}

#visorMunicipal .cerrar {
    position: absolute;
    top: 15px;
    right: 30px;
    color: white;
    font-size: 42px;
    cursor: pointer;
}

/* RESPONSIVE */
@media(max-width: 576px) {
    .cuerpo-evidencia {
        padding: 12px;
    }

    .galeria-municipal {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .foto-card .miniatura {
        height: 130px;
    }

    .foto-info {
        padding: 10px;
    }

    .foto-info h5 {
        font-size: 14px;
    }

    .encabezado-evidencia h2 {
        font-size: 19px;
    }
}