/* Tayari · base compartida (tokens, piezas y reglas de celular).
   Los colores reales de cada salón los pone js/marca.js encima de estos valores. */
:root {
  --fondo: #F8F8FC; --superficie: #FFFFFF; --hundido: #EFEFF7; --borde: #E1E1EE; --borde-fuerte: #C9C9DC;
  --texto: #16151F; --suave: #55546B;
  --acento: #4F4AD9; --acento-texto: #FFFFFF; --acento-letra: #4440C8; --acento-suave: #ECEBFD; --acento-suave-texto: #3B37B4;
  --marca2: #C9A98B; --marca2-letra: #7A5B3E; --marca2-suave: #F4EDE6;
  --bien: #1E7449; --bien-suave: #E2F3EA; --alerta: #8F5300; --alerta-suave: #FBEFD6; --mal: #B3261E; --mal-suave: #FBE7E5; --info: #2F5FA8; --info-suave: #E4ECF9;
  --sombra: 0 1px 2px rgba(22, 21, 31, .06), 0 16px 40px -18px rgba(79, 74, 217, .35);
  --display: 'Gloock', Georgia, serif; --cuerpo: 'Manrope', system-ui, sans-serif; --peso-display: 400;
  --radio: 22px; --radio-medio: 16px; --radio-chico: 12px; --radio-mini: 8px; --ancho: 1180px;
  --entra: cubic-bezier(.22, 1, .36, 1); --sale: cubic-bezier(.4, 0, 1, 1); --arrastre: cubic-bezier(.32, .72, 0, 1);
  --alto-barra: 68px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --fondo: #0E0E15; --superficie: #16161F; --hundido: #1C1C28; --borde: #2A2A3A; --borde-fuerte: #3A3A50; --texto: #F2F2F8; --suave: #A9A8C0;
    --acento: #9C98FF; --acento-texto: #12112A; --acento-letra: #9C98FF; --acento-suave: #22214A; --acento-suave-texto: #C4C2FF;
    --marca2-letra: #D9BFA6; --marca2-suave: #2A241E;
    --bien: #6FD39E; --bien-suave: #13301F; --alerta: #F2B25C; --alerta-suave: #33260F; --mal: #FF8A80; --mal-suave: #3A1715; --info: #8DB2EC; --info-suave: #172540;
    --sombra: 0 1px 2px rgba(0, 0, 0, .4), 0 18px 40px -18px rgba(0, 0, 0, .8); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --fondo: #0E0E15; --superficie: #16161F; --hundido: #1C1C28; --borde: #2A2A3A; --borde-fuerte: #3A3A50; --texto: #F2F2F8; --suave: #A9A8C0;
  --acento: #9C98FF; --acento-texto: #12112A; --acento-letra: #9C98FF; --acento-suave: #22214A; --acento-suave-texto: #C4C2FF;
  --marca2-letra: #D9BFA6; --marca2-suave: #2A241E;
  --bien: #6FD39E; --bien-suave: #13301F; --alerta: #F2B25C; --alerta-suave: #33260F; --mal: #FF8A80; --mal-suave: #3A1715; --info: #8DB2EC; --info-suave: #172540;
  --sombra: 0 1px 2px rgba(0, 0, 0, .4), 0 18px 40px -18px rgba(0, 0, 0, .8); color-scheme: dark;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fondo); color: var(--texto); font: 400 calc(16px * var(--tx, 1))/1.55 var(--cuerpo); -webkit-font-smoothing: antialiased; overflow-x: hidden; font-variant-numeric: tabular-nums; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; text-wrap: balance; }
