/* RB Studio · Tarjetas de fidelización */
@font-face { font-family: 'Anton'; src: url('/fonts/anton-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url('/fonts/barlow-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url('/fonts/barlow-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url('/fonts/barlow-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url('/fonts/barlow-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --bg: #0A0A0A; --rojo: #E10600; --oro: #F5B82E; --fuego: #F26A1B; --hueso: #F5F1E8;
  --tenue: #B8B0A3;
  --apagado: #857D72;
  --superficie: #151211;
  --superficie-2: #1E1A18;
  --linea: rgba(245, 241, 232, .12);
  --error: #FF7A6B;
  --exito: #58D68D;
  --wa: #25D366;
  --radio: 18px;
  --display: 'Anton', Impact, 'Arial Narrow', sans-serif;
  --texto: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; min-height: 100dvh; color: var(--hueso); background: var(--bg);
  font: 500 17px/1.45 var(--texto);
  display: flex; flex-direction: column; align-items: center;
  -webkit-tap-highlight-color: transparent;
}
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(90% 42% at 50% -6%, color-mix(in srgb, var(--rojo) 30%, transparent), transparent 70%),
    radial-gradient(70% 30% at 88% 0%, color-mix(in srgb, var(--fuego) 20%, transparent), transparent 72%);
}
h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
a { color: var(--oro); }
:focus-visible { outline: 3px solid var(--oro); outline-offset: 2px; }
[hidden] { display: none !important; }

.app { width: 100%; max-width: 460px; padding: max(16px, env(safe-area-inset-top)) 16px 8px; flex: 1; display: flex; flex-direction: column; gap: 16px; }
.app-ancha { max-width: 720px; }
.pie { padding: 18px 16px calc(14px + env(safe-area-inset-bottom)); color: var(--apagado); font-size: 13px; letter-spacing: .02em; text-align: center; }
.pie strong { color: var(--tenue); font-weight: 600; }
.titulo { font: 400 30px/1.1 var(--display); letter-spacing: .01em; text-transform: uppercase; }
.subtitulo { font: 400 21px/1.15 var(--display); letter-spacing: .02em; text-transform: uppercase; }
.tenue { color: var(--tenue); }
.chico { font-size: 14px; }
.centro { text-align: center; }
.fila { display: flex; align-items: center; gap: 10px; }
.entre { justify-content: space-between; }
.pila { display: flex; flex-direction: column; gap: 10px; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 54px; padding: 12px 18px;
  border: 0; border-radius: 14px; cursor: pointer; text-decoration: none; font-weight: 700; font-size: 17px; line-height: 1.15; text-align: center;
  transition: transform .08s ease, filter .15s ease;
}
.btn:active { transform: scale(.975); }
.btn:disabled { opacity: .5; cursor: default; }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-primario { color: #fff; background: linear-gradient(180deg, color-mix(in srgb, var(--rojo) 88%, #fff), var(--rojo) 55%, color-mix(in srgb, var(--rojo) 82%, #000)); box-shadow: 0 8px 24px -10px var(--rojo); }
.btn-oro { color: #1A1206; background: linear-gradient(180deg, color-mix(in srgb, var(--oro) 82%, #fff), var(--oro)); }
.btn-fantasma { color: var(--hueso); background: transparent; box-shadow: inset 0 0 0 1.5px var(--linea); }
.btn-wa { color: #06270F; background: var(--wa); }
.btn-chico { min-height: 44px; padding: 8px 14px; font-size: 15px; border-radius: 11px; width: auto; }
.btn-enlace { background: none; border: 0; color: var(--tenue); text-decoration: underline; cursor: pointer; padding: 10px; font-size: 14px; }

/* Formularios */
.campo { display: flex; flex-direction: column; gap: 6px; }
.campo > label, .etiqueta { font-weight: 600; font-size: 15px; }
.campo small { color: var(--tenue); font-size: 13.5px; }
.entrada, select.entrada {
  width: 100%; min-height: 54px; padding: 12px 14px; border-radius: 13px; border: 1.5px solid var(--linea); background: var(--superficie);
  font-size: 18px; font-weight: 500; outline: none; appearance: none;
}
.entrada::placeholder { color: var(--apagado); }
.entrada:focus { border-color: var(--oro); }
select.entrada { background-image: linear-gradient(45deg, transparent 50%, var(--tenue) 50%), linear-gradient(135deg, var(--tenue) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 32px; font-size: 17px; }
.entrada-tel { display: flex; align-items: stretch; border-radius: 13px; border: 1.5px solid var(--linea); background: var(--superficie); overflow: hidden; }
.entrada-tel:focus-within { border-color: var(--oro); }
.entrada-tel span { display: flex; align-items: center; padding: 0 4px 0 14px; color: var(--tenue); font-weight: 600; font-size: 18px; }
.entrada-tel input { flex: 1; min-width: 0; min-height: 51px; padding: 12px 14px 12px 6px; border: 0; background: none; outline: none; font-size: 18px; font-weight: 500; }
.dos { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.35; cursor: pointer; }
.check input { flex: none; width: 24px; height: 24px; margin: 0; accent-color: var(--rojo); }
.check button { all: unset; color: var(--oro); text-decoration: underline; cursor: pointer; }
.error { color: var(--error); font-size: 15px; font-weight: 600; }
.aviso-error { padding: 12px 14px; border-radius: 12px; color: var(--hueso); background: color-mix(in srgb, var(--rojo) 18%, var(--superficie)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rojo) 55%, transparent); font-size: 15.5px; }

/* Registro */
.hero { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.hero img { width: min(70vw, 270px); aspect-ratio: 1; filter: drop-shadow(0 10px 30px color-mix(in srgb, var(--fuego) 35%, transparent)); }
.hero h1 { font: 400 clamp(32px, 9.4vw, 40px)/1.06 var(--display); text-transform: uppercase; letter-spacing: .01em; margin-top: 2px; }
.hero h1 em { font-style: normal; color: var(--oro); display: block; }
.hero p { color: var(--tenue); max-width: 32ch; }
.beneficios { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.beneficio { padding: 12px 6px 10px; border-radius: 14px; background: var(--superficie); box-shadow: inset 0 0 0 1px var(--linea); text-align: center; font-size: 13.5px; line-height: 1.2; color: var(--tenue); }
.beneficio b { display: block; color: var(--oro); font: 400 24px/1 var(--display); margin-bottom: 5px; }
.beneficio span { display: block; }
.panel { padding: 18px 16px; border-radius: var(--radio); background: var(--superficie); box-shadow: inset 0 0 0 1px var(--linea); display: flex; flex-direction: column; gap: 14px; }

/* Tarjeta */
.cabecera { display: flex; align-items: center; gap: 12px; }
.cabecera img { width: 58px; height: 58px; flex: none; }
.cabecera .saludo { font: 400 25px/1.1 var(--display); text-transform: uppercase; letter-spacing: .01em; overflow-wrap: anywhere; }
.insignia-vip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 3px 7px; border-radius: 99px; color: #1A1206; background: var(--oro); font-size: 12.5px; font-weight: 700; letter-spacing: .05em; }
.insignia-vip svg { width: 13px; height: 13px; }
.banda { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 12px; border-radius: 12px; color: #1A1206; font-weight: 700; font-size: 15.5px; background: linear-gradient(90deg, var(--oro), var(--fuego)); }
.banda svg { width: 20px; height: 20px; flex: none; }

.tarjeta {
  position: relative; padding: 16px 14px 16px; border-radius: 22px;
  background: linear-gradient(155deg, #221A17 0%, #120E0D 55%, #0C0A09 100%);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--oro) 70%, transparent), 0 0 0 5px #0D0B0A, 0 0 0 6px color-mix(in srgb, var(--rojo) 75%, transparent), 0 22px 44px -22px #000;
  margin: 6px;
}
.tarjeta-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.tarjeta-top .rotulo { font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--tenue); }
.tarjeta-top .cuenta { font: 400 34px/1 var(--display); color: var(--oro); }
.tarjeta-top .cuenta small { font-size: 20px; color: var(--tenue); }
.tarjeta.golpe { animation: golpe .34s cubic-bezier(.3, .7, .4, 1); }

.sellos { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; }
.slot { position: relative; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid rgba(245, 241, 232, .16); color: rgba(245, 241, 232, .3); font: 400 19px/1 var(--display); }
.slot.premio { border: 1.5px dashed color-mix(in srgb, var(--oro) 80%, transparent); color: var(--oro); background: color-mix(in srgb, var(--oro) 8%, transparent); }
.slot.premio svg { width: 54%; height: 54%; }
.slot .sello {
  position: absolute; inset: -1.5px; display: grid; place-items: center; border-radius: 50%; color: var(--oro); transform: rotate(var(--giro, 0deg));
  background: radial-gradient(circle at 34% 28%, color-mix(in srgb, var(--rojo) 82%, #fff 18%), var(--rojo) 44%, color-mix(in srgb, var(--rojo) 60%, #000) 100%);
  box-shadow: inset 0 0 0 2px var(--oro), inset 0 0 0 4px rgba(10, 10, 10, .55), inset 0 0 0 5px rgba(245, 241, 232, .55), 0 3px 8px -2px rgba(0, 0, 0, .8);
}
.slot .sello svg { width: 60%; height: 60%; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .45)); }
.slot.cae .sello { animation: cae .62s cubic-bezier(.3, .05, .3, 1) both; animation-delay: var(--retardo, 0ms); }
.slot.cae::after { content: ''; position: absolute; inset: -1px; border-radius: 50%; border: 3px solid var(--oro); opacity: 0; animation: onda .55s ease-out both; animation-delay: calc(var(--retardo, 0ms) + 380ms); pointer-events: none; }

.progreso { margin-top: 15px; }
.barra { position: relative; height: 12px; border-radius: 99px; background: rgba(245, 241, 232, .1); overflow: visible; }
.barra-llena { height: 100%; min-width: 12px; border-radius: 99px; background: linear-gradient(90deg, var(--rojo), var(--fuego) 60%, var(--oro)); box-shadow: 0 0 14px color-mix(in srgb, var(--fuego) 60%, transparent); transition: width .7s cubic-bezier(.2, .8, .2, 1); }
.barra-marca { position: absolute; top: -3px; bottom: -3px; width: 2px; border-radius: 2px; background: var(--hueso); opacity: .75; }
.mensaje { margin-top: 12px; text-align: center; font-weight: 700; font-size: 18px; line-height: 1.25; }

.premio-listo { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 15px; color: #1A1206; background: linear-gradient(120deg, color-mix(in srgb, var(--oro) 86%, #fff), var(--oro) 60%, var(--fuego)); }
.premio-listo svg { width: 34px; height: 34px; flex: none; }
.premio-listo b { display: block; font: 400 19px/1.1 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.premio-listo span { font-size: 14.5px; font-weight: 600; }

.qr-caja { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px; border-radius: var(--radio); background: var(--superficie); box-shadow: inset 0 0 0 1px var(--linea); }
.qr-boton { all: unset; display: block; cursor: zoom-in; padding: 12px; border-radius: 14px; background: #fff; line-height: 0; width: min(66vw, 240px); box-sizing: border-box; }
.qr-boton svg { width: 100%; height: auto; display: block; }
.qr-grande { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 20px; background: #fff; color: #0A0A0A; text-align: center; font-weight: 700; font-size: 19px; }
.qr-grande svg { width: min(88vw, 62vh); height: auto; }

.historial { list-style: none; margin: 0; padding: 0; }
.historial li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--linea); font-size: 15.5px; }
.historial li:last-child { border-bottom: 0; }
.historial time { color: var(--tenue); font-size: 14px; white-space: nowrap; }
details > summary { cursor: pointer; list-style: none; font-weight: 700; display: flex; align-items: center; justify-content: space-between; min-height: 30px; }
details > summary::-webkit-details-marker { display: none; }
details > summary::after { content: '+'; font: 400 22px/1 var(--display); color: var(--oro); }
details[open] > summary::after { content: '–'; }
.chip { display: inline-flex; padding: 3px 10px; border-radius: 99px; font-size: 13px; font-weight: 600; color: var(--tenue); box-shadow: inset 0 0 0 1px var(--linea); }

/* Modal */
.velo { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 18px; background: rgba(5, 4, 4, .78); backdrop-filter: blur(5px); animation: aparece .2s ease both; }
.modal { width: 100%; max-width: 400px; max-height: 88dvh; overflow: auto; padding: 22px 20px 18px; border-radius: 22px; background: linear-gradient(170deg, #241C19, #120E0D); box-shadow: 0 0 0 1px color-mix(in srgb, var(--oro) 60%, transparent), 0 30px 60px -20px #000; display: flex; flex-direction: column; gap: 12px; text-align: center; animation: sube .32s cubic-bezier(.2, .9, .3, 1.15) both; }
.modal .icono-grande { width: 74px; height: 74px; margin: 0 auto; color: var(--oro); }
.modal .icono-grande svg { width: 100%; height: 100%; }
.modal p { color: var(--tenue); }
.modal.legal { text-align: left; font-size: 15.5px; }

.confeti { position: fixed; inset: 0; z-index: 70; pointer-events: none; }
.toast { position: fixed; left: 50%; top: calc(14px + env(safe-area-inset-top)); z-index: 80; transform: translateX(-50%); max-width: calc(100vw - 32px); width: max-content; padding: 12px 18px; border-radius: 13px; color: #1A1206; background: var(--hueso); font-weight: 700; box-shadow: 0 14px 30px -10px #000; animation: sube .25s ease both; }

/* PIN */
.pin { display: flex; flex-direction: column; align-items: center; gap: 16px; margin: auto 0; padding: 8px 0; }
.pin img { width: 112px; height: 112px; }
.pin-puntos { display: flex; gap: 12px; height: 18px; }
.pin-puntos i { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--tenue); transition: background .1s; }
.pin-puntos i.lleno { background: var(--oro); box-shadow: none; }
.pin-puntos.mal { animation: temblor .35s; }
.teclado { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; max-width: 320px; }
.tecla { min-height: 66px; border: 0; border-radius: 16px; background: var(--superficie-2); box-shadow: inset 0 0 0 1px var(--linea); font: 400 28px/1 var(--display); cursor: pointer; display: grid; place-items: center; }
.tecla:active { background: color-mix(in srgb, var(--oro) 25%, var(--superficie-2)); }
.tecla.accion { font: 700 16px/1 var(--texto); }
.tecla.entrar { color: #fff; background: var(--rojo); box-shadow: none; }
.tecla svg { width: 26px; height: 26px; }

/* Caja */
.barra-sup { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.barra-sup .marca { display: flex; align-items: center; gap: 10px; min-width: 0; }
.barra-sup img { width: 44px; height: 44px; flex: none; }
.barra-sup b { font: 400 20px/1.1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.boton-escanear { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 230px; border: 0; border-radius: 22px; cursor: pointer; color: #fff; font: 400 34px/1 var(--display); text-transform: uppercase; letter-spacing: .02em; background: linear-gradient(170deg, color-mix(in srgb, var(--rojo) 90%, #fff), var(--rojo) 50%, color-mix(in srgb, var(--rojo) 70%, #000)); box-shadow: 0 16px 36px -16px var(--rojo); }
.boton-escanear:active { transform: scale(.985); }
.boton-escanear svg { width: 84px; height: 84px; }
.resultados { display: flex; flex-direction: column; gap: 8px; }
.resultado { all: unset; box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 62px; padding: 10px 14px; border-radius: 14px; background: var(--superficie); box-shadow: inset 0 0 0 1px var(--linea); cursor: pointer; }
.resultado:focus-visible { outline: 3px solid var(--oro); }
.resultado b { display: block; font-weight: 700; font-size: 18px; }
.resultado .cuenta-chica { font: 400 22px/1 var(--display); color: var(--oro); white-space: nowrap; }

.ficha { padding: 16px; border-radius: var(--radio); background: var(--superficie); box-shadow: inset 0 0 0 1px var(--linea); display: flex; flex-direction: column; gap: 12px; }
.ficha-nombre { font: 400 32px/1.05 var(--display); text-transform: uppercase; letter-spacing: .01em; overflow-wrap: anywhere; }
.ficha-cuenta { font: 400 56px/1 var(--display); color: var(--oro); }
.ficha-cuenta small { font-size: 28px; color: var(--tenue); }
.btn-gigante { min-height: 104px; border-radius: 20px; font: 400 34px/1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.btn-gigante svg { width: 34px; height: 34px; }
.premio-caja { padding: 12px; border-radius: 14px; background: color-mix(in srgb, var(--oro) 12%, var(--superficie)); box-shadow: inset 0 0 0 1.5px var(--oro); display: flex; flex-direction: column; gap: 10px; }
.premio-caja > b { font-size: 16.5px; }
.opciones { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.espera { padding: 14px; border-radius: 14px; text-align: center; font-weight: 700; background: var(--superficie-2); box-shadow: inset 0 0 0 1px var(--linea); }

.exito { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 18px 0 6px; animation: sube .28s ease both; }
.exito .sello-ok { width: 118px; height: 118px; border-radius: 50%; display: grid; place-items: center; color: #06270F; background: var(--exito); animation: cae .5s cubic-bezier(.3, .05, .3, 1) both; }
.exito .sello-ok svg { width: 62px; height: 62px; }
.exito h2 { font: 400 34px/1.08 var(--display); text-transform: uppercase; }

.escaner { position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; background: #000; }
.escaner video { flex: 1; min-height: 0; width: 100%; object-fit: cover; }
.escaner .mira { position: absolute; left: 50%; top: 42%; width: min(72vw, 300px); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 22px; box-shadow: 0 0 0 200vmax rgba(0, 0, 0, .5), inset 0 0 0 3px var(--oro); pointer-events: none; }
.escaner .pie-escaner { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 16px calc(18px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 10px; text-align: center; font-weight: 700; }

/* Panel del dueño */
.pestanas { position: sticky; bottom: 0; z-index: 20; width: 100%; display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--linea); }
.pestana { all: unset; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 2px; min-height: 54px; border-radius: 10px; color: var(--apagado); font-size: 12.5px; font-weight: 600; cursor: pointer; text-align: center; }
.pestana svg { width: 23px; height: 23px; }
.pestana[aria-selected='true'] { color: var(--oro); }
.pestana:focus-visible { outline: 3px solid var(--oro); }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.kpi { padding: 13px 14px; border-radius: 15px; background: var(--superficie); box-shadow: inset 0 0 0 1px var(--linea); min-width: 0; }
.kpi b { display: block; font: 400 36px/1.05 var(--display); color: var(--hueso); }
.kpi span { font-size: 14px; font-weight: 600; color: var(--tenue); line-height: 1.2; display: block; }
.kpi small { font-size: 13px; color: var(--apagado); }
.kpi.doble { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kpi.doble b { font-size: 25px; text-transform: capitalize; }

.grafico { position: relative; display: flex; align-items: flex-end; gap: 4px; height: 150px; padding-top: 24px; border-bottom: 1px solid var(--linea); }
.barra-dia { all: unset; position: relative; flex: 1; height: 100%; display: flex; align-items: flex-end; cursor: pointer; }
.barra-dia i { display: block; width: 100%; min-height: 2px; border-radius: 4px 4px 0 0; background: var(--oro); opacity: .9; }
.barra-dia.cero i { background: var(--linea); opacity: 1; }
.barra-dia.activa i, .barra-dia:hover i { opacity: 1; filter: brightness(1.15); }
.barra-dia:focus-visible { outline: 2px solid var(--hueso); }
.grafico-eje { display: flex; justify-content: space-between; margin-top: 6px; color: var(--apagado); font-size: 13px; }
.grafico-info { min-height: 22px; font-size: 15px; font-weight: 600; color: var(--hueso); }
.tabla { width: 100%; border-collapse: collapse; font-size: 14.5px; margin-top: 8px; }
.tabla th, .tabla td { padding: 6px 4px; text-align: left; border-bottom: 1px solid var(--linea); }
.tabla td:last-child, .tabla th:last-child { text-align: right; }

.fila-cliente { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--linea); }
.fila-cliente:last-child { border-bottom: 0; }
.fila-cliente .quien { min-width: 0; overflow-wrap: anywhere; }
.fila-cliente .quien b { display: block; font-size: 16.5px; }
.fila-cliente .quien span { font-size: 14px; color: var(--tenue); }
.vacio { padding: 16px 6px; text-align: center; color: var(--tenue); font-size: 15.5px; }
.interruptor { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 44px; font-weight: 600; cursor: pointer; }
.interruptor input { appearance: none; flex: none; width: 52px; height: 30px; margin: 0; border-radius: 99px; background: var(--superficie-2); box-shadow: inset 0 0 0 1.5px var(--linea); position: relative; cursor: pointer; transition: background .15s; }
.interruptor input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--hueso); transition: transform .15s; }
.interruptor input:checked { background: var(--rojo); }
.interruptor input:checked::after { transform: translateX(22px); }
.separador { height: 1px; background: var(--linea); margin: 2px 0; }

.espera-carga { margin: auto; color: var(--tenue); padding: 40px 0; text-align: center; }

@keyframes cae {
  0% { opacity: 0; transform: translateY(-150px) scale(2.5) rotate(calc(var(--giro, 0deg) - 22deg)); }
  20% { opacity: 1; }
  60% { transform: translateY(0) scale(.86) rotate(var(--giro, 0deg)); }
  78% { transform: translateY(0) scale(1.1) rotate(var(--giro, 0deg)); }
  100% { opacity: 1; transform: translateY(0) scale(1) rotate(var(--giro, 0deg)); }
}
@keyframes golpe {
  0%, 100% { transform: none; }
  20% { transform: translateY(5px) rotate(-.7deg); }
  45% { transform: translateY(-3px) rotate(.5deg); }
  70% { transform: translateY(1px) rotate(-.2deg); }
}
@keyframes onda { 0% { opacity: .9; transform: scale(.9); } 100% { opacity: 0; transform: scale(1.7); } }
@keyframes aparece { from { opacity: 0; } }
@keyframes sube { from { opacity: 0; transform: translateY(14px); } }
.toast { animation-name: sube-toast; }
@keyframes sube-toast { from { opacity: 0; transform: translate(-50%, -14px); } }
@keyframes temblor { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
}
