/* ==========================================================================
   Panel del comité · estilos de administración, recibos y fichas
   ========================================================================== */

/* Badges ------------------------------------------------------------------ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #EEF3F8;
  color: #41576C;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge--recibida { background: #FFF2C7; color: #7A5A00; }
.badge--verificada { background: #E2F0FB; color: #01538F; }
.badge--afiliada { background: #E2F7EA; color: #14603A; }
.badge--rechazada { background: #FCE8E8; color: #9B1C1C; }

/* --------------------------------------------------------------------------
   Páginas simples (consulta y avisos)
   -------------------------------------------------------------------------- */
.pagina-simple { background: var(--fondo); min-height: 100vh; }
.simple-barra { background: #fff; border-bottom: 1px solid var(--borde); }
.simple-barra__caja { display: flex; align-items: center; justify-content: space-between; min-height: 72px; }
.simple-barra__volver { font-size: 12.5px; font-weight: 700; }
.simple {
  width: min(100% - 36px, 640px);
  margin: 42px auto 70px;
}
.simple__logo { margin: 0 auto 18px; border-radius: 50%; box-shadow: 0 0 0 1px var(--borde); }
.simple h1 { font-family: var(--display); font-size: 32px; color: var(--azul-900); text-align: center; margin-bottom: 10px; }
.simple > p { text-align: center; color: var(--muted); font-size: 14.5px; }
.simple__acciones { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

.simple--legal { width: min(100% - 36px, 820px); }
.legal-pagina {
  padding: 38px 42px;
  background: #fff;
  border: 1px solid var(--borde);
  border-radius: 22px;
  box-shadow: var(--sombra);
}
.legal-pagina h1 { font-family: var(--display); font-size: 34px; color: var(--azul-900); margin-bottom: 4px; text-align: left; }
.legal-pagina__fecha { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #7A8B9C; margin-bottom: 20px; }
.legal-pagina h2 { font-family: var(--display); font-size: 17px; color: var(--azul-900); margin: 24px 0 8px; }
.legal-pagina p, .legal-pagina li { font-size: 13.5px; line-height: 1.7; color: #40566C; }
.legal-pagina ul { list-style: disc; padding-left: 20px; margin: 0 0 1em; }
.legal-pagina li { margin-bottom: 4px; }
.legal-pagina__acciones { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--borde); }

@media (max-width: 640px) {
  .legal-pagina { padding: 24px 20px; }
  .legal-pagina h1 { font-size: 27px; }
}

.consulta {
  padding: 32px;
  background: #fff;
  border: 1px solid var(--borde);
  border-radius: 22px;
  box-shadow: var(--sombra);
}
.consulta h1 { font-size: 30px; text-align: left; margin-bottom: 8px; }
.consulta .kicker { margin-bottom: 8px; }
.consulta__intro { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.consulta__form { display: flex; flex-direction: column; gap: 14px; }
.consulta .aviso { margin-bottom: 16px; }
.consulta__resultado { padding: 18px; border: 1px solid #D8E7F4; border-left: 4px solid var(--amarillo); border-radius: 12px; background: #F4F9FE; margin-bottom: 16px; }
.consulta__estado { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px dashed #CFE0EE; }
.consulta__estado strong { font-family: var(--display); font-size: 19px; color: var(--azul-900); letter-spacing: .02em; }
.consulta__datos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin: 0; }
.consulta__datos dt { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #7A8B9C; }
.consulta__datos dd { margin: 2px 0 0; font-size: 13px; font-weight: 600; color: #2A3B4D; }
.consulta__nota { margin: 14px 0 0; padding-top: 12px; border-top: 1px dashed #CFE0EE; font-size: 11.5px; line-height: 1.55; color: #526B82; }
.consulta__ayuda, .consulta__otra { margin: 16px 0 0; text-align: center; font-size: 12px; color: var(--muted); }
.consulta__ayuda a, .consulta__otra a { font-weight: 700; }

/* --------------------------------------------------------------------------
   Comprobante
   -------------------------------------------------------------------------- */
.pagina-recibo { background: #EDF2F8; }
.recibo-barra { background: var(--azul-900); padding: 9px 0; color: #fff; }
.recibo-barra__caja { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.72); }
.marca--clara { color: #fff; }
.marca--clara img { width: 38px; height: 38px; }
.marca--clara .marca__texto strong { font-size: 16px; color: #fff; }
.marca--clara .marca__texto small { color: rgba(255,255,255,.55); font-size: 9px; }
.recibo { width: min(100% - 36px, 760px); margin: 28px auto 50px; }
.recibo__tarjeta {
  position: relative;
  overflow: hidden;
  padding: 38px 40px 30px;
  background: #fff;
  border: 1px solid var(--borde);
  border-radius: 24px;
  box-shadow: var(--sombra);
}
.recibo__tarjeta::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 7px; background: linear-gradient(90deg, var(--amarillo) 0 34%, var(--azul) 34% 100%); }
.recibo__cab { display: flex; align-items: flex-start; gap: 20px; }
.recibo__cab > img { width: 84px; height: 84px; border-radius: 50%; flex: none; }
.recibo__cab h1 { font-family: var(--display); font-size: 30px; color: var(--azul-900); margin: 2px 0 8px; }
.recibo__intro { font-size: 13.5px; color: var(--muted); margin: 0; }
.recibo__folio { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 24px 0; padding: 16px 20px; border-radius: 14px; background: var(--azul-900); color: #fff; }
.recibo__folio-etiqueta { display: block; font-size: 9.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.recibo__folio strong { font-family: var(--display); font-size: 28px; letter-spacing: .04em; color: var(--amarillo); }
.recibo__datos { display: grid; grid-template-columns: 1fr 1fr; gap: 13px 24px; margin: 0 0 20px; }
.recibo__datos div { border-bottom: 1px solid #EDF1F6; padding-bottom: 8px; }
.recibo__datos dt { font-size: 9.5px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; color: #7A8B9C; }
.recibo__datos dd { margin: 3px 0 0; font-size: 13.5px; font-weight: 600; color: #22374B; }
.recibo__nota { padding: 13px 15px; border-left: 4px solid var(--amarillo); border-radius: 8px; background: #FFF9E5; font-size: 12px; line-height: 1.55; color: #4E4113; }
.recibo__pasos { margin-top: 24px; }
.recibo__pasos h2 { font-family: var(--display); font-size: 16px; color: var(--azul-900); margin-bottom: 12px; }
.pasos--horizontal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.recibo__acciones { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.recibo__pie { margin: 26px 0 0; padding-top: 14px; border-top: 1px solid var(--borde); text-align: center; font-size: 10.5px; color: #8494A4; }
.recibo__ayuda { margin: 16px 0 0; text-align: center; font-size: 12px; color: var(--muted); }
.recibo__ayuda a { font-weight: 700; }

@media (max-width: 640px) {
  .recibo__tarjeta { padding: 26px 20px 22px; }
  .recibo__cab { flex-direction: column; gap: 12px; }
  .recibo__cab h1 { font-size: 25px; }
  .recibo__folio { flex-direction: column; align-items: flex-start; gap: 8px; }
  .recibo__datos { grid-template-columns: 1fr; }
  .pasos--horizontal { grid-template-columns: 1fr; }
  .recibo__acciones .boton { width: 100%; }
  .consulta { padding: 22px 18px; }
  .consulta__datos { grid-template-columns: 1fr; }
}

@media print {
  body.pagina-recibo { background: #fff; }
  .no-print { display: none !important; }
  .recibo { width: 100%; margin: 0; }
  .recibo__tarjeta { border: 0; box-shadow: none; padding: 0; border-radius: 0; }
  .recibo__tarjeta::before { display: none; }
  .recibo__folio { background: #0167AF !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .recibo__nota { background: #FFF9E5 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}


/* --------------------------------------------------------------------------
   Carné digital
   -------------------------------------------------------------------------- */
.pagina-carnet { background: radial-gradient(circle at 50% 10%, #E8F2FB 0%, #EDF2F8 55%, #E9EFF6 100%); }
.carnet-pagina { width: min(100% - 36px, 820px); margin: 24px auto 50px; }
.carnet-exito {
  display: flex; align-items: center; gap: 13px;
  margin-bottom: 16px; padding: 14px 18px;
  background: #E9F8EF; border: 1px solid #BFE8CE; border-radius: 14px; color: #17603C;
}
.carnet-exito__icono {
  width: 34px; height: 34px; flex: none; display: grid; place-items: center;
  border-radius: 50%; background: #1E8E5A; color: #fff; font-size: 18px; font-weight: 800;
}
.carnet-exito strong { display: block; font-size: 14px; }
.carnet-exito p { margin: 2px 0 0; font-size: 12px; color: #2F6B4B; }
.carnet-acciones { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.carnet-acciones__botones { display: flex; gap: 8px; flex-wrap: wrap; }
.carnet-wrap { position: relative; width: 100%; max-width: 760px; height: 480px; margin: 0 auto; }
.carnet {
  position: relative;
  width: 760px;
  height: 480px;
  display: flex;
  flex-direction: column;
  padding: 26px 30px 22px;
  overflow: hidden;
  border-radius: 22px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 8%, rgba(255, 203, 6, .18), transparent 34%),
    linear-gradient(135deg, #062A47 0%, #014E86 58%, #0167AF 100%);
  box-shadow: 0 30px 65px rgba(6, 42, 71, .28);
  transform-origin: top left;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
.carnet::before {
  content: "";
  position: absolute;
  right: -150px;
  top: -170px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  border: 34px solid rgba(255, 203, 6, .16);
  pointer-events: none;
}
.carnet::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 7px;
  background: linear-gradient(90deg, var(--amarillo) 0 42%, #0167AF 42% 100%);
}
.carnet__cab { position: relative; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, .18); }
.carnet__marca { display: flex; align-items: center; gap: 10px; }
.carnet__marca img { width: 50px; height: 50px; border-radius: 50%; background: #fff; flex: none; }
.carnet__marca strong { display: block; font-family: var(--display); font-size: 20px; letter-spacing: .06em; line-height: 1; }
.carnet__marca span { display: block; margin-top: 4px; font-size: 8px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: rgba(255, 255, 255, .62); }
.carnet__tipo { text-align: right; line-height: 1.15; }
.carnet__tipo span { display: block; font-size: 8px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.carnet__tipo b { display: block; font-family: var(--display); font-size: 25px; color: var(--amarillo); letter-spacing: .03em; }
.carnet__tipo small { display: block; font-size: 7.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .48); }
.carnet__cuerpo { position: relative; z-index: 1; display: flex; align-items: center; gap: 18px; flex: 1; padding: 14px 0 10px; }
.carnet__avatar {
  width: 88px; height: 88px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #0167AF;
  border: 3px solid var(--amarillo);
  color: var(--amarillo);
  font-family: var(--display);
  font-size: 29px;
  font-weight: 800;
  letter-spacing: .02em;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
}
.carnet__datos { flex: 1; min-width: 0; }
.carnet__rol { display: block; font-size: 8px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--amarillo); }
.carnet__datos h1 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 3px 0 6px; font-family: var(--display); font-size: 24px; line-height: 1.05; color: #fff; letter-spacing: -.005em; overflow-wrap: anywhere; }
.carnet__datos p { margin: 0 0 2px; font-size: 10.5px; color: rgba(255, 255, 255, .76); }
.carnet__qr { width: 112px; flex: none; padding: 6px 6px 4px; border-radius: 9px; background: #fff; text-align: center; }
.carnet__qr canvas { display: block; width: 100px; height: 100px; }
.carnet__qr small { display: block; margin-top: 2px; font-size: 6px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #41576C; }
.carnet__pie { position: relative; z-index: 1; display: flex; align-items: flex-end; gap: 18px; padding-top: 8px; }
.carnet__firma { width: 210px; flex: none; }
.carnet__firma-img { display: block; max-width: 100%; max-height: 46px; padding: 4px 6px; border-radius: 6px; background: #fff; }
.carnet__firma-vacia { display: grid; place-items: center; height: 46px; border-radius: 6px; background: #fff; color: #8494A4; font-size: 10px; }
.carnet__firma small { display: block; margin-top: 4px; font-size: 6.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .58); }
.carnet__folio { flex: 1; min-width: 0; }
.carnet__folio span { display: block; font-size: 6.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.carnet__folio b { display: block; font-family: var(--display); font-size: 16px; letter-spacing: .03em; color: var(--amarillo); }
.carnet__folio small { display: block; font-size: 7.5px; color: rgba(255, 255, 255, .55); }
.carnet__estado { flex: none; padding: 6px 11px; border-radius: 999px; font-size: 7.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.carnet__estado--afiliada { background: #1E8E5A; color: #fff; }
.carnet__estado--verificada, .carnet__estado--recibida { background: var(--amarillo); color: #062A47; }
.carnet__estado--rechazada { background: #C62828; color: #fff; }
.carnet-nota { max-width: 760px; margin: 16px auto 0; text-align: center; font-size: 10.5px; line-height: 1.6; color: #6B7D90; }
.carnet-enlaces { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }


/* Credencial digital (un solo lado) -------------------------------------- */
.credencial-wrap { width: 100%; max-width: 760px; margin: 0 auto; }
.credencial {
  position: relative;
  width: 760px;
  height: 480px;
  overflow: hidden;
  padding: 24px 30px 0;
  background: #fff;
  border: 1px solid #DCE4EE;
  border-radius: 14px;
  box-shadow: 0 22px 50px rgba(6, 42, 71, .16);
  color: #16283A;
  transform-origin: top left;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
.credencial::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px; background: var(--azul); }
.credencial__esquina { position: absolute; z-index: 0; pointer-events: none; }
.credencial__esquina--amarilla { top: 0; right: 0; width: 100px; height: 66px; background: var(--amarillo); clip-path: polygon(100% 0, 0 0, 100% 100%); }
.credencial__esquina--azul { bottom: 0; right: 0; width: 86px; height: 54px; background: var(--azul); clip-path: polygon(100% 0, 100% 100%, 0 100%); }

.credencial__cab { position: relative; z-index: 2; display: flex; align-items: flex-start; gap: 12px; padding-top: 7px; }
.credencial__logo { width: 96px; height: 96px; flex: none; border-radius: 50%; box-shadow: 0 0 0 1px #E4EAF1; }
.credencial__titulos { min-width: 0; padding-top: 0; }
.credencial__titulos strong { display: block; font-family: var(--display); font-size: 21px; letter-spacing: .015em; line-height: 1.05; color: var(--azul); }
.credencial__titulos > span { display: block; margin-top: 2px; font-family: var(--display); font-size: 18px; line-height: 1.05; color: var(--azul); }
.credencial__titulos > span::after { content: ""; display: block; width: 48px; height: 3px; margin-top: 5px; background: var(--amarillo); }
.credencial__estado { display: inline-block; margin-top: 5px; padding: 3px 8px; border-radius: 999px; font-style: normal; font-size: 6.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.credencial__estado--recibida, .credencial__estado--verificada, .credencial__estado--proceso { background: #FFF2C7; color: #7A5A00; }
.credencial__estado--afiliada { background: #E2F7EA; color: #14603A; }
.credencial__estado--rechazada { background: #FCE8E8; color: #9B1C1C; }
.credencial__folio { position: absolute; right: 125px; top: 28px; z-index: 2; font-family: var(--display); font-size: 9.5px; font-weight: 700; letter-spacing: .05em; color: var(--azul); }

.credencial__campos { position: absolute; z-index: 2; left: 30px; right: 30px; top: 140px; display: flex; flex-direction: column; gap: 12px; }
.credencial__fila { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.credencial__campo { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.credencial__campo span { font-size: 7.2px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--azul); }
.credencial__campo b {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 21px; padding-bottom: 3px; border-bottom: 1px solid #AFC0D0;
  font-size: 14.5px; font-weight: 600; line-height: 1.22; color: #16283A;
}

.credencial__firma { position: absolute; left: 30px; top: 315px; width: 330px; z-index: 2; text-align: left; }
.credencial__firma-img { display: block; max-width: 320px; max-height: 56px; }
.credencial__firma-linea { display: block; width: 310px; height: 42px; border-bottom: 1px solid #8494A4; }
.credencial__firma small { display: block; margin-top: 6px; font-size: 6.8px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: #5C6C7D; }
.credencial__firma::after { content: "Validada ante el delegado del partido"; display: block; margin-top: 5px; font-size: 6.4px; line-height: 1.35; color: #6B7D90; }
.credencial__legal { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; margin: 0; padding: 9px 220px 10px 30px; background: #fff; border-top: 3px solid var(--amarillo); font-size: 8.2px; line-height: 1.42; color: #2F4358; }
.credencial__sello { position: absolute; right: 30px; bottom: 8px; z-index: 3; width: 180px; padding-left: 12px; border-left: 3px solid var(--azul); text-align: left; }
.credencial__sello strong { display: block; font-family: var(--display); font-size: 8.8px; line-height: 1.1; letter-spacing: .06em; color: var(--azul); }
.credencial__sello small { display: inline-block; margin-top: 4px; padding: 3px 8px; border-radius: 999px; background: var(--amarillo); color: var(--azul-900); font-size: 5.6px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.credencial__qr { position: absolute; right: 30px; top: 315px; z-index: 2; width: 100px; padding: 5px 5px 3px; background: #fff; border: 1px solid #DCE4EE; border-radius: 7px; text-align: center; }
.credencial__qr canvas { display: block; width: 88px; height: 88px; }
.credencial__qr small { display: block; margin-top: 1px; font-size: 5.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #5C6C7D; }

@media (max-width: 640px) {
  .credencial__campo b { font-size: 13.5px; }
}
/* Verificación pública ------------------------------------------------------ */
.simple--verifica { width: min(100% - 36px, 620px); }
.verifica {
  padding: 32px 32px 28px;
  background: #fff;
  border: 1px solid var(--borde);
  border-top: 6px solid #C62828;
  border-radius: 20px;
  box-shadow: var(--sombra);
  text-align: center;
}
.verifica .kicker { justify-content: center; margin-bottom: 10px; }
.verifica__icono {
  width: 62px; height: 62px; display: grid; place-items: center;
  margin: 0 auto 14px; border-radius: 50%;
  background: #FCE8E8; color: #9B1C1C;
  font-size: 30px; font-weight: 800; line-height: 1;
}
.verifica h1 { font-family: var(--display); font-size: 30px; color: var(--azul-900); margin: 0 0 8px; }
.verifica__detalle { font-size: 13.5px; line-height: 1.6; color: var(--muted); margin-bottom: 18px; }
.verifica__datos { display: grid; grid-template-columns: 1fr 1fr; gap: 11px 18px; margin: 0 0 16px; padding: 16px 18px; background: #F7FAFD; border-radius: 12px; text-align: left; }
.verifica__datos dt { font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #7A8B9C; }
.verifica__datos dd { margin: 2px 0 0; font-size: 12.5px; font-weight: 600; color: #22374B; }
.verifica__estado { font-size: 12px; color: #4A6076; margin-bottom: 12px; }
.verifica__nota { font-size: 10.5px; line-height: 1.55; color: #8494A4; margin: 0 0 18px; padding-top: 14px; border-top: 1px solid #EDF1F6; }
.verifica--afiliada { border-top-color: #1E8E5A; }
.verifica--afiliada .verifica__icono { background: #E2F7EA; color: #14603A; }
.verifica--verificada, .verifica--recibida { border-top-color: var(--amarillo); }
.verifica--verificada .verifica__icono, .verifica--recibida .verifica__icono { background: #FFF2C7; color: #7A5A00; }
.verifica--rechazada .verifica__icono, .verifica--invalido .verifica__icono { background: #FCE8E8; color: #9B1C1C; }

/* Firma en el panel y la ficha ---------------------------------------------- */

.bitacora { margin-top: 28px; padding: 20px; background: #fff; border: 1px solid var(--borde); border-radius: 16px; }
.bitacora h2 { margin: 0 0 10px; font-family: var(--display); font-size: 16px; color: var(--azul-900); }
.bitacora-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.bitacora-lista li { padding: 9px 0; border-top: 1px solid #EDF1F6; font-size: 12px; line-height: 1.4; }
.bitacora-lista li:first-child { border-top: 0; padding-top: 0; }
.bitacora-lista b { color: #16283A; }
.bitacora-lista span { color: #40566C; }
.bitacora-lista small { display: block; margin-top: 2px; color: #7A8B9C; font-size: 10.5px; }
.firma-admin { max-width: 420px; padding: 10px; border: 1px solid var(--borde); border-radius: 10px; background: #fff; }
.firma-admin img { display: block; max-width: 100%; max-height: 110px; margin: 0 auto; }
.ficha__firma-img { display: block; max-width: 92%; max-height: 38px; margin: 0 auto 2px; }
.recibo__carnet-nota { margin: 10px 0 0; text-align: center; font-size: 11px; color: #6B7D90; }

@media (max-width: 640px) {
  .carnet-pagina { width: calc(100% - 24px); margin-top: 16px; }
  .carnet-acciones { flex-direction: column; align-items: stretch; }
  .carnet-acciones__botones { width: 100%; }
  .carnet-acciones__botones .boton { flex: 1; }
  .carnet-exito { align-items: flex-start; }
  .carnet-nota { font-size: 10px; }
  .verifica { padding: 24px 20px; }
  .verifica h1 { font-size: 26px; }
  .verifica__datos { grid-template-columns: 1fr; }
}

@media print {
  body.pagina-carnet { background: #fff; }
  .pagina-carnet .simple-barra,
  .carnet-acciones,
  .carnet-exito,
  .carnet-enlaces { display: none !important; }
  .carnet-pagina { width: auto; margin: 0; }
  .carnet-wrap { width: 85.6mm; height: 54mm; max-width: none; margin: 0; }
  .carnet { transform: scale(0.42) !important; border-radius: 3mm; box-shadow: none; }
  .carnet-nota { margin-top: 6mm; max-width: 100%; text-align: left; }
  @page { size: A4; margin: 15mm; }
}

/* --------------------------------------------------------------------------
   Login
   -------------------------------------------------------------------------- */
.login-pagina {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 203, 6, .14), transparent 32%),
    radial-gradient(circle at 88% 88%, rgba(1, 103, 175, .28), transparent 40%),
    var(--azul-900);
  display: grid;
  place-items: center;
  padding: 30px 18px;
}
.login {
  width: min(100%, 420px);
  padding: 34px;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .3);
}
.login__marca { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.login__marca img { width: 62px; height: 62px; border-radius: 50%; box-shadow: 0 0 0 1px var(--borde); }
.login__marca strong { display: block; font-family: var(--display); font-size: 20px; color: var(--azul-900); letter-spacing: .02em; }
.login__marca span { display: block; font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.login h1 { font-family: var(--display); font-size: 26px; color: var(--azul-900); margin-bottom: 8px; }
.login__intro { font-size: 12.5px; color: var(--muted); line-height: 1.55; margin-bottom: 18px; }
.login__form { display: flex; flex-direction: column; gap: 14px; }
.login__pie { margin: 20px 0 0; text-align: center; font-size: 11.5px; }
.login .aviso { margin-bottom: 16px; }

/* --------------------------------------------------------------------------
   Panel
   -------------------------------------------------------------------------- */
.admin { background: #F2F6FA; min-height: 100vh; }
.admin-barra { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--borde); }
.admin-barra__caja { width: min(100% - 36px, 1240px); margin-inline: auto; min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.admin-barra__marca { display: flex; align-items: center; gap: 10px; color: var(--azul-900); }
.admin-barra__marca:hover { text-decoration: none; }
.admin-barra__marca img { width: 40px; height: 40px; border-radius: 50%; }
.admin-barra__marca strong { display: block; font-family: var(--display); font-size: 15px; }
.admin-barra__marca small { display: block; font-size: 9px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.admin-barra__nav { display: flex; align-items: center; gap: 4px; }
.admin-barra__nav a { display: inline-flex; align-items: center; gap: 6px; padding: 9px 12px; border-radius: 8px; font-size: 12px; font-weight: 700; color: #40566C; }
.admin-barra__nav a:hover { background: #F1F6FB; text-decoration: none; color: var(--azul); }
.admin-barra__nav a.activo { background: #EAF4FC; color: var(--azul); }
.admin-barra__nav a.salir { color: #9B1C1C; }
.admin-barra__nav a.salir:hover { background: #FDF0F0; }
.admin-barra__rol { padding: 0 8px; font-size: 10.5px; font-weight: 700; color: #6B7D90; white-space: nowrap; }
.admin-main { width: min(100% - 36px, 1240px); margin: 26px auto 60px; }
.admin-cab { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 18px; }
.admin-cab h1 { font-family: var(--display); font-size: 32px; color: var(--azul-900); margin: 2px 0 4px; }
.admin-cab__sub { margin: 0; font-size: 12.5px; color: var(--muted); }
.admin-cab__acciones { display: flex; gap: 8px; flex-wrap: wrap; }

.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 16px; }
.stat { padding: 14px 16px; background: #fff; border: 1px solid var(--borde); border-radius: 14px; }
.stat span { display: block; font-size: 9.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #7A8B9C; }
.stat strong { display: block; margin: 4px 0 1px; font-family: var(--display); font-size: 26px; line-height: 1; color: var(--azul-900); }
.stat small { font-size: 10.5px; color: #8494A4; }
.stat--amarillo { background: var(--amarillo); border-color: var(--amarillo); }
.stat--amarillo span, .stat--amarillo small { color: #6B5200; }
.stat--amarillo strong { color: var(--azul-900); }
.stat--verde { background: #F0FBF4; border-color: #CDEFD9; }
.stat--verde strong { color: #14603A; }
.stat--azul { background: #E8F2FB; border-color: #B7D4EA; }
.stat--azul span, .stat--azul small { color: #40566C; }
.stat--azul strong { color: var(--azul); }

.filtros { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px; background: #fff; border: 1px solid var(--borde); border-radius: 14px; margin-bottom: 14px; }
.filtros__buscar { position: relative; flex: 1 1 260px; min-width: 220px; }
.filtros__buscar .icono { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: #8494A4; }
.filtros__buscar input { width: 100%; height: 42px; padding: 0 12px 0 36px; border: 1px solid var(--borde); border-radius: 9px; background: #FBFCFE; font: inherit; font-size: 12.5px; }
.filtros select { height: 42px; padding: 0 30px 0 10px; border: 1px solid var(--borde); border-radius: 9px; background: #FBFCFE; font: inherit; font-size: 12px; color: #33495E; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 10 7'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%235C6C7D' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
.filtros__buscar input:focus, .filtros select:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 3px rgba(1,103,175,.1); }
.filtros__limpiar { font-size: 11.5px; font-weight: 700; padding: 0 6px; }

.tabla-caja { background: #fff; border: 1px solid var(--borde); border-radius: 14px; overflow: auto; }
.tabla { width: 100%; border-collapse: collapse; min-width: 760px; }
.tabla th { position: sticky; top: 0; z-index: 1; padding: 11px 14px; background: #F8FAFC; border-bottom: 1px solid var(--borde); text-align: left; font-size: 9.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #6B7D90; white-space: nowrap; }
.tabla td { padding: 11px 14px; border-bottom: 1px solid #EEF2F7; font-size: 12.5px; color: #33495E; vertical-align: middle; }
.tabla tbody tr:last-child td { border-bottom: 0; }
.tabla tbody tr:hover { background: #FBFDFF; }
.tabla td strong { display: block; font-size: 12.5px; color: var(--azul-900); }
.tabla td small { display: block; margin-top: 2px; font-size: 10.5px; color: #8494A4; }
.tabla .folio { font-family: var(--display); font-size: 11.5px; font-weight: 700; color: var(--azul); letter-spacing: .02em; white-space: nowrap; }
.tabla__accion { text-align: right; }
.btn-ver { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; color: var(--azul); white-space: nowrap; }
.btn-ver .icono { width: 14px; height: 14px; }

.paginacion { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 16px 0; font-size: 12px; color: var(--muted); }
.paginacion a { font-weight: 700; }

.admin-vacio { padding: 52px 24px; text-align: center; }
.admin-vacio__icono { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #EAF4FC; color: var(--azul); margin-bottom: 12px; }
.admin-vacio h2 { font-family: var(--display); font-size: 20px; color: var(--azul-900); }
.admin-vacio p { font-size: 12.5px; color: var(--muted); margin-bottom: 16px; }

/* Detalle ----------------------------------------------------------------- */
.volver { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; font-size: 12px; font-weight: 700; }
.volver .icono { width: 15px; height: 15px; }
.detalle-cab { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 18px; }
.detalle-cab h1 { font-family: var(--display); font-size: 30px; color: var(--azul-900); margin: 2px 0 4px; letter-spacing: .02em; }
.detalle-cab p { margin: 0; font-size: 12px; color: var(--muted); }
.detalle-cab__lado { display: flex; align-items: center; gap: 10px; }
.detalle-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.bloque-admin { padding: 20px; background: #fff; border: 1px solid var(--borde); border-radius: 14px; margin-bottom: 12px; }
.bloque-admin h2 { font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #7A8B9C; margin-bottom: 14px; }
.dl { display: grid; grid-template-columns: 1fr 1fr; gap: 11px 22px; margin: 0; }
.dl .ancho { grid-column: 1 / -1; }
.dl dt { font-size: 9.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8494A4; }
.dl dd { margin: 2px 0 0; font-size: 13px; font-weight: 600; color: #22374B; }
.texto-admin { font-size: 12.5px; line-height: 1.6; color: #4A6076; }
.texto-admin--chico { font-size: 11px; color: #7A8B9C; margin-bottom: 0; }

.usuarios-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, .8fr); gap: 20px; align-items: start; }
.usuarios-grid .tarjeta-admin { margin-bottom: 0; }
.usuarios-grid .tabla { min-width: 0; }
.usuarios-acciones { display: flex; flex-wrap: wrap; gap: 6px; }
.usuarios-acciones form { margin: 0; }
.usuarios-form { display: grid; gap: 12px; }
@media (max-width: 960px) {
  .usuarios-grid { grid-template-columns: 1fr; }
  .admin-barra__rol { display: none; }
}
.tarjeta-admin { padding: 18px; background: #fff; border: 1px solid var(--borde); border-radius: 14px; margin-bottom: 12px; }
.tarjeta-admin h2 { font-family: var(--display); font-size: 15px; color: var(--azul-900); margin-bottom: 12px; }
.tarjeta-admin .campo { margin-bottom: 12px; }
.tarjeta-admin .campo label { font-size: 11.5px; }
.tarjeta-admin select, .tarjeta-admin textarea, .tarjeta-admin input[type="password"], .tarjeta-admin input[type="text"] { width: 100%; border: 1px solid var(--borde); border-radius: 9px; background: #FBFCFE; font: inherit; font-size: 13px; color: var(--texto); }
.tarjeta-admin select { height: 42px; padding: 0 10px; }
.tarjeta-admin textarea { padding: 10px; resize: vertical; min-height: 88px; line-height: 1.5; }
.tarjeta-admin select:focus, .tarjeta-admin textarea:focus, .tarjeta-admin input:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 3px rgba(1,103,175,.1); }
.tarjeta-admin--meta p { display: flex; justify-content: space-between; gap: 10px; margin: 0 0 7px; font-size: 11px; }
.tarjeta-admin--meta span { color: #7A8B9C; }
.tarjeta-admin--meta b { color: #33495E; text-align: right; word-break: break-all; }
.tarjeta-admin--peligro { border-color: #F0C8C8; background: #FFFBFB; }
.tarjeta-admin--peligro h2 { color: #9B1C1C; }
.tarjeta-admin--peligro p { font-size: 11.5px; color: #7A5A5A; }
.boton--peligro { background: #C62828; color: #fff; }
.boton--peligro:hover { background: #A81F1F; color: #fff; }

.seguridad { margin-top: 24px; padding: 16px 18px; background: #fff; border: 1px solid var(--borde); border-radius: 14px; }
.seguridad summary { font-size: 12px; font-weight: 700; color: #40566C; cursor: pointer; }
.seguridad__form { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 10px; align-items: end; margin-top: 14px; }
.seguridad__form .campo { margin: 0; }
.seguridad__form input { width: 100%; height: 40px; padding: 0 10px; border: 1px solid var(--borde); border-radius: 8px; font: inherit; font-size: 12.5px; }

/* --------------------------------------------------------------------------
   Ficha imprimible
   -------------------------------------------------------------------------- */
.ficha-pagina { background: #EDF2F8; padding: 20px; }
.ficha-acciones { width: min(100%, 820px); margin: 0 auto 12px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.ficha-acciones button { height: 38px; padding: 0 16px; border: 0; border-radius: 8px; background: var(--azul); color: #fff; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.ficha { width: min(100%, 820px); margin: 0 auto; padding: 32px; background: #fff; border-radius: 8px; box-shadow: 0 18px 50px rgba(6,42,71,.1); }
.ficha__cab { display: flex; align-items: center; gap: 16px; padding-bottom: 16px; border-bottom: 3px solid var(--azul); }
.ficha__cab img { width: 64px; height: 64px; border-radius: 50%; }
.ficha__cab strong { display: block; font-family: var(--display); font-size: 16px; color: var(--azul); letter-spacing: .04em; }
.ficha__cab span { display: block; font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #7A8B9C; }
.ficha__cab h1 { font-family: var(--display); font-size: 22px; color: var(--azul-900); margin: 4px 0 0; }
.ficha__folio { margin-left: auto; text-align: right; }
.ficha__folio small { display: block; font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #7A8B9C; }
.ficha__folio b { display: block; font-family: var(--display); font-size: 18px; color: var(--azul-900); margin: 2px 0 5px; }
.ficha__seccion { margin-top: 16px; }
.ficha__seccion h2 { font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #fff; background: var(--azul); display: inline-block; padding: 4px 10px; border-radius: 4px; margin-bottom: 10px; }
.ficha__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; }
.ficha__grid .ficha__ancho { grid-column: 1 / -1; }
.ficha__grid small { display: block; font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8494A4; }
.ficha__grid b { display: block; padding-bottom: 4px; border-bottom: 1px solid #E5EBF2; font-size: 12.5px; color: #22374B; }
.ficha__texto { font-size: 11px; line-height: 1.6; color: #40566C; }
.ficha__firmas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 34px; }
.ficha__firmas div { text-align: center; }
.ficha__firmas span { display: block; height: 42px; border-bottom: 1px solid #8494A4; }
.ficha__firmas small { display: block; margin-top: 5px; font-size: 9px; color: #6B7D90; }
.ficha__pie { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; padding-top: 10px; border-top: 1px solid var(--borde); font-size: 9px; color: #8494A4; }

/* Lista imprimible -------------------------------------------------------- */
.lista-pagina { background: #fff; padding: 20px 24px; }
.lista-acciones { display: flex; justify-content: space-between; margin-bottom: 16px; font-size: 12px; }
.lista-acciones button { height: 36px; padding: 0 14px; border: 0; border-radius: 7px; background: var(--azul); color: #fff; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.lista-cab { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 2px solid var(--azul-900); margin-bottom: 14px; }
.lista-cab img { width: 48px; height: 48px; border-radius: 50%; }
.lista-cab strong { display: block; font-family: var(--display); font-size: 14px; color: var(--azul-900); }
.lista-cab span { display: block; font-size: 10px; color: #6B7D90; }
.lista-cab small { margin-left: auto; font-size: 10px; color: #6B7D90; }
.tabla--print { min-width: 0; }
.tabla--print th, .tabla--print td { padding: 7px 8px; font-size: 10.5px; }
.tabla--print .firma { width: 120px; }
.tabla--print .firma img { display: block; width: auto; max-width: 100%; max-height: 34px; margin: 0 auto; }
.lista-pie { margin-top: 12px; font-size: 9px; color: #8494A4; }

/* --------------------------------------------------------------------------
   Responsive admin
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  .detalle-grid { grid-template-columns: 1fr; }
  .seguridad__form { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .admin-barra__nav a span { display: none; }
  .admin-cab { flex-direction: column; align-items: flex-start; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .dl { grid-template-columns: 1fr; }
  .filtros select { flex: 1 1 45%; }
  .seguridad__form { grid-template-columns: 1fr; }
  .ficha { padding: 20px; }
  .ficha__cab { flex-wrap: wrap; }
  .ficha__folio { margin-left: 0; text-align: left; }
  .ficha__grid { grid-template-columns: 1fr; }
  .ficha__firmas { grid-template-columns: 1fr; gap: 18px; }
  .ficha__pie { flex-direction: column; }
}

@media print {
  @page { size: A4; margin: 12mm; }
  body.ficha-pagina, body.lista-pagina { background: #fff; padding: 0; }
  .ficha-acciones, .lista-acciones { display: none !important; }
  .ficha { width: 100%; padding: 0; box-shadow: none; border-radius: 0; }
  .ficha__cab h1 { font-size: 20px; }
  .ficha__seccion { page-break-inside: avoid; }
  .tabla--print { width: 100%; }
  .tabla--print th { background: #EAF4FC !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .ficha__seccion h2 { background: #0167AF !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

@media print {
  body.pagina-carnet { background: #fff; }
  .pagina-carnet .simple-barra,
  .carnet-acciones,
  .carnet-exito,
  .carnet-enlaces { display: none !important; }
  .carnet-pagina { width: auto; margin: 0; }
  .credencial-wrap { width: 85.6mm; height: auto !important; max-width: none; margin: 0 auto; }
  .credencial { zoom: 0.42 !important; transform: none !important; width: 760px; height: 480px; margin: 0 0 8mm; border-radius: 3mm; box-shadow: none; page-break-inside: avoid; }
  .credencial + .credencial { margin-top: 0; }
  .carnet-nota { margin-top: 6mm; max-width: 100%; text-align: left; }
  @page { size: A4; margin: 15mm; }
}

/* Detalle más legible ------------------------------------------------------ */
@media (min-width: 900px) {
  .detalle-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; }
  .detalle-cab { margin-bottom: 22px; }
  .detalle-cab h1 { font-size: 34px; }
  .detalle-cab p { font-size: 13px; }
  .bloque-admin { padding: 24px; margin-bottom: 14px; }
  .bloque-admin h2 { font-size: 11.5px; margin-bottom: 16px; }
  .dl { gap: 15px 28px; }
  .dl dt { font-size: 10.5px; margin-bottom: 3px; }
  .dl dd { font-size: 16px; line-height: 1.35; }
  .tarjeta-admin { padding: 22px; }
  .tarjeta-admin h2 { font-size: 18px; margin-bottom: 14px; }
  .tarjeta-admin .campo label { font-size: 12.5px; }
  .tarjeta-admin select, .tarjeta-admin textarea, .tarjeta-admin input[type="password"], .tarjeta-admin input[type="text"] { font-size: 14px; }
  .tarjeta-admin select { height: 46px; }
  .tarjeta-admin textarea { min-height: 110px; }
  .tarjeta-admin--meta p { font-size: 12.5px; margin-bottom: 9px; }
  .badge { font-size: 11px; padding: 6px 11px; }
}
@media (min-width: 900px) {
  .texto-admin { font-size: 14px; }
  .texto-admin--chico { font-size: 12px; }
}

@media (max-width: 960px) {
  .detalle-grid { grid-template-columns: 1fr; }
}

/* Reportes ---------------------------------------------------------------- */
.reportes-cab { margin-bottom: 16px; }
.reportes-filtros {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) repeat(4, minmax(120px, .7fr)) auto;
  gap: 12px;
  align-items: end;
  padding: 18px;
  margin-bottom: 18px;
  background: #fff;
  border: 1px solid var(--borde);
  border-radius: 14px;
}
.reportes-filtros .campo--full { grid-column: auto; }
.reportes-filtros__acciones { display: flex; gap: 8px; align-items: center; }
.rep-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); gap: 12px; margin-bottom: 18px; }
.rep-kpi { padding: 16px 18px; background: #fff; border: 1px solid var(--borde); border-radius: 13px; }
.rep-kpi span { display: block; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #7A8B9C; }
.rep-kpi b { display: block; margin: 4px 0 2px; font-family: var(--display); font-size: 30px; line-height: 1; color: var(--azul-900); }
.rep-kpi small { font-size: 11px; color: #6B7D90; }
.rep-kpi--amarillo { background: #FFF8DA; border-color: #F4E39B; }
.rep-kpi--verde { background: #EEF9F2; border-color: #CDEBD8; }
.rep-kpi--azul { background: #EDF6FD; border-color: #CFE4F4; }
.rep-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.rep-card { padding: 20px; background: #fff; border: 1px solid var(--borde); border-radius: 14px; }
.rep-card h2 { margin: 0 0 16px; font-family: var(--display); font-size: 17px; color: var(--azul-900); }
.rep-subtitulo { margin-top: 24px !important; padding-top: 16px; border-top: 1px solid #EDF1F6; }
.rep-barras { display: grid; gap: 13px; }
.rep-barra__cab { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 5px; font-size: 12px; color: #40566C; }
.rep-barra__cab b { color: #16283A; font-size: 13px; }
.rep-barra__cab small { margin-left: 5px; font-size: 10px; color: #7A8B9C; font-weight: 600; }
.rep-barra__track { height: 9px; border-radius: 999px; background: #EDF2F7; overflow: hidden; }
.rep-barra__track span { display: block; height: 100%; border-radius: inherit; background: var(--azul); }
.rep-barras--compactas .rep-barra__track { height: 7px; }
.rep-sexo { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.rep-donut { position: relative; width: 142px; height: 142px; flex: none; border-radius: 50%; }
.rep-donut > div { position: absolute; inset: 28px; display: grid; place-content: center; text-align: center; background: #fff; border-radius: 50%; }
.rep-donut b { font-family: var(--display); font-size: 25px; color: var(--azul-900); line-height: 1; }
.rep-donut span { font-size: 9px; color: #7A8B9C; text-transform: uppercase; letter-spacing: .08em; margin-top: 3px; }
.rep-leyenda { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 12px; color: #40566C; }
.rep-leyenda li { display: flex; align-items: center; gap: 7px; }
.rep-leyenda i { width: 9px; height: 9px; border-radius: 3px; flex: none; }
.rep-leyenda b { margin-left: auto; color: #16283A; white-space: nowrap; }
.rep-cruce { margin-bottom: 14px; }
.tabla-scroll { overflow-x: auto; }
.tabla--reporte { min-width: 680px; }
.tabla--reporte th { font-size: 10px; }
.tabla--reporte td { font-size: 12px; }
.tabla--reporte td small { display: block; color: #7A8B9C; font-size: 10px; }
@media (max-width: 1100px) {
  .reportes-filtros { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reportes-filtros .campo--full { grid-column: 1 / -1; }
  .reportes-filtros__acciones { grid-column: 1 / -1; }
  .rep-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .rep-grid { grid-template-columns: 1fr; }
  .reportes-filtros { grid-template-columns: 1fr; }
  .reportes-filtros .campo--full { grid-column: auto; }
  .reportes-filtros__acciones { grid-column: auto; }
  .rep-kpi b { font-size: 26px; }
}

.credencial-imagen { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: 0 22px 50px rgba(6, 42, 71, .16); background: transparent; }
.credencial-imagen[hidden] { display: none; }

.acciones-rapidas { display: grid; gap: 8px; margin-bottom: 14px; padding: 14px; border: 1px solid #F1D37A; border-radius: 12px; background: #FFF9E6; }
.acciones-rapidas__titulo { font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #7A5A00; }
.acciones-rapidas form { margin: 0; }
.acciones-rapidas__nota { margin: 2px 0 0; font-size: 10px; line-height: 1.4; color: #6B5A22; }
.boton--verde { background: #1E8E5A; border-color: #1E8E5A; color: #fff; }
.boton--verde:hover { background: #14603A; border-color: #14603A; color: #fff; }

.empadronado-form { margin: 0; }
.chip-emp { display: inline-flex; min-width: 42px; justify-content: center; padding: 4px 9px; border: 1px solid transparent; border-radius: 999px; font-size: 10px; font-weight: 800; letter-spacing: .04em; }
.chip-emp--si { background: #E2F7EA; border-color: #BFE7CE; color: #14603A; }
.chip-emp--si:hover { background: #D3F0DF; }
.chip-emp--no { background: #FFF2C7; border-color: #F1D37A; color: #7A5A00; }
.chip-emp--no:hover { background: #FFE9A8; }
a.stat { color: inherit; text-decoration: none; }
a.stat:hover { text-decoration: none; border-color: var(--azul); }

.tse-link { display: inline-flex; align-items: center; justify-content: center; margin-top: 4px; padding: 4px 9px; border-radius: 999px; background: var(--azul); color: #fff; font-size: 9px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; line-height: 1.2; }
.tse-link:hover { background: var(--azul-700); color: #fff; text-decoration: none; }
td .tse-link { margin-left: 6px; vertical-align: middle; }
.tse-nota { display: block; margin-top: 4px; font-size: 9.5px; line-height: 1.3; color: #6B7D90; }

.tse-datos { margin-bottom: 14px; padding: 12px; border: 1px solid #CFE2F3; border-radius: 12px; background: #EAF3FB; }
.tse-datos__tag { display: block; margin-bottom: 6px; font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--azul); }
.tse-dato { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 6px; padding: 8px 10px; border: 1px solid #DCE4EE; border-radius: 8px; text-align: left; }
.tse-dato span { min-width: 0; }
.tse-dato small { display: block; font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #40566C; }
.tse-dato b { display: block; margin-top: 1px; font-family: var(--display); font-size: 16px; color: var(--azul-900); }
.tse-dato em { flex: none; padding: 3px 7px; border-radius: 999px; background: rgba(255,255,255,.72); font-size: 8.5px; font-style: normal; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--azul); }
.tse-dato--dpi { background: #FFF2C7; border-color: #F1D37A; }
.tse-dato--fecha { background: #E3F0FB; border-color: #A9C9E4; }
.tse-dato.copiado { outline: 3px solid var(--azul); outline-offset: 1px; }
.tse-copia { flex: none; padding: 4px 8px; border: 1px solid #A9C9E4; border-radius: 999px; background: #fff; color: var(--azul); font-size: 9px; font-weight: 800; }
.tse-copia:hover { background: var(--azul); border-color: var(--azul); color: #fff; }
.tse-datos__acciones { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.tse-datos__nota { display: block; margin-top: 7px; font-size: 9.5px; line-height: 1.35; color: #5C6C7D; }


.dato-tse { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.dato-tse__dato { padding: 4px 7px; border: 1px solid transparent; border-radius: 6px; color: var(--azul-900); font-size: 10.5px; font-weight: 700; line-height: 1.3; }
.dato-tse__dato b { font-size: 8.5px; letter-spacing: .04em; text-transform: uppercase; }
.dato-tse__dato--dpi { background: var(--amarillo); border-color: #E6B800; }
.dato-tse__dato--fecha { background: #CFE7FA; border-color: #A9C9E4; }
.dato-tse__dato.copiado { outline: 2px solid var(--azul); outline-offset: 1px; }

