/*
Theme Name: Bomberos Zapopan
Theme URI: https://bomberos.zapopan.gob.mx/
Author: Tu Nombre o Departamento
Author URI: https://bomberos.zapopan.gob.mx/
Description: Plantilla adaptada para la Dirección de Protección Civil y Bomberos Zapopan.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: bootstrap, responsive, emergency-services, red-white
Text Domain: bomberos-zapopan
*/

/* ==========================================================================
   Aquí puedes pegar el contenido de tu antiguo "css/estilos.css"
   o añadir tus estilos personalizados adicionales.
   ========= */


html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
    display: block;
}

body {
    line-height: 1;
}

ol, ul {
    list-style: none;
}

blockquote, q {
    quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}

b, strong, h1, h2, h3, h4, h5{
    font-weight: 700;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}


:root {
    --rojo-zapopan: #b22222;
    --azul-zapopan: #003366;
    --gris-fondo: #f8f9fa;
}

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

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: var(--gris-fondo);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 85px;
}

/* CABECERA FIJA */
header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 85px;
    background: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.logo img {
    height: 65px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
}

nav ul li a:hover {
    color: var(--rojo-zapopan);
}

/* RECUADROS CENTRALES */
main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.container-box {
    display: flex;
    gap: 40px;
    max-width: 1000px;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
}

.card {
    background: #fff;
    flex: 1;
    min-width: 300px;
    height: 280px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: #333;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s ease;
    border: 1px solid #eee;
}

.card i {
    font-size: 4.5rem;
    color: var(--rojo-zapopan);
    margin-bottom: 20px;
}

.card h2 {
    font-size: 1.6rem;
    font-weight: 800;
    text-align: center;
}

.card:hover {
    transform: translateY(-15px);
    background-color: var(--rojo-zapopan);
    color: #fff;
    border-color: var(--rojo-zapopan);
}

.card:hover i {
    color: #fff;
}

