/* ======================================================
   GAZHAL - PUBLICACIONES DOF
   Versión limpia — sin duplicidades
====================================================== */


/* CONTENEDOR */

.gazhal-dof-container {
    max-width: 95%;
    margin: 20px auto;
    background: #ffffff;
    padding: 35px;
    border-radius: 6px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    font-family: Segoe UI, Arial, Helvetica, sans-serif;
}


/* HEADER */

.gazhal-dof-header {
    border-bottom: 2px solid #0093C9;
    padding-bottom: 12px;
    margin-bottom: 25px;
}

.gazhal-dof-origen {
    font-size: 13px;
    letter-spacing: .08em;
    color: #6c757d;
    margin-bottom: 6px;
    font-weight: 600;
}

.gazhal-dof-titulo {
    font-size: 22px;
    line-height: 1.45;
    color: #002856;
    font-weight: 600;
    margin-bottom: 6px;
    text-align: justify;
    text-justify: inter-word;
}

.gazhal-dof-fecha {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 20px;
    text-align: center;
}


/* ======================================================
   CONTENIDO DOF
   Reset de estilos inline que viene del #DivDetalleNota
====================================================== */

/* Contenedor artículo */
.gazhal-dof-contenido {
    font-size: 15px;
    line-height: 1.8;
    color: #333;
    overflow-wrap: break-word;
}

/* El div raíz (#DivDetalleNota) trae width:695px y padding inline */
.gazhal-dof-contenido > div {
    width: auto !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    position: static !important;
    overflow: visible !important;
    box-sizing: border-box;
}

/* Todos los divs internos */
.gazhal-dof-contenido div {
    font-family: Segoe UI, Arial, Helvetica, sans-serif !important;
    font-size: 15px !important;
    line-height: 1.8 !important;
    color: #333 !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

/* Spans: el DOF envuelve cada palabra en <span style="font-family:...">
   Reseteamos fuente, tamaño y color — pero NO font-weight para respetar negritas */
.gazhal-dof-contenido span {
    font-family: inherit !important;
    font-size: inherit !important;
    color: inherit !important;
    letter-spacing: normal !important;
}

/* Imágenes */
.gazhal-dof-contenido img {
    max-width: 100%;
    height: auto;
}

/* Ocultar encabezado azul del DOF que a veces viene en el HTML */
td[bgcolor="#495A7A"] {
    display: none;
}


/* ======================================================
   CLASES TIPOGRÁFICAS DEL DOF
   Uniformizadas con la tipografía de Gazhal
====================================================== */

.gazhal-dof-contenido .Titulo_1 {
    font-family: Segoe UI, Arial, Helvetica, sans-serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #002856 !important;
    border-bottom: 1.5px solid #002856;
    margin-top: 10px;
    margin-bottom: 10px;
    padding-bottom: 4px;
    text-align: justify;
}

.gazhal-dof-contenido .Titulo_2 {
    font-family: Segoe UI, Arial, Helvetica, sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #555 !important;
    border-top: 0.75px solid #ccc;
    padding-top: 4px;
    margin-bottom: 8px;
    text-align: justify;
}

.gazhal-dof-contenido .Texto,
.gazhal-dof-contenido .Normal,
.gazhal-dof-contenido .ROMANOS {
    font-family: Segoe UI, Arial, Helvetica, sans-serif !important;
    font-size: 15px !important;
    line-height: 1.8 !important;
    color: #333 !important;
    text-align: justify;
}

/* ANOTACION: centrado en mayúsculas — mantener intención del DOF */
.gazhal-dof-contenido .ANOTACION {
    font-family: Segoe UI, Arial, Helvetica, sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-align: center;
    color: #333 !important;
    margin: 12px 0;
}


/* ======================================================
   TABLAS
====================================================== */

.gazhal-dof-contenido table {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto;
    border-collapse: collapse;
    margin: 16px 0;
    box-sizing: border-box;
}

.gazhal-dof-contenido td,
.gazhal-dof-contenido th {
    border: 1px solid #dcdcdc !important;
    padding: 8px 10px !important;
    font-family: Segoe UI, Arial, Helvetica, sans-serif !important;
    font-size: 14px !important;
    color: #333 !important;
    white-space: normal !important;
}


/* ======================================================
   FOOTER
====================================================== */

.gazhal-dof-footer {
    margin-top: 30px;
    text-align: center;
}

.gazhal-dof-footer img {
    max-width: 100%;
    height: auto;
}


/* ======================================================
   RESPONSIVE — MÓVIL
====================================================== */

@media (max-width: 768px) {

    .gazhal-dof-container {
        padding: 20px;
        margin: 10px;
    }

    .gazhal-dof-titulo {
        font-size: 20px;
        line-height: 1.4;
    }

    .gazhal-dof-fecha {
        font-size: 13px;
    }

    .gazhal-dof-contenido {
        font-size: 16px;
        line-height: 1.8;
        white-space: normal;
    }

    .gazhal-dof-contenido div {
        font-size: 16px !important;
    }

}
.gazhal-dof-pdf-aviso {
    background: #fff8e1;
    border-left: 4px solid #f0ad4e;
    padding: 10px 16px;
    font-size: 14px;
    color: #856404;
    border-radius: 0 6px 6px 0;
    margin-bottom: 12px;
}

.gazhal-dof-pdf-visor {
    width: 100%;
    height: 85vh;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}

.gazhal-dof-pdf-visor iframe {
    width: 100%;
    height: 100%;
    border: none;
}