body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f5f6fa;
  margin: 0;
  padding: 0;
}
/* gif de carga */
.loader_bg {
     position: fixed;
     z-index: 9999999;
     background: #fff;
     width: 100%;
     height: 100%;
}

.loader {
     height: 100%;
     width: 100%;
     position: absolute;
     left: 0;
     top: 0;
     display: flex;
     justify-content: center;
     align-items: center;
}

.loader img {
     width: 280px;
}

header {
  text-align: left;
  margin-top: 0;
}

header .ura {
  color: #ebde26;
  font-weight: bold;
  margin-bottom: 0;
}

header h1 {
  color: #003399;
  font-size: 28px;
  margin-top: 5px;
}

.buscador {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  width: min(100%, 900px);
  margin: 24px auto 28px;
  padding: 0 24px;
  text-align: center;
}

.buscador label {
  font-weight: 600;
  color: #123568;
}

.buscador input,
.buscador select {
  min-width: 220px;
  padding: 9px 12px;
  border: 1px solid #cfd8e3;
  border-radius: 6px;
  background-color: #fff;
}
 /* diseño de tabla */
.table-custom {
     margin: 0px auto 50px;
     max-width: 900px;
 }
 .table-responsive {
     min-height: .01%;
     overflow-x: auto;
 }


form {
     margin-bottom: 20px;
 }
 

 /* 🔹 Enlaces dentro de la tabla */
#tablaResoluciones a {
  color: #000;              /* Texto negro */
  text-decoration: none;    /* Quita el subrayado */
  font-weight: 500;         /* Peso medio para mejor legibilidad */
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* 🔹 Efecto al pasar el cursor */
#tablaResoluciones a:hover {
  color: #003399;           /* Azul institucional al pasar el mouse */
  text-decoration: underline; /* Subrayado solo al hover */
}
  
 #tablaResoluciones tr:nth-child(even) {
     background: #f2f2f2;
 }
 
 #tablaResoluciones td, #tablaResoluciones th {
     padding: 12px;
     
          
 }
 
 #tablaResoluciones th {
     background-color: #154492;
     color: white;
     text-transform: uppercase;
     text-align: center;
          
 }
  
 .hide {
     display: none;
 }
 
 .red {
     color: Red;
 }
 
 #tablaResoluciones tr:hover {
     background-color: #e0e0e0;
     
 }

.dataTables_wrapper .dataTables_paginate {
  margin-top: 15px;
  text-align: center;
}

.dataTables_wrapper .dataTables_info {
  text-align: center;
  margin-top: 10px;
  color: #555;
}


/* 🔹 Botones de paginación */
.dataTables_wrapper .dataTables_paginate .paginate_button {
  background-color: #003399;   /* Azul institucional */
  color: #fff !important;      /* Texto blanco */
  border: 1px solid #003399;
  border-radius: 4px;
  padding: 5px 10px;
  margin: 2px;
  cursor: pointer;
}

/* 🔹 Hover (cuando pasas el mouse) */
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background-color: #ffd342;   /* Dorado al pasar el mouse */
  color: #000000 !important;      /* Texto negro */
  border: 1px solid #ffd342;
}

/* 🔹 Botón activo (página seleccionada) */
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background-color: #ffd342 !important; /* Dorado */
  color: #000 !important;
  border: 1px solid #ffd342;
}

/* Oculta el buscador por defecto de DataTables */
.dataTables_filter {
  display: none !important;
}

.container {
     max-width: 1172px;
}

#tablaResoluciones tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

#tablaResoluciones tbody tr:hover {
  background-color: #e6e9f2;
}

/* 🔹 Contenedor principal de la tabla */
.tabla-container {
  width: min(100%, 1120px);
  margin: 0 auto 50px;
  padding: 0 24px;
  text-align: center;
  display: flex;
  justify-content: center;
}

/* 🔹 Centrar la tabla en sí */
#tablaResoluciones {
  margin: 0 auto;
  width: 100%;
  border-collapse: collapse;
  box-shadow: 0 10px 30px rgba(8, 26, 51, 0.06);
}

/* Primera columna centrada */
#tablaResoluciones td:first-child,
#tablaResoluciones th:first-child {
  text-align: center;
  vertical-align: middle;
}

/* Segunda columna alineada a la izquierda */
#tablaResoluciones td:nth-child(2),
#tablaResoluciones th:nth-child(2) {
  text-align: left;
  vertical-align: middle;
}

