/* ==========================================================================
   TABLA DE CONTENIDOS
   1. Variables Globales
   2. Reset y Estilos Base
   3. Cabecera y Menú
   4. Componentes Generales (Botones y Utilidades)
   5. Módulos de Inicio (Slider e Información)
   6. Formularios (Incluye estados bloqueados)
   7. Panel de Administración
   8. Reportes y Filtros (Pestañas y Cuadrículas)
   9. Inicio de Sesión (Login)
   10. Pie de Página
   11. Media Queries (Adaptación a Móviles)
   ========================================================================== */

/* --- 1. Variables Globales --- */
:root {
  /* Paleta Institucional */
  --color-primario: #006341; /* Verde */
  --color-secundario: #58595B; /* Gris */
  --color-acento: #C5A866; /* Dorado */
  --color-peligro: #dc3545; /* Rojo para alertas/logout */
  
  /* Radios y Espaciados */
  --radio-pildora: 50px;
}

/* --- 2. Reset y Estilos Base --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
  line-height: 1.6;
  color: var(--color-secundario);
  background-image: linear-gradient(135deg, #f4fffb 0%, #e9fff8 48%, #ffffff 100%);
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center;
  min-height: 100vh;
}

button, input, textarea, select {
  font-family: inherit;
}

button {
  font: inherit;
}

/* --- 3. Cabecera y Menú --- */
header {
  background-color: var(--color-primario);
  color: white;
  padding: 10px 20px;
  position: relative;
  z-index: 10;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo img {
  height: 50px;
}

.menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

.menu {
  display: flex;
  list-style: none;
  gap: 15px;
}

.menu li a {
  color: white;
  text-decoration: none;
  padding: 8px 12px;
  display: block;
  transition: background-color 0.3s ease, border-radius 0.3s ease;
}

.menu li a:hover {
  background-color: var(--color-acento);
  border-radius: 4px;
}

/* Clase específica para Cerrar Sesión en el menú superior */
.menu li a.menu-logout {
  color: #ffb3b3; /* Un rojo claro para que resalte sobre el verde sin lastimar la vista */
  font-weight: bold;
}

.menu li a.menu-logout:hover {
  background-color: var(--color-peligro);
  color: white;
  border-radius: 4px;
}

/* --- 4. Componentes Generales (Botones y Utilidades) --- */
.btn-pildora {
  background-color: var(--color-primario);
  color: white;
  border: 2px solid var(--color-primario);
  padding: 12px 28px;
  cursor: pointer;
  border-radius: var(--radio-pildora);
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.btn-pildora:hover {
  background-color: var(--color-acento);
  border-color: var(--color-acento);
  color: white;
  box-shadow: 0 4px 15px rgba(197, 168, 102, 0.4);
}

.btn-secundario {
  background-color: var(--color-secundario);
  border-color: var(--color-secundario);
}

.btn-secundario:hover {
  background-color: var(--color-acento);
  border-color: var(--color-acento);
  color: white;
  box-shadow: 0 4px 15px rgba(197, 168, 102, 0.4);
}

.capitalize { text-transform: capitalize; }
.uppercase { text-transform: uppercase; }

/* --- 5. Módulos de Inicio (Slider e Información) --- */
.slider-container {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 80px auto 40px auto;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.slider-wrapper {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slider-wrapper img {
  width: 100%;
  flex-shrink: 0;
  object-fit: cover;
  height: 300px;
}

.slider-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 10px;
  box-sizing: border-box;
}

.slider-nav button {
  background-color: rgba(0, 99, 65, 0.8);
  border: none;
  color: white;
  font-size: 24px;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.slider-nav button:hover {
  background-color: rgba(0, 99, 65, 1);
}

.contenedor-info {
  background-color: rgba(0, 58, 38, 0.88);
  color: white;
  max-width: 1000px;
  margin: 40px auto;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  text-align: center;
}

.contenedor-info .titulo {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
  color: white;
}

.contenedor-info p {
  margin-bottom: 20px;
}

/* --- 6. Formularios --- */
.contenedor-formulario {
  max-width: 720px;
  margin: 40px auto;
  background-color: rgba(255, 255, 255, 0.95);
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border-top: 6px solid var(--color-primario);
}

.contenedor-formulario h2 {
  text-align: center;
  margin-bottom: 30px;
  color: var(--color-primario);
  font-weight: 600;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--color-primario);
  font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group input[type="password"],
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  background-color: #fefefe;
  transition: border 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
  color: var(--color-secundario);
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--color-primario);
  outline: none;
  box-shadow: 0 0 5px rgba(0, 99, 65, 0.2);
}

.form-group input:disabled,
.form-group textarea:disabled,
.form-group select:disabled {
  background-color: #e9ecef;
  color: #555;
  font-weight: bold;
  border: 1px solid #ced4da;
  cursor: not-allowed;
  opacity: 1;
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.full-width {
  grid-column: 1 / -1;
}

.submit-button {
  grid-column: 1 / -1;
  text-align: center;
  margin-top: 30px;
}

/* --- 7. Panel de Administración --- */
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.95);
  padding: 20px 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  max-width: 1400px;
  margin: 30px auto;
  border-left: 6px solid var(--color-primario);
}

.admin-header .info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.admin-header img {
  height: 60px;
}

.admin-header h1 {
  font-size: 1.5rem;
  color: var(--color-primario);
  margin: 0;
}

.admin-header p {
  margin: 0;
  color: var(--color-secundario);
}

/* Botón de Cerrar Sesión en panel admin */
.btn-salir {
  color: var(--color-peligro);
  text-decoration: none;
  font-weight: bold;
  padding: 10px 24px;
  border: 2px solid var(--color-peligro);
  border-radius: var(--radio-pildora);
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-salir:hover {
  background-color: var(--color-peligro);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 0, 25, 0.4);
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto 40px auto;
}

.admin-modulo {
  background-color: rgba(255, 255, 255, 0.95);
  padding: 40px 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  border-top: 4px solid var(--color-primario);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.admin-modulo figure { margin-bottom: 20px; }
.admin-modulo img { height: 70px; object-fit: contain; }
.admin-modulo h3 { color: var(--color-primario); margin-bottom: 15px; font-size: 1.2rem; }
.admin-modulo p { color: var(--color-secundario); font-size: 14px; margin-bottom: 25px; }

/* --- 8. Reportes y Filtros (Pestañas y Cuadrículas) --- */
.tabs-container {
  display: flex;
  gap: 5px;
  margin-bottom: 0; 
  padding-left: 10px;
  max-width: 1400px; 
  margin: 0 auto;
  overflow-x: auto; 
}

.tab-button {
  padding: 12px 25px;
  background-color: #d1d8dd; 
  border: none;
  border-radius: 8px 8px 0 0; 
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  color: var(--color-secundario);
  transition: all 0.2s ease;
}

.tab-button:hover { background-color: #c0c6ca; }

.tab-button.active {
  background-color: rgba(255, 255, 255, 0.95);
  color: var(--color-primario); 
  border-top: 4px solid var(--color-primario);
  box-shadow: 0 -2px 5px rgba(0,0,0,0.05);
  z-index: 2; 
}

.filtros {
  background-color: rgba(255, 255, 255, 0.95);
  padding: 20px;
  border-radius: 0 8px 8px 8px;
  margin: 0 auto 30px auto;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  position: relative;
  z-index: 1;
  max-width: 1400px; 
}

.filtros input[type="text"],
.filtros input[type="date"],
.filtros select {
  padding: 10px 15px;
  margin: 5px;
  border: 1px solid #ccc;
  border-radius: var(--radio-pildora);
  font-size: 14px;
  outline: none;
  font-family: inherit;
  color: var(--color-secundario);
}

.grid-resultados {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1400px; 
  margin: 0 auto;
}

/* --- 9. Inicio de Sesión (Login) --- */
.login-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

.login-container {
  background-color: rgba(255, 255, 255, 0.95);
  padding: 2.5rem;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 380px;
  text-align: center;
  border-top: 6px solid var(--color-primario);
}

.login-container .logos {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin-bottom: 1.5rem;
}

.login-container .logos img { height: 45px; max-width: 45%; object-fit: contain; }
.login-container h2 { color: var(--color-primario); margin-bottom: 1.5rem; font-weight: bold; font-size: 1.5rem; }

/* --- 10. Pie de Página --- */
footer.pie-pagina {
  background: linear-gradient(135deg, var(--color-primario), #00452d);
  color: white;
  padding: 20px;
  margin-top: 40px;
  box-shadow: 0 -10px 30px rgba(0, 64, 42, 0.08);
}

.pie-pagina .grupo-1 {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  margin-bottom: 10px;
}

.pie-pagina .box { flex: 1 1 250px; margin: 10px; }
.pie-pagina .box h2 { margin-bottom: 10px; font-size: 18px; }

.social-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.social-icons a {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.24);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.social-icons a:hover {
  background-color: var(--color-acento);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.16);
}

.social-icons svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.pie-pagina .grupo-2 {
  text-align: center;
  font-size: 14px;
  padding-top: 15px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* --- 11. Media Queries --- */
@media (max-width: 768px) {
  .menu {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: var(--color-primario);
    padding-top: 10px;
  }
  .menu li { text-align: center; border-top: 1px solid rgba(255,255,255,0.1); }
  .menu-toggle { display: block; color: white; }
  .menu.active { display: flex; }
  .slider-wrapper img { height: 200px; }
  .admin-header { flex-direction: column; text-align: center; gap: 20px; }
  .admin-header .info { flex-direction: column; }
  .pie-pagina .grupo-1 { flex-direction: column; align-items: center; text-align: center; }
}

@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr; }
  .contenedor-formulario { margin: 20px; padding: 20px; }
  .filtros input[type="text"], .filtros input[type="date"], .filtros select { width: 100%; margin: 5px 0; }
}


/* Ajustes para los iconos SVG */
.svg-container svg {
    width: 60px; /* Tamaño del icono */
    height: 60px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.admin-modulo:hover svg {
    transform: scale(1.1); /* Ligera animación al pasar el mouse */
    stroke: #006400; /* Cambio a verde institucional al hover */
}
/* --- Ajustes de limpieza v1 --- */
.menu-toggle {
  background: transparent;
  border: 0;
  color: white;
}


.mensaje-confirmacion,
.mensaje-error {
  max-width: 1000px;
  margin: 20px auto;
  padding: 14px 18px;
  border-radius: 8px;
  background: #e6f4ea;
  border: 1px solid var(--color-primario);
  color: var(--color-primario);
  font-weight: 600;
}

.mensaje-error {
  background: #fff0f0;
  border-color: var(--color-peligro);
  color: var(--color-peligro);
}

.tabla-personalizada {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
}

.tabla-personalizada th,
.tabla-personalizada td {
  padding: 12px;
  border-bottom: 1px solid #e9ecef;
  text-align: left;
}

.tabla-personalizada th {
  background: var(--color-primario);
  color: white;
}

.acciones {
  display: flex;
  gap: 12px;
  align-items: center;
}

.acciones img {
  width: 22px;
  height: 22px;
  display: block;
}

/* --- Corrección visual v5: filtros y tarjetas de reportes --- */
body.admin-page.reportes-page {
  background-image: linear-gradient(135deg, #f4fffb 0%, #e9fff8 48%, #ffffff 100%);
  background-attachment: fixed;
  color: #263238;
}

.reportes-page .admin-header,
.reportes-page .tabs-container,
.reportes-page .filtros,
.reportes-page .grid-resultados {
  width: min(1400px, calc(100% - 48px));
}

.reportes-page .admin-header {
  background: #ffffff;
  border-left: 6px solid var(--color-primario);
  box-shadow: 0 18px 40px rgba(0, 64, 42, 0.08);
}

.reportes-page .tabs-container {
  padding-left: 8px;
}

.reportes-page .tab-button {
  background: #eef3f1;
  color: #5d6b67;
}

.reportes-page .tab-button.active {
  background: #ffffff;
  color: var(--color-primario);
  border-top: 4px solid var(--color-primario);
}

.reportes-page .filtros {
  background: #ffffff;
  padding: 24px;
  border-radius: 0 16px 16px 16px;
  box-shadow: 0 18px 40px rgba(0, 64, 42, 0.08);
  border: 1px solid rgba(0, 99, 65, 0.08);
}

.filtros-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid #e7efec;
  color: #465651;
}

.filtros-header #texto_anio {
  color: var(--color-primario);
  font-size: 1.25em;
}

.filtros-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 16px;
  align-items: end;
}

.campo-filtro {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.campo-filtro-lg {
  grid-column: span 2;
}

.campo-filtro label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-primario);
  letter-spacing: 0.02em;
}