h1, h2, .display { font-family: var(--display); font-weight: var(--peso-display); letter-spacing: -.012em; }
h3, h4 { font-family: var(--cuerpo); font-weight: 750; letter-spacing: -.005em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
.num, .cifra, td.num, .precio { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 3px solid var(--acento); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.oculto { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { width: 22px; height: 22px; flex: none; }
.contenedor { width: 100%; max-width: var(--ancho); margin-inline: auto; padding-inline: max(20px, env(safe-area-inset-left)); }
@media (max-width: 480px) { .contenedor { padding-inline: 16px; } }
.mayus { text-transform: uppercase; letter-spacing: .16em; font-size: calc(12px * var(--tx, 1)); font-weight: 700; color: var(--suave); }
.suave { color: var(--suave); }
.chico { font-size: calc(14px * var(--tx, 1)); }
.fila-flex { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pila { display: grid; gap: 12px; }
.separa { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- botones ---------- */
.boton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: calc(15px * var(--tx, 1)); line-height: 1.2; text-decoration: none; white-space: nowrap; transition: background-color .14s var(--entra), border-color .14s var(--entra), transform .14s var(--entra), color .14s var(--entra); }
.boton:active { transform: scale(.98); }
.boton .ic { width: 19px; height: 19px; }
.boton.principal { background: var(--acento); color: var(--acento-texto); }
.boton.principal:hover { filter: brightness(1.06); }
.boton.quieto { background: var(--superficie); color: var(--texto); border-color: var(--borde-fuerte); }
.boton.quieto:hover { border-color: var(--texto); }
.boton.suave { background: var(--acento-suave); color: var(--acento-suave-texto); }
.boton.tinta { background: var(--texto); color: var(--fondo); }
.boton.peligro { background: var(--mal); color: #fff; }
.boton.whats { background: #1F7A4D; color: #fff; }
.boton.chico { min-height: 36px; padding: 7px 14px; font-size: calc(14px * var(--tx, 1)); }
.boton.bloque { width: 100%; }
.boton[disabled], .boton[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.boton-icono { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; border: 1px solid transparent; background: transparent; color: var(--suave); transition: background-color .14s var(--entra), color .14s var(--entra); }
.boton-icono:hover { background: var(--hundido); color: var(--texto); }
.liga { color: var(--acento-letra); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; background: none; border: 0; padding: 0; }

/* ---------- campos ---------- */
.campo { display: grid; gap: 6px; min-width: 0; align-content: start; }
.campo-et { font-size: calc(13.5px * var(--tx, 1)); font-weight: 700; color: var(--texto); }
.campo-ayuda { font-size: calc(13px * var(--tx, 1)); color: var(--suave); }
.campo input, .campo select, .campo textarea, .control {
  width: 100%; min-height: 44px; padding: 10px 13px; border-radius: var(--radio-chico); border: 1px solid var(--borde-fuerte); background: var(--superficie); color: var(--texto); font-size: calc(15px * var(--tx, 1));
  transition: border-color .14s var(--entra), box-shadow .14s var(--entra); }
.campo textarea { resize: vertical; min-height: 84px; }
.campo input:focus, .campo select:focus, .campo textarea:focus, .control:focus { outline: none; border-color: var(--acento); box-shadow: 0 0 0 3px var(--acento-suave); }
.con-prefijo { display: flex; align-items: stretch; }
.con-prefijo .prefijo { display: grid; place-items: center; padding-inline: 12px; border: 1px solid var(--borde-fuerte); border-right: 0; border-radius: var(--radio-chico) 0 0 var(--radio-chico); background: var(--hundido); color: var(--suave); font-weight: 700; }
.con-prefijo input { border-radius: 0 var(--radio-chico) var(--radio-chico) 0; }
.rejilla-campos { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.casilla { display: flex; gap: 10px; align-items: flex-start; font-size: calc(14.5px * var(--tx, 1)); line-height: 1.45; cursor: pointer; }
.casilla input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--acento); flex: none; }
.interruptor { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; }
.interruptor input { appearance: none; width: 44px; height: 26px; border-radius: 99px; background: var(--borde-fuerte); position: relative; transition: background-color .2s var(--entra); flex: none; margin: 0; }
.interruptor input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .22s var(--entra); box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.interruptor input:checked { background: var(--acento); }
.interruptor input:checked::after { transform: translateX(18px); }
@media (max-width: 640px) { input, select, textarea, .control { font-size: calc(16px * var(--tx, 1)) !important; } }

/* segmentado (filtros de periodo, vistas) */
.segmentado { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--hundido); gap: 2px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.segmentado::-webkit-scrollbar { display: none; }
.segmentado button { border: 0; background: transparent; border-radius: 999px; padding: 7px 14px; min-height: 36px; font-size: calc(14px * var(--tx, 1)); font-weight: 700; color: var(--suave); white-space: nowrap; transition: background-color .14s var(--entra), color .14s var(--entra); }
.segmentado button[aria-pressed="true"] { background: var(--superficie); color: var(--texto); box-shadow: inset 0 0 0 1px var(--borde-fuerte); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--borde-fuerte); background: var(--superficie); border-radius: 999px; padding: 7px 14px; min-height: 38px; font-size: calc(14px * var(--tx, 1)); font-weight: 650; color: var(--texto); transition: border-color .14s var(--entra), background-color .14s var(--entra); }
.chip[aria-pressed="true"], .chip.activo { background: var(--acento-suave); border-color: var(--acento); color: var(--acento-suave-texto); }

/* ---------- etiquetas y avatares ---------- */
.etiqueta { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: calc(12.5px * var(--tx, 1)); font-weight: 750; line-height: 1.4; white-space: nowrap; }
.t-bien { background: var(--bien-suave); color: var(--bien); }
.t-alerta { background: var(--alerta-suave); color: var(--alerta); }
.t-mal { background: var(--mal-suave); color: var(--mal); }
.t-info { background: var(--info-suave); color: var(--info); }
.t-acento { background: var(--acento-suave); color: var(--acento-suave-texto); }
.t-neutro { background: var(--hundido); color: var(--suave); }
/* "Muy pronto": lo que un salón real todavía no tiene (Wallet, regalos, Conector IA). Callado, sin color de alerta. */
.pronto { display: inline-block; vertical-align: 1px; margin-left: 2px; padding: 0 8px; border: 1px dashed var(--borde-fuerte); border-radius: 999px; font-size: calc(12px * var(--tx, 1)); font-weight: 700; line-height: 20px; letter-spacing: 0; color: var(--suave); white-space: nowrap; text-transform: none; }
.punto { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.punto.verde { background: var(--bien); } .punto.ambar { background: var(--alerta); } .punto.rojo { background: var(--mal); }
.avatar { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; font-size: calc(13px * var(--tx, 1)); font-weight: 800; letter-spacing: .02em; flex: none; border: 1px solid var(--borde); }
.avatar.av-foto { padding: 0; overflow: hidden; background: var(--hundido); }
.avatar.av-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.av-chico { width: 28px; height: 28px; font-size: calc(11px * var(--tx, 1)); }
.av-grande { width: 52px; height: 52px; font-size: calc(18px * var(--tx, 1)); }
.av-0 { background: var(--acento-suave); color: var(--acento-suave-texto); }
.av-1 { background: var(--marca2-suave); color: var(--marca2-letra); }
.av-2 { background: var(--hundido); color: var(--texto); }
.av-3 { background: var(--acento); color: var(--acento-texto); border-color: transparent; }
.av-4 { background: var(--superficie); color: var(--acento-letra); }
.av-5 { background: var(--texto); color: var(--fondo); border-color: transparent; }

/* ---------- marca (wordmark del salón) ---------- */
.marca-logo { display: inline-flex; flex-direction: column; line-height: 1; color: inherit; text-decoration: none; min-width: 0; }
.marca-logo img { height: 40px; width: auto; max-width: 180px; object-fit: contain; }
.marca-palabra { font-family: var(--display); font-weight: var(--peso-display); letter-spacing: .06em; font-size: calc(24px * var(--tt, 1)); white-space: nowrap; }
.marca-lema { font-size: calc(10.5px * var(--tx, 1)); letter-spacing: .2em; text-transform: uppercase; color: var(--marca2-letra); margin-top: 4px; font-weight: 700; white-space: nowrap; }
.marca-chico .marca-palabra { font-size: calc(19px * var(--tt, 1)); } .marca-chico .marca-lema { font-size: calc(9px * var(--tx, 1)); letter-spacing: .18em; } .marca-chico img { height: 30px; }
.marca-grande .marca-palabra { font-size: calc(clamp(40px, 9vw, 72px) * var(--tt, 1)); } .marca-grande .marca-lema { font-size: calc(12px * var(--tx, 1)); margin-top: 8px; } .marca-grande img { height: 84px; max-width: 280px; }
.sobre-pase .marca-palabra { font-size: calc(17px * var(--tt, 1)); color: var(--p-texto); } .sobre-pase .marca-lema { color: var(--p-suave); font-size: calc(9px * var(--tx, 1)); white-space: normal; line-height: 1.3; }
.sobre-pase img { height: 28px; max-width: 110px; }

/* ---------- superficies ---------- */
.panel { background: var(--superficie); border: 1px solid var(--borde); border-radius: var(--radio); padding: 20px; }
.panel-chico { background: var(--superficie); border: 1px solid var(--borde); border-radius: var(--radio-medio); padding: 16px; }
.vacio { display: grid; gap: 8px; justify-items: start; padding: 22px; border: 1px dashed var(--borde-fuerte); border-radius: var(--radio-medio); color: var(--suave); }
.vacio b { color: var(--texto); }
.cifra { font-family: var(--cuerpo); font-weight: 800; letter-spacing: -.02em; white-space: nowrap; font-size: clamp(1.6rem, 7vw, 3rem); line-height: 1.05; }
.cifra-chica { font-weight: 800; font-size: calc(22px * var(--tx, 1)); white-space: nowrap; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.dato-et { font-size: calc(13px * var(--tx, 1)); color: var(--suave); font-weight: 650; }
.texto-hoja { color: var(--suave); max-width: 60ch; }
.franja-demo { background: var(--texto); color: var(--fondo); font-size: calc(13.5px * var(--tx, 1)); }
.franja-demo .contenedor { display: flex; gap: 10px 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding-block: 8px; }
.franja-demo a { color: inherit; font-weight: 700; }

/* filas (listas que en celular se leen como tarjetas) */
.filas { display: grid; border: 1px solid var(--borde); border-radius: var(--radio-medio); background: var(--superficie); overflow: hidden; }
.fila { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 14px; align-items: center; padding: 13px 16px; border-top: 1px solid var(--borde); text-align: left; background: none; border-left: 0; border-right: 0; border-bottom: 0; width: 100%; color: inherit; text-decoration: none; }
.fila:first-child { border-top: 0; }
button.fila, a.fila { cursor: pointer; transition: background-color .14s var(--entra); }
button.fila:hover, a.fila:hover { background: var(--hundido); }
.fila-principal { min-width: 0; display: grid; gap: 2px; }
.fila-principal b { font-weight: 750; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fila-principal span { font-size: calc(14px * var(--tx, 1)); color: var(--suave); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fila-der { display: grid; justify-items: end; gap: 4px; text-align: right; }

/* tabla de escritorio → tarjetas en celular */
.tabla { width: 100%; border-collapse: collapse; font-size: calc(14.5px * var(--tx, 1)); }
.tabla th { text-align: left; font-size: calc(12.5px * var(--tx, 1)); text-transform: uppercase; letter-spacing: .14em; color: var(--suave); font-weight: 750; padding: 10px 12px; border-bottom: 1px solid var(--borde); white-space: nowrap; }
.tabla td { padding: 12px; border-bottom: 1px solid var(--borde); vertical-align: middle; }
.tabla td.num, .tabla th.num { text-align: right; }
.tabla tr:last-child td { border-bottom: 0; }
@media (max-width: 640px) {
  .tabla.tarjetas thead { display: none; }
  .tabla.tarjetas, .tabla.tarjetas tbody, .tabla.tarjetas tr, .tabla.tarjetas td { display: block; width: 100%; }
  .tabla.tarjetas tr { border: 1px solid var(--borde); border-radius: var(--radio-medio); padding: 10px 14px; margin-bottom: 10px; background: var(--superficie); }
  .tabla.tarjetas td { border: 0; padding: 5px 0; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
  .tabla.tarjetas td::before { content: attr(data-et); color: var(--suave); font-size: calc(13px * var(--tx, 1)); font-weight: 650; text-align: left; }
  .tabla.tarjetas td.titulo-fila { font-weight: 800; font-size: calc(16px * var(--tx, 1)); text-align: left; }
  .tabla.tarjetas td.titulo-fila::before { display: none; }
}

/* ---------- gráficas ---------- */
.mini { color: var(--acento-letra); overflow: visible; }
.barras { display: flex; align-items: flex-end; gap: 6px; height: 150px; padding-top: 8px; }
.barra-col { flex: 1; display: grid; grid-template-rows: 1fr auto; gap: 6px; height: 100%; min-width: 0; }
.barra-pila { display: flex; align-items: flex-end; justify-content: center; gap: 2px; height: 100%; }
.barra { width: min(100%, 22px); border-radius: 5px 5px 2px 2px; background: var(--acento); min-height: 2px; transform-origin: bottom; animation: crecer .5s var(--entra) both; }
.barra.b2 { background: var(--borde-fuerte); }
.barra-et { font-size: calc(11px * var(--tx, 1)); color: var(--suave); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes crecer { from { transform: scaleY(0); } }
.medidor { height: 8px; border-radius: 99px; background: var(--hundido); overflow: hidden; }
.medidor > span { display: block; height: 100%; border-radius: inherit; background: var(--acento); transform-origin: left; animation: llenar .6s var(--entra) both; }
@keyframes llenar { from { transform: scaleX(0); } }

/* ---------- avisos ---------- */
.aviso { position: fixed; left: 50%; bottom: calc(var(--alto-barra) + 16px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); opacity: 0; z-index: 90; max-width: min(92vw, 460px);
  background: var(--texto); color: var(--fondo); padding: 12px 18px; border-radius: 14px; font-weight: 650; font-size: calc(14.5px * var(--tx, 1)); box-shadow: var(--sombra); pointer-events: none;
  transition: transform .26s var(--entra), opacity .2s var(--entra); }
.aviso.visible { transform: translate(-50%, 0); opacity: 1; }
.aviso-mal { background: var(--mal); color: #fff; }
@media (min-width: 900px) { .aviso { bottom: 24px; } }

/* ---------- hojas (sube desde abajo en celular, diálogo en compu) ---------- */
.hoja-fondo { position: fixed; inset: 0; background: rgba(10, 8, 16, .46); opacity: 0; z-index: 80; transition: opacity .3s var(--entra); }
.hoja-fondo.visible { opacity: 1; }
.hoja { position: fixed; z-index: 81; left: 0; right: 0; bottom: 0; max-height: 92svh; display: grid; grid-template-rows: auto auto 1fr; background: var(--superficie); border-radius: 24px 24px 0 0;
  box-shadow: var(--sombra); transform: translateY(104%); transition: transform .38s var(--entra); padding-bottom: env(safe-area-inset-bottom); }
.hoja.visible { transform: none; }
.hoja.saliendo { transition: transform .24s var(--sale); }
.hoja-asa { width: 40px; height: 5px; border-radius: 9px; background: var(--borde-fuerte); margin: 8px auto 0; }
.hoja-cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px 6px 20px; }
.hoja-cab h2 { font-size: calc(23px * var(--tt, 1)); }
.hoja-cuerpo { overflow-y: auto; padding: 8px 20px 22px; display: grid; gap: 16px; align-content: start; overscroll-behavior: contain; }
.acciones-hoja { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; padding-top: 4px; }
@media (max-width: 520px) { .acciones-hoja .boton { flex: 1; } }
@media (min-width: 760px) {
  .hoja { left: 50%; top: 50%; bottom: auto; width: min(560px, 92vw); max-height: 88vh; border-radius: var(--radio); transform: translate(-50%, -46%) scale(.98); opacity: 0;
    transition: transform .32s var(--entra), opacity .22s var(--entra); }
  .hoja.visible { transform: translate(-50%, -50%); opacity: 1; }
  .hoja.saliendo { transition: transform .2s var(--sale), opacity .2s var(--sale); }
  .hoja-ancha { width: min(860px, 94vw); }
  .hoja-asa { display: none; }
  .hoja-cab { padding: 18px 18px 6px 24px; }
  .hoja-cuerpo { padding: 8px 24px 24px; }
}
html.con-hoja, html.con-hoja body { overflow: hidden; }

/* ---------- pases de Wallet ---------- */
/* Tamaño de letra (EG 2-dic-2026): los font-size van por calc(N * var(--tt|--tx, 1)).
   --tt = títulos con la letra de la marca, --tx = texto. Sin nada escogido valen 1 y todo se ve igual que antes.
   El pase siempre usa el tamaño que escogió el salón en Tu marca (--tt-m, --tx-m y el ajuste de su letra --aj, de js/marca.js). */
.wallet { --tt: calc(var(--tt-m, 1) * var(--aj, 1)); --tx: var(--tx-m, 1); }
.wallet { --p-fondo: #222; --p-texto: #fff; --p-suave: rgba(255, 255, 255, .74); --p-detalle: #fff;
  width: 100%; max-width: 360px; border-radius: 18px; background: var(--p-fondo); color: var(--p-texto); padding: 16px 18px 18px; display: grid; gap: 14px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .12), 0 22px 40px -22px rgba(0, 0, 0, .55); position: relative; overflow: hidden; isolation: isolate; }
.wallet::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255, 255, 255, .14), transparent 42%); z-index: -1; }
.wallet { grid-template-columns: minmax(0, 1fr); }
.w-cab { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; }
.w-cab .marca-logo { flex: 1 1 0; min-width: 0; }
.w-cab-der { margin-left: auto; flex: none; }
.w-pie > div { min-width: 0; }
.w-cab-der { display: grid; justify-items: end; text-align: right; min-width: 0; }
.w-cab-der b { font-size: calc(15px * var(--tx, 1)); white-space: nowrap; }
.w-et { font-size: calc(10px * var(--tx, 1)); text-transform: uppercase; letter-spacing: .16em; color: var(--p-suave); font-weight: 700; }
.w-cuerpo { display: grid; gap: 12px; }
.w-campo { display: grid; gap: 2px; min-width: 0; }
.w-campo b { font-size: calc(15px * var(--tx, 1)); font-weight: 750; }
.w-campo small { color: var(--p-suave); font-size: calc(12.5px * var(--tx, 1)); }
.w-grande b { font-size: calc(21px * var(--tx, 1)); line-height: 1.2; }
.w-fila { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; border-top: 1px solid color-mix(in srgb, var(--p-texto) 22%, transparent); padding-top: 10px; }
.w-pie { display: flex; gap: 14px; align-items: center; background: rgba(255, 255, 255, .96); color: #111; border-radius: 12px; padding: 10px; }
.w-pie .w-et { color: #555; } .w-pie small { color: #555; font-size: calc(12px * var(--tx, 1)); display: block; } .w-pie b { display: block; font-size: calc(16px * var(--tx, 1)); }
.w-pie .qr { border-radius: 4px; flex: none; }
.w-sellos { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.w-sello { aspect-ratio: 1; border-radius: 50%; border: 2px dashed color-mix(in srgb, var(--p-texto) 45%, transparent); display: grid; place-items: center; }
.w-sello.lleno { background: var(--p-detalle); border: 0; color: var(--p-fondo); }
.w-sello .ic { width: 60%; height: 60%; stroke-width: 2.6; }
/* EG 3-dic-2026 (ronda 3): los pases de Apple/Google Wallet todavía no existen: un aviso honesto en vez de botones */
.wallet-pronto { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0; color: var(--suave); font-size: calc(14px * var(--tx, 1)); line-height: 1.4; }
.wallet-pronto .pronto { margin-left: 0; }


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media (pointer: coarse) {
  button, .boton, .boton.chico, [role=button], .chip, select, .segmentado button { min-height: 44px; }
  .boton-icono { min-width: 44px; min-height: 44px; }
}

/* selector de idioma ES | EN (barras de arriba de todas las páginas) */
.idioma-sel { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--hundido); gap: 2px; flex: none; }
.idioma-sel button { border: 0; background: transparent; border-radius: 999px; min-width: 40px; min-height: 34px; padding: 4px 10px; font: 700 calc(13px * var(--tx, 1))/1 var(--cuerpo); letter-spacing: .04em; color: var(--suave); cursor: pointer; }
.idioma-sel button[aria-pressed="true"] { background: var(--superficie); color: var(--texto); box-shadow: inset 0 0 0 1px var(--borde-fuerte); }
@media (pointer: coarse) { .idioma-sel button { min-height: 44px; min-width: 44px; } }
/* variante para barras apretadas (IDIOMA.boton('idioma-corto')): en celular angosto solo se ve el idioma al que cambias */
@media (max-width: 440px) {
  .idioma-sel.idioma-corto { padding: 0; background: transparent; }
  .idioma-sel.idioma-corto button[aria-pressed="true"] { display: none; }
  .idioma-sel.idioma-corto button { color: var(--texto); box-shadow: inset 0 0 0 1px var(--borde-fuerte); }
}

/* EG 30-nov-2026: nota callada de "qué ya funciona / qué llega muy pronto" en un salón real */
.nota-pronto { display: grid; gap: 6px; padding: 14px 16px; border: 1px dashed var(--borde-fuerte); border-radius: var(--radio-medio); color: var(--suave); font-size: calc(14.5px * var(--tx, 1)); line-height: 1.5; }
.nota-pronto b { color: var(--texto); }
