/* ==========================================================================
   Encuentro Regional — capa visual edición 2026
   Se carga después de styles.css: conserva el fondo y el acomodo original,
   solo agrega tarjetas, tipografía y controles más claros.
   ========================================================================== */

:root {
  --gobmx-guinda: #611232;
  --gobmx-guinda-oscuro: #4a0d26;
  --acento: #48c6ef;          /* azul del logo del encuentro */
  --acento-oscuro: #0b2545;
  --tarjeta-fondo: rgba(18, 22, 58, 0.38);
  --tarjeta-borde: rgba(255, 255, 255, 0.18);
  --texto-suave: rgba(255, 255, 255, 0.82);
  --radio: 18px;
}

body {
  font-family: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
}

h1, h2, h3, .titulo-seccion, .paso, .btn-registro {
  font-family: "Montserrat", "Roboto", sans-serif;
}

/* Foco visible para navegación con teclado (styles.css lo elimina) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.btn-check:focus-visible + .btn {
  outline: 3px solid #ffd54f !important;
  outline-offset: 2px;
}

.salto-contenido {
  position: absolute;
  left: 1rem;
  top: 0.5rem;
  z-index: 2000;
  background: #fff;
  color: var(--gobmx-guinda);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 700;
}

/* ---------- Barra del Gobierno de México (igual que el SIIE) ---------- */
.barra-gobmx {
  background: var(--gobmx-guinda);
  color: #fff;
  min-height: 50px;
  display: flex;
  align-items: center;
}
.gobmx-logo img { height: 36px; width: auto; display: block; }
.gobmx-enlaces { list-style: none; display: flex; align-items: center; gap: 1.75rem; margin: 0; padding: 0; }
.gobmx-enlaces a { color: #fff; text-decoration: none; font-size: 0.95rem; }
.gobmx-enlaces a:hover { text-decoration: underline; }
@media (max-width: 575.98px) {
  .gobmx-logo img { height: 30px; }
  .gobmx-enlaces { gap: 1rem; }
  .gobmx-enlaces a { font-size: 0.85rem; }
}

/* Pie de gob.mx en guinda, a juego con la barra superior */
.footer-gobmx { background: var(--gobmx-guinda); }
.plecafin-gob { background: var(--gobmx-guinda); line-height: 0; }
.plecafin-gob img { width: 100%; height: auto; }

/* ---------- Encabezado del micrositio ---------- */
.logo-aniversario {
  width: 140px;
  height: auto;
}

.logo-evento {
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.25));
}

.acciones-hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.5rem 0 0.5rem;
}

.btn-registro {
  background: var(--acento);
  border: 0;
  color: var(--acento-oscuro);
  font-weight: 700;
  border-radius: 999px;
  padding-left: 1.75rem;
  padding-right: 1.75rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-registro:hover,
.btn-registro:focus {
  background: #7dd8f5;
  color: var(--acento-oscuro);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}
.acciones-hero .btn-outline-light {
  border-radius: 999px;
  border-width: 2px;
  font-weight: 600;
}

/* ---------- Secciones y tarjetas ---------- */
.seccion {
  margin-top: 3.5rem;
  margin-bottom: 1rem;
  scroll-margin-top: 1rem;
}

.titulo-seccion {
  text-align: center;
  font-weight: 700;
  font-size: clamp(1.6rem, 2.5vw, 2.1rem);
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.titulo-seccion::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  margin: 0.6rem auto 0;
  border-radius: 4px;
  background: var(--acento);
}

.subtitulo-seccion {
  text-align: center;
  margin-top: -0.75rem;
  margin-bottom: 1.5rem;
  color: var(--texto-suave);
}

.tarjeta {
  background: var(--tarjeta-fondo);
  border: 1px solid var(--tarjeta-borde);
  border-radius: var(--radio);
  padding: 1.75rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
}
@media (max-width: 575.98px) {
  .tarjeta { padding: 1.25rem; }
}

.texto-destacado {
  font-size: 1.1rem;
  line-height: 1.7;
}

/* Datos del evento */
.datos-evento .dato {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 1.1rem 0.75rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.datos-evento .dato i {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--acento);
  color: var(--acento-oscuro);
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}
.dato-titulo {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--texto-suave);
}
.dato-valor {
  font-weight: 700;
  line-height: 1.3;
}

.cenac-img {
  max-width: 340px;
  width: 100%;
  background: #fff;
  border-radius: 12px;
  padding: 12px 18px;
}

