/* EXPO CEMEDES — blanco, grises muy claros, lila suave. Mobile-first. */
:root {
  --bg: #ffffff;
  --bg-marfil: #f7f6f3;      /* marfil cálido de fondo */
  --bg-soft: #f5f5f6;
  --bg-softer: #fafafb;
  --line: #e8e8eb;
  --line-strong: #d8d8dd;
  --ink: #26242b;            /* gris carbón */
  --ink-soft: #4a4754;
  --muted: #77737f;          /* gris medio */
  /* Acento: negro. */
  --acento: #000000;
  --acento-hondo: #000000;
  --acento-suave: #f1f1f2;
  --acento-linea: #cfcfd4;
  --ok: #2f7a5b;
  --warn: #8a6410;
  --danger: #9b3030;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 2px 10px rgba(0, 0, 0, .05);
  --shadow-lift: 0 10px 30px rgba(0, 0, 0, .09);
  --serif: 'DM Serif Display', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --cta-alto: 78px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

/* La trenza del logo, en grande y muy tenue, como marca de agua del fondo.
   Solo en las pantallas de la asistente: el panel y las tablas se quedan limpios. */
body.pagina-publica { background: var(--bg-marfil); }
body.pagina-publica::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: url('/img/cemedes-marca.svg') no-repeat right -142px top 76px / 560px auto;
  opacity: .07;
}
@media (min-width: 720px) {
  body.pagina-publica { background: var(--bg-marfil); }
body.pagina-publica::before { background-position: right -180px top 40px; background-size: 720px auto; }
}

.wrap {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 0 20px 48px;
}
.wrap--wide { max-width: 1100px; }

/* ---------------------------------------------------------- tipografía */
h1, h2, h3 { margin: 0 0 .4em; font-weight: 600; letter-spacing: -.01em; }
.display {
  font-family: var(--serif);
  font-size: clamp(2.05rem, 8.6vw, 2.9rem);
  line-height: 1.08;
  font-weight: 400;
  letter-spacing: -.012em;
  margin: 0 0 9px;
  text-wrap: balance;
  color: var(--ink);
}
.title {
  font-family: var(--serif);
  font-size: clamp(1.38rem, 5.6vw, 1.85rem);
  line-height: 1.2;
  font-weight: 400;
  margin: 0 0 8px;
  text-wrap: balance;
}
.eyebrow {
  font-size: .7rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 700;
  margin: 0 0 14px;
}
.lead { font-size: 1.02rem; color: var(--ink-soft); margin: 0 0 24px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; line-height: 1.55; }
.tiny { font-size: .78rem; line-height: 1.55; color: var(--muted); }
.center { text-align: center; }

/* ------------------------------------------------------------- header */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 20px;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand img { width: 38px; height: 38px; object-fit: contain; }
.brand__name { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

/* Logo oficial completo: trébol + CEMEDES + firma. */
.logo-hero { width: 126px; height: auto; margin: 0 auto 18px; }

/* --------------------------------------------------------- estructura */
.screen { display: none; animation: fade .32s ease both; }
.screen.is-active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .screen { animation: none; } }

.hero {
  padding: 14px 0 2px;
  text-align: center;
}
/* Logo original completo: trébol, CEMEDES y la firma. */
.hero__simbolo { width: 116px; height: auto; margin: 0 auto 14px; }

/* Filete ornamental con estrella, como separador editorial. */
.filete {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  max-width: 280px; margin: 11px auto 9px;
}
.filete--ancho { max-width: 100%; margin: 15px auto 13px; }
.filete__linea {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}
.filete__estrella {
  flex: none; width: 11px; height: 11px; background: var(--ink);
  clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%);
}


.hero__lead {
  font-size: .92rem;
  color: var(--muted);
  margin: 0 auto;
  max-width: 32ch;
  line-height: 1.5;
}
.rule { height: 1px; background: var(--line); border: 0; margin: 28px 0; }

.section-head { margin: 12px 0 6px; }
.instruction {
  display: inline-block;
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink); background: var(--acento-suave);
  border: 1px solid var(--line);
  border-radius: 999px; padding: 5px 13px; font-weight: 700; margin-bottom: 10px;
}

/* ----------------------------------------------------------- tarjetas */
.cards { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 520px) { .cards--2 { grid-template-columns: 1fr 1fr; } }