/* FOOTER */
footer {
    background-color: #ffffff;
    border-top: 5px solid var(--rojo-zapopan);
    padding: 25px 5%;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo img {
    height: 55px;
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.footer-socials a {
    text-decoration: none;
    background: #f0f0f0;
    color: #333;
    padding: 10px 15px;
    border-radius: 10px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.footer-socials a:hover {
    background: var(--azul-zapopan);
    color: white;
}

.copy {
    width: 100%;
    text-align: center;
    margin-top: 20px;
    color: #888;
    font-size: 0.8rem;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        height: auto;
        padding: 15px;
    }

    body {
        padding-top: 160px;
    }

    .container-box {
        flex-direction: column;
    }
}

/* Contenedor Principal */
.contenedor-principal {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    color: #333;
    line-height: 1.6;
	width: 100%;
}

/* Títulos */
.main_title {
    color: #b22222;
    /* Rojo Zapopan */
    font-size: 2.5rem;
    border-bottom: 3px solid #b22222;
    padding-bottom: 10px;
    margin-bottom: 30px;
}

h1 strong {
    font-size: 1.8rem;
    color: #003366;
    /* Azul Institucional */
}

/* Estilo de la Tabla (Convertida visualmente) */
table {
    border-collapse: separate;
    border-spacing: 0 10px;
    /* Espacio entre filas */
    width: 100% !important;
    height: auto !important;
    /* Quitamos la altura fija de 3405px */
}

/* Encabezados de Fracciones (I, II, III...) */
tr[style*="background-color: #"] td,
td[bgcolor="#CCCCCC"] {
    background-color: #f2f2f2 !important;
    border-left: 5px solid #b22222;
    padding: 15px !important;
    border-radius: 5px;
}

td[bgcolor="#CCCCCC"] h4 {
    margin: 0;
    color: #b22222;
    font-size: 1.1rem;
}

/* Filas de Incisos (a, b, c...) */
tr:not([bgcolor]) {
    transition: background 0.3s;
}

tr:not([bgcolor]):hover {
    background-color: #f9f9f9;
}

td {
    padding: 12px 8px !important;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

/* Letras de incisos (a, b...) */
td strong {
    color: #b22222;
    display: block;
    text-align: center;
    font-size: 1.1rem;
}

/* Enlaces */
a {
    color: #0056b3;
    text-decoration: none;
    font-weight: 500;
    transition: 0.2s;
}

a:hover {
    color: #b22222;
    text-decoration: underline;
}

/* Etiquetas de "Derogado" */
td:contains("(Derogado)") {
    color: #888;
    font-style: italic;
}


/* 1. Limpiar el contenedor de los <p> que mete WordPress */
.container-box p {
    margin: 0;
    padding: 0;
    display: contents; /* Esto hace que el <p> no afecte el diseño */
}

/* 2. Arreglar la Card */
.card {
    background: #fff;
    border-radius: 20px;
    display: flex; /* Cambiado a flex para control total */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    padding: 30px;
    margin: 10px;
    min-width: 280px;
    height: 280px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    border: 1px solid #eee;
    text-align: center;
}

/* 3. Eliminar los <br> molestos que WordPress inserta antes del icono */
.card br {
    display: none;
}

/* 4. Estilo del Icono */
.card i {
    font-size: 4.5rem;
    color: #b22222; /* Rojo Zapopan */
    margin-bottom: 15px;
    display: block;
}

/* 5. Estilo del Texto */
.card h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #333;
    line-height: 1.2;
    margin: 0;
}

/* 6. Efecto Hover mejorado */
.card:hover {
    transform: translateY(-10px);
    background-color: #b22222;
}

.card:hover i, 
.card:hover h2 {
    color: #ffffff !important;
}


/* Corrección de Layout */
.container-box {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}

/* Forzar que la tarjeta se comporte bien */
.card {
    background: #fff;
    border-radius: 20px;
    display: flex !important; /* Importante para sobreescribir estilos de bootstrap */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-decoration: none !important;
    padding: 30px;
    width: 280px; /* Ancho fijo para uniformidad */
    height: 280px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    border: 1px solid #eee;
    text-align: center;
    margin: 10px;
    float: none; /* Prevenir conflictos de float */
}


/* Pero permitimos el BR dentro del título */
.card .card-title br {
    display: block;
}

/* Estilo del Icono */
.card i {
    font-size: 4.5rem;
    color: #b22222; /* Rojo Zapopan */
    margin-bottom: 15px;
    display: block;
}

/* Estilo del Texto (Simulando el H2 anterior) */
.card .card-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #333;
    line-height: 1.2;
    display: block;
}

/* Hover */
.card:hover {
    transform: translateY(-10px);
    background-color: #b22222;
}

.card:hover i, 
.card:hover .card-title {
    color: #ffffff !important;
}

/* Responsivo */
@media (max-width: 768px) {
    .main_title {
        font-size: 1.8rem;
    }

    table, tbody, tr, td {
        display: block;
        width: 100% !important;
    }

    td strong {
        text-align: left;
        margin-bottom: 5px;
    }
}

td, tr{
	height: auto !important;
}

.card{
	width: auto;
}



/* --- Estilos Base y Escritorio --- */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.menu-principal-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-principal-list li {
    margin-left: 20px;
}

.menu-toggle {
    display: none; /* Oculto en escritorio */
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 2px 0;
}

/* --- Estilos para Celulares (Menos de 767px) --- */
/* --- ESCRITORIO --- */
.header-principal {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Todo alineado a la izquierda */
    padding: 10px;
    gap: 20px;
}

.menu-listado {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-listado li {
    margin-right: 20px;
}

.btn-menu-movil {
    display: none; /* Oculto en PC */
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.btn-menu-movil .linea {
    width: 30px;
    height: 3px;
    background-color: #333;
    margin: 2px 0;
}

.navegacion-pc{
	position: absolute;
	right: 50px;
}

	.logo-container img{
		margin-left: 100px;
	}

/* --- MÓVIL (767px o menos) --- */
@media (max-width: 767px) {
    .header-principal {
        justify-content: space-between; /* Logo a un lado, botón al otro */
    }

    .btn-menu-movil {
        display: flex; /* Aparece el botón */
    }

    .menu-listado {
        display: none; /* ESCONDIDO POR DEFECTO */
        flex-direction: column;
        position: absolute;
        top: 70px; /* Ajusta según el alto de tu header */
        left: 0;
        width: 100%;
        background-color: #ffffff;
        z-index: 9999;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }

    /* ESTA CLASE HACE QUE APAREZCA */
    .menu-listado.mostrar {
        display: flex !important;
		top: 140px;
    }

    .menu-listado li {
        width: 100%;
        margin: 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .menu-listado li a {
        display: block;
        padding: 15px 20px;
        text-align: left; /* Alineado a la izquierda */
    }
	
	.logo-container{
		width: 100%;
	}
	
	.logo-container img{
		margin: 0 auto !important;
		position: relative !important;
		display: block;
	}
	
	.navegacion-pc{
		position: static;
		right: inherit;
	}


	
}


/* ===============================
   RESET
================================ */
.menu-listado,
.menu-listado ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ===============================
   MENÚ PRINCIPAL
================================ */
.menu-listado {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    padding: 0 10px;
}

/* ITEM PRINCIPAL */
.menu-listado > li {
    position: relative;
}

/* LINKS PRINCIPALES */
.menu-listado > li > a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 14px 18px;
    color: #1f2937;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
    transition: background .25s ease, color .25s ease;
}

/* HOVER PRINCIPAL */
.menu-listado > li > a:hover {
    background: #f1f5f9;
    color: #111827;
}

/* ACTIVO */
.menu-listado .current-menu-item > a {
    background: #e5e7eb;
    font-weight: 600;
}

/* ===============================
   SUBMENÚ
================================ */
.menu-listado .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 12px 24px rgba(0,0,0,.12);
    padding: 6px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .2s ease, transform .2s ease;
    z-index: 999;
    display: block;
}

/* MOSTRAR SUBMENÚ */
.menu-listado li.menu-item-has-children:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ITEMS SUBMENÚ (UNO POR LÍNEA) */
.menu-listado .sub-menu li {
    display: block;
    width: 100%;
}

/* LINKS SUBMENÚ */
.menu-listado .sub-menu li a {
    display: block;
    width: 100%;
    padding: 12px 18px;
    font-size: 14px;
    color: #1f2937;
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
}

/* HOVER SUBMENÚ */
.menu-listado .sub-menu li a:hover {
    background: #f1f5f9;
    color: #111827;
}

/* ===============================
   FLECHA INDICADORA
================================ */
.menu-item-has-children > a::after {
    content: "▾";
    font-size: 12px;
    transition: transform .25s ease;
}

/* ROTAR FLECHA */
.menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
}



/* CONTENEDOR */
.padron-proveedores-links {
    max-width: 780px;
    margin: 40px auto;
}

/* TARJETA */
.panel-link {
    display: block;
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #e6e8ec;
    padding: 26px 28px;
    margin-bottom: 26px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
    transition: all .3s ease;
    position: relative;
    text-decoration: none !important;
}

/* Hover institucional */
.panel-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.10);
    border-color: #d1d5db;
}

