@font-face { font-family: "Space Grotesk"; font-weight: 400; font-display: swap; src: url(fonts/space-grotesk-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 500; font-display: swap; src: url(fonts/space-grotesk-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 600; font-display: swap; src: url(fonts/space-grotesk-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 700; font-display: swap; src: url(fonts/space-grotesk-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Permanent Marker"; font-weight: 400; font-display: swap; src: url(fonts/permanent-marker-latin-400-normal.woff2) format("woff2"); }
/*
  VOZ: PIQUE en modo familia: gracioso, rápido, sin letra pequeña.
  IDEA: una app de bolsillo. Pieza propia: «la báscula de la familia», pantalla digital con dígitos lima.
  PICTURE: ilustración + objetos 3D + garabatos de la marca; gráficas hechas con los emojis de cada persona.
  COLOUR and TYPE: blanco, violeta #6A3BFF, lima #C6FF00, menta, tinta #17142A. Space Grotesk (cifras tabulares); rotulador solo en pegatinas.
  LAYOUT: una columna de app (máx. 480px), baldosas 2×2, barra inferior con ⚡ central.
*/
:root {
  --v: #6A3BFF; --v2: #5126E8; --v3: #3F1DB8; --lima: #C6FF00; --lima2: #A9DB00; --menta: #A7F3E1; --ink: #17142A; --gris: #F3F2F7;
  --muted: #6E6B7E; --line: #ECEAF2;
  --t-v: #F2EEFF; --t-m: #E6FAF3; --t-l: #F5FBD8; --t-p: #FFF0E7; --t-g: #F6F5F9;
  --font: "Space Grotesk", system-ui, sans-serif;
  --marker: "Permanent Marker", "Marker Felt", "Comic Sans MS", sans-serif;
  --r: 22px;
}
* { box-sizing: border-box; min-width: 0; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.5 var(--font); color: var(--ink); background: #EFEDF6; -webkit-font-smoothing: antialiased; overflow-x: clip; font-feature-settings: "tnum" 1; }
body.bloqueado { overflow: hidden; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: var(--v); font-weight: 600; }
:focus-visible { outline: 3px solid var(--v); outline-offset: 3px; border-radius: 10px; }
.ico { width: 13px; height: 19px; flex: none; }

/* ---------- Escala tipográfica ---------- */
.h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.035em; line-height: 1.15; }
.h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }
.sub { color: var(--muted); font-size: 15px; line-height: 1.45; }
.mini { font-size: 13px; color: var(--muted); }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 22px; border-radius: 16px; border: 0; background: var(--v); color: #fff; font-weight: 700; font-size: 16px; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; box-shadow: 0 5px 0 var(--v3); transition: transform .08s, box-shadow .08s, background .15s; }
.btn:hover { background: var(--v2); }
.btn:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 1px 0 var(--v3); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn .ico { color: var(--lima); }
.btn-lg { min-height: 58px; font-size: 18px; padding: 0 26px; }
.btn-sm { min-height: 42px; padding: 0 16px; font-size: 15px; box-shadow: 0 3px 0 var(--v3); }
.btn-out { background: #fff; color: var(--ink); box-shadow: 0 0 0 1.5px var(--line) inset, 0 4px 0 var(--line); }
.btn-out:hover { background: var(--t-g); }
.btn-out:active:not(:disabled) { box-shadow: 0 0 0 1.5px var(--line) inset; }
.btn-lima { background: var(--lima); color: var(--ink); box-shadow: 0 5px 0 var(--lima2); }
.btn-lima:hover { background: #bdf500; }
.enlace { border: 0; background: none; padding: 8px 2px; min-height: 44px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--v); }
.enlace svg { width: 18px; height: 18px; }
.icono { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--t-g); display: grid; place-items: center; }
.icono svg { width: 20px; height: 20px; }

/* ---------- Piezas ---------- */
.pill { display: inline-block; background: var(--lima); color: var(--ink); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 6px 12px; border-radius: 99px; }
.cuenta { font-size: 14px; font-weight: 700; background: var(--t-v); color: var(--v); padding: 3px 11px; border-radius: 99px; }
.av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 700; flex: none; line-height: 1; }
.av.a0 { background: var(--v); color: #fff; } .av.a1 { background: var(--lima); } .av.a2 { background: var(--menta); } .av.a3 { background: var(--ink); color: #fff; } .av.a4 { background: #FFD6C2; }
.av-e { font-size: 22px; background: #fff !important; box-shadow: 0 0 0 1.5px var(--line) inset; }
.sticker { font-family: var(--marker); font-size: 19px; line-height: 1.05; text-align: center; padding: 14px 20px; background: var(--lima); color: var(--ink); border-radius: 46% 54% 48% 52% / 55% 45% 55% 45%; box-shadow: 0 8px 18px rgba(23,20,42,.15); width: fit-content; transform: rotate(-6deg); }
.destello { position: absolute; width: 26px; height: 26px; color: var(--v); }

/* ---------- Fondo y columna de app ---------- */
.fondo { display: none; }
@media (min-width: 900px) {
  body { background: radial-gradient(circle at 15% 20%, #E4DCFF 0, transparent 35%), radial-gradient(circle at 85% 75%, #DDF6EC 0, transparent 35%), #F3F1F8; }
  .fondo { display: block; position: fixed; inset: 0; pointer-events: none; }
  .fo { position: absolute; width: 110px; filter: drop-shadow(0 18px 24px rgba(60,30,160,.18)); animation: flota 7s ease-in-out infinite; }
  .f1 { left: 12%; top: 12%; rotate: -12deg; } .f2 { left: 18%; top: 62%; animation-delay: -2s; }
  .f3 { right: 13%; top: 14%; animation-delay: -4s; } .f4 { right: 17%; top: 58%; width: 130px; animation-delay: -1s; }
  .f5 { left: 6%; top: 38%; width: 80px; animation-delay: -5s; } .f6 { right: 6%; top: 36%; width: 86px; animation-delay: -3s; }
  .app { margin-block: 28px; border-radius: 36px; box-shadow: 0 30px 80px rgba(40,20,120,.14); overflow: clip; min-height: calc(100vh - 56px); }
}
@keyframes flota { 50% { translate: 0 -12px; } }
.app { position: relative; max-width: 480px; margin-inline: auto; background: #fff; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; padding: 0 18px 28px; }

.barra { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 8px; padding: 12px 18px; background: rgba(255,255,255,.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.barra .logo { height: 26px; width: auto; margin-right: auto; }
.chip-cuenta { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; background: var(--t-v); color: var(--v); padding: 7px 11px; border-radius: 99px; white-space: nowrap; }
.chip-cuenta svg { width: 15px; height: 15px; }
.yo { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--lima); font-weight: 700; font-size: 15px; display: grid; place-items: center; line-height: 1; }

/* ---------- Inicio ---------- */
.vista { animation: entra .25s ease; }
@keyframes entra { from { opacity: 0; transform: translateY(8px); } }
.hero { padding-top: 6px; }
.hero h1 { position: relative; padding-right: 26px; margin-top: 14px; font-size: clamp(34px, 9.6vw, 44px); line-height: 1.02; letter-spacing: -0.05em; font-weight: 700; text-wrap: balance; }
.hero h1 > span { display: block; }
.hero h1 em { font-style: normal; color: var(--v); position: relative; display: inline; }

.garabato { display: block; width: min(100%, 300px); height: 12px; color: var(--lima); margin-top: 2px; }
.rayas { position: absolute; width: 28px; height: 28px; right: 0; top: -14px; color: var(--ink); }
.lead { margin-top: 12px; color: #4b4860; font-size: 16px; max-width: 32ch; }
.ctas { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.hero-arte { position: relative; margin: 8px -18px 0; }
.hero-arte img { width: 100%; height: auto; }
.st-hero { position: absolute; right: 16px; top: 4px; background: var(--v); color: #fff; }
.d1 { left: 8%; top: 6%; } .d2 { right: 30%; bottom: 8%; width: 20px; height: 20px; color: var(--lima2); }

.cierre { display: flex; align-items: center; gap: 12px; margin-top: 4px; padding: 12px 14px; border-radius: 18px; background: var(--t-p); }
.cierre svg { width: 26px; height: 26px; color: #C2551B; flex: none; }
.cierre b { display: block; font-size: 15px; }
.cierre span { font-size: 14px; color: #7a4a2e; }

.bascula { margin-top: 14px; background: linear-gradient(180deg, #F4F0FF, #E7DFFF); border-radius: 26px; padding: 14px 14px 12px; box-shadow: 0 2px 0 #fff inset, 0 12px 26px rgba(106,59,255,.14); }
.bascula-top { display: flex; justify-content: space-between; align-items: center; padding: 0 6px 10px; font-size: 13px; font-weight: 700; color: var(--v2); }
.led { width: 9px; height: 9px; border-radius: 50%; background: var(--lima); box-shadow: 0 0 0 3px rgba(198,255,0,.3); animation: led 1.6s infinite; }
@keyframes led { 50% { opacity: .35; } }
.lcd { display: block; width: 100%; border: 0; background: radial-gradient(120% 140% at 50% 0%, #241F45 0, #14112A 70%); border-radius: 16px; padding: 14px 16px 12px; text-align: center; box-shadow: 0 3px 0 rgba(0,0,0,.35) inset, 0 0 0 1px rgba(255,255,255,.06) inset; position: relative; overflow: hidden; }
.lcd::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 2px, transparent 2px 4px); pointer-events: none; }
.lcd b { display: block; color: var(--lima); font-size: 48px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; text-shadow: 0 0 18px rgba(198,255,0,.35); white-space: nowrap; }
.lcd small { display: block; color: #C3BCEB; font-size: 14px; margin-top: 4px; min-height: 1.45em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lcd.parpadea b { animation: parp .32s steps(2) 2; }
@keyframes parp { 50% { opacity: .25; } }
.lcd-quieta b { font-size: 42px; }
.puntitos { display: flex; justify-content: center; gap: 5px; margin-top: 10px; min-height: 6px; }
.puntitos i { width: 6px; height: 6px; border-radius: 99px; background: rgba(106,59,255,.25); transition: width .2s, background .2s; }
.puntitos i.on { width: 18px; background: var(--v); }

.titulo-sec .h2 { white-space: nowrap; }
.titulo-sec { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 28px 0 12px; }
.titulo-sec:first-child { margin-top: 10px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile { position: relative; text-align: left; border: 0; border-radius: var(--r); padding: 14px; min-height: 148px; display: flex; flex-direction: column; overflow: hidden; transition: transform .12s; color: var(--ink); }
.tile:active { transform: scale(.97); }
button.tile:hover img { transform: rotate(-8deg) scale(1.06); }
.tile.c0 { background: var(--t-v); } .tile.c1 { background: var(--t-m); } .tile.c2 { background: var(--t-l); } .tile.c3 { background: var(--t-p); }
.tile img { position: absolute; right: -4px; top: -2px; width: 64px; height: 64px; object-fit: contain; transition: transform .2s; filter: drop-shadow(0 6px 8px rgba(23,20,42,.12)); }
.tile h3 { font-size: 15px; font-weight: 600; padding-right: 54px; line-height: 1.2; }
.tile .t-v { margin-top: auto; font-size: 25px; font-weight: 700; letter-spacing: -0.04em; line-height: 1.05; white-space: nowrap; }
.tile .t-s { font-size: 12.5px; color: var(--muted); line-height: 1.3; margin-top: 3px; }
.tile .t-yo { align-self: flex-start; margin-top: 8px; font-size: 12px; font-weight: 700; background: #fff; padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.tile .t-yo.real { background: var(--ink); color: var(--lima); }

.cifras { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.cifras > div { border: 1.5px solid var(--line); border-radius: 18px; padding: 12px 8px 10px; text-align: center; display: grid; justify-items: center; }
.cifras img { width: 38px; height: 38px; object-fit: contain; margin-bottom: 4px; }
.cifras b { font-size: 21px; color: var(--v); letter-spacing: -0.03em; line-height: 1.1; white-space: nowrap; }
.cifras small { font-size: 12.5px; color: var(--muted); line-height: 1.2; }
.pie-txt { margin-top: 18px; text-align: center; font-size: 13px; color: var(--muted); text-wrap: balance; }

/* ---------- Familia ---------- */
.aviso { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: var(--t-v); margin-bottom: 12px; }
.aviso > svg { width: 24px; height: 24px; color: var(--v); flex: none; }
.aviso p { flex: 1; }
.aviso b { display: block; font-size: 15px; }
.aviso span { font-size: 13px; color: var(--muted); }
.lista { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.lista li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 18px; background: var(--t-g); }
.lista li.con-pos { grid-template-columns: 28px 40px minmax(0, 1fr) auto; }
.lista li.mia { background: var(--t-l); box-shadow: 0 0 0 2px var(--lima) inset; cursor: pointer; }
.lista li.top1 { background: var(--t-v); }
.lista .pos { text-align: center; font-weight: 700; font-size: 17px; }
.lista .pos img { width: 30px; height: 30px; object-fit: contain; }
.lista .quien b { display: block; font-size: 16px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lista .quien small { display: block; color: var(--muted); font-size: 13px; }
.lista .der { text-align: right; }
.lista .der b { display: block; font-size: 17px; letter-spacing: -0.02em; white-space: nowrap; }
.lista .der small { font-size: 12px; color: var(--muted); white-space: nowrap; }
.lista .der.pts b { color: var(--v); font-size: 20px; }
.vacio { text-align: center; padding: 30px 16px; color: var(--muted); display: grid; justify-items: center; gap: 12px; background: none !important; }
.vacio img { width: 84px; }
.recibo { background: var(--t-v); border-radius: 24px; padding: 16px; margin-bottom: 14px; }
.recibo-top { font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; display: flex; align-items: center; gap: 6px; margin: 0 4px 10px; color: var(--v2); }
.recibo-top .ico { width: 10px; height: 15px; }
.recibo-datos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0 0; }
.recibo-datos div { background: #fff; border-radius: 12px; padding: 8px 10px; }
.recibo-datos dt { font-size: 12px; color: var(--muted); }
.recibo-datos dd { margin: 0; font-weight: 700; font-size: 15px; white-space: nowrap; }

/* ---------- Gráficas ---------- */
.carta { border: 1.5px solid var(--line); border-radius: var(--r); padding: 16px; margin-bottom: 14px; }
.carta-cab { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.carta-cab img { width: 44px; height: 44px; object-fit: contain; flex: none; }
.carta-cab .mini { display: block; margin-top: 2px; }
.leyenda { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.leyenda span { display: inline-flex; align-items: center; gap: 6px; }
.leyenda i { width: 14px; height: 4px; border-radius: 2px; background: var(--v); }
.leyenda i.l-real { background: var(--ink); }
.leyenda i.l-prev { background: var(--lima2); }
.chip-emo { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 17px; line-height: 1; background: #fff; box-shadow: 0 0 0 1.5px var(--line) inset, 0 2px 4px rgba(23,20,42,.08); border: 0; padding: 0; cursor: pointer; }
.chip-emo.yo-chip { box-shadow: 0 0 0 2.5px var(--v) inset; }
.chip-emo.ini { font-size: 11px; font-weight: 700; }

/* calendario */
.cal { display: flex; gap: 6px; overflow-x: auto; padding: 4px 2px 6px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.cal-dia { flex: 0 0 38px; display: flex; flex-direction: column; align-items: center; scroll-snap-align: center; }
.cal-pila { flex: 1; display: flex; flex-direction: column-reverse; align-items: center; gap: 3px; padding: 4px 0; min-height: 40px; width: 100%; border-radius: 12px; background: var(--t-g); justify-content: flex-start; }
.cal-dia.prev .cal-pila { background: var(--t-l); box-shadow: 0 0 0 1.5px var(--lima2) inset; }
.cal-dia.real .cal-pila { background: var(--ink); }
.cal-pila .chip-emo { width: 30px; height: 30px; }
.cal-f { font-size: 11px; color: var(--muted); margin-top: 4px; line-height: 1.1; text-align: center; }
.cal-f b { display: block; font-size: 14px; color: var(--ink); }
.cal-dia.prev .cal-f b { color: var(--v); }

/* reloj */
.reloj { display: grid; place-items: center; }
.reloj svg { width: min(100%, 320px); height: auto; overflow: visible; }

/* escala (peso / talla) */
.escala { position: relative; }
.escala .chip-emo { position: absolute; translate: -50% 0; }
.escala .eje { position: absolute; left: 0; right: 0; height: 2px; background: var(--ink); border-radius: 2px; }
.escala .tick { position: absolute; width: 1.5px; height: 7px; background: var(--ink); translate: -50% 0; }
.escala .tick-l { position: absolute; font-size: 12px; color: var(--muted); translate: -50% 0; white-space: nowrap; }
.escala .marca { position: absolute; top: 0; width: 0; border-left: 2px dashed var(--v); translate: -1px 0; }
.escala .marca.real { border-left: 3px solid var(--ink); }
.escala .marca-l { position: absolute; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--v); color: #fff; translate: -50% 0; white-space: nowrap; }
.escala .marca-l.real { background: var(--ink); color: var(--lima); }

/* ---------- Reglas ---------- */
.barras { display: grid; gap: 14px; margin-top: 14px; background: var(--t-g); border-radius: var(--r); padding: 18px; }
.barras > div { display: grid; grid-template-columns: 56px minmax(0, 1fr) 30px; gap: 3px 12px; align-items: center; }
.barras b { font-size: 15px; }
.barras em { font-style: normal; font-weight: 700; color: var(--v); text-align: right; }
.barras small { grid-column: 2 / 4; font-size: 13px; color: var(--muted); }
.bar { display: block; height: 10px; border-radius: 99px; background: #E4E1EE; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--v); border-radius: 99px; }
.ejemplo { margin-top: 12px; border-radius: var(--r); padding: 14px 16px; background: var(--t-l); font-size: 15px; }
.ejemplo b { font-weight: 700; }
.ejemplo .num { color: var(--v); }
.sep { margin: 28px 0 12px; }
.pasos { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; counter-reset: p; }
.pasos li { display: flex; gap: 10px; align-items: flex-start; counter-increment: p; }
.pasos img { width: 46px; height: 46px; object-fit: contain; flex: none; }
.pasos p { font-size: 13px; color: var(--muted); line-height: 1.35; }
.pasos b { display: block; color: var(--ink); font-size: 15px; }
.pasos b::before { content: counter(p) ". "; color: var(--v); }
.st-reglas { margin: 26px auto 0; }

/* ---------- Barra inferior ---------- */
.tabbar { position: sticky; bottom: 0; z-index: 10; display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; padding: 6px 8px calc(8px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1.5px solid var(--line); }
.tabbar button { border: 0; background: none; display: grid; justify-items: center; gap: 3px; padding: 6px 0 4px; min-height: 54px; font-size: 12px; font-weight: 600; color: var(--muted); position: relative; }
.tabbar button svg { width: 24px; height: 24px; }
.tabbar button.on { color: var(--v); }
.tabbar button.on::after { content: ""; position: absolute; top: -7px; width: 22px; height: 3px; border-radius: 0 0 3px 3px; background: var(--v); }
.tabbar .tab-rayo { width: 64px; height: 64px; min-height: 0; justify-self: center; margin-top: -28px; border-radius: 50%; background: var(--lima); color: var(--ink); display: grid; place-items: center; box-shadow: 0 0 0 6px #fff, 0 10px 22px rgba(110,150,0,.35); transition: transform .12s; padding: 0; }
.tabbar .tab-rayo svg { width: 22px; height: 32px; }
.tabbar .tab-rayo:active { transform: scale(.92); }
.tabbar .tab-rayo:disabled { background: #ECEAF2; color: #B9B6C8; box-shadow: 0 0 0 6px #fff; }

/* ---------- Hoja inferior ---------- */
.modal { position: fixed; inset: 0; background: rgba(23,20,42,.45); display: flex; align-items: flex-end; justify-content: center; z-index: 50; }
.panel { background: #fff; width: 100%; max-width: 480px; max-height: 94vh; overflow: auto; border-radius: 30px 30px 0 0; padding: 14px 20px calc(18px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; animation: sube .3s cubic-bezier(.2,.9,.3,1.1); }
@media (min-width: 900px) { .modal { align-items: center; } .panel { border-radius: 30px; } }
@keyframes sube { from { transform: translateY(40px); opacity: 0; } }
.panel-top { display: flex; align-items: center; gap: 12px; }
.segs { flex: 1; display: flex; gap: 4px; }
.segs i { flex: 1; height: 6px; border-radius: 99px; background: #ECEAF2; transition: background .2s; }
.segs i.ok { background: var(--v); } .segs i.ahora { background: var(--lima); }
.cerrar { background: var(--t-g); border: 0; font-size: 26px; line-height: 1; width: 42px; height: 42px; border-radius: 50%; flex: none; }
.paso { padding-top: 14px; }
.paso-cab { display: flex; gap: 12px; align-items: center; }
.paso-cab img { width: 72px; height: 72px; object-fit: contain; flex: none; filter: drop-shadow(0 8px 10px rgba(23,20,42,.12)); }
.paso-n { font-size: 13px; font-weight: 700; color: var(--v); }
.paso h2 { font-size: 28px; letter-spacing: -0.04em; line-height: 1.05; }
.paso-s { color: var(--muted); font-size: 15px; margin-top: 4px; line-height: 1.4; }
.paso-ctrl { margin-top: 18px; }
.caja { background: linear-gradient(180deg, #F4F0FF, #E7DFFF); border-radius: 24px; padding: 14px; }
.caja .lcd { cursor: default; }
.caja .lcd b { font-size: clamp(34px, 10vw, 46px); }
.frase { text-align: center; font-family: var(--marker); font-size: 16px; color: var(--v2); margin-top: 10px; min-height: 1.3em; }
.fila { display: flex; gap: 8px; justify-content: center; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.mas { min-height: 44px; min-width: 56px; background: #fff; border: 0; box-shadow: 0 3px 0 #D3C9F7; border-radius: 12px; padding: 0 12px; font-weight: 700; color: var(--v2); }
.mas:active { transform: translateY(2px); box-shadow: 0 1px 0 #D3C9F7; }
.input { width: 100%; font: inherit; font-size: 19px; padding: 14px 16px; border: 1.5px solid #DAD7E4; border-radius: 16px; background: #fff; color: var(--ink); outline: none; min-height: 54px; }
.input:focus { border-color: var(--v); box-shadow: 0 0 0 4px var(--t-v); }
.campo { position: relative; }
.campo .ver { position: absolute; right: 6px; top: 50%; translate: 0 -50%; width: 44px; height: 44px; border: 0; background: none; color: var(--muted); display: grid; place-items: center; }
.campo .ver svg { width: 22px; height: 22px; }
.campo .input { padding-right: 52px; }
.etq { display: block; font-size: 14px; font-weight: 600; margin: 14px 0 6px; }
.etq:first-child { margin-top: 0; }
.ayuda { font-size: 13px; color: var(--muted); margin-top: 8px; }
.fuerza { display: flex; gap: 4px; margin-top: 8px; }
.fuerza i { flex: 1; height: 4px; border-radius: 99px; background: #ECEAF2; }
.fuerza.f1 i:nth-child(-n+1), .fuerza.f2 i:nth-child(-n+2), .fuerza.f3 i:nth-child(-n+3) { background: var(--v); }
.slider { -webkit-appearance: none; appearance: none; width: 100%; height: 10px; border-radius: 99px; outline: none; margin: 18px 0 4px; background: linear-gradient(var(--v), var(--v)) 0 / var(--p, 50%) 100% no-repeat, #fff; }
.slider::-webkit-slider-thumb { -webkit-appearance: none; width: 36px; height: 36px; border-radius: 50%; background: var(--lima); border: 3px solid var(--ink); cursor: grab; }
.slider::-moz-range-thumb { width: 32px; height: 32px; border-radius: 50%; background: var(--lima); border: 3px solid var(--ink); cursor: grab; }
.slider:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 6px rgba(106,59,255,.3); }
.dias { display: flex; gap: 6px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 12px 2px 4px; scrollbar-width: none; }
.dias::-webkit-scrollbar { display: none; }
.dia { flex: 0 0 54px; scroll-snap-align: center; border: 0; border-radius: 14px; background: #fff; box-shadow: 0 3px 0 #D3C9F7; padding: 8px 0 7px; display: grid; justify-items: center; line-height: 1.1; color: var(--ink); position: relative; }
.dia small { font-size: 11px; color: var(--muted); text-transform: capitalize; }
.dia b { font-size: 20px; letter-spacing: -0.03em; }
.dia span { font-size: 11px; color: var(--muted); }
.dia.prev::after { content: ""; position: absolute; top: 5px; right: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--lima2); }
.dia.sel { background: var(--v); color: #fff; box-shadow: 0 3px 0 var(--v3); }
.dia.sel small, .dia.sel span { color: #DCD3FF; }
.emojis { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.emo { aspect-ratio: 1; border: 0; border-radius: 14px; background: var(--t-g); font-size: 24px; display: grid; place-items: center; transition: transform .1s; min-height: 42px; padding: 0; line-height: 1; }
.emo:hover { transform: scale(1.1); }
.emo.sel { background: var(--lima); box-shadow: 0 0 0 2px var(--ink) inset; }
.yo-fila { display: flex; gap: 10px; align-items: center; }
.yo-grande { width: 58px; height: 58px; flex: none; border-radius: 50%; background: var(--lima); display: grid; place-items: center; font-size: 32px; line-height: 1; }
.resumen { border-radius: 22px; overflow: hidden; background: var(--t-g); }
.resumen-cab { background: var(--v); color: #fff; padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 17px; }
.resumen-cab .ico { color: var(--lima); }
.resumen dl { display: grid; grid-template-columns: 1fr 1fr; margin: 0; gap: 1.5px; background: var(--line); }
.resumen dl div { padding: 12px 16px; background: var(--t-g); }
.resumen dt { font-size: 12px; color: var(--muted); }
.resumen dd { margin: 0; font-weight: 700; font-size: 18px; }
.nota { margin-top: 12px; text-align: center; font-size: 13px; color: var(--muted); }
.error { color: #D0103A; font-weight: 600; min-height: 1.2em; margin: 10px 0 0; font-size: 14px; }
.error button { border: 0; background: none; color: var(--v); font-weight: 700; padding: 0; text-decoration: underline; }
.nav-w { display: flex; gap: 10px; margin-top: 8px; }
.nav-w #btnSig { flex: 1; }
.exito { text-align: center; display: grid; justify-items: center; }
.exito img { width: 140px; margin-top: 10px; }
.exito .sticker { margin: 6px 0 12px; }
.col-btns { display: grid; gap: 12px; width: 100%; margin-top: 20px; }

.bloqueado .toast { bottom: auto; top: 16px; }
.toast { position: fixed; left: 50%; bottom: 104px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 600; z-index: 80; max-width: min(90vw, 420px); text-align: center; font-size: 15px; }
#confeti { position: fixed; inset: 0; pointer-events: none; z-index: 90; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* =========================================================
   Versión final: bienvenida, tu apuesta, compartir, carga
   ========================================================= */
.ico-s { width: 18px; height: 18px; flex: none; }
.yo svg { width: 22px; height: 22px; }
.yo:not(.con) { background: var(--t-g); color: var(--ink); }
.firma { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.firma .ico { width: 9px; height: 13px; color: var(--v); }
.aviso-red { background: var(--t-p); margin-top: 12px; }
.aviso-red > svg { color: #C2551B; }

/* Tu apuesta */
.mi-carta { margin-top: 16px; border-radius: var(--r); background: var(--ink); color: #fff; padding: 14px; box-shadow: 0 12px 26px rgba(23,20,42,.18); }
.mi-cab { display: flex; align-items: center; gap: 12px; }
.mi-emo { width: 46px; height: 46px; border-radius: 50%; background: var(--lima); display: grid; place-items: center; font-size: 26px; line-height: 1; color: var(--ink); font-weight: 700; flex: none; }
.mi-cab p { flex: 1; line-height: 1.2; }
.mi-cab small { display: block; font-size: 13px; color: #C3BCEB; }
.mi-cab b { font-size: 18px; letter-spacing: -0.02em; }
.mi-cab .btn-out { background: rgba(255,255,255,.1); color: #fff; box-shadow: 0 0 0 1.5px rgba(255,255,255,.2) inset; gap: 6px; }
.mi-datos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 12px 0 0; }
.mi-datos div { background: rgba(255,255,255,.07); border-radius: 12px; padding: 8px 6px; text-align: center; }
.mi-datos dt { font-size: 11px; color: #C3BCEB; }
.mi-datos dd { margin: 0; font-weight: 700; font-size: 14px; color: var(--lima); white-space: nowrap; letter-spacing: -0.02em; }

/* Bienvenida */
.bienvenida { text-align: center; display: grid; justify-items: center; }
.bv-img { width: 100%; height: auto; max-height: 24vh; object-fit: contain; margin-top: -8px; }
.bienvenida h2 { font-size: 28px; letter-spacing: -0.045em; line-height: 1.05; margin-top: 12px; text-wrap: balance; }
.bienvenida .paso-s { max-width: 34ch; margin-top: 8px; }
.bv-pasos { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; width: 100%; text-align: left; counter-reset: bv; }
.bv-pasos li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: var(--t-g); counter-increment: bv; }
.bv-pasos img { width: 40px; height: 40px; object-fit: contain; flex: none; }
.bv-pasos p { font-size: 13.5px; color: var(--muted); line-height: 1.3; }
.bv-pasos b { display: block; color: var(--ink); font-size: 15px; }
.bv-pasos b::before { content: counter(bv) ". "; color: var(--v); }
.bienvenida .col-btns { margin-top: 18px; justify-items: stretch; }
.bienvenida .enlace { justify-self: center; }

/* Compartir */
.btn-wa { background: #1FAF54; box-shadow: 0 5px 0 #138A40; }
.btn-wa:hover { background: #1a9e4b; }
.btn-wa:active:not(:disabled) { box-shadow: 0 1px 0 #138A40; }
.enlace-caja { display: flex; align-items: center; gap: 8px; margin-top: 16px; padding: 6px 6px 6px 14px; border-radius: 16px; background: var(--t-g); }
.enlace-caja span { flex: 1; font-size: 14px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; user-select: all; }
.enlace-caja .btn { gap: 6px; }
.qr-caja { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 14px; border-radius: 18px; border: 1.5px solid var(--line); }
.qr { width: 132px; height: 132px; flex: none; border-radius: 10px; }
.qr-caja p { font-size: 14px; color: var(--muted); line-height: 1.4; }
.qr-caja b { display: block; color: var(--ink); font-size: 15px; }

/* Carga */
.cargando .tile, .cargando .lcd b, .cargando .cifras b { color: transparent !important; text-shadow: none; }
.cargando .tile, .cargando .cifras > div { background-image: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.7) 50%, transparent 70%); background-size: 250% 100%; animation: brillo 1.2s linear infinite; }
@keyframes brillo { from { background-position: 120% 0; } to { background-position: -120% 0; } }
