/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Estilo general del body */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
}

/* Barra de navegación */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #8B0000; /* rojo oscuro INAH */
    padding: 10px 20px;
    flex-wrap: wrap;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: rgb(189, 163, 70);
}

.logo-img {
    height: 40px;
    margin-right: 10px;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: bold;
}

/* Menú fijo horizontal */
.nav-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.nav-links li a {
    color: rgb(189, 163, 70);
    text-decoration: none;
    font-size: 0.95rem;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    display: block;
}

.nav-links li a:hover {
    background-color: #A52A2A; /* marrón rojizo */
}

/* Estilos de tabla */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

th, td {
    border: 1px solid black;
    padding: 5px;
    text-align: center;
    vertical-align: middle;
}

th {
    background-color: #f9f9f9;
    font-weight: bold;
}

.alto { height: 60px;}
.medio { height: 50px;}

.imagen-izquierda {
    position: absolute;
    width: 150px;
    height: auto;
    top: 10px;
    left: 40px;
}

.imagen-derecha {
    position: absolute;
    width: 70px;
    height: auto;
    top: 10px;
    right: 40px;
}

.imagen-izquierda2 {
    position: absolute;
    width: 250px;
    height: auto;
    top: 30px;
    left: 20px;
}

.imagen-derecha2 {
    position: absolute;
    width: 150px;
    height: auto;
    top: 30px;
    right: 60px;
}
.contenido-central {
    margin: 0 auto;
    max-width: 60%;
    position: relative;
    z-index: 1;
}

.titulo-formato {
    font-size: 10px;
    font-weight: bold;
    margin: 15px 0;
    text-decoration: underline;
}

.centrado { text-align: center; }

.folio {
    text-align: right;
    margin: 15px 0 25px;
}
.folio-label {
    font-weight: bold;
    display: inline-block;
    margin-right: 10px;
}
.folio-number {
    display: inline-block;
    border-bottom: 1px solid #000;
    padding-bottom: 2px;
    min-width: 150px;
    text-align: center;
}
.seccion {
    margin-bottom: 20px;
}
.titulo-seccion {
    font-weight: bold;
    text-decoration: underline;
    margin-bottom: 10px;
    text-transform: uppercase;
}
.lista-requisitos {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}
.lista-requisitos tr {
    border-bottom: 1px solid #000;
}
.lista-requisitos td {
    padding: 5px 0;
    vertical-align: top;
}
.nota {
    font-weight: bold;
    text-transform: uppercase;
    margin: 25px 0;
    text-align: center;
    border-top: 2px solid #000;
    padding-top: 8px;
    font-size: 10pt;
}
.area-comentarios {
    margin: 20px 0;
}
.titulo-comentarios {
    font-weight: bold;
    margin-bottom: 5px;
}
.cuadro-comentarios {
    width: 100%;
    height: 80px;
    border: 2px solid #000;
    margin-bottom: 20px;
}
.tabla-partidas {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}
.tabla-partidas, .tabla-partidas th, .tabla-partidas td {
    border: 2px solid #000;
}
.tabla-partidas th {
    font-weight: bold;
    text-align: center;
    background-color: #f0f0f0;
}
.tabla-partidas td {
    padding: 4px 4px;
    text-align: center;
}
.tabla-partidas .nombre {
    text-align: left;
}
.total-row {
    font-weight: bold;
    background-color: #f0f0f0;
}

body {
  font-family: Arial, sans-serif;
  font-size: 10pt;
  background-color: #f4f4f4;
  margin: 0;
  padding: 0;
}

.documento {
  background-color: white;
  width: 21.6cm;
  min-height: 27.94cm;
  margin: 0px auto;
  padding: 1cm;
  box-shadow: 0 0 0px rgba(0, 0, 0, 0.3);
  box-sizing: border-box;
  position: relative;
}

.encabezado {
  text-align: center;
  margin-bottom: 15px;
}

.titulo-principal {
  text-align: center;
  font-weight: bold;
  text-decoration: underline;
  margin: 25px;
  font-size: 12pt;
  text-transform: uppercase;
}

.folio {
  text-align: right;
  margin: 15px 0 25px;
}

.folio-label {
  font-weight: bold;
  margin-right: 10px;
}

.folio-number input {
  border: none;
  border-bottom: 1px solid #000;
  width: 150px;
  text-align: center;
  font-size: 10pt;
}