/* Barra de navegación */
nav {
  background-color: #078bcc;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding-top: 10px;
  height: 80px;
  font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;
  width: 100%;
}

/* Elementos del menú */
nav a {
  display: inline-flex;
  align-items: center;
  color: #ffffff;
  text-decoration: none !important;
  padding: 15px 25px;
  font-size: 18px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  margin: 0;
}

/* Botón activo (INICIO) */
nav a.active {
  background-color: #eed818;
  color: #ffffff;
  margin-left: 20px;
}

/* Efecto hover */
nav a:hover {
  background-color: #078bcc;
  
}

/* Responsivo */
@media (max-width: 768px) {
  nav {
    flex-wrap: wrap;
  }

  nav a {
    flex: 1 1 100%;
    text-align: center;
    font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;
  }

  .container {
    margin: 10px;
    padding: 10px;
    max-width: none;
  }
  
  .left-section, .right-section {
    width: 100%;
    min-width: auto;
  }
  
  h2 {
    font-size: 15px;
    margin-bottom: 15px;
  }
  
  .upload-section {
    padding: 10px;
    margin-bottom: 15px;
  }
  
  .upload-section button {
    padding: 8px 16px;
    font-size: 14px;
  }
  
  table {
    font-size: 14px;
  }
  
  th, td {
    padding: 5px;
  }
  
  .preview {
    max-width: 100%;
    margin: 10px auto;
  }
  
  input[type="text"], input[type="file"] {
    padding: 8px;
    margin-bottom: 10px;
  }
  
  .submit-btn {
    padding: 8px 16px;
    font-size: 14px;
  }
  
  .captcha {
    margin-top: 15px;
  }
  
  .buscador {
    flex-direction: column;
    align-items: stretch;
    width: min(100%, 100%);
    padding: 0 16px;
  }
  
  .buscador label,
  .buscador input,
  .buscador select {
    width: 100%;
  }
  
  .buscador input,
  .buscador select {
    min-width: 0;
  }
  
  .tabla-container {
    width: 100%;
    padding: 0 16px;
  }
  
  #tablaResoluciones {
    width: 100%;
    display: block;
    overflow-x: auto;
  }
  
  #tablaResoluciones table,
  #tablaResoluciones thead,
  #tablaResoluciones tbody,
  #tablaResoluciones th,
  #tablaResoluciones td,
  #tablaResoluciones tr {
    display: block;
  }
  
  #tablaResoluciones tr {
    margin-bottom: 12px;
  }
  
  #tablaResoluciones td,
  #tablaResoluciones th {
    display: block;
    text-align: left;
    padding: 10px 12px;
  }
  
  #tablaResoluciones tr:nth-child(even) {
    background: transparent;
  }
  
  #tablaResoluciones th {
    background-color: transparent;
    color: var(--azul-900);
    text-transform: none;
    font-weight: 700;
    border-bottom: 1px solid #e0e0e0;
  }
  
  .table-responsive {
    overflow-x: auto;
    width: 100%;
  }
  
  header {
    padding: 10px 0;
  }
  
  header h1 {
    font-size: 20px;
  }
  
  footer {
    padding: 10px 0;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .container {
    margin: 5px;
    padding: 5px;
  }
  
  h2 {
    font-size: 18px;
  }
  
  .menu-item {
    padding: 15px 20px;
    font-size: 14px;
  }
  
  .upload-section button {
    padding: 6px 12px;
    font-size: 12px;
  }
  
  table {
    font-size: 12px;
  }
  
  th, td {
    padding: 4px;
  }
  
  input[type="text"], input[type="file"] {
    padding: 6px;
  }
  
  .submit-btn {
    padding: 6px 12px;
    font-size: 12px;
  }
  
  header h1 {
    font-size: 18px;
  }
  
  nav {
    height: 50px;
  }
  
  nav a {
    padding: 8px 10px;
    font-size: 14px;
  }
  
  footer {
    font-size: 10px;
  }
  
  .buscador {
    gap: 10px;
    padding: 0 12px;
  }
  
  .buscador label,
  .buscador input,
  .buscador select {
    width: 100%;
  }
  
  .tabla-container {
    padding: 0 12px;
  }
}

#tipoResolucion {
  padding: 6px;
  margin-left: 10px;
  border-radius: 4px;
  border: 1px solid #ccc;
}