.reportes-page .filtros input[type="text"],
.reportes-page .filtros input[type="date"],
.reportes-page .filtros select {
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid #cbd8d3;
  border-radius: 12px;
  background: #fbfdfc;
  color: #263238;
  font-size: 14px;
  box-shadow: none;
}

.reportes-page .filtros input::placeholder {
  color: #8fa19b;
}

.reportes-page .filtros input:focus,
.reportes-page .filtros select:focus {
  border-color: var(--color-primario);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 99, 65, 0.12);
}

.filtros-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
}

.acciones-busqueda,
.export-form {
  display: flex;
  align-items: center;
  gap: 10px;
}

.reportes-page .btn-pildora {
  min-height: 44px;
  padding: 10px 26px;
  border-radius: 999px;
}

.reportes-page .btn-exportar {
  background: #1f8f57;
  border-color: #1f8f57;
}

.reportes-page .btn-exportar:hover {
  background: var(--color-primario);
  border-color: var(--color-primario);
}

.reportes-page .grid-resultados {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 22px;
  margin: 0 auto 48px auto;
}

.card.reporte-card {
  background: #ffffff;
  color: #263238;
  padding: 22px;
  border-radius: 16px;
  border: 1px solid rgba(0, 99, 65, 0.1);
  border-top: 5px solid var(--color-primario);
  box-shadow: 0 18px 36px rgba(0, 64, 42, 0.10);
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.reporte-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 4px;
}

.reporte-card-header h2 {
  margin: 0;
  color: #263238;
  font-size: 1rem;
  line-height: 1.35;
}

.reporte-card-header h2 span {
  color: #e55353;
}

.estatus-badge {
  color: #ffffff;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
}

.reporte-persona {
  color: var(--color-primario);
  font-size: 1.05rem;
  line-height: 1.35;
  margin: 4px 0 8px;
}

.info-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 8px;
  border-top: 1px solid #edf2f0;
  padding-top: 9px;
}

.info-label {
  color: #60706b;
  font-weight: 700;
}

.info-value {
  color: #263238;
  overflow-wrap: anywhere;
}

.serie {
  color: #667a74;
}

.reporte-acciones {
  margin-top: auto;
  padding-top: 16px;
  justify-content: flex-end;
}

.reporte-acciones a {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #f1f7f4;
  border: 1px solid #dce9e4;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.reporte-acciones a:hover {
  transform: translateY(-2px);
  background: #ffffff;
  box-shadow: 0 8px 16px rgba(0, 64, 42, 0.12);
}

.reporte-acciones img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.sin-resultados {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
  background: #ffffff;
  border: 1px solid rgba(0, 99, 65, 0.1);
  border-radius: 16px;
  color: #52645f;
  box-shadow: 0 18px 36px rgba(0, 64, 42, 0.08);
}

.sin-resultados h3 {
  color: var(--color-primario);
  margin-bottom: 8px;
}

@media (max-width: 1100px) {
  .filtros-grid {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }

  .campo-filtro-lg {
    grid-column: span 2;
  }
}

@media (max-width: 700px) {
  .reportes-page .admin-header,
  .reportes-page .tabs-container,
  .reportes-page .filtros,
  .reportes-page .grid-resultados {
    width: min(100% - 28px, 1400px);
  }

  .reportes-page .admin-header {
    margin-top: 18px;
  }

  .filtros-grid {
    grid-template-columns: 1fr;
  }

  .campo-filtro-lg {
    grid-column: span 1;
  }

  .filtros-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .acciones-busqueda,
  .export-form {
    width: 100%;
  }

  .acciones-busqueda .btn-pildora,
  .export-form .btn-pildora {
    flex: 1;
    text-align: center;
  }

  .reportes-page .grid-resultados {
    grid-template-columns: 1fr;
  }

  .reporte-card-header {
    flex-direction: column;
  }

  .info-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

/* --- Ajuste visual v7: header y footer minimalistas --- */
html,
body,
button,
input,
textarea,
select {
  font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
}

.site-header {
  background: transparent;
  color: #263238;
  padding: 14px 20px 6px;
  position: relative;
  z-index: 50;
}

.site-header .navbar {
  width: min(1180px, calc(100% - 20px));
  min-height: 58px;
  margin: 0 auto;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: nowrap;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 99, 65, 0.1);
  border-left: 4px solid var(--color-primario);
  border-radius: 18px;
  box-shadow: 0 16px 34px rgba(0, 64, 42, 0.08);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
  color: #263238;
}

.brand-logo {
  width: auto;
  height: 38px;
  display: block;
  object-fit: contain;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.08;
  min-width: 0;
}

.brand-copy strong {
  color: var(--color-primario);
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.brand-copy small {
  color: #687873;
  font-size: 0.76rem;
  white-space: nowrap;
}

.site-header .menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-header .menu li a {
  color: #43514d;
  text-decoration: none;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.site-header .menu li a:hover,
.site-header .menu li a:focus-visible {
  background: #ecf8f2;
  color: var(--color-primario);
  transform: translateY(-1px);
  outline: none;
}

.site-header .menu li a.menu-login {
  background: var(--color-primario);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(0, 99, 65, 0.18);
}

.site-header .menu li a.menu-login:hover,
.site-header .menu li a.menu-login:focus-visible {
  background: #004f35;
  color: #ffffff;
}

.site-header .menu li a.menu-logout {
  background: #fff2f2;
  color: var(--color-peligro);
}

.site-header .menu li a.menu-logout:hover,
.site-header .menu li a.menu-logout:focus-visible {
  background: var(--color-peligro);
  color: #ffffff;
}

.site-header .menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(0, 99, 65, 0.14);
  border-radius: 12px;
  background: #ffffff;
  color: var(--color-primario);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.site-header .menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  display: block;
}

.admin-header {
  padding: 14px 18px;
  border-radius: 18px;
  margin: 22px auto 24px;
  border-left-width: 4px;
  box-shadow: 0 16px 34px rgba(0, 64, 42, 0.08);
}

.admin-header .info {
  gap: 12px;
}

.admin-header img {
  height: 42px;
}

.admin-header h1 {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.18;
}

.admin-header p {
  font-size: 0.92rem;
}

footer.pie-pagina.site-footer {
  background: transparent;
  color: #40504b;
  padding: 0 20px 20px;
  margin-top: 42px;
  box-shadow: none;
}

.site-footer .footer-shell {
  width: min(1180px, calc(100% - 20px));
  margin: 0 auto;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 99, 65, 0.1);
  border-left: 4px solid var(--color-primario);
  border-radius: 18px;
  box-shadow: 0 16px 34px rgba(0, 64, 42, 0.08);
  backdrop-filter: blur(10px);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #263238;
  text-decoration: none;
  min-width: 0;
}

.footer-brand img {
  height: 38px;
  width: auto;
  display: block;
  object-fit: contain;
}

.footer-brand span {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.footer-brand strong {
  color: var(--color-primario);
  font-size: 0.98rem;
}

.footer-brand small {
  color: #687873;
  font-size: 0.78rem;
}

.footer-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: #687873;
  font-size: 0.86rem;
}