/* Ejes temáticos */
.ejes-lista .eje {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 1rem 1.25rem;
  border-radius: 14px;
  background: var(--tarjeta-fondo);
  border: 1px solid var(--tarjeta-borde);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 500;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.ejes-lista li { margin-bottom: 0; display: block; }
.vineta { width: 40px; height: auto; flex-shrink: 0; }

/* Ligas con imagen */
.liga-imagen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  text-align: center;
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.liga-imagen img {
  height: 160px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 1rem;
}
.liga-imagen span { font-weight: 600; }
.liga-imagen:hover,
.liga-imagen:focus {
  color: #fff;
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
}
.liga-imagen:hover span { text-decoration: underline; }

/* Programa */
.visor-programa {
  width: 100%;
  height: 630px;
  border: 0;
  border-radius: 12px;
  background: #fff;
}
@media (max-width: 575.98px) {
  .visor-programa { height: 460px; }
}
#programa .btn-outline-light { border-radius: 999px; }

/* ---------- Formulario de registro ---------- */
.tarjeta-formulario fieldset { border: 0; padding: 0; margin: 0; }

.paso {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.9rem;
  float: none;
  width: auto;
  color: #fff;
}
.paso-numero {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--acento);
  color: var(--acento-oscuro);
  font-size: 0.95rem;
}

.nota-obligatorio,
.texto-ayuda {
  font-size: 0.85rem;
  color: var(--texto-suave) !important;
}

.tarjeta-formulario .form-label {
  font-weight: 500;
  margin-bottom: 0.35rem;
}
.tarjeta-formulario .form-control,
.tarjeta-formulario .form-select {
  border-radius: 10px;
  padding: 0.6rem 0.85rem;
}
.tarjeta-formulario .input-group > .form-control { border-radius: 10px 0 0 10px; }
.tarjeta-formulario .input-group > .btn { border-radius: 0 10px 10px 0; }

