/* =====================================================================
   Centro de Exalumnos VD · Sistema visual
   Verde institucional del logo (#036937) como primario, azul marino CVD
   para tipografía de títulos y dorado como acento.
   ===================================================================== */
:root {
  --verde: #036937;
  --verde-700: #02572e;
  --verde-900: #013d20;
  --verde-50: #e9f3ed;
  --verde-100: #cfe6d8;
  --azul: #0b2545;          /* azul marino CVD */
  --azul-600: #1d3b63;
  --oro: #c9a54a;
  --oro-50: #f8f2e1;
  --texto: #1c2420;
  --muted: #5d6a63;
  --borde: #dfe5e1;
  --fondo: #f4f6f5;
  --blanco: #ffffff;
  --ok: #1e7b4f;   --ok-bg: #e5f4ec;
  --error: #b3261e; --error-bg: #fbe9e7;
  --alerta: #9a6400; --alerta-bg: #fdf3dc;
  --radio: 10px;
  --sombra: 0 1px 2px rgb(11 37 69 / 6%), 0 4px 16px rgb(11 37 69 / 5%);
  --font: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Roboto Slab', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.5; color: var(--texto); background: var(--fondo); }
h1, h2, h3 { font-family: var(--font-display); color: var(--azul); line-height: 1.2; margin: 0 0 .4em; font-weight: 700; }
h1 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); }
h2 { font-size: 1.15rem; }
h3 { font-size: 1.05rem; }
a { color: var(--verde); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--verde-900); }
code { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: .88em; background: var(--verde-50); color: var(--verde-900); padding: .1em .4em; border-radius: 4px; }
code.small { font-size: .78em; }
:focus-visible { outline: 3px solid var(--oro); outline-offset: 2px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.centro { text-align: center; }
.nowrap { white-space: nowrap; }
.fuerte { font-weight: 700; }
.skip { position: absolute; left: -999px; top: 0; background: var(--azul); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* ------------------------------ Topbar ------------------------------ */
.topbar { background: var(--blanco); border-bottom: 3px solid var(--verde); position: sticky; top: 0; z-index: 20; box-shadow: 0 1px 0 var(--oro); }
.topbar-inner { max-width: 1200px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--verde); }
.brand img { border-radius: 50%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-weight: 800; font-size: 1.05rem; color: var(--verde); }
.brand-text small { color: var(--muted); font-size: .76rem; letter-spacing: .02em; }
.nav { display: flex; gap: 4px; flex: 1; }
.nav a { padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--azul); font-weight: 600; }
.nav a:hover { background: var(--verde-50); }
.nav a.activo { background: var(--verde); color: #fff; }
.usuario { display: flex; align-items: center; gap: 10px; font-size: .88rem; }
.usuario-email { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.link-salir { color: var(--muted); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--borde); border-radius: 8px; padding: 6px 12px; font: inherit; font-weight: 700; color: var(--azul); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav, .usuario { display: none; width: 100%; }
  .topbar.abierto .nav { display: flex; flex-direction: column; }
  .topbar.abierto .usuario { display: flex; padding: 8px 12px; border-top: 1px solid var(--borde); }
}

/* ------------------------------ Layout ------------------------------ */
.container { max-width: 1200px; margin: 0 auto; padding: 24px 20px 48px; }
.pie { text-align: center; color: var(--muted); font-size: .8rem; padding: 24px; border-top: 1px solid var(--borde); }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head p { margin: 0; }
.volver { display: inline-block; font-size: .85rem; margin-bottom: 6px; text-decoration: none; }
.card { background: var(--blanco); border: 1px solid var(--borde); border-radius: var(--radio); padding: 20px; box-shadow: var(--sombra); margin-bottom: 20px; }
.card.sin-padding { padding: 0; overflow: hidden; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.card-head a { font-size: .88rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 20px; }
.grid-ficha { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr); gap: 20px; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
@media (max-width: 760px) { .grid-2, .grid-3, .grid-ficha { grid-template-columns: 1fr; } }

/* ------------------------------ Tiles ------------------------------ */
.tiles { display: grid; grid-template-columns: repeat(7, minmax(128px, 1fr)); gap: 12px; margin-bottom: 20px; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
.tile { background: var(--blanco); border: 1px solid var(--borde); border-left: 4px solid var(--verde); border-radius: var(--radio); padding: 16px; display: flex; flex-direction: column; box-shadow: var(--sombra); }
.tile { padding: 14px; min-width: 0; }
.tile-n { font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; color: var(--azul); }
.tile-l { color: var(--muted); font-size: .85rem; font-weight: 600; }
.tile-verde { border-left-color: var(--verde); }
.tile-amarillo { border-left-color: #e0b100; }
.tile-rojo { border-left-color: var(--error); }
.tile-link { text-decoration: none; color: inherit; transition: box-shadow .15s, transform .15s, border-color .15s; }
.tile-link:hover { border-color: var(--verde); box-shadow: 0 4px 18px rgb(3 105 55 / 14%); transform: translateY(-1px); }
.tile-link:hover .tile-n { color: var(--verde); }
.tile-ir { margin-top: 6px; font-size: .78rem; font-weight: 700; color: var(--verde); }
.th-orden { display: inline-flex; align-items: center; gap: 4px; color: inherit; text-decoration: none; white-space: nowrap; }
.th-orden:hover { color: var(--verde); }
.th-orden .flecha { font-size: .7rem; opacity: .45; }
.th-orden.activa { color: var(--verde); }
.th-orden.activa .flecha { opacity: 1; }

/* ------------------------------ Gráfico de validaciones ------------------------------ */
.grafico .card-head { align-items: flex-start; flex-wrap: wrap; }
.g-sub { margin: 0; }
.g-cifras { display: flex; gap: 28px; }
.g-cifras div { display: flex; flex-direction: column; align-items: flex-end; }
.g-cifra { font-size: 1.35rem; font-weight: 700; color: var(--texto); font-variant-numeric: tabular-nums; line-height: 1.1; }
.g-cifra-l { font-size: .75rem; color: var(--muted); }
.g-lienzo { position: relative; }
.g-lienzo svg { display: block; width: 100%; height: auto; overflow: visible; }
.g-grid { stroke: #e6eae7; stroke-width: 1; }
.g-base { stroke: #c9d2cc; }
.g-tick { fill: var(--muted); font: 600 11px var(--font); }
.g-barra { fill: var(--verde); }
.g-hit { fill: transparent; cursor: default; }
.g-hit:hover, .g-hit.activa { fill: rgb(3 105 55 / 7%); }
.g-tooltip { position: absolute; pointer-events: none; transform: translate(-50%, calc(-100% - 10px)); background: #fff; border: 1px solid var(--borde); border-radius: 8px; box-shadow: 0 6px 18px rgb(11 37 69 / 14%); padding: 6px 10px; white-space: nowrap; font-size: .8rem; color: var(--muted); z-index: 5; }
.g-tooltip strong { display: block; font-size: 1rem; color: var(--texto); }
.g-tabla { margin-top: 10px; }
.g-tabla summary { cursor: pointer; font-size: .85rem; font-weight: 700; color: var(--verde); }
.g-tabla .tabla-wrap { max-height: 280px; overflow-y: auto; margin-top: 8px; border: 1px solid var(--borde); border-radius: 8px; }
@media (max-width: 760px) { .g-tick { font-size: 24px; } .g-cifras { gap: 16px; width: 100%; justify-content: space-between; } .g-cifras div { align-items: flex-start; } }

/* ------------------------------ Tablas ------------------------------ */
.tabla-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tabla { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tabla th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: #fafbfa; padding: 10px 14px; border-bottom: 1px solid var(--borde); }
.tabla td { padding: 11px 14px; border-bottom: 1px solid var(--borde); vertical-align: middle; }
.tabla tbody tr:hover { background: var(--verde-50); }
.tabla tr:last-child td { border-bottom: 0; }
.accion { background: transparent; color: var(--azul); font-weight: 600; padding: 0; }
.vacio { padding: 28px; text-align: center; color: var(--muted); margin: 0; }

/* ------------------------------ Badges ------------------------------ */
.badge { display: inline-block; font-size: .72rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-error { background: var(--error-bg); color: var(--error); }
.badge-alerta { background: var(--alerta-bg); color: var(--alerta); }
.badge-neutro { background: #eef1f4; color: var(--azul-600); }

/* ------------------------------ Formularios ------------------------------ */
.form fieldset { border: 0; padding: 0; margin: 0 0 12px; }
.form legend { font-family: var(--font-display); color: var(--azul); font-weight: 700; margin-bottom: 8px; padding-bottom: 6px; border-bottom: 2px solid var(--oro-50); width: 100%; }
.campo { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.campo label { font-weight: 700; font-size: .86rem; color: var(--azul); }
.campo .req { color: var(--error); }
input, select, textarea { font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid #c9d2cc; border-radius: 8px; background: #fff; color: var(--texto); min-height: 44px; width: 100%; }
input:focus, select:focus { border-color: var(--verde); outline: 3px solid var(--verde-100); outline-offset: 0; }
.con-error input { border: 2px solid var(--error); background: #fff6f5; padding: 9px 11px; }
.con-error input:focus { outline-color: rgb(179 38 30 / 25%); border-color: var(--error); }
.con-error label { color: var(--error); }
.ayuda { color: var(--muted); font-size: .8rem; }
.error { color: var(--error); font-size: .82rem; font-weight: 600; }
.con-sugerencias { position: relative; }
.sugerencias { position: absolute; z-index: 30; left: 0; right: 0; margin: 0; padding: 4px; list-style: none; background: #fff; border: 1px solid var(--borde); border-radius: 10px; box-shadow: 0 8px 24px rgb(11 37 69 / 14%); max-height: 300px; overflow-y: auto; }
.sugerencias li { padding: 9px 12px; border-radius: 7px; cursor: pointer; font-weight: 700; color: var(--azul); }
.sugerencias li .sug-local { font-weight: 400; color: var(--muted); }
.sugerencias li[aria-selected="true"], .sugerencias li:hover { background: var(--verde-50); color: var(--verde-900); }
.campo-check { justify-content: flex-end; }
.campo-check label { display: flex; gap: 8px; align-items: center; font-weight: 600; }
.grid-2 .campo-check { justify-content: center; }
.campo-check input { width: 20px; min-height: 20px; accent-color: var(--verde); }
.filtros { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; padding: 14px 16px; }
.filtros .campo { margin: 0; min-width: 140px; }
.campo-grow { flex: 1; min-width: 220px !important; }
.campo-corto { max-width: 110px; min-width: 90px !important; }
.acciones-form { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.fila-input { display: flex; gap: 8px; }
.fila-input input { flex: 1; }
form.inline { display: inline; }
form.inline select { min-height: 36px; padding: 4px 8px; width: auto; }
.bloque-accion { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--borde); }
.bloque-accion label { display: block; font-weight: 700; color: var(--azul); margin-bottom: 6px; font-size: .9rem; }

/* ------------------------------ Botones ------------------------------ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-weight: 700; font-size: .92rem; padding: 10px 18px; min-height: 44px; border-radius: 8px; border: 1px solid #c9d2cc; background: #fff; color: var(--azul); cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s; }
.btn:hover { background: var(--verde-50); border-color: var(--verde); color: var(--verde-900); }
.btn-primario { background: var(--verde); border-color: var(--verde); color: #fff; }
.btn-primario:hover { background: var(--verde-700); border-color: var(--verde-700); color: #fff; }
.btn-peligro { background: #fff; border-color: var(--error); color: var(--error); }
.btn-peligro:hover { background: var(--error); color: #fff; border-color: var(--error); }
.btn-fantasma { border-color: transparent; background: transparent; }
.btn-bloque { width: 100%; }
.btn-grande { min-height: 54px; font-size: 1.05rem; }
.btn-chico { min-height: 32px; padding: 4px 10px; font-size: .82rem; }
.link { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; }

/* ------------------------------ Avisos ------------------------------ */
.aviso { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-weight: 600; border-left: 4px solid; }
.aviso-ok { background: var(--ok-bg); color: var(--ok); border-color: var(--ok); }
.aviso-error { background: var(--error-bg); color: var(--error); border-color: var(--error); }
.aviso-info { background: var(--oro-50); color: #6b5413; border-color: var(--oro); }

/* ------------------------------ Ficha ------------------------------ */
.datos { display: grid; grid-template-columns: 130px 1fr; gap: 8px 16px; margin: 0; }
.datos dt { color: var(--muted); font-weight: 600; font-size: .85rem; }
.datos dd { margin: 0; word-break: break-word; }
.datos-grandes { grid-template-columns: 1fr; gap: 4px; margin: 16px 0 20px; }
.datos-grandes dd { margin-bottom: 12px; font-size: 1.1rem; }
.pin { font-size: 1.8rem !important; letter-spacing: .25em; padding: .2em .5em !important; }
.card-qr { text-align: center; }
.qr-box { background: #fff; border: 1px solid var(--borde); border-radius: 12px; padding: 12px; max-width: 260px; margin: 8px auto 10px; }
.qr-box svg { display: block; width: 100%; height: auto; }
.qr-inactivo { opacity: .25; filter: grayscale(1); }
.url-validacion { max-width: 260px; margin: 14px auto 0; padding-top: 12px; border-top: 1px dashed var(--borde); text-align: left; }
.url-etiqueta { display: block; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 4px; }
.url-validacion a { font-size: .8rem; font-family: ui-monospace, Menlo, Consolas, monospace; word-break: break-all; }
.acciones-qr { display: grid; gap: 8px; max-width: 260px; margin: 0 auto; }

/* ------------------------------ Comercios ------------------------------ */
.comercio { margin: 0; display: flex; flex-direction: column; border-top: 4px solid var(--oro); }
.comercio.inactivo { opacity: .6; }
.comercio-top { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.comercio-top h3 { margin: 0; }
.comercio-top p { margin: 0; }
.comercio > p { margin: 4px 0; }
.comercio-pie { margin-top: auto; padding-top: 10px; display: flex; justify-content: space-between; align-items: center; }
.pct { flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--verde); color: #fff; font-weight: 800; font-size: 1.05rem; }

.paginacion { display: flex; justify-content: space-between; align-items: center; padding: 4px 4px 0; font-size: .9rem; }
.error-page { text-align: center; padding: 48px 20px; max-width: 520px; margin: 40px auto; }
.error-code { font-family: var(--font-display); font-size: 3rem; color: var(--oro); margin: 0; font-weight: 700; }

/* =====================================================================
   Páginas públicas · validador de comercios (mobile-first)
   ===================================================================== */
body.publico { background: var(--verde-50); min-height: 100dvh; }
.v-wrap { max-width: 480px; margin: 0 auto; padding: 16px 16px calc(24px + env(safe-area-inset-bottom)); }
.v-header { display: flex; align-items: center; gap: 12px; background: var(--verde); color: #fff; padding: 12px 16px; padding-top: calc(12px + env(safe-area-inset-top)); border-bottom: 3px solid var(--oro); }
.v-header img { border-radius: 50%; background: #fff; }
.v-header div { display: flex; flex-direction: column; line-height: 1.2; }
.v-header strong { font-weight: 800; }
.v-header small { opacity: .85; font-size: .82rem; }

.v-login { display: grid; place-items: center; }
.v-login-card { background: #fff; border-radius: 16px; padding: 28px 22px; box-shadow: var(--sombra); text-align: center; margin-top: 4vh; }
.v-login-card h1 { margin-top: 12px; }
.v-login-card .form { text-align: left; margin-top: 18px; }
.v-logo-full { width: min(260px, 80%); height: auto; }

.v-beneficio { display: flex; gap: 12px; align-items: center; background: #fff; border-radius: 12px; padding: 12px 14px; border-left: 4px solid var(--oro); margin-bottom: 14px; box-shadow: var(--sombra); }
.v-beneficio p { margin: 0; font-weight: 600; }
.v-panel { background: #fff; border-radius: 16px; padding: 16px; box-shadow: var(--sombra); }
.v-visor { position: relative; width: 100%; aspect-ratio: 3 / 4; max-height: 62vh; border-radius: 14px; overflow: hidden; background: #0d1a13; margin-bottom: 12px; }
.v-visor[hidden] { display: none; }
.v-visor video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.v-marco { position: absolute; left: 50%; top: 46%; width: 66%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 18px;
  box-shadow: 0 0 0 100vmax rgb(0 0 0 / 38%);
  background:
    linear-gradient(#fff, #fff) top left / 34px 4px, linear-gradient(#fff, #fff) top left / 4px 34px,
    linear-gradient(#fff, #fff) top right / 34px 4px, linear-gradient(#fff, #fff) top right / 4px 34px,
    linear-gradient(#fff, #fff) bottom left / 34px 4px, linear-gradient(#fff, #fff) bottom left / 4px 34px,
    linear-gradient(#fff, #fff) bottom right / 34px 4px, linear-gradient(#fff, #fff) bottom right / 4px 34px;
  background-repeat: no-repeat; }
.v-marco.detectado { background-color: rgb(30 123 79 / 35%); transition: background-color .15s; }
.v-linea { position: absolute; left: 8%; right: 8%; top: 10%; height: 2px; background: var(--oro); box-shadow: 0 0 10px var(--oro); animation: v-barrido 2s ease-in-out infinite alternate; }
@keyframes v-barrido { to { top: 90%; } }
@media (prefers-reduced-motion: reduce) { .v-linea { animation: none; top: 50%; } }
.v-visor-ayuda { position: absolute; left: 0; right: 0; bottom: 12px; margin: 0; text-align: center; color: #fff; font-weight: 700; font-size: .92rem; text-shadow: 0 1px 3px rgb(0 0 0 / 70%); }
.v-visor-cerrar { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgb(0 0 0 / 50%); color: #fff; font-size: 1.1rem; cursor: pointer; }
.v-manual { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--borde); }
.v-manual label { display: block; font-weight: 700; color: var(--azul); margin-bottom: 8px; font-size: .9rem; }
.v-manual input { text-transform: uppercase; letter-spacing: .08em; font-family: ui-monospace, Menlo, monospace; }
.v-salir { text-align: center; margin-top: 20px; }

.v-resultado { border-radius: 18px; padding: 28px 20px; text-align: center; color: #fff; box-shadow: var(--sombra); }
.v-resultado h1, .v-resultado h2 { color: #fff; font-size: 1.7rem; margin: 10px 0 4px; }
.v-resultado .btn { margin-top: 18px; background: #fff; color: var(--azul); border-color: #fff; }
.v-ok { background: var(--ok); }
.v-error { background: var(--error); }
.v-alerta { background: #8a5a00; }
.v-res-icono { width: 84px; height: 84px; margin: 0 auto; border-radius: 50%; background: rgb(255 255 255 / 18%); display: grid; place-items: center; font-size: 3rem; font-weight: 800; }
.v-ok .v-res-icono::before { content: '✓'; }
.v-error .v-res-icono::before { content: '✕'; }
.v-alerta .v-res-icono::before { content: '?'; }
.v-res-mensaje { font-size: 1.05rem; font-weight: 600; margin: 0 0 14px; }
.v-res-datos { background: rgb(255 255 255 / 14%); border-radius: 12px; padding: 12px 16px; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; text-align: left; margin: 0; }
.v-res-datos dt { opacity: .85; font-size: .85rem; }
.v-res-datos dd { margin: 0; font-weight: 800; }
.v-ficha { margin-top: 4px; }
.v-tipo { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 8px 16px; border-radius: 999px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.v-tipo-socio { background: var(--oro); color: #2b2205; font-size: 1.15rem; box-shadow: 0 0 0 4px rgb(201 165 74 / 35%); animation: v-brillo 1.6s ease-in-out 2; }
.v-tipo-socio span { font-size: 1.3rem; }
.v-tipo-exalumno { background: rgb(255 255 255 / 18%); color: #fff; font-size: .95rem; }
@keyframes v-brillo { 50% { box-shadow: 0 0 0 10px rgb(201 165 74 / 15%); } }
@media (prefers-reduced-motion: reduce) { .v-tipo-socio { animation: none; } }
.v-dato { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.v-valor { overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.v-ojo { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgb(255 255 255 / 45%); background: rgb(255 255 255 / 12%); color: #fff; cursor: pointer; padding: 0; }
.v-ojo:hover { background: rgb(255 255 255 / 25%); }
.v-ojo svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.v-ojo .i-ocultar, .v-ojo[aria-pressed="true"] .i-ver { display: none; }
.v-ojo[aria-pressed="true"] .i-ocultar { display: block; }
.v-res-datos dd.v-dato { min-height: 36px; }
.v-res-beneficio { margin: 14px 0 0; font-weight: 700; background: rgb(0 0 0 / 15%); padding: 10px; border-radius: 10px; }

/* ------------------------------ Credencial digital ------------------------------ */
.credencial-page { background: linear-gradient(160deg, var(--verde-900), var(--verde) 55%, var(--verde-700)); }
.credencial { background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 20px 40px rgb(0 0 0 / 25%); margin-top: 4vh; }
.credencial-head { display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: var(--verde); color: #fff; border-bottom: 4px solid var(--oro); }
.credencial-head img { border-radius: 50%; background: #fff; }
.credencial-head div { display: flex; flex-direction: column; }
.credencial-tag { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; opacity: .9; }
.credencial-head strong { font-family: var(--font-display); font-size: 1.15rem; }
.credencial-body { padding: 22px 20px 16px; text-align: center; }
.credencial-body h1 { margin-bottom: 2px; }
.credencial-gen { color: var(--oro); font-weight: 800; margin: 0 0 8px; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; }
.credencial-socio { display: inline-block; background: var(--verde-50); color: var(--verde); font-weight: 800; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; padding: 3px 10px; border-radius: 999px; margin: 0 0 6px; }
.credencial-codigo code { font-size: 1.15rem; letter-spacing: .1em; }
.credencial-pie { background: var(--oro-50); color: var(--muted); font-size: .78rem; text-align: center; padding: 10px; }
.credencial-inactiva .qr-box { opacity: .2; filter: grayscale(1); }

@media print {
  .topbar, .pie, .acciones-qr, .bloque-accion { display: none !important; }
  body { background: #fff; }
}