.footer-contact a,
.footer-contact span {
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.footer-contact a:hover,
.footer-contact a:focus-visible {
  color: var(--color-primario);
  outline: none;
}

.footer-contact a:not(:last-child)::after,
.footer-contact span:not(:last-child)::after {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-left: 12px;
  border-radius: 50%;
  background: #cbd8d3;
  vertical-align: middle;
}

.site-footer .social-icons {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
}

.social-icons .social-link {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #e2ece8;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 8px 16px rgba(0, 64, 42, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.social-icons .social-link:hover,
.social-icons .social-link:focus-visible {
  background: #ffffff;
  border-color: rgba(0, 99, 65, 0.28);
  box-shadow: 0 12px 22px rgba(0, 64, 42, 0.12);
  transform: translateY(-2px) scale(1.02);
  outline: none;
}

.social-icons .social-link svg {
  width: 22px;
  height: 22px;
  fill: none;
  display: block;
}

.site-footer .footer-bottom {
  width: min(1180px, calc(100% - 20px));
  margin: 8px auto 0;
  padding: 0 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border-top: 0;
  color: #71827c;
  font-size: 0.8rem;
}

.site-footer .footer-bottom a {
  color: var(--color-primario);
  text-decoration: none;
  font-weight: 700;
}

.site-footer .footer-bottom a:hover,
.site-footer .footer-bottom a:focus-visible {
  text-decoration: underline;
  outline: none;
}

/* El footer anterior usaba cajas grandes; estas reglas las neutralizan en la versión compacta. */
.site-footer .grupo-1,
.site-footer .grupo-2,
.site-footer .box,
.site-footer figure {
  margin: 0;
  padding: 0;
}

@media (max-width: 900px) {
  .site-header {
    padding: 10px 12px 4px;
  }

  .site-header .navbar {
    width: 100%;
    flex-wrap: wrap;
  }

  .site-header .menu-toggle {
    display: inline-flex;
  }

  .site-header .menu {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding-top: 8px;
    background: transparent;
  }

  .site-header .menu.active {
    display: flex;
  }

  .site-header .menu li {
    text-align: left;
    border-top: 0;
  }

  .site-header .menu li a {
    width: 100%;
    justify-content: flex-start;
    padding: 11px 12px;
    background: #f7fbf9;
  }

  .site-footer .footer-shell {
    width: 100%;
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .site-footer .social-icons {
    justify-content: center;
  }

  .site-footer .footer-bottom {
    width: 100%;
    flex-direction: column;
    text-align: center;
    gap: 2px;
  }
}

@media (max-width: 520px) {
  .brand-copy small {
    display: none;
  }

  .brand-logo {
    height: 34px;
  }

  .site-header .navbar,
  .site-footer .footer-shell {
    border-radius: 16px;
  }

  .footer-contact {
    flex-direction: column;
    gap: 4px;
  }

  .footer-contact a::after,
  .footer-contact span::after {
    display: none !important;
  }
}


/* --- Ajuste visual v8: encabezado institucional unificado y footer sobrio --- */
body {
  background:
    radial-gradient(circle at 8% 0%, rgba(0, 99, 65, 0.10), transparent 28rem),
    linear-gradient(135deg, #f4fffb 0%, #ecfff8 46%, #ffffff 100%);
}

.site-header.institutional-header {
  position: sticky;
  top: 0;
  z-index: 80;
  padding: 0;
  color: #263238;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(0, 99, 65, 0.12);
  box-shadow: 0 10px 24px rgba(0, 64, 42, 0.08);
  backdrop-filter: blur(12px);
}

.institutional-ribbon,
.footer-ribbon {
  height: 5px;
  width: 100%;
  background: linear-gradient(90deg, #006341 0%, #009a63 52%, #58595b 100%);
}

.site-header .institutional-navbar {
  width: min(1240px, calc(100% - 48px));
  min-height: 78px;
  margin: 0 auto;
  padding: 10px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: nowrap;
  background: transparent;
  border: 0;
  border-left: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.institutional-brand {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-width: 0;
  color: #263238;
  text-decoration: none;
}

.brand-mark {
  min-width: 178px;
  height: 58px;
  padding-right: 16px;
  border-right: 1px solid rgba(0, 99, 65, 0.18);
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark .brand-logo {
  display: block;
  width: auto;
  object-fit: contain;
}

.brand-logo-utsem {
  height: 48px;
  max-width: 82px;
}

.brand-logo-micpu {
  height: 40px;
  max-width: 92px;
}

.institutional-brand .brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.08;
  min-width: 0;
}

.brand-eyebrow {
  color: var(--color-primario);
  font-size: clamp(0.86rem, 1.6vw, 1.08rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.institutional-brand .brand-copy strong {
  color: #1f2d29;
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  letter-spacing: -0.02em;
}

.institutional-brand .brand-copy small {
  color: #647570;
  font-size: 0.86rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-header .menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}

.site-header .menu li a {
  position: relative;
  color: #3f4e49;
  text-decoration: none;
  padding: 10px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  font-size: 0.93rem;
  font-weight: 700;
  line-height: 1;
  transition: color 0.18s ease, background 0.18s ease;
}

.site-header .menu li a::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  border-radius: 999px;
  background: var(--color-primario);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.18s ease;
}

.site-header .menu li a:hover,
.site-header .menu li a:focus-visible {
  color: var(--color-primario);
  background: rgba(0, 99, 65, 0.05);
  transform: none;
  outline: none;
}

.site-header .menu li a:hover::after,
.site-header .menu li a:focus-visible::after {
  transform: scaleX(1);
}

.site-header .menu li a.menu-login,
.site-header .menu li a.menu-logout {
  margin-left: 6px;
  padding: 10px 14px;
  border-radius: 8px;
}

.site-header .menu li a.menu-login {
  background: var(--color-primario);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(0, 99, 65, 0.15);
}

.site-header .menu li a.menu-login::after,
.site-header .menu li a.menu-logout::after {
  display: none;
}

.site-header .menu li a.menu-login:hover,
.site-header .menu li a.menu-login:focus-visible {
  background: #004f35;
  color: #ffffff;
}

.site-header .menu li a.menu-logout {
  background: #fff1f1;
  color: var(--color-peligro);
}

.site-header .menu li a.menu-logout:hover,
.site-header .menu li a.menu-logout:focus-visible {
  background: var(--color-peligro);
  color: #ffffff;
}

.site-header .menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(0, 99, 65, 0.16);
  border-radius: 8px;
  background: #ffffff;
  color: var(--color-primario);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.site-header .menu-toggle span {
  width: 19px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  display: block;
}

.admin-header.page-heading,
.admin-header {
  width: min(1240px, calc(100% - 48px));
  margin: 26px auto 24px;
  padding: 0 0 14px;
  border: 0;
  border-bottom: 1px solid rgba(0, 99, 65, 0.14);
  border-left: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.admin-header .info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-header .info::before {
  content: '';
  width: 5px;
  height: 46px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--color-primario), #19b879);
  flex: 0 0 auto;
}

.admin-header img {
  height: 42px;
  width: auto;
  object-fit: contain;
}

.admin-header h1 {
  color: var(--color-primario);
  font-size: clamp(1.25rem, 2.3vw, 1.75rem);
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.035em;
}

.admin-header p {
  color: #5f706b;
  font-size: 0.95rem;
  margin: 3px 0 0;
}

.admin-header .logout {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

footer.pie-pagina.site-footer.institutional-footer {
  margin-top: 56px;
  padding: 0;
  color: #eaf7f2;
  background: #003a26;
  box-shadow: 0 -12px 28px rgba(0, 64, 42, 0.10);
}

.site-footer .footer-shell {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 24px 0 18px;
  display: grid;
  grid-template-columns: minmax(260px, 1.25fr) minmax(280px, 1fr) auto;
  align-items: center;
  gap: 28px;
  background: transparent;
  border: 0;
  border-left: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.site-footer .footer-brand {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  color: #ffffff;
  text-decoration: none;
}

.site-footer .footer-brand img {
  height: 54px;
  width: auto;
  max-width: 112px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.22));
}

.site-footer .footer-brand span {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.site-footer .footer-brand strong {
  color: #ffffff;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.site-footer .footer-brand small {
  color: #b6d8cc;
  font-size: 0.86rem;
}

.site-footer .footer-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: #cfe6dd;
  font-size: 0.88rem;
}

.site-footer .footer-contact a,
.site-footer .footer-contact span {
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.site-footer .footer-contact a:hover,
.site-footer .footer-contact a:focus-visible {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 4px;
  outline: none;
}

.site-footer .footer-contact a:not(:last-child)::after,
.site-footer .footer-contact span:not(:last-child)::after {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-left: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  vertical-align: middle;
}

.site-footer .social-icons {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
}

.social-icons .social-link {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.14);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.social-icons .social-link:hover,
.social-icons .social-link:focus-visible {
  background: #ffffff;
  border-color: #ffffff;
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.20);
  transform: translateY(-3px);
  outline: none;
}

.social-icons .social-link svg {
  width: 23px;
  height: 23px;
  fill: none;
  display: block;
}

.site-footer .footer-bottom {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 12px 0 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: #b6d8cc;
  font-size: 0.82rem;
}

.site-footer .footer-bottom a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
}

.site-footer .footer-bottom a:hover,
.site-footer .footer-bottom a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
  outline: none;
}

.header-status {
  border-radius: 0 !important;
  border-left: 5px solid var(--color-primario);
  box-shadow: 0 14px 28px rgba(0, 64, 42, 0.09);
}

.header-status img {
  height: 52px !important;
}

@media (max-width: 1080px) {
  .site-header .institutional-navbar {
    width: min(100% - 28px, 1240px);
    gap: 16px;
  }

  .brand-mark {
    min-width: 150px;
  }

  .brand-logo-utsem {
    height: 42px;
    max-width: 74px;
  }

  .brand-logo-micpu {
    height: 36px;
    max-width: 78px;
  }

  .site-header .menu li a {
    padding-inline: 9px;
    font-size: 0.9rem;
  }
}

@media (max-width: 900px) {
  .site-header.institutional-header {
    position: sticky;
  }

  .site-header .institutional-navbar {
    width: calc(100% - 24px);
    min-height: 66px;
    flex-wrap: wrap;
    padding: 8px 0;
  }

  .institutional-brand {
    gap: 12px;
    max-width: calc(100% - 58px);
  }

  .brand-mark {
    min-width: auto;
    height: 50px;
    padding-right: 10px;
    gap: 8px;
  }

  .brand-logo-utsem {
    height: 38px;
    max-width: 66px;
  }

  .brand-logo-micpu {
    height: 32px;
    max-width: 70px;
  }

  .brand-eyebrow {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .institutional-brand .brand-copy small {
    display: none;
  }

  .site-header .menu-toggle {
    display: inline-flex;
  }

  .site-header .menu {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px 0 2px;
    background: transparent;
  }

  .site-header .menu.active {
    display: flex;
  }

  .site-header .menu li {
    width: 100%;
    text-align: left;
  }

  .site-header .menu li a,
  .site-header .menu li a.menu-login,
  .site-header .menu li a.menu-logout {
    width: 100%;
    justify-content: flex-start;
    margin-left: 0;
    padding: 12px;
    border-radius: 8px;
    background: rgba(0, 99, 65, 0.05);
  }

  .site-header .menu li a.menu-login {
    color: #ffffff;
    background: var(--color-primario);
  }

  .site-header .menu li a.menu-logout {
    background: #fff1f1;
  }

  .admin-header.page-heading,
  .admin-header {
    width: calc(100% - 24px);
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer .footer-shell,
  .site-footer .footer-bottom {
    width: calc(100% - 28px);
  }

  .site-footer .footer-shell {
    grid-template-columns: 1fr;
    justify-items: start;
    text-align: left;
    gap: 16px;
  }

  .site-footer .footer-contact {
    justify-content: flex-start;
  }

  .site-footer .social-icons {
    justify-content: flex-start;
  }

  .site-footer .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

@media (max-width: 560px) {
  .institutional-brand {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .brand-mark {
    border-right: 0;
    border-bottom: 1px solid rgba(0, 99, 65, 0.14);
    padding: 0 0 6px;
    height: auto;
  }

  .brand-logo-utsem {
    height: 34px;
  }

  .brand-logo-micpu {
    height: 28px;
  }

  .brand-eyebrow {
    font-size: 0.9rem;
  }

  .institutional-brand .brand-copy strong {
    font-size: 0.96rem;
  }

  .admin-header .info {
    align-items: flex-start;
  }

  .admin-header img {
    display: none;
  }

  .footer-contact {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .footer-contact a::after,
  .footer-contact span::after {
    display: none !important;
  }
}

/* --- Ajuste visual v9: barra institucional compacta + footer fijo al fondo --- */
:root {
  --utsem-verde-profundo: #003f2a;
  --utsem-verde: #006341;
  --utsem-verde-vivo: #0a8f61;
  --utsem-verde-claro: #e8f5ef;
  --utsem-gris: #58595b;
  --utsem-gris-suave: #eef2f0;
  --utsem-tinta: #25352f;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--utsem-tinta);
  background:
    radial-gradient(circle at 9% -5%, rgba(0, 99, 65, 0.16), transparent 26rem),
    radial-gradient(circle at 96% 7%, rgba(88, 89, 91, 0.13), transparent 22rem),
    linear-gradient(180deg, #edf8f3 0%, #f8fbf9 42%, #e9f1ed 100%) !important;
}

.site-header,
.status-header {
  flex: 0 0 auto;
}

.status-header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0 !important;
  color: #ffffff;
  background: var(--utsem-verde-profundo) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 10px 26px rgba(0, 63, 42, 0.22) !important;
  backdrop-filter: none !important;
}

.status-header-line {
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, var(--utsem-verde) 0%, #12a871 52%, var(--utsem-gris) 100%);
}

.status-navbar {
  width: min(1240px, calc(100% - 48px));
  min-height: 68px;
  margin: 0 auto;
  padding: 8px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: nowrap;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.status-brand {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  color: #ffffff;
  text-decoration: none;
}

.status-brand-logo {
  width: 68px;
  min-width: 68px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-right: 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.status-brand-logo img {
  max-width: 64px;
  max-height: 48px;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.22));
}

.status-brand-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.12;
}

.status-brand-copy strong {
  color: #ffffff;
  font-size: clamp(0.98rem, 1.55vw, 1.16rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-brand-copy small {
  color: #b8d8cc;
  font-size: 0.86rem;
  margin-top: 2px;
}

.status-header .menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}

.status-header .menu li a {
  position: relative;
  color: #d8ece5 !important;
  text-decoration: none;
  padding: 10px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
  background: transparent !important;
  transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.status-header .menu li a::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 5px;
  height: 2px;
  border-radius: 999px;
  background: #8bdcbd;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.18s ease;
}

.status-header .menu li a:hover,
.status-header .menu li a:focus-visible {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.08) !important;
  transform: translateY(-1px);
  outline: none;
}

.status-header .menu li a:hover::after,
.status-header .menu li a:focus-visible::after {
  transform: scaleX(1);
}

.status-header .menu li a.menu-login,
.status-header .menu li a.menu-logout {
  margin-left: 8px;
  padding: 10px 14px;
  border-radius: 8px;
}

.status-header .menu li a.menu-login {
  background: rgba(255, 255, 255, 0.96) !important;
  color: var(--utsem-verde-profundo) !important;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
}

.status-header .menu li a.menu-logout {
  background: #fff1f1 !important;
  color: var(--color-peligro) !important;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.10);
}

.status-header .menu li a.menu-login::after,
.status-header .menu li a.menu-logout::after {
  display: none;
}

.status-header .menu li a.menu-login:hover,
.status-header .menu li a.menu-login:focus-visible {
  background: #ffffff !important;
  color: var(--utsem-verde) !important;
}

.status-header .menu li a.menu-logout:hover,
.status-header .menu li a.menu-logout:focus-visible {
  background: var(--color-peligro) !important;
  color: #ffffff !important;
}

.status-header .menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.status-header .menu-toggle span {
  width: 19px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  display: block;
}

.admin-header.page-heading,
.admin-header {
  width: min(1400px, calc(100% - 48px)) !important;
  margin: 22px auto 22px !important;
  padding: 16px 20px !important;
  border: 1px solid rgba(0, 99, 65, 0.14) !important;
  border-left: 6px solid var(--utsem-verde) !important;
  border-radius: 18px !important;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(239, 248, 244, 0.98) 100%) !important;
  box-shadow: 0 16px 34px rgba(0, 63, 42, 0.10) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 18px !important;
}

.admin-header .info {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  min-width: 0;
}

.admin-header .info::before,
.admin-header img {
  display: none !important;
}

.admin-header .section-accent {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.22), transparent 45%),
    linear-gradient(135deg, var(--utsem-verde) 0%, #12a871 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35), 0 10px 18px rgba(0, 99, 65, 0.20);
}

.admin-header h1 {
  color: var(--utsem-verde-profundo) !important;
  font-size: clamp(1.12rem, 2vw, 1.5rem) !important;
  line-height: 1.08 !important;
  margin: 0 !important;
  letter-spacing: -0.035em;
}

.admin-header p {
  color: #60726d !important;
  font-size: 0.92rem !important;
  margin: 3px 0 0 !important;
}

.admin-header .logout {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

footer.pie-pagina.site-footer,
footer.pie-pagina.site-footer.institutional-footer {
  flex: 0 0 auto;
  margin-top: auto !important;
  padding: 0 !important;
  color: #eaf7f2 !important;
  background: var(--utsem-verde-profundo) !important;
  box-shadow: 0 -12px 28px rgba(0, 64, 42, 0.10) !important;
}

.footer-ribbon {
  height: 4px;
  background: linear-gradient(90deg, var(--utsem-verde) 0%, #12a871 52%, var(--utsem-gris) 100%);
}

.site-footer .footer-shell {
  padding: 20px 0 14px !important;
}

.site-footer .footer-brand img {
  height: 48px !important;
}

.site-footer .footer-bottom {
  padding: 10px 0 14px !important;
}

.contenedor-formulario,
.contenedor-info,
.card,
.modulo-card,
.reportes-page .filtros,
.reportes-page .tabs-container,
.card.reporte-card {
  border-color: rgba(0, 99, 65, 0.14);
}

@media (max-width: 980px) {
  .status-navbar {
    width: calc(100% - 28px);
    min-height: 64px;
    flex-wrap: wrap;
    gap: 12px;
  }

  .status-brand {
    max-width: calc(100% - 56px);
  }

  .status-brand-logo {
    width: 58px;
    min-width: 58px;
    height: 46px;
    padding-right: 10px;
  }

  .status-brand-logo img {
    max-width: 56px;
    max-height: 42px;
  }

  .status-brand-copy strong {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .status-brand-copy small {
    display: none;
  }

  .status-header .menu-toggle {
    display: inline-flex;
  }

  .status-header .menu {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 8px 0 4px;
  }

  .status-header .menu.active {
    display: flex;
  }

  .status-header .menu li a,
  .status-header .menu li a.menu-login,
  .status-header .menu li a.menu-logout {
    width: 100%;
    justify-content: flex-start;
    margin-left: 0;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
  }

  .status-header .menu li a.menu-logout {
    background: #fff1f1 !important;
    color: var(--color-peligro) !important;
  }

  .status-header .menu li a.menu-login {
    background: #ffffff !important;
    color: var(--utsem-verde-profundo) !important;
  }

  .admin-header.page-heading,
  .admin-header {
    width: min(1400px, calc(100% - 28px)) !important;
    align-items: flex-start !important;
    flex-direction: column !important;
    border-radius: 16px !important;
  }

  .site-footer .footer-shell,
  .site-footer .footer-bottom {
    width: calc(100% - 28px) !important;
  }
}

@media (max-width: 560px) {
  .status-navbar {
    width: calc(100% - 22px);
  }

  .status-brand {
    gap: 10px;
  }

  .status-brand-logo {
    width: 50px;
    min-width: 50px;
    height: 42px;
    border-right-color: rgba(255,255,255,.12);
  }

  .status-brand-logo img {
    max-width: 48px;
    max-height: 38px;
  }

  .status-brand-copy strong {
    font-size: 0.92rem;
  }

  .admin-header .section-accent {
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 10px;
  }

  .admin-header h1 {
    font-size: 1.06rem !important;
  }

  .admin-header p {
    font-size: 0.85rem !important;
  }

  .site-footer .footer-shell {
    padding-top: 18px !important;
  }
}


/* --- Ajustes visuales V10: doble logo institucional y retiro de acento en encabezado --- */
.status-brand-logo {
  width: auto;
  min-width: 136px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-right: 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.status-brand-logos {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.status-brand-logos img {
  display: block;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.22));
}

.status-brand-logos img:first-child {
  max-width: 56px;
  max-height: 46px;
}

.status-brand-logos img:last-child {
  max-width: 88px;
  max-height: 40px;
}

.admin-header .section-accent {
  display: none !important;
}

.admin-header .info {
  gap: 0 !important;
}

@media (max-width: 980px) {
  .status-brand-logo {
    min-width: 118px;
    height: 46px;
    padding-right: 10px;
  }

  .status-brand-logos {
    gap: 8px;
  }

  .status-brand-logos img:first-child {
    max-width: 48px;
    max-height: 40px;
  }

  .status-brand-logos img:last-child {
    max-width: 74px;
    max-height: 34px;
  }
}

@media (max-width: 560px) {
  .status-brand-logo {
    min-width: 102px;
    height: 42px;
    padding-right: 8px;
  }

  .status-brand-logos {
    gap: 6px;
  }

  .status-brand-logos img:first-child {
    max-width: 42px;
    max-height: 34px;
  }

  .status-brand-logos img:last-child {
    max-width: 64px;
    max-height: 30px;
  }
}


/* ==========================================================================
   Ajustes visuales V12: homogeneidad general del sistema
   ========================================================================== */
:root {
  --utsem-verde-profundo: #003f2a;
  --utsem-verde: #006341;
  --utsem-verde-vivo: #0b8f61;
  --utsem-verde-claro: #e6f4ee;
  --utsem-gris: #58595B;
  --utsem-gris-suave: #eef2f0;
  --utsem-linea: rgba(0, 99, 65, 0.16);
  --utsem-sombra: 0 18px 42px rgba(0, 64, 42, 0.10);
  --utsem-sombra-suave: 0 10px 24px rgba(0, 64, 42, 0.07);
  --utsem-radio: 16px;
  --utsem-ancho: min(1400px, calc(100% - 48px));
  --color-acento: #8ba59a;
}

html {
  min-height: 100%;
}

body:not(.login-wrapper) {
  min-height: 100vh !important;
  display: flex !important;
  flex-direction: column !important;
  background:
    radial-gradient(circle at 15% 14%, rgba(0, 99, 65, 0.11), transparent 28%),
    radial-gradient(circle at 82% 24%, rgba(88, 89, 91, 0.10), transparent 26%),
    linear-gradient(135deg, #f4fbf8 0%, #edf6f2 46%, #f9fbfa 100%) !important;
  color: #34433f !important;
}

body:not(.login-wrapper)::before {
  content: "";
  position: fixed;
  inset: 68px 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 99, 65, 0.20), transparent);
  pointer-events: none;
  z-index: 0;
}

body:not(.login-wrapper) > * {
  position: relative;
  z-index: 1;
}

.status-header.site-header {
  flex: 0 0 auto;
  background:
    linear-gradient(90deg, var(--utsem-verde-profundo) 0%, #004f35 54%, var(--utsem-verde-profundo) 100%) !important;
  border-bottom: 3px solid rgba(139, 165, 154, 0.42);
  box-shadow: 0 10px 28px rgba(0, 64, 42, 0.16);
}

.status-header .status-navbar,
.site-footer .footer-shell,
.site-footer .footer-bottom,
.admin-grid,
.tabs-container,
.filtros,
.grid-resultados,
.contenedor-formulario,
.contenedor-info,
.contenedor-tabla,
.management-layout,
.slider-container {
  width: var(--utsem-ancho) !important;
  max-width: 1400px !important;
}

.status-header .status-navbar {
  min-height: 64px !important;
}

.status-brand-logo {
  min-width: 158px !important;
}

.status-brand-copy strong {
  font-size: clamp(1rem, 1.45vw, 1.22rem) !important;
  letter-spacing: -0.035em;
}

.status-brand-copy small {
  color: #d7eee5 !important;
}

.status-header .menu {
  gap: 10px !important;
}

.status-header .menu li a {
  border-radius: 10px !important;
  padding: 10px 13px !important;
  color: #effaf6 !important;
}

.status-header .menu li a:hover,
.status-header .menu li a:focus-visible {
  background: rgba(255, 255, 255, 0.11) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.status-header .menu li a.menu-login {
  background: #ffffff !important;
  color: var(--utsem-verde-profundo) !important;
}

.status-header .menu li a.menu-logout {
  color: #ffffff !important;
  background: #dc3545 !important;
  box-shadow: 0 8px 18px rgba(220, 53, 69, 0.22);
}

.admin-header.page-heading,
.admin-header {
  width: var(--utsem-ancho) !important;
  max-width: 1400px !important;
  margin: 24px auto 22px !important;
  padding: 18px 24px !important;
  border-radius: var(--utsem-radio) !important;
  border: 1px solid var(--utsem-linea) !important;
  border-left: 6px solid var(--utsem-verde) !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(239, 248, 244, 0.98)) !important;
  box-shadow: var(--utsem-sombra-suave) !important;
}

.admin-header h1 {
  color: var(--utsem-verde-profundo) !important;
  font-weight: 800 !important;
}

.admin-header p {
  color: #62746f !important;
}

.admin-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 22px !important;
  margin: 0 auto 42px !important;
}

.admin-modulo,
.contenedor-formulario,
.contenedor-info,
.contenedor-tabla,
.reportes-page .filtros,
.card.reporte-card,
.card-status,
.login-container {
  background: rgba(255, 255, 255, 0.96) !important;
  border: 1px solid var(--utsem-linea) !important;
  border-top: 4px solid var(--utsem-verde) !important;
  border-radius: var(--utsem-radio) !important;
  box-shadow: var(--utsem-sombra-suave) !important;
}

.admin-modulo {
  min-height: 282px;
  padding: 34px 26px !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.admin-modulo:hover {
  transform: translateY(-3px);
  box-shadow: var(--utsem-sombra) !important;
  border-color: rgba(0, 99, 65, 0.28) !important;
}

.admin-modulo .svg-container {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, #f7fbf9, var(--utsem-verde-claro));
  box-shadow: inset 0 0 0 1px rgba(0, 99, 65, 0.10);
}

.admin-modulo .svg-container svg {
  width: 42px;
  height: 42px;
  stroke: var(--utsem-verde) !important;
}

.admin-modulo h3,
.contenedor-formulario h2,
.contenedor-info .titulo {
  color: var(--utsem-verde-profundo) !important;
  letter-spacing: -0.025em;
}

.admin-modulo p,
.contenedor-info p {
  color: #53625e !important;
}

.btn-pildora,
button.btn-pildora,
input.btn-pildora,
a.btn-pildora {
  border-radius: 999px !important;
  background: var(--utsem-verde) !important;
  border-color: var(--utsem-verde) !important;
  color: #ffffff !important;
  min-height: 42px;
  padding: 10px 24px !important;
  box-shadow: 0 8px 18px rgba(0, 99, 65, 0.16);
}

.btn-pildora:hover,
button.btn-pildora:hover,
input.btn-pildora:hover,
a.btn-pildora:hover {
  background: var(--utsem-verde-profundo) !important;
  border-color: var(--utsem-verde-profundo) !important;
  color: #ffffff !important;
  box-shadow: 0 12px 24px rgba(0, 64, 42, 0.20) !important;
  transform: translateY(-1px);
}

.btn-secundario,
a.btn-secundario,
input.btn-secundario,
button.btn-secundario {
  background: var(--utsem-gris) !important;
  border-color: var(--utsem-gris) !important;
  color: #ffffff !important;
}

.btn-exportar {
  background: #168f5e !important;
  border-color: #168f5e !important;
}

.contenedor-formulario,
.contenedor-info {
  margin: 0 auto 42px !important;
  padding: 34px !important;
}

.contenedor-formulario.form-panel {
  margin-top: 0 !important;
}

.form-grid {
  gap: 18px 22px !important;
}

.form-group {
  gap: 7px;
}

.form-group label,
.campo-filtro label {
  color: var(--utsem-verde-profundo) !important;
  font-weight: 800 !important;
  font-size: 0.86rem !important;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group input[type="password"],
.form-group textarea,
.form-group select,
.campo-filtro input,
.campo-filtro select,
.filtros input[type="text"],
.filtros input[type="date"],
.filtros select {
  min-height: 44px;
  border-radius: 12px !important;
  border: 1px solid rgba(0, 99, 65, 0.18) !important;
  background: #fbfdfc !important;
  color: #34433f !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
}

.form-group textarea,
textarea {
  line-height: 1.45;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus,
.campo-filtro input:focus,
.campo-filtro select:focus,
.filtros input:focus,
.filtros select:focus {
  border-color: var(--utsem-verde) !important;
  box-shadow: 0 0 0 4px rgba(0, 99, 65, 0.10) !important;
}

.management-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(520px, 1.5fr);
  gap: 24px;
  margin: 0 auto 42px !important;
  align-items: start;
}

.management-layout .contenedor-formulario,
.management-layout .contenedor-tabla {
  width: 100% !important;
  margin: 0 !important;
}

.table-panel,
.contenedor-tabla {
  overflow: hidden;
}

.tabla-personalizada {
  width: 100%;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  background: #ffffff;
}

.tabla-personalizada thead th {
  background: var(--utsem-verde-profundo) !important;
  color: #ffffff !important;
  padding: 13px 14px !important;
  font-weight: 800;
}

.tabla-personalizada tbody td {
  padding: 12px 14px !important;
  border-bottom: 1px solid rgba(0, 99, 65, 0.10);
  color: #41514d;
}

.tabla-personalizada tbody tr:hover {
  background: var(--utsem-verde-claro);
}

.acciones img,
.action-icon,
.card.reporte-card img {
  width: 24px !important;
  height: 24px !important;
}

.tabs-container {
  margin: 0 auto !important;
  padding-left: 0 !important;
  gap: 8px !important;
}

.tab-button {
  border-radius: 12px 12px 0 0 !important;
  background: #dfe8e4 !important;
  color: #5b6965 !important;
  min-width: 84px;
}

.tab-button.active {
  background: #ffffff !important;
  color: var(--utsem-verde-profundo) !important;
  border-top-color: var(--utsem-verde) !important;
}

.reportes-page .filtros,
.filtros {
  border-radius: 0 var(--utsem-radio) var(--utsem-radio) var(--utsem-radio) !important;
  padding: 24px !important;
  margin-bottom: 28px !important;
}

.filtros-header {
  color: var(--utsem-verde-profundo) !important;
  margin-bottom: 18px !important;
}

.filtros-header span {
  display: block;
  color: #687873;
  font-size: 0.9rem;
  margin-top: 2px;
}

.filtros-grid {
  gap: 16px !important;
}

.filtros-actions {
  margin-top: 20px !important;
  align-items: center !important;
}

.grid-resultados {
  margin: 0 auto 42px !important;
  gap: 22px !important;
}

.card.reporte-card,
.card-status {
  padding: 22px !important;
  overflow: hidden;
}

.reporte-card-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.reporte-card .folio,
.card-status .folio {
  color: #ff6b6b !important;
  font-weight: 800;
}

.badge-estatus {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--utsem-verde-claro);
  color: var(--utsem-verde-profundo);
  font-size: 0.78rem;
  font-weight: 800;
}

.status-search-card {
  border-radius: var(--utsem-radio) !important;
}

.filtros-grid-status {
  grid-template-columns: repeat(2, minmax(220px, 1fr)) !important;
}

.status-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
}

.placeholder-panel {
  text-align: center;
  max-width: 900px !important;
  background:
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(232,246,239,.96)) !important;
}

.placeholder-panel .titulo {
  font-size: 1.35rem;
}

.slider-container {
  margin: 34px auto 28px !important;
  border: 1px solid var(--utsem-linea);
  border-radius: 18px !important;
  box-shadow: var(--utsem-sombra) !important;
  background: #ffffff;
}

.slider-wrapper img {
  height: clamp(220px, 27vw, 360px) !important;
}

.contenedor-info:not(.placeholder-panel) {
  background:
    linear-gradient(135deg, rgba(0, 63, 42, 0.94), rgba(0, 99, 65, 0.91)) !important;
  color: #ffffff !important;
  border-color: rgba(255,255,255,0.14) !important;
}

.contenedor-info:not(.placeholder-panel) .titulo,
.contenedor-info:not(.placeholder-panel) p {
  color: #ffffff !important;
}

.login-wrapper {
  background:
    radial-gradient(circle at 20% 20%, rgba(0, 99, 65, .16), transparent 32%),
    linear-gradient(135deg, #f4fbf8, #e8f5ef) !important;
}

.login-container {
  border-top: 5px solid var(--utsem-verde) !important;
}

.login-container h2 {
  color: var(--utsem-verde-profundo) !important;
}

footer.pie-pagina.site-footer {
  margin-top: auto !important;
  background: var(--utsem-verde-profundo) !important;
  border-top: 3px solid rgba(139, 165, 154, 0.42);
}

.site-footer .footer-shell,
.site-footer .footer-bottom {
  width: var(--utsem-ancho) !important;
}

.site-footer .footer-brand img {
  height: 46px !important;
}

.site-footer a {
  color: #ffffff !important;
}

.social-icons a {
  border-radius: 12px !important;
}

.mensaje-error,
.mensaje-confirmacion {
  width: var(--utsem-ancho) !important;
  max-width: 1400px !important;
  margin: 0 auto 20px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(0, 99, 65, 0.16);
  box-shadow: var(--utsem-sombra-suave);
}

@media (max-width: 1180px) {
  .admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .management-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  :root {
    --utsem-ancho: min(1400px, calc(100% - 28px));
  }

  .status-brand-logo {
    min-width: 126px !important;
  }

  .admin-header.page-heading,
  .admin-header {
    padding: 16px 18px !important;
  }

  .filtros-grid-status,
  .filtros-grid {
    grid-template-columns: 1fr !important;
  }

  .filtros-actions {
    flex-direction: column;
    align-items: stretch !important;
  }

  .acciones-busqueda,
  .export-form {
    width: 100%;
  }

  .acciones-busqueda .btn-pildora,
  .export-form .btn-pildora {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 680px) {
  :root {
    --utsem-ancho: calc(100% - 22px);
  }

  .admin-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .admin-modulo {
    min-height: auto;
    padding: 28px 22px !important;
  }

  .contenedor-formulario,
  .contenedor-info,
  .reportes-page .filtros,
  .filtros {
    padding: 22px !important;
  }

  .form-grid {
    grid-template-columns: 1fr !important;
  }

  .status-header .status-navbar {
    min-height: 58px !important;
  }

  .status-brand-logo {
    min-width: 106px !important;
  }

  .status-brand-copy strong {
    font-size: 0.94rem !important;
  }

  .reporte-card-header {
    flex-direction: column;
  }
}


/* V12 refinamiento: tarjetas de reportes generadas por AJAX */
.reporte-card .estatus-badge,
.estatus-badge {
  border-radius: 999px !important;
  padding: 6px 10px !important;
  color: #ffffff !important;
  font-size: 0.76rem !important;
  font-weight: 800 !important;
  box-shadow: 0 8px 16px rgba(0, 64, 42, 0.12);
}

.reporte-card h2 {
  color: var(--utsem-verde-profundo) !important;
  font-size: 1rem !important;
  margin: 0 !important;
}

.reporte-card h2 span {
  color: #ff6b6b !important;
}

.reporte-persona {
  color: #71807b !important;
  font-size: 1rem !important;
  margin: 10px 0 14px !important;
}

.info-row {
  border-top: 1px solid rgba(0, 99, 65, 0.08);
  padding: 8px 0;
}

.info-label {
  color: var(--utsem-verde-profundo) !important;
  font-weight: 800 !important;
  font-size: 0.84rem;
}

.info-value {
  color: #52635e !important;
}

.reporte-acciones {
  margin-top: 14px !important;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 99, 65, 0.10);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.reporte-acciones a,
.acciones a {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  background: #f4faf7;
  border: 1px solid rgba(0, 99, 65, 0.14);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.reporte-acciones a:hover,
.acciones a:hover {
  transform: translateY(-2px);
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(0, 64, 42, 0.12);
}

.sin-resultados {
  grid-column: 1 / -1;
  width: 100%;
  padding: 34px;
  border-radius: var(--utsem-radio);
  background: rgba(255,255,255,.96);
  border: 1px solid var(--utsem-linea);
  border-top: 4px solid var(--utsem-verde);
  box-shadow: var(--utsem-sombra-suave);
  text-align: center;
  color: #566761;
}

.sin-resultados h3 {
  color: var(--utsem-verde-profundo);
  margin-bottom: 6px;
}


/* ==========================================================================
   Ajustes V13: eliminación de estilos inline en PHP
   ========================================================================== */
.module-icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--utsem-verde);
}

.input-folio {
  color: var(--utsem-verde) !important;
  font-weight: 800;
}

.form-actions {
  display: flex !important;
  justify-content: center;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.ticket-panel {
  margin-top: 42px !important;
  margin-bottom: 42px !important;
}

.ticket-title {
  border-bottom: 2px solid var(--utsem-linea);
  padding-bottom: 15px;
  margin-bottom: 25px !important;
}

.ticket-folio {
  font-size: 1.3em;
  color: var(--utsem-verde) !important;
  text-align: center;
  margin-bottom: 25px;
}

.ticket-details {
  line-height: 1.8;
  color: var(--utsem-gris);
  padding: 0 20px;
}

.ticket-note {
  color: var(--utsem-gris);
  font-size: 0.9em;
  margin-top: 30px;
  text-align: center;
  border-top: 1px solid rgba(0, 99, 65, 0.12);
  padding-top: 20px;
}

.field-help {
  display: block;
  color: #66756f;
  font-size: 0.78rem;
  margin-top: 5px;
}

.login-error {
  margin: 0 0 15px 0 !important;
  width: 100% !important;
}

.login-field {
  margin-bottom: 15px;
}

.login-field-last {
  margin-bottom: 25px;
}

.btn-full {
  width: 100%;
}

.security-badge {
  font-size: 0.76rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.security-ok {
  color: var(--utsem-verde);
}

.security-legacy {
  color: var(--color-peligro);
}

.slider-indicators[hidden] {
  display: none !important;
}

.estatus-completado,
.badge-estatus.estatus-completado,
.estatus-badge.estatus-completado {
  background: #28a745 !important;
  color: #ffffff !important;
}

.estatus-proceso,
.badge-estatus.estatus-proceso,
.estatus-badge.estatus-proceso {
  background: #ffc107 !important;
  color: #3b2c00 !important;
}

.estatus-pendiente,
.badge-estatus.estatus-pendiente,
.estatus-badge.estatus-pendiente {
  background: #dc3545 !important;
  color: #ffffff !important;
}

@media print {
  body {
    background: none !important;
  }

  header,
  footer,
  .pie-pagina,
  .submit-button {
    display: none !important;
  }

  .contenedor-formulario.ticket-panel {
    box-shadow: none !important;
    border-top: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}

@media (max-width: 680px) {
  .form-actions {
    gap: 10px;
  }

  .form-actions .btn-pildora {
    width: 100%;
    text-align: center;
  }

  .ticket-details {
    padding: 0;
  }
}


/* V13: colores originales de SVG controlados por clases */
.svg-fill-facebook {
  fill: #1877F2;
}

.svg-fill-white {
  fill: #ffffff;
}

.svg-fill-ig-gradient {
  fill: url(#igRadial);
}

.ig-stop-1,
.ig-stop-2 {
  stop-color: #fdf497;
}

.ig-stop-3 {
  stop-color: #fd5949;
}

.ig-stop-4 {
  stop-color: #d6249f;
}

.ig-stop-5 {
  stop-color: #285AEB;
}

.svg-fill-tiktok-bg {
  fill: #050505;
}

.svg-fill-tiktok-cyan {
  fill: #25F4EE;
}

.svg-fill-tiktok-red {
  fill: #FE2C55;
}


/* ==========================================================================
   V14: Home minimalista y slider administrable
   ========================================================================== */
.home-hero,
.home-request-card,
.slider-admin-layout {
  width: var(--utsem-ancho);
  max-width: 1400px;
  margin-inline: auto;
}

.home-hero {
  margin-top: 34px;
}

.home-slider {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(0, 63, 42, 0.98), rgba(0, 99, 65, 0.92));
  border: 1px solid rgba(0, 99, 65, 0.18);
  box-shadow: var(--utsem-sombra);
}

.home-slides {
  display: flex;
  transition: transform 0.55s ease;
}

.home-slide {
  min-width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 0.78fr);
  min-height: clamp(330px, 35vw, 470px);
  color: #ffffff;
}

.home-slide-content {
  padding: clamp(34px, 5vw, 68px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  position: relative;
  z-index: 2;
}

.home-slide-content::before {
  content: "";
  width: 70px;
  height: 4px;
  border-radius: 999px;
  background: #9cc7b6;
  margin-bottom: 22px;
}

.home-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #dff4ec;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.home-slide h1 {
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 4.15rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
  max-width: 780px;
  margin: 0 0 18px;
}

.home-slide p {
  color: #e4f6ef;
  max-width: 660px;
  font-size: clamp(1rem, 1.35vw, 1.16rem);
  line-height: 1.65;
  margin-bottom: 26px;
}

.home-slide-button {
  background: #ffffff !important;
  color: var(--utsem-verde-profundo) !important;
  border-color: #ffffff !important;
}

.home-slide-button:hover {
  background: #dceee7 !important;
  color: var(--utsem-verde-profundo) !important;
}

.home-slide-media {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  margin: 0;
  background: rgba(0, 63, 42, 0.20);
}

.home-slide-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 63, 42, 0.88), rgba(0, 63, 42, 0.08) 42%),
    linear-gradient(180deg, transparent, rgba(0, 63, 42, 0.32));
  z-index: 1;
}

.home-slide-media img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.92) contrast(1.02);
}

.home-slide-media-empty {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 40%, rgba(255,255,255,.16), transparent 42%),
    linear-gradient(135deg, #004f35, #003f2a);
}

.home-slide-media-empty span {
  color: rgba(255,255,255,.34);
  font-size: clamp(2rem, 5vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.08em;
}

.home-slider-nav {
  inset: 0;
  top: auto;
  bottom: 26px;
  right: 28px;
  left: auto;
  transform: none;
  width: auto;
  gap: 8px;
  padding: 0;
}

.home-slider-nav button {
  width: 42px;
  height: 42px;
  padding: 0;
  font-size: 18px;
  background: rgba(255,255,255,.14) !important;
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(8px);
}

.home-slider-nav button:hover {
  background: rgba(255,255,255,.24) !important;
}

.slider-indicators {
  position: absolute;
  left: clamp(34px, 5vw, 68px);
  bottom: 30px;
  display: flex;
  gap: 8px;
  z-index: 5;
}

.slider-indicators button {
  width: 26px;
  height: 7px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.32);
  transition: width .2s ease, background .2s ease;
}

.slider-indicators button.active {
  width: 48px;
  background: #ffffff;
}

.home-request-card {
  margin-top: 26px;
  margin-bottom: 44px;
  padding: 28px 30px;
  border-radius: 20px;
  background: rgba(255,255,255,.96);
  border: 1px solid var(--utsem-linea);
  border-top: 4px solid var(--utsem-verde);
  box-shadow: var(--utsem-sombra-suave);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
}

.home-request-card .section-kicker {
  color: var(--utsem-verde-profundo);
  background: var(--utsem-verde-claro);
  border-color: rgba(0, 99, 65, 0.14);
  margin-bottom: 10px;
}

.home-request-card h2 {
  color: var(--utsem-verde-profundo);
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 8px;
}

.home-request-card p {
  color: #566761;
  max-width: 780px;
  margin: 0;
}

.home-request-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.slider-admin-layout {
  display: grid;
  grid-template-columns: minmax(330px, 0.85fr) minmax(0, 1.4fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 42px;
}

.slider-admin-layout .contenedor-formulario {
  width: 100% !important;
  margin: 0 !important;
}

.slider-admin-list {
  display: grid;
  gap: 18px;
}

.slider-admin-card {
  background: rgba(255,255,255,.96);
  border: 1px solid var(--utsem-linea);
  border-top: 4px solid var(--utsem-verde);
  border-radius: var(--utsem-radio);
  box-shadow: var(--utsem-sombra-suave);
  padding: 18px;
}

.slider-admin-card-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.slide-preview {
  min-height: 160px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--utsem-verde-claro);
  border: 1px solid rgba(0, 99, 65, 0.12);
}

.slide-preview img {
  width: 100%;
  height: 100%;
  min-height: 160px;
  object-fit: cover;
  display: block;
}

.slide-preview-empty {
  min-height: 160px;
  display: grid;
  place-items: center;
  color: var(--utsem-verde-profundo);
  font-weight: 800;
}

.slider-admin-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(0, 99, 65, 0.10);
}

.btn-danger {
  background: var(--color-peligro) !important;
  border-color: var(--color-peligro) !important;
}

.checkbox-field {
  justify-content: center;
}

.checkbox-field label {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--utsem-verde-profundo) !important;
  font-weight: 800;
}

.checkbox-field input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--utsem-verde);
}

@media (max-width: 1180px) {
  .home-slide {
    grid-template-columns: 1fr;
  }

  .home-slide-media {
    min-height: 220px;
    order: -1;
  }

  .home-slide-media::before {
    background: linear-gradient(180deg, rgba(0, 63, 42, 0.10), rgba(0, 63, 42, 0.70));
  }

  .slider-admin-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .home-hero {
    margin-top: 20px;
  }

  .home-slide {
    min-height: auto;
  }

  .home-slide-content {
    padding: 30px 24px 74px;
  }

  .home-slide h1 {
    font-size: clamp(1.85rem, 11vw, 3rem);
  }

  .home-slider-nav {
    bottom: 18px;
    right: 20px;
  }

  .slider-indicators {
    left: 24px;
    bottom: 23px;
  }

  .home-request-card {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .home-request-actions {
    justify-content: stretch;
  }

  .home-request-actions .btn-pildora {
    width: 100%;
    text-align: center;
  }

  .slider-admin-card-grid {
    grid-template-columns: 1fr;
  }

  .slide-preview,
  .slide-preview img,
  .slide-preview-empty {
    min-height: 190px;
  }
}

/* ==========================================================================
   V15: Panel de control en header, slider sin imágenes obligatorias y programa anual administrable
   ========================================================================== */
.control-menu {
  position: relative;
}

.control-menu-button {
  min-height: 40px;
  border: 1px solid rgba(255,255,255,.20);
  border-radius: 10px;
  background: rgba(255,255,255,.10);
  color: #ffffff;
  padding: 10px 13px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.control-menu-button:hover,
.control-menu-button:focus-visible {
  background: rgba(255,255,255,.16);
  transform: translateY(-1px);
  outline: none;
}

.control-submenu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 230px;
  display: none;
  padding: 8px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(0, 99, 65, 0.16);
  box-shadow: 0 18px 36px rgba(0, 64, 42, 0.18);
  z-index: 40;
}

.control-submenu.active {
  display: grid;
  gap: 4px;
}

.status-header .control-submenu a,
.control-submenu a {
  color: var(--utsem-verde-profundo) !important;
  background: transparent !important;
  border-radius: 10px !important;
  padding: 10px 12px !important;
  text-decoration: none;
  font-weight: 800;
}

.status-header .control-submenu a:hover,
.control-submenu a:hover {
  background: var(--utsem-verde-claro) !important;
  color: var(--utsem-verde-profundo) !important;
}

.home-slide {
  grid-template-columns: minmax(0, 1fr) minmax(280px, .58fr);
}

.home-slide-media {
  background:
    radial-gradient(circle at 42% 35%, rgba(255,255,255,.14), transparent 26%),
    radial-gradient(circle at 72% 66%, rgba(139,165,154,.22), transparent 32%),
    linear-gradient(135deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
}

.home-slide-media-empty {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  background:
    radial-gradient(circle at 55% 42%, rgba(255,255,255,.13), transparent 30%),
    linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.015));
}

.home-slide-media-empty::before {
  background:
    linear-gradient(90deg, rgba(0, 63, 42, 0.88), rgba(0, 63, 42, 0.12) 48%),
    radial-gradient(circle at 63% 40%, rgba(255,255,255,.13), transparent 28%);
}

.hero-orb {
  position: absolute;
  border-radius: 999px;
  z-index: 2;
  pointer-events: none;
}

.hero-orb-main {
  width: clamp(180px, 22vw, 310px);
  height: clamp(180px, 22vw, 310px);
  right: clamp(24px, 5vw, 76px);
  top: 50%;
  transform: translateY(-50%);
  background:
    radial-gradient(circle at 34% 28%, rgba(255,255,255,.50), rgba(255,255,255,.10) 32%, transparent 64%),
    linear-gradient(135deg, rgba(255,255,255,.18), rgba(139,165,154,.20));
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.18),
    0 30px 70px rgba(0,0,0,.18);
}