/* Tipo de asistente: botones grandes en lugar de radios pequeños */
.tipos-asistente {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
@media (max-width: 575.98px) {
  .tipos-asistente { grid-template-columns: 1fr; }
}
.btn-tipo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 1rem 0.5rem;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
}
@media (max-width: 575.98px) {
  .btn-tipo { flex-direction: row; justify-content: center; }
}
.btn-tipo i { font-size: 1.5rem; }
.btn-tipo:hover { color: #fff; border-color: #fff; background: rgba(255, 255, 255, 0.14); }
.btn-check:checked + .btn-tipo {
  background: #fff;
  border-color: #fff;
  color: var(--gobmx-guinda);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Preguntas Sí / No */
.pregunta { margin-bottom: 1.25rem !important; }
.pregunta legend {
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
  margin-bottom: 0.6rem;
  float: none;
}
.opciones-si-no { display: flex; gap: 0.6rem; }
.btn-opcion {
  min-width: 96px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  font-weight: 600;
}
.btn-opcion:hover { color: #fff; border-color: #fff; background: rgba(255, 255, 255, 0.14); }
.btn-check:checked + .btn-opcion {
  background: #fff;
  border-color: #fff;
  color: var(--gobmx-guinda);
}

/* Campos faltantes al intentar enviar */
.was-validated .btn-check:invalid + .btn-tipo,
.was-validated .btn-check:invalid + .btn-opcion {
  border-color: #ff8a8a;
  background: rgba(220, 53, 69, 0.2);
}

/* Datos del empleado encontrados */
.bg-datosform {
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 12px !important;
  background: rgba(0, 0, 0, 0.15);
}
.bg-datosform:empty { display: none; }
#datosemple li { margin-bottom: 0.2rem; }
#datosemple .text-warning { color: #ffd54f !important; }

.aviso-registro {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  background: rgba(72, 198, 239, 0.16);
  border-left: 4px solid var(--acento);
  font-size: 0.95rem;
}
.aviso-registro i { color: var(--acento); font-size: 1.25rem; margin-top: 0.1rem; }

.ayuda-extensiones {
  margin: 1.25rem 0 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--texto-suave);
}

.tarjeta-qr h3 { color: #fff; font-weight: 700; margin-bottom: 0.75rem; }

/* Avisos (toastr) sobre el contenido */
#toast-container > div { opacity: 0.97; border-radius: 10px; }

/* ---------- Panel (dashboard / usuarios) ---------- */
.panel-nav { padding: 0.85rem 1.1rem; }

.usuario-fila {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.usuario-fila:last-child { border-bottom: 0; padding-bottom: 0; }
.usuario-fila:first-of-type { padding-top: 0; }
.usuario-fila.inactivo { opacity: 0.65; }

/* ---------- Asistencia virtual ---------- */
.logo-asistencia { max-width: 360px; }

.nombre-encontrado {
  font-family: "Montserrat", "Roboto", sans-serif;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.25rem;
}

.resultado-asistencia .icono-exito { font-size: 3.5rem; color: #5ee69a; }
.resultado-asistencia .icono-espera { font-size: 3rem; color: var(--acento); }

/* Aviso en el micrositio mientras el registro está abierto */
.aviso-asistencia-abierta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background: #fff;
  color: var(--gobmx-guinda);
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease;
}
.aviso-asistencia-abierta:hover,
.aviso-asistencia-abierta:focus { color: var(--gobmx-guinda); transform: translateY(-2px); }
.punto-vivo {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #e53935;
  flex-shrink: 0;
  animation: pulso 1.4s ease-in-out infinite;
}
@keyframes pulso {
  0%, 100% { box-shadow: 0 0 0 0 rgba(229, 57, 53, 0.6); }
  50% { box-shadow: 0 0 0 8px rgba(229, 57, 53, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .punto-vivo { animation: none; }
}

/* Panel */
.estado-asistencia {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 1.05rem;
  color: #fff;
}
.estado-asistencia.abierto { background: rgba(46, 160, 67, 0.35); border: 1px solid rgba(94, 230, 154, 0.6); }
.estado-asistencia.cerrado { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.25); }

.lista-recientes li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
}
.lista-recientes li:last-child { border-bottom: 0; }

/* ---------- Dashboard: lista de participantes ---------- */
.tarjeta-resumen { background: var(--tarjeta-fondo); border: 1px solid var(--tarjeta-borde); color: #fff; }

.tabla-participantes {
  background: #fff;
  border-radius: 14px;
  padding: 1rem;
  color: #212529;
  overflow-x: auto;   /* respaldo: la página nunca se desborda */
}
@media (max-width: 575.98px) {
  .tarjeta-tabla { padding: 0.75rem; }
  .tabla-participantes { padding: 0.6rem; border-radius: 10px; }
}
/* styles.css pinta de blanco todos los label/p: aquí van sobre fondo blanco */
.tabla-participantes label,
.tabla-participantes p,
.tabla-participantes .dataTables_info { color: #444 !important; }

.tabla-participantes .dataTables_wrapper .row { row-gap: 0.5rem; }
.tabla-participantes .dataTables_filter input {
  border: 1px solid #ced4da;
  border-radius: 8px;
  padding: 0.35rem 0.6rem;
  margin-left: 0.4rem;
  min-width: 220px;
}
.tabla-participantes .dataTables_length select {
  border: 1px solid #ced4da;
  border-radius: 8px;
  padding: 0.2rem 0.4rem;
}
@media (max-width: 575.98px) {
  .tabla-participantes .dataTables_filter,
  .tabla-participantes .dataTables_length { text-align: left !important; float: none !important; }
  .tabla-participantes .dataTables_filter input { min-width: 0; width: 100%; margin: 0.25rem 0 0; }
  .tabla-participantes .dataTables_paginate { float: none !important; text-align: center; margin-top: 0.5rem; }
}

#TablaPar { border-collapse: collapse !important; }
#TablaPar thead th {
  background: var(--gobmx-guinda);
  color: #fff;
  font-weight: 600;
  border-bottom: 0;
  white-space: nowrap;
}
#TablaPar thead th:first-child { border-top-left-radius: 8px; }
#TablaPar thead th:last-child { border-top-right-radius: 8px; }
#TablaPar td { border-bottom: 1px solid #eee; }
#TablaPar td.col-correo { overflow-wrap: anywhere; }
#TablaPar td.col-unidad { min-width: 160px; }
#TablaPar .col-detalle { width: 44px; text-align: center; }
#TablaPar .col-correo { max-width: 240px; }
#TablaPar tr.abierta > td { background: #f7eef2; }

.btn-detalle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 0;
  background: var(--gobmx-guinda);
  color: #fff;
  font-size: 0.8rem;
  display: inline-grid;
  place-items: center;
  transition: transform 0.15s ease;
}
.btn-detalle:hover { transform: scale(1.1); }

/* Detalle desplegado de un participante */
#TablaPar td.fila-detalle, #TablaPar tr > td.fila-detalle { background: #faf6f8; padding: 0; }
.detalle-participante {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  padding: 1rem;
}
.detalle-grupo {
  background: #fff;
  border: 1px solid #eadde3;
  border-radius: 10px;
  padding: 0.85rem 1rem;
}
.detalle-grupo h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gobmx-guinda);
  margin-bottom: 0.6rem;
}
.detalle-grupo dl { margin: 0; }
.detalle-campo { margin-bottom: 0.5rem; }
.detalle-campo:last-child { margin-bottom: 0; }
.detalle-campo dt { font-size: 0.75rem; font-weight: 600; color: #6c757d; text-transform: uppercase; letter-spacing: 0.02em; }
.detalle-campo dd { margin: 0; color: #212529; white-space: pre-wrap; overflow-wrap: anywhere; }

@media (max-width: 575.98px) {
  #TablaPar th, #TablaPar td { padding: 0.45rem 0.35rem; font-size: 0.88rem; }
  #TablaPar thead th.sorting,
  #TablaPar thead th.sorting_asc,
  #TablaPar thead th.sorting_desc { padding-right: 1.3rem; }
  #TablaPar .col-detalle { width: 36px; }
  #TablaPar thead th { white-space: normal; }
  #TablaPar td small.text-muted { display: none !important; }  /* la hora sigue en el detalle "+" */
  .detalle-participante { padding: 0.6rem; gap: 0.6rem; grid-template-columns: 1fr; }
}

/* Botón de descarga de Excel */
.btn-excel {
  background: #1d6f42;
  border: 0;
  color: #fff;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
}
.btn-excel:hover, .btn-excel:focus, .btn-excel.show { background: #185c37; color: #fff; }
.tarjeta-tabla .dropdown-menu { border-radius: 10px; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2); }

/* ---------- Guía de funcionamiento (/panel/ayuda) ---------- */
.indice-ayuda { padding: 1.1rem 1.25rem; }
@media (min-width: 992px) {
  .indice-ayuda { position: sticky; top: 1rem; }
}
.indice-ayuda ol { margin: 0; padding-left: 1.2rem; }
.indice-ayuda li { margin-bottom: 0.35rem; color: var(--texto-suave); }
.indice-ayuda a { color: #fff; text-decoration: none; }
.indice-ayuda a:hover, .indice-ayuda a:focus { color: var(--acento); text-decoration: underline; }

.guia-ayuda .tarjeta { margin-bottom: 1.25rem; scroll-margin-top: 1rem; line-height: 1.6; }
.guia-ayuda h2 { font-size: 1.25rem; font-weight: 700; color: #fff; margin-bottom: 0.9rem; }
.guia-ayuda h2 i { color: var(--acento); }
.guia-ayuda h3 { font-size: 1rem; font-weight: 700; color: var(--acento); margin: 1rem 0 0.5rem; }
.guia-ayuda li { margin-bottom: 0.3rem; }
.guia-ayuda li ul { margin-top: 0.3rem; }
.guia-ayuda a { color: var(--acento); overflow-wrap: anywhere; }
.guia-ayuda a:hover { color: #9be3fa; }
.guia-ayuda code {
  color: #ffe1ec;
  background: rgba(0, 0, 0, 0.25);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  overflow-wrap: anywhere;
}

.tabla-ayuda {
  --bs-table-bg: transparent;
  --bs-table-color: #fff;
  color: #fff;
  margin-bottom: 1rem;
}
.tabla-ayuda th { color: var(--acento); border-bottom: 1px solid rgba(255, 255, 255, 0.35); }
.tabla-ayuda td { border-bottom: 1px solid rgba(255, 255, 255, 0.15); vertical-align: top; }
@media (max-width: 575.98px) {
  .tabla-ayuda { font-size: 0.9rem; }
}

.aviso-ayuda {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: rgba(255, 213, 79, 0.18);
  border-left: 4px solid #ffd54f;
}

.faq-ayuda dt { color: #fff; font-weight: 700; margin-top: 0.9rem; }
.faq-ayuda dt:first-child { margin-top: 0; }
.faq-ayuda dd { color: var(--texto-suave); margin: 0.25rem 0 0; }

/* ==========================================================================
   TEMA CLARO (ajustes 14/10/2026): fondo claro y difuminado, texto oscuro.
   Va al final para sobrescribir los colores pensados para fondo oscuro.
   La barra y el pie de gob.mx no cambian.
   ========================================================================== */
:root {
  --texto: #2d2a3e;
  --texto-suave: #5d5870;
  --guinda: #611232;
  --guinda-claro: #8e2b5e;
  --tarjeta-fondo: rgba(255, 255, 255, 0.78);
  --tarjeta-borde: rgba(97, 18, 50, 0.12);
}

body.bg-fondo {
  background-color: #fbf7f5;
  background-image:
    radial-gradient(circle at 8% 18%, rgba(255, 196, 160, 0.55), transparent 38%),
    radial-gradient(circle at 92% 12%, rgba(244, 170, 200, 0.45), transparent 36%),
    radial-gradient(circle at 50% 55%, rgba(255, 255, 255, 0.9), transparent 55%),
    radial-gradient(circle at 88% 80%, rgba(150, 205, 240, 0.5), transparent 42%),
    radial-gradient(circle at 12% 88%, rgba(195, 175, 240, 0.45), transparent 42%);
  background-attachment: fixed;
  background-size: cover;
  color: var(--texto);
}

/* Títulos */
.titulo-seccion { color: var(--guinda); text-shadow: none; }
.titulo-seccion::after { background: linear-gradient(90deg, var(--guinda), var(--acento)); }
.subtitulo-seccion { color: var(--texto-suave); }

/* Tarjetas */
.tarjeta {
  color: var(--texto);
  box-shadow: 0 10px 30px rgba(97, 18, 50, 0.08);
}
.tarjeta :is(h1, h2, h3, h4, h5, h6, p, label, legend, dt, li),
main :is(h2, h5, label, p, legend) { color: inherit; }
.tarjeta .text-white { color: var(--texto) !important; }
.tarjeta .link-light { color: var(--guinda) !important; }
.texto-destacado, .tarjeta .lead { color: var(--texto); }

/* Botones */
.btn-registro {
  background: linear-gradient(135deg, var(--guinda), var(--guinda-claro));
  color: #fff;
  box-shadow: 0 8px 20px rgba(97, 18, 50, 0.25);
}
.btn-registro:hover, .btn-registro:focus {
  background: linear-gradient(135deg, #4a0d26, var(--guinda));
  color: #fff;
}
main .btn-outline-light,
.tarjeta .btn-outline-light {
  color: var(--guinda);
  border-color: rgba(97, 18, 50, 0.45);
  background: rgba(255, 255, 255, 0.7);
}
main .btn-outline-light:hover, main .btn-outline-light:focus,
.tarjeta .btn-outline-light:hover, .tarjeta .btn-outline-light:focus {
  color: #fff;
  background: var(--guinda);
  border-color: var(--guinda);
}
.tarjeta .btn-light, main .btn-light {
  background: #fff;
  border: 1px solid rgba(97, 18, 50, 0.25);
  color: var(--guinda);
}
.tarjeta .btn-light:hover, main .btn-light:hover { background: #f7eef2; color: var(--guinda); }
.panel-nav .btn-light, .panel-nav .btn-light:hover {
  background: var(--guinda);
  border-color: var(--guinda);
  color: #fff;
}
.paso-numero, .tarjeta .paso-numero, .datos-evento .dato i { background: var(--guinda); color: #fff; }

/* Inicio: datos y logos */
.datos-evento .dato { background: rgba(97, 18, 50, 0.05); border-color: rgba(97, 18, 50, 0.12); }
.dato-titulo { color: var(--texto-suave); }
.dato-valor { color: var(--guinda); }
.logos-aniversario {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
}
.logos-aniversario img { height: 150px; width: auto; max-width: 42%; object-fit: contain; }
@media (max-width: 575.98px) {
  .logos-aniversario { gap: 1.25rem; }
  .logos-aniversario img { height: 110px; }
}

/* Ejes y ligas */
.ejes-lista .eje { color: var(--texto); }
.liga-imagen { color: var(--texto); }
.liga-imagen:hover, .liga-imagen:focus { color: var(--guinda); }
.liga-imagen img { border: 1px solid rgba(97, 18, 50, 0.12); }

/* Formulario de registro */
.paso { color: var(--guinda); }
.pregunta legend { color: var(--texto); }
.btn-tipo, .btn-opcion {
  color: var(--texto);
  border-color: rgba(97, 18, 50, 0.3);
  background: rgba(255, 255, 255, 0.8);
}
.btn-tipo:hover, .btn-opcion:hover {
  color: var(--guinda);
  border-color: var(--guinda);
  background: #fff;
}
.btn-check:checked + .btn-tipo,
.btn-check:checked + .btn-opcion {
  background: var(--guinda);
  border-color: var(--guinda);
  color: #fff;
}
.was-validated .btn-check:invalid + .btn-tipo,
.was-validated .btn-check:invalid + .btn-opcion { border-color: #dc3545; background: rgba(220, 53, 69, 0.08); }
.bg-datosform { background: rgba(97, 18, 50, 0.04); border-color: rgba(97, 18, 50, 0.2); color: var(--texto) !important; }
#datosemple .text-warning { color: #8a5a00 !important; }
.aviso-registro { background: rgba(72, 198, 239, 0.14); }
.aviso-registro i { color: #1c8cb8; }
.tarjeta-qr h3 { color: var(--guinda); }

/* Asistencia (pública y panel) */
.nombre-encontrado { color: var(--guinda); }
.resultado-asistencia .icono-exito { color: #2e9e5b; }
.resultado-asistencia .icono-espera { color: var(--guinda); }
.estado-asistencia { color: var(--texto); }
.estado-asistencia.abierto { background: rgba(46, 158, 91, 0.14); border-color: rgba(46, 158, 91, 0.5); }
.estado-asistencia.cerrado { background: rgba(97, 18, 50, 0.05); border-color: rgba(97, 18, 50, 0.2); }
.lista-recientes li { color: var(--texto); border-bottom-color: rgba(97, 18, 50, 0.1); }

/* Panel */
.tarjeta-resumen { color: var(--texto); }
.usuario-fila { border-bottom-color: rgba(97, 18, 50, 0.12); }
.panel-nav .btn-outline-light { background: #fff; }

/* Ayuda */
.indice-ayuda a { color: var(--texto); }
.indice-ayuda a:hover, .indice-ayuda a:focus { color: var(--guinda); }
.indice-ayuda li { color: var(--texto-suave); }
.guia-ayuda h2 { color: var(--guinda); }
.guia-ayuda h2 i { color: var(--guinda-claro); }
.guia-ayuda h3 { color: var(--guinda-claro); }
.guia-ayuda a { color: #1c6fa0; }
.guia-ayuda a:hover { color: var(--guinda); }
.guia-ayuda code { color: var(--guinda); background: rgba(97, 18, 50, 0.07); }
.tabla-ayuda { --bs-table-color: var(--texto); color: var(--texto); }
.tabla-ayuda th { color: var(--guinda); border-bottom-color: rgba(97, 18, 50, 0.3); }
.tabla-ayuda td { border-bottom-color: rgba(97, 18, 50, 0.1); }
.faq-ayuda dt { color: var(--texto); }
.aviso-ayuda { background: rgba(255, 213, 79, 0.25); }

/* Capacitados en 40 horas por unidad */
#TablaCap { border-collapse: collapse !important; }
#TablaCap thead th {
  background: var(--gobmx-guinda);
  color: #fff;
  font-weight: 600;
  border-bottom: 0;
  white-space: nowrap;
}
#TablaCap thead th:first-child { border-top-left-radius: 8px; }
#TablaCap thead th:last-child { border-top-right-radius: 8px; }
#TablaCap td { border-bottom: 1px solid #eee; }
#TablaCap .col-detalle { width: 44px; text-align: center; }
#TablaCap tr.abierta > td { background: #f7eef2; }
#TablaCap td.fila-detalle { background: #faf6f8; padding: 0; }
.lista-capacitados { max-height: 420px; overflow-y: auto; margin: 0.75rem; background: #fff; border: 1px solid #eadde3; border-radius: 10px; }
.lista-capacitados thead th { position: sticky; top: 0; background: #f7eef2; color: var(--gobmx-guinda); font-size: 0.8rem; }
@media (max-width: 767.98px) {
  #TablaCap .col-opcional, .lista-capacitados .col-opcional { display: none; }
  #TablaCap th, #TablaCap td { padding: 0.45rem 0.35rem; font-size: 0.88rem; }
  .lista-capacitados { margin: 0.4rem; }
}