.card {
  position: relative;
  display: block; width: 100%; text-align: left;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 18px 52px;
  font: inherit; color: inherit; cursor: pointer;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.card:hover { border-color: var(--acento-linea); box-shadow: var(--shadow); }
.card__title { font-weight: 600; font-size: 1.05rem; display: block; }
.card__desc { color: var(--muted); font-size: .9rem; display: block; margin-top: 2px; }
.card__mark {
  position: absolute; left: 18px; top: 20px;
  width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid var(--line-strong); background: #fff;
  transition: all .18s;
}
.card__mark--box { border-radius: 7px; }
.card.is-selected { border-color: var(--acento); background: #fafafa; box-shadow: var(--shadow); }
.card.is-selected .card__mark { border-color: var(--acento); background: var(--acento); }
.card.is-selected .card__mark::after {
  content: ''; position: absolute; inset: 0;
  background: no-repeat center/12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.5l3.2 3.2L13 5'/%3E%3C/svg%3E");
}
.card:focus-visible, .btn:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible {
  outline: 2.5px solid var(--acento); outline-offset: 2px;
}

/* premios en cuadrantes: 2 x 2 también en el teléfono */
.cards--premios { grid-template-columns: 1fr 1fr; gap: 11px; }
.card--premio {
  padding: 11px 12px 14px;
  display: flex; flex-direction: column; min-height: 100%;
  border-color: #e6e4df;
  border-radius: 15px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 1px 2px rgba(38, 36, 43, .035), 0 8px 18px rgba(38, 36, 43, .03);
}

/* Tarjeta de premio: imagen a sangre arriba, texto abajo. */
.card--premio {
  padding: 0;
  overflow: hidden;
  display: flex; flex-direction: column; min-height: 100%;
  border-color: #e6e4df;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(38, 36, 43, .035), 0 8px 18px rgba(38, 36, 43, .03);
}
.card__medio {
  position: relative; display: block;
  aspect-ratio: 1.55;
  background: linear-gradient(160deg, #f4f3f0, #e8e6e1);
}
.card__foto {
  width: 100%; height: 100%; object-fit: cover; display: block;
  /* Blanco y negro con un punto de calidez, como el arte de referencia. */
  filter: grayscale(1) sepia(.16) contrast(1.03);
}
.card__ornamento {
  display: grid; place-items: center; width: 100%; height: 100%;
  color: var(--ink);
  background: radial-gradient(120% 90% at 50% 0%, #ffffff 30%, rgba(255,255,255,0) 75%);
}
.ornamento { width: 46px; height: 46px; opacity: .72; }
.card__cuerpo { display: flex; flex-direction: column; flex: 1; padding: 12px 13px 14px; }

/* La marca de selección se lee igual sobre foto o sobre ornamento. */
.card--premio .card__mark {
  left: auto; right: 10px; top: 10px; width: 22px; height: 22px;
  border-color: rgba(255, 255, 255, .9);
  background: rgba(255, 255, 255, .34);
  backdrop-filter: blur(3px);
  box-shadow: 0 1px 4px rgba(38, 36, 43, .22);
}
.card--premio .card__title {
  font-family: var(--serif); font-weight: 400;
  font-size: 1.1rem; line-height: 1.2; padding-right: 0; letter-spacing: 0;
}
.card--premio .card__desc {
  font-size: .8rem; line-height: 1.4; margin-top: 3px; color: var(--muted); font-weight: 500;
}
.card--premio.is-selected {
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink), 0 10px 24px rgba(38, 36, 43, .10);
}
.card--premio.is-selected .card__mark { background: var(--ink); border-color: #fff; }
/* En los premios la marca es un punto, no una palomita. */
.card--premio.is-selected .card__mark::after {
  background: #fff; border-radius: 50%; inset: 6px;
}
.card--premio.is-selected .ornamento { opacity: 1; }

.card__valor {
  margin-top: auto;
  padding-top: 13px;
  display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap;
  border-top: 1px solid var(--line);
}
.card__valor-et {
  font-size: .62rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); font-weight: 700;
}
.card__valor-n {
  font-family: var(--serif); font-size: 1.16rem; font-weight: 400; color: var(--ink);
  font-variant-numeric: lining-nums tabular-nums;
  line-height: 1; letter-spacing: 0;
}

/* Intereses: filas anchas, como en la referencia. */
.instruccion { font-size: .95rem; color: var(--muted); margin: 0 0 6px; }

.grupo-label {
  display: flex; align-items: center; gap: 13px;
  font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
  font-weight: 700; color: var(--muted);
  margin: 24px 0 10px;
}
.grupo-label::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.lista { display: grid; gap: 9px; }

.fila-interes {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  width: 100%; text-align: left;
  padding: 15px 16px;
  border: 1px solid #e6e4df; border-radius: 13px;
  background: rgba(255, 255, 255, .92);
  font: inherit; color: var(--ink); cursor: pointer;
  transition: border-color .18s, background .18s, box-shadow .18s;
}
.fila-interes:hover { border-color: var(--line-strong); }
.fila-interes__nombre { font-size: 1rem; font-weight: 500; line-height: 1.3; }
.fila-interes__box {
  position: relative; flex: none;
  width: 26px; height: 26px; border-radius: 8px;
  border: 1.5px solid #cbc9c4; background: #fff;
  transition: background .16s, border-color .16s;
}
.fila-interes.is-selected {
  background: #eceae7; border-color: var(--ink);
}
.fila-interes.is-selected .fila-interes__box { background: var(--ink); border-color: var(--ink); }
.fila-interes.is-selected .fila-interes__box::after {
  content: ''; position: absolute; inset: 0;
  background: no-repeat center/14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.5l3.2 3.2L13 5'/%3E%3C/svg%3E");
}

/* Subintereses: anidados bajo su interés, con conector a la izquierda. */
.subcards[hidden] { display: none; }
.subcards {
  display: grid; gap: 8px;
  margin: 9px 0 2px 16px;
  padding-left: 16px;
  border-left: 1px solid var(--line-strong);
}
.fila-interes--sub { padding: 12px 14px; border-radius: 11px; }
.fila-interes--sub .fila-interes__nombre { font-size: .95rem; font-weight: 400; }
.fila-interes--sub .fila-interes__box { width: 23px; height: 23px; border-radius: 7px; }

/* ----------------------------------------------------------- botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 54px; padding: 15px 22px;
  border: 1px solid transparent; border-radius: 999px;
  font: inherit; font-weight: 600; font-size: 1rem; letter-spacing: .04em;
  cursor: pointer; text-decoration: none; text-align: center;
  transition: transform .12s, box-shadow .18s, background .18s;
}
.btn--primary {
  background: var(--acento); color: #fff;
  box-shadow: 0 6px 20px rgba(38, 36, 43, .22);
  transition: background .18s, box-shadow .18s, transform .12s;
}
.btn--primary:hover:not(:disabled) { background: #2a2a2e; }
.btn--ghost { background: #fff; border-color: var(--line-strong); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); background: var(--bg-softer); }
.btn--whatsapp { background: #1fa855; color: #fff; }
.btn--cita {
  min-height: 62px; font-size: 1.06rem; letter-spacing: .06em;
  box-shadow: 0 8px 22px rgba(31, 168, 85, .28);
}
.btn--whatsapp:hover { background: #178644; }
.btn--small { min-height: 42px; padding: 9px 16px; font-size: .88rem; width: auto; }
.btn__flecha { display: inline-block; transition: transform .18s; }
.btn:not(:disabled):hover .btn__flecha { transform: translateX(3px); }
.btn:active:not(:disabled) { transform: translateY(1px); }
/* Deshabilitado: el botón sigue siendo negro; lo que baja es la fuerza del texto. */
.btn:disabled { cursor: not-allowed; transform: none; }
.btn--primary:disabled {
  background: var(--acento);
  color: rgba(255, 255, 255, .58);
  box-shadow: none;
}
.btn-row { display: grid; gap: 10px; margin-top: 22px; }

.sticky-cta {
  position: sticky; bottom: 0; z-index: 20;
  margin-top: 16px;
  padding: 16px 0 max(14px, env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--bg-marfil) 62%, rgba(247,246,243,.92) 82%, rgba(247,246,243,0));
}
/* Aire bajo las bases para que el botón fijo nunca las tape. */
.bases { margin-top: 16px; padding-bottom: 6px; text-align: center; max-width: 42ch; margin-inline: auto; }

/* ------------------------------------------------------------- forms */
.field { margin-bottom: 18px; }
.field > label, .legend { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 7px; }
.hint { font-size: .8rem; color: var(--muted); margin: -3px 0 7px; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=date], select, textarea {
  width: 100%; min-height: 52px; padding: 13px 15px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: #fff; color: var(--ink); font: inherit;
}
textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16' fill='none' stroke='%236f6b7d' stroke-width='1.8'%3E%3Cpath d='M3 6l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; padding-right: 40px; }
input:invalid:not(:placeholder-shown) { border-color: #d3a0a0; }
.field.has-error input, .field.has-error select { border-color: var(--danger); background: #fffafa; }
.field-error { color: var(--danger); font-size: .82rem; margin-top: 6px; display: none; }
.field.has-error .field-error { display: block; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line-strong); background: #fff; border-radius: 999px;
  padding: 11px 17px; font: inherit; font-size: .93rem; cursor: pointer; transition: all .16s;
}
.chip.is-selected { border-color: var(--acento); background: var(--acento-suave); color: var(--acento-hondo); font-weight: 600; }

.consent {
  display: flex; gap: 12px; align-items: flex-start;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px; margin-bottom: 10px; background: var(--bg-softer); cursor: pointer;
}
.consent input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--acento); flex: none; }
.consent span { font-size: .88rem; line-height: 1.5; color: var(--ink-soft); }