.hero-orb-small {
  width: clamp(80px, 9vw, 132px);
  height: clamp(80px, 9vw, 132px);
  right: clamp(170px, 20vw, 280px);
  top: 24%;
  background: rgba(255,255,255,.10);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14);
}

.hero-device {
  position: absolute;
  z-index: 3;
  right: clamp(54px, 8vw, 128px);
  top: 50%;
  width: clamp(118px, 14vw, 190px);
  height: clamp(82px, 9vw, 128px);
  transform: translateY(-50%) rotate(-4deg);
  border-radius: 18px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 26px 48px rgba(0,0,0,.18);
}

.hero-device::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 12px;
  background: rgba(0,63,42,.30);
  border: 1px solid rgba(255,255,255,.12);
}

.hero-device::after {
  content: "";
  position: absolute;
  width: 46%;
  height: 8px;
  left: 27%;
  bottom: -18px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
}

.hero-device span {
  position: absolute;
  width: 42%;
  height: 6px;
  left: 29%;
  bottom: -8px;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
}

.slide-preview-empty {
  background:
    radial-gradient(circle at 40% 34%, rgba(0, 99, 65, .14), transparent 28%),
    linear-gradient(135deg, #f7fbf9, var(--utsem-verde-claro));
}

.programa-admin-layout {
  width: var(--utsem-ancho);
  max-width: 1400px;
  margin: 0 auto 42px;
  display: grid;
  grid-template-columns: minmax(340px, 1fr) minmax(280px, .65fr);
  gap: 24px;
  align-items: start;
}

.programa-admin-layout .contenedor-formulario {
  width: 100% !important;
  margin: 0 !important;
}

.programa-current-card {
  background: rgba(255,255,255,.96);
  border: 1px solid var(--utsem-linea);
  border-top: 4px solid var(--utsem-verde);
  border-radius: var(--utsem-radio);
  box-shadow: var(--utsem-sombra-suave);
  padding: 28px;
}

.programa-current-card .section-kicker {
  color: var(--utsem-verde-profundo);
  background: var(--utsem-verde-claro);
  border-color: rgba(0,99,65,.14);
}

.programa-current-card h2 {
  color: var(--utsem-verde-profundo);
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin: 10px 0 16px;
}

.programa-current-card p {
  color: #566761;
  margin-bottom: 10px;
}

.programa-note {
  border-top: 1px solid rgba(0,99,65,.10);
  padding-top: 14px;
  margin-top: 16px;
}

@media (max-width: 1180px) {
  .home-slide {
    grid-template-columns: 1fr;
  }

  .home-slide-media,
  .home-slide-media-empty {
    min-height: 230px;
  }

  .home-slide-media-empty {
    order: -1;
  }

  .programa-admin-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .control-menu {
    width: 100%;
  }

  .control-menu-button {
    width: 100%;
    justify-content: space-between;
  }

  .control-submenu {
    position: static;
    width: 100%;
    margin-top: 6px;
    box-shadow: none;
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.14);
  }

  .status-header .control-submenu a,
  .control-submenu a {
    color: #ffffff !important;
  }

  .status-header .control-submenu a:hover,
  .control-submenu a:hover {
    background: rgba(255,255,255,.12) !important;
    color: #ffffff !important;
  }
}