.titulo-seccion {
  font-weight: bold;
  text-decoration: underline;
  margin: 20px 0 10px;
  text-transform: uppercase;
}

.lista-requisitos {
  width: 100%;
  border-collapse: collapse;
}

.lista-requisitos td {
  padding:8px 8px;
}

.nota {
  font-weight: bold;
  text-transform: uppercase;
  margin: 25px 0;
  text-align: center;
  border-top: 2px solid #000;
  padding-top: 8px;
  font-size: 10pt;
}

.titulo-comentarios {
  font-weight: bold;
  margin-bottom: 5px;
}

.cuadro-comentarios {
  width: 100%;
  height: 80px;
  border: 2px solid #000;
  margin-bottom: 20px;
  resize: none;
  font-family: inherit;
  font-size: 10pt;
}

.tabla-partidas {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.tabla-partidas th,
.tabla-partidas td {
  border: 2px solid #000;
  padding: 4px;
  text-align: center;
}

.tabla-partidas th {
  background-color: #f0f0f0;
  font-weight: bold;
}

.tabla-partidas td.nombre {
  text-align: left;
}

.total-row {
  font-weight: bold;
  background-color: #f0f0f0;
}

.logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px; /* Espacio entre el logo y el texto */
  margin-bottom: 20px;
}

/* Agregar al final de tu CSS */
.botones-impresion, .botones-partidas {
    text-align: center;
    margin: 20px 0;
}

.botones-impresion button, .botones-partidas button {
    background-color: #8B0000;
    color: rgb(189, 163, 70);
    border: none;
    padding: 8px 15px;
    margin: 0 5px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.botones-impresion button:hover, .botones-partidas button:hover {
    background-color: #A52A2A;
}


@media print {
    body {
    margin: 0;
  }
  .documento {
    page-break-after: always;
    overflow: visible;
  }
    /* Ocultar elementos no deseados */
    .navbar, .botones-impresion, .botones-partidas {
        display: none !important;
    }

    /* Mantener colores de celdas resaltadas */
    .highlight-cell {
        background-color: #83e975 !important; /* Verde claro */
        -webkit-print-color-adjust: exact; /* Forzar impresión de colores en Chrome/Safari */
        print-color-adjust: exact; /* Estándar moderno */
    }

    /* Mantener colores en el texto de pesos en letras */
    #pesosALetras {
        color: #221af5 !important; /* Negro para mejor legibilidad */
        font-weight: bold !important;
    }

    /* Asegurar que los checkboxes se vean */
    input[type="checkbox"] {
        appearance: checkbox !important; /* Forzar apariencia de checkbox */
        -webkit-appearance: checkbox !important;

        
    }
}

tr.solo-vertical td,
tr.solo-vertical th {
    border-left: 1px solid black;
    border-right: 1px solid black;
    border-top: none;
    border-bottom: none;
}

/* Opcional: quitar borde izquierdo y derecho extremos */
tr.solo-vertical td:first-child,
tr.solo-vertical th:first-child {
    border-left: none;
}

tr.solo-vertical td:last-child,
tr.solo-vertical th:last-child {
    border-right: none;
}


.highlight-cell {
    background-color: #83e975; /* Amarillo claro */
    font-weight: bold;
}

/* Estilos para el menú desplegable */
        .dropdown {
            position: relative;
            display: inline-block;
        }
        
        .dropdown-content {
            display: none;
            position: absolute;
            background-color: #f9f9f9;
            min-width: 200px;
            box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
            z-index: 1;
            border-radius: 4px;
        }
        
        .dropdown-content a {
            color: #333;
            padding: 12px 16px;
            text-decoration: none;
            display: block;
            transition: background-color 0.3s;
        }
        
        .dropdown-content a:hover {
            background-color: #2c3e50;
            color: white;
        }
        
        .dropdown:hover .dropdown-content {
            display: block;
        }
        
        /* Mantener el menú abierto al pasar el ratón */
        .dropdown-content {
            pointer-events: auto;
        }
        
        /* Estilo para el enlace principal */
        .dropdown > a {
            display: inline-block;
            padding: 15px 20px;
        }

        .btn-buscar {
    background-color: #4CAF50;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.btn-buscar:hover {
    background-color: #45a049;
}