/* Caja Viva · app del comercio. Tokens de marca en marca/ (ver CAJA_VIVA_MARCA_Y_DISENO.md). */
:root {
  --fondo: #F5F5F7; --sup: #FFFFFF; --sup2: #EEEEF2; --tinta: #1D1D1F; --tinta2: #6E6E73; --linea: rgba(0, 0, 0, .08);
  --acento: #4338E0; --acento-suave: #ECEBFD; --sobre-acento: #FFFFFF;
  --viva: #087F54; --viva-suave: #DDF7EB; --alerta: #B4232C; --alerta-suave: #FBE9EA; --espera: #8A5A00; --espera-suave: #FBF0D9;
  --menta: #2EE6A0; --noche: #0F0A45; --noche2: #1F16A0;
  --f: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --fn: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --r: 22px; --suave: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-tema="claro"]) {
    --fondo: #000000; --sup: #1C1C1E; --sup2: #2C2C2E; --tinta: #F5F5F7; --tinta2: #9A9AA1; --linea: rgba(255, 255, 255, .11);
    --acento: #9189FF; --acento-suave: #25224D; --sobre-acento: #0B0830;
    --viva: #2EE6A0; --viva-suave: #0F3326; --alerta: #FF7A80; --alerta-suave: #3A1518; --espera: #F2C063; --espera-suave: #3A2C0E;
    color-scheme: dark;
  }
}
:root[data-tema="oscuro"] {
  --fondo: #000000; --sup: #1C1C1E; --sup2: #2C2C2E; --tinta: #F5F5F7; --tinta2: #9A9AA1; --linea: rgba(255, 255, 255, .11);
  --acento: #9189FF; --acento-suave: #25224D; --sobre-acento: #0B0830;
  --viva: #2EE6A0; --viva-suave: #0F3326; --alerta: #FF7A80; --alerta-suave: #3A1518; --espera: #F2C063; --espera-suave: #3A2C0E;
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
html.fijo { overflow: hidden; }
body { margin: 0; background: var(--fondo); color: var(--tinta); font: 16px/1.35 var(--f); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; color: inherit; }
button { border: 0; background: none; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2.5px solid var(--acento); outline-offset: 2px; border-radius: 10px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.marca-punto, .telon-punto { fill: var(--menta); }
.num { font-family: var(--fn); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.cts { font-size: .56em; font-weight: 600; vertical-align: .62em; margin-left: .06em; letter-spacing: 0; }

/* ── Telón de entrada: el logo se dibuja una vez ─────────────────────────────────────────────────────────────── */
.telon { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: var(--noche); color: #fff;
  pointer-events: none; animation: telon-fuera .45s var(--suave) 1.05s forwards; }
.telon-marca { width: 108px; height: 108px; }
.telon-trazo { stroke-dasharray: 1; stroke-dashoffset: 1; animation: trazo .8s var(--suave) .1s forwards; }
.telon-punto { transform-origin: 69px 27px; transform: scale(0); animation: punto .4s var(--suave) .75s forwards; }
@keyframes trazo { to { stroke-dashoffset: 0; } }
@keyframes punto { 60% { transform: scale(1.35); } to { transform: scale(1); } }
@keyframes telon-fuera { to { opacity: 0; visibility: hidden; } }

/* ── Cáscara ─────────────────────────────────────────────────────────────────────────────────────────────────── */
.app { max-width: 480px; margin: 0 auto; padding: 0 16px calc(104px + env(safe-area-inset-bottom)); min-height: 100dvh; }
.tope { position: sticky; top: 0; z-index: 6; display: flex; align-items: center; justify-content: space-between;
  margin: 0 -16px; padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  background: color-mix(in srgb, var(--fondo) 78%, transparent); -webkit-backdrop-filter: saturate(1.8) blur(20px); backdrop-filter: saturate(1.8) blur(20px); }
.firma { display: flex; align-items: center; gap: 9px; }
.firma-icono { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(145deg, var(--noche2), var(--noche)); color: #fff; display: grid; place-items: center; }
.firma-icono svg { width: 100%; height: 100%; }
.firma-nombre { font-weight: 650; font-size: 18px; letter-spacing: -.025em; }
.vivo { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--viva); background: var(--viva-suave); padding: 6px 11px 6px 9px; border-radius: 99px; }
.vivo i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; position: relative; }
.vivo i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: currentColor; animation: onda 2.4s ease-out infinite; }
@keyframes onda { from { opacity: .55; transform: scale(1); } to { opacity: 0; transform: scale(3.2); } }

.barra { position: fixed; z-index: 7; left: 50%; bottom: calc(10px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  width: min(448px, calc(100% - 24px)); display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px;
  border-radius: 26px; border: 1px solid var(--linea);
  background: color-mix(in srgb, var(--sup) 76%, transparent); -webkit-backdrop-filter: saturate(1.8) blur(24px); backdrop-filter: saturate(1.8) blur(24px);
  box-shadow: 0 10px 34px rgba(8, 5, 50, .14); }
.barra a { display: grid; justify-items: center; gap: 2px; padding: 7px 0 6px; border-radius: 20px; color: var(--tinta2); font-size: 10.5px; font-weight: 600; transition: color .2s, background .2s; }
.barra a[aria-current="page"] { color: var(--acento); background: var(--acento-suave); }

.titulo { font-size: 32px; font-weight: 700; letter-spacing: -.03em; margin: 10px 2px 14px; }
.sub { color: var(--tinta2); font-size: 14px; }
.seccion { display: flex; align-items: baseline; justify-content: space-between; margin: 26px 2px 10px; }
.seccion h2 { font-size: 19px; font-weight: 680; letter-spacing: -.02em; }
.enlace { color: var(--acento); font-weight: 600; font-size: 14.5px; }
.tarjeta { background: var(--sup); border-radius: var(--r); padding: 16px; }
.vacio { text-align: center; color: var(--tinta2); padding: 34px 18px; font-size: 15px; }

/* ── Inicio: la caja ─────────────────────────────────────────────────────────────────────────────────────────── */
.saludo { margin: 6px 2px 14px; }
.saludo b { display: block; font-size: 26px; font-weight: 700; letter-spacing: -.03em; }
.caja { position: relative; border-radius: 34px; padding: 22px 22px 20px; color: #fff; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 90% at 100% 0%, #2B21B8 0%, transparent 60%), linear-gradient(160deg, #17107A, var(--noche) 70%); }
.caja::before { content: ""; position: absolute; z-index: -1; width: 62%; aspect-ratio: 1; right: -18%; bottom: -46%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(46, 230, 160, .34), transparent); animation: deriva 14s ease-in-out infinite alternate; }
@keyframes deriva { to { transform: translate(-46%, -18%) scale(1.25); } }
/* El contorno de la caja, abierto arriba a la derecha como en el logo. */
.caja::after { content: ""; position: absolute; inset: 9px; border-radius: 26px; border: 1.5px solid rgba(255, 255, 255, .26); pointer-events: none;
  -webkit-mask: radial-gradient(circle 58px at calc(100% - 4px) 4px, transparent 98%, #000 100%); mask: radial-gradient(circle 58px at calc(100% - 4px) 4px, transparent 98%, #000 100%); }
.caja-punto { position: absolute; top: 21px; right: 21px; width: 13px; height: 13px; border-radius: 50%; background: var(--menta); box-shadow: 0 0 0 0 rgba(46, 230, 160, .6); animation: latido 2.6s ease-out infinite; }
@keyframes latido { 0% { box-shadow: 0 0 0 0 rgba(46, 230, 160, .55); } 70%, 100% { box-shadow: 0 0 0 13px rgba(46, 230, 160, 0); } }
.gota { position: fixed; z-index: 40; width: 13px; height: 13px; border-radius: 50%; background: var(--menta); pointer-events: none; }
.caja-rotulo { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 500; color: rgba(255, 255, 255, .78); }
.ojo { width: 32px; height: 32px; margin: -6px 0; display: grid; place-items: center; border-radius: 50%; color: rgba(255, 255, 255, .78); }
.ojo .ico { width: 19px; height: 19px; }
.caja-monto { font-size: clamp(42px, 13.5vw, 58px); font-weight: 700; line-height: 1.05; margin: 6px 0 18px; letter-spacing: -.03em; }
.caja-monto .peso { font-size: .58em; font-weight: 600; vertical-align: .5em; margin-right: .06em; opacity: .85; }
.tramos { display: flex; gap: 3px; height: 7px; border-radius: 9px; overflow: hidden; }
.tramos i { min-width: 3px; border-radius: 2px; transition: flex-grow .7s var(--suave); }
.t-disp { background: #fff; } .t-lib { background: var(--menta); } .t-apa { background: rgba(255, 255, 255, .34); }
.leyenda { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 14px; font-size: 13.5px; color: rgba(255, 255, 255, .74); }
.leyenda > span { display: inline-flex; align-items: center; gap: 7px; }
.leyenda i { width: 8px; height: 8px; border-radius: 50%; }
.leyenda b { color: #fff; font-weight: 650; }
.corte { margin-top: 12px; font-size: 12px; color: rgba(255, 255, 255, .5); }

.acciones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
.accion { display: grid; justify-items: center; gap: 8px; padding: 6px 2px; font-size: 13px; font-weight: 600; line-height: 1.2; text-align: center; }
.accion span { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--sup); color: var(--acento); box-shadow: 0 1px 0 var(--linea); transition: transform .18s var(--suave), background .18s; }
.accion:active span { transform: scale(.92); background: var(--acento-suave); }

.ventas-cabeza { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.ventas-monto { font-size: 30px; font-weight: 700; line-height: 1.1; }
.barras { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; align-items: end; height: 118px; margin-top: 14px; }
.dia { display: grid; grid-template-rows: 1fr auto; gap: 7px; height: 100%; justify-items: center; font-size: 11.5px; font-weight: 600; color: var(--tinta2); }
.dia i { align-self: end; width: 100%; max-width: 30px; min-height: 5px; border-radius: 8px; background: var(--sup2); transition: height .6s var(--suave), background .2s; }
.dia.hoy i { background: color-mix(in srgb, var(--acento) 36%, var(--sup2)); }
.dia[aria-pressed="true"] { color: var(--acento); }
.dia[aria-pressed="true"] i { background: var(--acento); }

/* ── Filas de movimientos ────────────────────────────────────────────────────────────────────────────────────── */
.lista { background: var(--sup); border-radius: var(--r); overflow: hidden; }
.fila { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; text-align: left; position: relative; }
.fila + .fila::before { content: ""; position: absolute; top: 0; left: 68px; right: 0; border-top: 1px solid var(--linea); }
.fila:active { background: var(--sup2); }
.fila-ico { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--acento-suave); color: var(--acento); }
.fila-ico .ico { width: 21px; height: 21px; }
.fila-ico.solicitud { background: var(--sup2); color: var(--tinta); }
.fila-ico.devolucion { background: var(--alerta-suave); color: var(--alerta); }
.fila-txt { min-width: 0; display: grid; gap: 1px; }
.fila-txt b { font-weight: 600; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fila-txt small, .fila-monto small { color: var(--tinta2); font-size: 13px; }
.fila-monto { display: grid; justify-items: end; gap: 1px; font-weight: 650; font-size: 16px; }
.fila-monto .entra { color: var(--viva); }
.fila-monto .tachado { text-decoration: line-through; color: var(--tinta2); font-weight: 500; }
.fila.nueva { animation: llega .7s var(--suave); }
@keyframes llega { from { opacity: 0; transform: translateY(-14px); background: var(--viva-suave); } 60% { background: var(--viva-suave); } }
.dia-cabeza { position: sticky; top: calc(52px + env(safe-area-inset-top)); z-index: 2; margin: 18px 0 8px; padding: 5px 2px; font-size: 14px; font-weight: 650; color: var(--tinta2);
  background: color-mix(in srgb, var(--fondo) 84%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }

/* ── Actividad ───────────────────────────────────────────────────────────────────────────────────────────────── */
.trio { display: grid; grid-template-columns: 1.25fr 1fr 1fr; }
.trio div { padding: 2px 12px; display: grid; gap: 3px; }
.trio div + div { border-left: 1px solid var(--linea); }
.trio div:first-child { padding-left: 2px; }
.trio small { color: var(--tinta2); font-size: 12.5px; }
.trio b { font-size: 18px; font-weight: 700; }
.buscar { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 0 12px; height: 44px; border-radius: 14px; background: var(--sup2); color: var(--tinta2); }
.buscar .ico { width: 19px; height: 19px; }
.buscar input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--tinta); font-size: 16px; }
.fichas { display: flex; gap: 8px; overflow-x: auto; margin: 12px -16px 0; padding: 2px 16px; scrollbar-width: none; }
.fichas::-webkit-scrollbar { display: none; }
.ficha { flex: none; padding: 8px 15px; border-radius: 99px; background: var(--sup); font-size: 14px; font-weight: 600; color: var(--tinta2); transition: background .2s, color .2s; }
.ficha[aria-pressed="true"] { background: var(--tinta); color: var(--fondo); }

/* ── Solicitudes ─────────────────────────────────────────────────────────────────────────────────────────────── */
.opcion { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; width: 100%; padding: 14px; text-align: left; position: relative; }
.opcion + .opcion::before { content: ""; position: absolute; top: 0; left: 70px; right: 0; border-top: 1px solid var(--linea); }
.opcion > span:first-child { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--acento-suave); color: var(--acento); }
.opcion b { display: block; font-weight: 600; }
.opcion small { color: var(--tinta2); font-size: 13.5px; }
.opcion > .ico { color: var(--tinta2); width: 18px; height: 18px; }
.sol { padding: 16px; display: grid; gap: 12px; }
.sol + .sol { border-top: 1px solid var(--linea); }
.sol-cabeza { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.sol-cabeza b { font-weight: 600; }
.sol-cabeza .num { font-size: 18px; font-weight: 700; }
.pasos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; font-size: 12px; font-weight: 600; color: var(--tinta2); }
.pasos span { display: grid; gap: 6px; }
.pasos span::before { content: ""; height: 4px; border-radius: 4px; background: var(--sup2); transition: background .4s; }
.pasos .hecho { color: var(--tinta); }
.pasos .hecho::before { background: var(--acento); }
.pasos .pagado::before { background: var(--viva); }
.estado { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 99px; font-size: 13px; font-weight: 650; background: var(--sup2); color: var(--tinta2); }
.estado.bien { background: var(--viva-suave); color: var(--viva); }
.estado.espera { background: var(--espera-suave); color: var(--espera); }
.estado.mal { background: var(--alerta-suave); color: var(--alerta); }
.codigo { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--sup2); font-size: 13.5px; color: var(--tinta2); }
.codigo b { font-family: var(--fn); font-size: 24px; letter-spacing: .14em; color: var(--tinta); }
.pie-sol { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--tinta2); }
.texto-boton { color: var(--alerta); font-weight: 600; font-size: 14px; padding: 4px 0; }

/* ── Botones, campos, interruptores ──────────────────────────────────────────────────────────────────────────── */
.boton { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; min-height: 54px; padding: 0 20px; border-radius: 17px; background: var(--acento); color: var(--sobre-acento); font-weight: 650; font-size: 17px; transition: transform .15s var(--suave), opacity .2s; }
.boton:active { transform: scale(.98); }
.boton:disabled { opacity: .38; cursor: default; }
.boton.suave { background: var(--acento-suave); color: var(--acento); }
.boton.liso { background: var(--sup2); color: var(--tinta); }
.campo { display: grid; gap: 7px; margin-top: 14px; font-size: 14px; font-weight: 600; }
.campo input { height: 54px; padding: 0 16px; border-radius: 15px; border: 1.5px solid transparent; background: var(--sup2); font-size: 17px; font-weight: 500; outline: 0; }
.campo input:focus { border-color: var(--acento); background: var(--sup); }
.campo small { font-weight: 500; color: var(--tinta2); }
.error { color: var(--alerta); font-size: 14px; font-weight: 600; min-height: 20px; margin-top: 10px; text-align: center; }
.ajuste { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; padding: 14px 16px; text-align: left; position: relative; min-height: 58px; }
.ajuste + .ajuste::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; border-top: 1px solid var(--linea); }
.ajuste b { display: block; font-weight: 550; }
.ajuste small { color: var(--tinta2); font-size: 13.5px; }
.ajuste > .ico { color: var(--tinta2); width: 18px; height: 18px; }
.llave { flex: none; width: 52px; height: 32px; border-radius: 99px; background: var(--sup2); position: relative; transition: background .25s; }
.llave::after { content: ""; position: absolute; top: 2.5px; left: 2.5px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .22); transition: transform .28s var(--suave); }
[aria-checked="true"] > .llave { background: var(--viva); }
:root:not([data-tema="oscuro"]) [aria-checked="true"] > .llave { background: #23C483; }
[aria-checked="true"] > .llave::after { transform: translateX(20px); }
.segmento { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 3px; border-radius: 13px; background: var(--sup2); margin: 0 16px 16px; }
.segmento button { padding: 8px 4px; border-radius: 10.5px; font-size: 14px; font-weight: 600; color: var(--tinta2); }
.segmento [aria-pressed="true"] { background: var(--sup); color: var(--tinta); box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.rotulo { padding: 14px 16px 10px; font-weight: 550; }
.nota { margin: 12px 4px 0; font-size: 13px; color: var(--tinta2); line-height: 1.45; }
.pasos-lista { margin: 8px 0 0; padding-left: 22px; color: var(--tinta2); font-size: 14.5px; line-height: 1.6; }

/* ── Hoja inferior ───────────────────────────────────────────────────────────────────────────────────────────── */
.hoja-fondo { position: fixed; inset: 0; z-index: 20; display: grid; align-items: end; justify-items: center; background: rgba(6, 4, 30, .46); animation: velo .28s ease both; }
.hoja-fondo.fuera { animation: velo .22s ease reverse both; }
@keyframes velo { from { opacity: 0; } }
.hoja { width: min(480px, 100%); max-height: calc(100dvh - 28px - env(safe-area-inset-top)); overflow-y: auto; overscroll-behavior: contain;
  background: var(--fondo); border-radius: 30px 30px 0 0; padding: 10px 18px calc(22px + env(safe-area-inset-bottom)); animation: sube .42s var(--suave) both; }
.fuera .hoja { animation: sube .22s ease-in reverse both; }
@keyframes sube { from { transform: translateY(100%); } }
.hoja-asa { width: 38px; height: 5px; border-radius: 5px; background: var(--linea); margin: 0 auto 6px; }
.hoja-tope { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.hoja-tope h2 { font-size: 17px; font-weight: 650; letter-spacing: -.01em; }
.redondo { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--sup2); color: var(--tinta2); }
.redondo .ico { width: 17px; height: 17px; stroke-width: 2.2; }

.det-cabeza { display: grid; justify-items: center; gap: 6px; padding: 8px 0 20px; text-align: center; }
.det-ico { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--acento-suave); color: var(--acento); margin-bottom: 4px; }
.det-ico.devolucion { background: var(--alerta-suave); color: var(--alerta); }
.det-ico.solicitud { background: var(--sup); color: var(--tinta); }
.det-monto { font-size: 46px; font-weight: 700; line-height: 1.1; letter-spacing: -.03em; }
.datos { background: var(--sup); border-radius: var(--r); margin-top: 14px; }
.dato { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 13px 16px; font-size: 15px; }
.dato + .dato { border-top: 1px solid var(--linea); }
.dato span { color: var(--tinta2); flex: none; }
.dato b { font-weight: 550; text-align: right; display: inline-flex; align-items: center; gap: 8px; }
.dato button { color: var(--acento); display: grid; }
.dato button .ico { width: 18px; height: 18px; }

.monto-grande { text-align: center; font-size: clamp(46px, 15vw, 64px); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; margin: 14px 0 4px; }
.monto-grande.vacio-monto { color: var(--tinta2); }
.monto-grande .peso { font-size: .55em; vertical-align: .55em; margin-right: .05em; font-weight: 600; }
.cursor { display: inline-block; width: 3px; height: .78em; margin-left: 3px; border-radius: 2px; background: var(--acento); vertical-align: -.04em; animation: parpadeo 1.1s steps(2) infinite; }
@keyframes parpadeo { 50% { opacity: 0; } }
.centro { text-align: center; }
.atajos { display: flex; justify-content: center; gap: 8px; margin: 14px 0 6px; }
.atajos button { padding: 8px 16px; border-radius: 99px; background: var(--sup); font-weight: 600; font-size: 14px; color: var(--acento); }
.teclado { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 10px 0 14px; }
.teclado button { height: 60px; border-radius: 18px; font-family: var(--fn); font-size: 28px; font-weight: 550; display: grid; place-items: center; transition: background .12s; }
.teclado button:active { background: var(--sup2); }

.exito { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 20px 6px 8px; }
.palomita { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: var(--viva-suave); color: var(--viva); animation: brota .5s var(--suave) both; }
.palomita .ico { width: 42px; height: 42px; stroke-width: 2.6; stroke-dasharray: 26; stroke-dashoffset: 26; animation: palomea .45s var(--suave) .28s forwards; }
@keyframes brota { from { transform: scale(.4); opacity: 0; } }
@keyframes palomea { to { stroke-dashoffset: 0; } }
.exito h2 { font-size: 24px; font-weight: 700; letter-spacing: -.025em; }
.exito p { color: var(--tinta2); max-width: 30ch; }
.exito .codigo { width: 100%; margin-top: 6px; }
.exito .boton { margin-top: 12px; }

/* ── Avisos ──────────────────────────────────────────────────────────────────────────────────────────────────── */
.avisos { position: fixed; z-index: 30; top: calc(8px + env(safe-area-inset-top)); left: 0; right: 0; display: grid; justify-items: center; gap: 8px; pointer-events: none; padding: 0 14px; }
.aviso { display: flex; align-items: center; gap: 11px; max-width: 440px; padding: 10px 18px 10px 11px; border-radius: 22px; background: var(--tinta); color: var(--fondo); font-size: 14.5px; font-weight: 550; box-shadow: 0 12px 34px rgba(0, 0, 0, .26); animation: baja .5s var(--suave) both; }
.aviso.fuera { animation: baja .26s ease-in reverse both; }
@keyframes baja { from { transform: translateY(-130%); opacity: 0; } }
.aviso-ico { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--menta); color: #06281B; flex: none; }
.aviso-ico .ico { width: 18px; height: 18px; stroke-width: 2.4; }
.aviso small { display: block; font-weight: 500; opacity: .7; font-size: 12.5px; }
.aviso.simple { padding-left: 18px; }

@media (min-width: 620px) {
  body { background: color-mix(in srgb, var(--fondo) 88%, var(--tinta)); }
  .app { background: var(--fondo); box-shadow: 0 0 0 1px var(--linea); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .telon { animation-delay: .4s; }
}

.dia-cabeza::first-letter { text-transform: uppercase; }
.entrada { margin: 2px 2px 14px; }