@media (max-width: 780px) {
  .home-slide-media,
  .home-slide-media-empty {
    min-height: 180px;
  }

  .hero-orb-main {
    right: 32px;
  }

  .hero-orb-small {
    right: 170px;
  }

  .hero-device {
    right: 74px;
  }
}


/* ==========================================================================
   V16: Corrección de Panel de control y limpieza de dashboard
   ========================================================================== */
.status-header .menu .control-menu {
  position: relative;
}

.status-header .menu .control-menu-button {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.13) !important;
  border: 1px solid rgba(255, 255, 255, 0.24) !important;
}

.status-header .menu .control-menu-button:hover,
.status-header .menu .control-menu-button:focus-visible {
  background: rgba(255, 255, 255, 0.21) !important;
  color: #ffffff !important;
}

.status-header .menu .control-submenu {
  background: #ffffff !important;
  border: 1px solid rgba(0, 99, 65, 0.18) !important;
  box-shadow: 0 18px 38px rgba(0, 64, 42, 0.22) !important;
}

.status-header .menu .control-submenu.active {
  display: grid !important;
}

.status-header .menu .control-submenu a,
.status-header .menu li.control-menu .control-submenu a {
  color: var(--utsem-verde-profundo) !important;
  background: transparent !important;
  opacity: 1 !important;
  text-shadow: none !important;
  filter: none !important;
}