/* Aviso del sorteo, sobre el pase */
.aviso-sorteo {
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: #fff; padding: 15px 17px; margin-bottom: 14px; text-align: center;
}
.aviso-sorteo[hidden] { display: none; }
.aviso-sorteo__et {
  font-size: .64rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--muted); font-weight: 700; margin: 0 0 5px;
}
.aviso-sorteo__titulo {
  font-family: var(--serif); font-size: 1.24rem; line-height: 1.25;
  margin: 0 0 7px; color: var(--ink); text-wrap: balance;
}
.aviso-sorteo__nota { font-size: .84rem; line-height: 1.5; color: var(--ink-soft); margin: 0; }

/* -------------------------------------------------------------- pase */
.pass {
  border: 1px solid var(--line); border-radius: 22px; background: #fff;
  box-shadow: var(--shadow-lift); overflow: hidden; margin-top: 8px;
}
.pass__top { padding: 26px 22px 18px; text-align: center; background: linear-gradient(180deg, #f8f8f9, #fff); }
.pass__name { font-family: var(--serif); font-size: 1.9rem; line-height: 1.12; margin: 6px 0 2px; }
.pass__qr { padding: 6px 22px 12px; text-align: center; }
.pass__qr img { width: 208px; height: 208px; margin: 0 auto; border-radius: 10px; }
.pass__code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .16em; font-size: 1.05rem; margin-top: 8px;
}
.pass__rows { border-top: 1px dashed var(--line-strong); padding: 4px 22px 22px; }
.pass__row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.pass__row:last-child { border-bottom: 0; }
.pass__row dt { color: var(--muted); }
.pass__row dd { margin: 0; text-align: right; font-weight: 600; }

.notice {
  border: 1px solid var(--acento-linea); background: var(--acento-suave);
  border-radius: var(--radius-sm); padding: 14px 16px; font-size: .88rem; color: var(--acento-hondo);
}
.notice--plain { border-color: var(--line); background: var(--bg-soft); color: var(--ink-soft); }
.notice--warn { border-color: #eadfbd; background: #fdf8ec; color: var(--warn); }
.notice--error { border-color: #eecaca; background: #fdf4f4; color: var(--danger); }
.notice--ok { border-color: #c8e2d5; background: #f2faf6; color: var(--ok); }

/* Cabecera del beneficio: el número manda, el texto se reduce al mínimo. */
.beneficio-cabecera { text-align: center; padding: 10px 0 20px; }
.benefit-badge {
  display: block; margin: 0 auto -6px;
  font-family: var(--serif); font-size: clamp(5.1rem, 23vw, 7.4rem);
  line-height: .98; color: var(--ink); letter-spacing: -.025em;
}
.beneficio-titular { margin: 0 0 9px; font-weight: 400; }
.benefit-sub {
  display: block; font-family: var(--serif); line-height: 1.2;
  font-size: clamp(1.26rem, 5.1vw, 1.72rem); text-wrap: balance;
}
.vigencia-linea {
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); font-weight: 700; margin: 0 auto 18px;
  max-width: 24ch; line-height: 1.5; text-wrap: balance;
}
.beneficio-guia {
  font-size: .97rem; color: var(--ink-soft); margin: 0 auto;
  max-width: 30ch; line-height: 1.5; text-wrap: balance;
}

/* --------------------------------------------------------- servicios */
.service__foto {
  width: 100%; height: 108px; object-fit: cover; border-radius: 11px;
  margin-bottom: 12px; filter: grayscale(1);
}
.service {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
  margin-bottom: 12px; background: #fff; transition: border-color .18s;
}
.service.is-interested { border-color: var(--acento-linea); background: #fafafa; }
.service__name { font-weight: 600; font-size: 1.06rem; }
.service__desc { color: var(--ink-soft); font-size: .92rem; margin: 6px 0 10px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tag {
  font-size: .75rem; color: var(--acento-hondo); background: var(--acento-suave);
  border: 1px solid var(--acento-linea); border-radius: 999px; padding: 3px 10px;
}
.tag--plain { color: var(--muted); background: var(--bg-soft); border-color: var(--line); }

/* ------------------------------------------------------------- sheet */
.sheet-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.45);
  display: none; align-items: flex-end; justify-content: center; z-index: 60;
}
.sheet-backdrop.is-open { display: flex; }
.sheet {
  width: 100%; max-width: 560px; background: #fff;
  border-radius: 22px 22px 0 0; padding: 22px 20px max(22px, env(safe-area-inset-bottom));
  max-height: 88vh; overflow-y: auto; animation: rise .28s ease both;
}
@keyframes rise { from { transform: translateY(24px); opacity: .6; } to { transform: none; opacity: 1; } }
.sheet__handle { width: 42px; height: 4px; border-radius: 99px; background: var(--line-strong); margin: 0 auto 16px; }

/* -------------------------------------------------------------- misc */
.steps { display: flex; gap: 6px; align-items: center; }
.step-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); }
.step-dot.is-on { background: var(--acento); width: 20px; border-radius: 99px; }
.skip-link {
  position: absolute; left: -9999px; background: #fff; padding: 10px 16px; z-index: 100; border-radius: 8px;
}
.skip-link:focus { left: 12px; top: 10px; }
.offline-bar {
  display: none; background: #fdf8ec; color: var(--warn); border-bottom: 1px solid #eadfbd;
  padding: 9px 16px; font-size: .85rem; text-align: center;
}
body.is-offline .offline-bar { display: block; }
.spinner {
  width: 18px; height: 18px; border: 2.4px solid rgba(255,255,255,.45);
  border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.linklike {
  border: 0; background: none; padding: 6px 4px; font: inherit; font-size: .82rem;
  color: var(--acento-hondo); text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.linklike:hover { color: var(--ink); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ------------------------------------------------ panel / staff (desktop) */
.panel-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.stat { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; background: #fff; }
.stat__n { font-family: var(--serif); font-size: 2.1rem; line-height: 1; }
.stat__l { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
table { border-collapse: collapse; width: 100%; font-size: .87rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { background: var(--bg-soft); font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); position: sticky; top: 0; }
tr:last-child td { border-bottom: 0; }
.filters { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 14px; }
.filters select, .filters input { min-height: 44px; }
.tabs { display: flex; gap: 6px; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.tab {
  border: 0; background: none; font: inherit; padding: 12px 14px; cursor: pointer;
  color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap;
}
.tab.is-on { color: var(--acento-hondo); border-bottom-color: var(--acento); font-weight: 600; }
.scan-box { position: relative; border-radius: var(--radius); overflow: hidden; background: #111; aspect-ratio: 1; }
.scan-box video { width: 100%; height: 100%; object-fit: cover; }
.scan-frame { position: absolute; inset: 16%; border: 2px solid rgba(255,255,255,.85); border-radius: 14px; }
.result-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: #fff; margin-top: 14px; }
.badge { display: inline-block; font-size: .75rem; padding: 3px 10px; border-radius: 999px; font-weight: 600; }
.badge--ok { background: #eaf6f0; color: var(--ok); }
.badge--pending { background: var(--bg-soft); color: var(--muted); }
.badge--warn { background: #fdf8ec; color: var(--warn); }