/* BARRA LATERAL SUTIL */
.panel-link::before {
    content: "";
    position: absolute;
    left: 0;
    top: 18px;
    bottom: 18px;
    width: 4px;
    background: #b91c1c; /* rojo institucional */
    border-radius: 0 6px 6px 0;
    opacity: .85;
}

/* TÍTULO */
.panel-link .link-title {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 10px;
}

/* DESCRIPCIÓN */
.link-desc {
    font-size: 14.5px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
    max-width: 90%;
}

/* FLECHA DERECHA */
.panel-link::after {
    content: "→";
    position: absolute;
    right: 26px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #9ca3af;
    transition: all .3s ease;
}

.panel-link:hover::after {
    transform: translate(6px, -50%);
    color: #374151;
}

/* LIMPIAR ESTILOS BOOTSTRAP */
.panel.panel-default {
    border: none;
    box-shadow: none;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .panel-link {
        padding: 22px;
    }

    .panel-link::after {
        right: 18px;
    }
}


.padron-docs-elegant {
    max-width: 820px;
    margin: 40px auto;
}

/* TARJETA */
.doc-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    margin-bottom: 16px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    text-decoration: none !important;
    transition: all .25s ease;
}

/* Hover */
.doc-card:hover {
    border-color: #d1d5db;
    background: #f9fafb;
}

/* LADO IZQUIERDO */
.doc-left {
    display: block;
	width: 80%;
    align-items: center;
    gap: 16px;
}

/* ICONO WORD */
.doc-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #991b1b;
    color: #ffffff;
    font-weight: 700;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* TEXTO */
.doc-title {
    font-size: 16px;
    font-weight: 500;
    color: #111827;
    margin: 0 0 4px;
}

.doc-meta {
    font-size: 13px;
    color: #6b7280;
}

/* ACCIÓN */
.doc-action {
    font-size: 14px;
    font-weight: 600;
    color: #991b1b;
    transition: transform .25s ease;
    white-space: nowrap;
}

.doc-card:hover .doc-action {
    transform: translateX(6px);
}

/* MOBILE */
@media (max-width: 640px) {
    .doc-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .doc-action {
        align-self: flex-end;
    }
}