.status-header .menu .control-submenu a:hover,
.status-header .menu li.control-menu .control-submenu a:hover,
.status-header .menu .control-submenu a:focus-visible {
  color: var(--utsem-verde-profundo) !important;
  background: var(--utsem-verde-claro) !important;
  outline: none;
}

.status-header .menu .control-submenu a::after {
  display: none !important;
}

.admin-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.slider-admin-card .checkbox-field {
  background: #f7fbf9;
  border: 1px dashed rgba(0, 99, 65, 0.22);
  border-radius: 12px;
  padding: 10px 12px;
}

@media (max-width: 1180px) {
  .admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 980px) {
  .status-header .menu .control-submenu {
    background: rgba(255, 255, 255, 0.10) !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
  }

  .status-header .menu .control-submenu a,
  .status-header .menu li.control-menu .control-submenu a {
    color: #ffffff !important;
    background: transparent !important;
  }

  .status-header .menu .control-submenu a:hover,
  .status-header .menu li.control-menu .control-submenu a:hover,
  .status-header .menu .control-submenu a:focus-visible {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.14) !important;
  }
}

@media (max-width: 680px) {
  .admin-grid {
    grid-template-columns: 1fr !important;
  }
}


/* ==========================================================================
   V17: Home ordenado y slider con altura estable
   ========================================================================== */
.home-request-card {
  margin-top: 34px !important;
  margin-bottom: 26px !important;
}

.home-hero {
  margin-top: 0 !important;
  margin-bottom: 44px !important;
}

.home-slider {
  min-height: 0 !important;
}

.home-slide {
  height: clamp(340px, 34vw, 460px) !important;
  min-height: 0 !important;
  max-height: 460px !important;
  overflow: hidden;
}

.home-slide-content {
  min-height: 0 !important;
}

.home-slide-media,
.home-slide-media-empty {
  height: 100% !important;
  min-height: 0 !important;
  max-height: 460px !important;
}

.home-slide-media img {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center !important;
}

@media (max-width: 1180px) {
  .home-slide {
    height: auto !important;
    max-height: none !important;
  }

  .home-slide-media,
  .home-slide-media-empty {
    height: clamp(190px, 32vw, 260px) !important;
    min-height: 0 !important;
    max-height: 260px !important;
  }
}

@media (max-width: 780px) {
  .home-request-card {
    margin-top: 22px !important;
  }

  .home-slide-media,
  .home-slide-media-empty {
    height: 180px !important;
    max-height: 180px !important;
  }
}


/* ==========================================================================
   V18: Separación visual del bloque de atención respecto al header
   ========================================================================== */
.home-request-card {
  margin-top: clamp(54px, 6vw, 82px) !important;
}