/* Contenedor Principal - Aislamiento de Estilos */
.licitaciones-seccion {
    margin: 40px 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Tabla Contenedor: Bordes suaves y sombra profunda */
.licitaciones-seccion .tabla-contenedor {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.licitaciones-seccion .tabla-licitaciones {
    width: 100%;
    border-collapse: collapse;
}

/* Encabezados: Texto más fino y espaciado */
.licitaciones-seccion .tabla-licitaciones th {
    background-color: #f9fafb;
    padding: 18px 24px;
    text-align: left;
    color: #6b7280;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #f3f4f6;
}

/* Filas: Animación de color al pasar el mouse */
.licitaciones-seccion .tabla-licitaciones td {
    padding: 20px 24px;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
    transition: background-color 0.2s ease;
}

.licitaciones-seccion .tabla-licitaciones tr:hover td {
    background-color: #f8fbff;
}

/* Título de la Licitación: Color de contraste alto */
.licitaciones-seccion .tit-lic {
    margin: 0;
    font-size: 15px;
    color: #111827;
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* Botones de Acciones: Diseño tipo 'Outline' Moderno */
.licitaciones-seccion .col-acciones {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.licitaciones-seccion .btn-azul-lic {
    display: inline-block;
    min-width: 110px;
    padding: 7px 14px;
    border: 1.5px solid #2563eb; /* Azul cobalto moderno */
    color: #2563eb;
    text-decoration: none;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Efecto Hover del Botón */
.licitaciones-seccion .btn-azul-lic:hover {
    background-color: #2563eb;
    color: #ffffff;
    transform: scale(1.03); /* Crece ligeramente */
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

/* Ajuste de alineación para la columna de acciones */
.licitaciones-seccion .txt-derecha {
    text-align: right;
}

/* Eliminar borde de la última fila */
.licitaciones-seccion .tabla-licitaciones tr:last-child td {
    border-bottom: none;
}

.bdr{
	border-right: 1px dotted #ccc;	
}


.modal-overlay {
    display: none; 
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
}

.modal-content {
    position: relative;
    margin: 2% auto;
    width: 80%;
    height: 85vh;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.modal-header {
    padding: 10px 20px;
    background: #f1f1f1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#pdfFrame {
    width: 100%;
    height: calc(100% - 50px);
	height: 90vh !important;
}

.close-btn {
    cursor: pointer;
    font-weight: bold;
    color: red;
}

.btn-download-modal {
    background: #0073aa;
    color: white !important;
    padding: 5px 15px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
}

/* Ajustes a tu lista */
.doc-item-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}

.btn-preview {
    background: #555;
    color: white;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
    margin-right: 10px;
}



.padron-docs-elegant {
    font-family: Arial, sans-serif;
    width: 100%;
    margin-top: 20px;
}

.doc-item-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.doc-item-wrapper:last-child {
    border-bottom: none;
}

.doc-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.doc-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: #A31E2A; /* Color Zapopan */
    color: white;
    font-size: 14px;
    font-weight: bold;
    border-radius: 4px;
    text-transform: uppercase;
    text-decoration: none !important;
}

.doc-text {
    flex: 1;
}

.doc-title {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.doc-meta {
    font-size: 12px;
    color: #666;
}

.doc-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* -----------------------------------------------------------
   ESTILOS DE LOS BOTONES DE LA LISTA
----------------------------------------------------------- */
.btn-preview,
.doc-action {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    text-decoration: none !important;
    white-space: nowrap; /* Imprescindible para que no se corte el texto */
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    height: 40px; /* Misma altura para ambos */
}

/* Botón Vista Previa (Gris oscuro) */
.btn-preview {
    background-color: #555;
    color: white !important;
}

.btn-preview:hover {
    background-color: #333;
}

/* Botón Descargar (Gris claro / Transparente) */
.doc-action {
    background-color: #e0e0e0;
    color: #333 !important;
}

.doc-action:hover {
    background-color: #ccc;
}


/* -----------------------------------------------------------
   ESTILOS DEL MODAL (VENTANA EMERGENTE)
----------------------------------------------------------- */
.modal-overlay {
    display: none; 
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.85); /* Fondo más oscuro */
    backdrop-filter: blur(2px); /* Un toque de desenfoque al fondo */
}

.modal-content {
    position: relative;
    margin: 3% auto;
    width: 90%; /* Más ancho para aprovechar el espacio */
    height: 85vh; /* 85% de la altura de la ventana */
    max-width: 1000px; /* No más de 1000px de ancho */
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 10px 20px;
    background: #f8f8f8;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
}

#pdfFrame {
    width: 100%;
    flex: 1; /* Ocupa el resto de la altura */
    border: none;
}

/* Botones dentro del Modal */
.close-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-weight: bold;
    color: #A31E2A; /* Color Cerrar Zapopan */
    font-size: 14px;
}

.close-btn:hover {
    color: #6a131a;
}

.close-btn span {
    font-size: 20px;
    line-height: 1;
}

.btn-download-modal {
    background-color: #0073aa; /* Color Descargar Modal WP */
    color: white !important;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
}

.btn-download-modal:hover {
    background-color: #005f8d;
}