@media (max-width: 780px) {
  .home-request-card {
    margin-top: 34px !important;
  }
}


/* ==========================================================================
   V19: Mayor separación entre header y bloque principal del home
   ========================================================================== */
body.home-page .home-request-card {
  margin-top: clamp(86px, 8vw, 118px) !important;
}

@media (max-width: 780px) {
  body.home-page .home-request-card {
    margin-top: 58px !important;
  }
}


/* ==========================================================================
   V20: Separación real bajo header + cache busting de CSS
   ========================================================================== */
body.home-page .home-top-spacer {
  width: 100%;
  height: clamp(48px, 5.5vw, 78px) !important;
  flex: 0 0 auto;
}

body.home-page .home-request-card {
  margin-top: 0 !important;
}

@media (max-width: 780px) {
  body.home-page .home-top-spacer {
    height: 36px !important;
  }
}


/* ==========================================================================
   V21: Ajuste fino de espacio superior en home para celulares
   ========================================================================== */
@media (max-width: 780px) {
  body.home-page .home-top-spacer {
    height: 14px !important;
  }

  body.home-page .home-request-card {
    margin-top: 0 !important;
  }
}

@media (max-width: 420px) {
  body.home-page .home-top-spacer {
    height: 10px !important;
  }
}


/* ==========================================================================
   V22: Eliminación total del hueco superior en home móvil
   ========================================================================== */
@media (max-width: 780px) {
  body.home-page .home-top-spacer {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.home-page .home-request-card {
    margin-top: 10px !important;
  }
}

@media (max-width: 420px) {
  body.home-page .home-request-card {
    margin-top: 8px !important;
  }
}
