/* Lazo — estilos. Móvil primero, tema claro/oscuro, sin dependencias. */

@font-face { font-family: "Lora"; src: url(../fonts/lora.woff2) format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url(../fonts/lora-italic.woff2) format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; }

:root {
  --bg: #FAF7F2;
  --surface: #FFFFFF;
  --surface-2: #F3EEE6;
  --ink: #2A2623;
  --ink-2: #645B53;
  --ink-3: #958B81;
  --line: #E8E0D4;
  --accent: #8A3B4A;
  --accent-2: #6F2C39;
  --accent-ink: #FFFFFF;
  --accent-soft: #F6EAEC;
  --gold: #9C7428;
  --gold-soft: #F6EEDC;
  --sage: #4D7151;
  --sage-soft: #E5EEE4;
  --warn-soft: #FBEFE2;
  --sombra: 0 1px 2px rgba(42, 38, 35, .05), 0 6px 18px rgba(42, 38, 35, .05);
  --r: 16px;
  --r-sm: 12px;
  --serif: "Lora", ui-serif, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs: 16px;
  --nav-h: 64px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #181514; --surface: #221E1C; --surface-2: #2B2624; --ink: #F2EDE7; --ink-2: #BDB3A9; --ink-3: #8C8279;
    --line: #37302D; --accent: #D9899A; --accent-2: #E8A3B1; --accent-ink: #1E1212; --accent-soft: #3A2428;
    --gold: #D8B36E; --gold-soft: #352C1E; --sage: #93B896; --sage-soft: #22301F; --warn-soft: #36291C;
    --sombra: 0 1px 2px rgba(0, 0, 0, .3); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #181514; --surface: #221E1C; --surface-2: #2B2624; --ink: #F2EDE7; --ink-2: #BDB3A9; --ink-3: #8C8279;
  --line: #37302D; --accent: #D9899A; --accent-2: #E8A3B1; --accent-ink: #1E1212; --accent-soft: #3A2428;
  --gold: #D8B36E; --gold-soft: #352C1E; --sage: #93B896; --sage-soft: #22301F; --warn-soft: #36291C;
  --sombra: 0 1px 2px rgba(0, 0, 0, .3); color-scheme: dark;
}
:root[data-size="grande"] { --fs: 18px; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: var(--fs);
  line-height: 1.5; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent); text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
input[type="range"], input[type="checkbox"] { accent-color: var(--accent); }

h1, h2, h3 { margin: 0; line-height: 1.25; }
h1 { font-family: var(--serif); font-weight: 600; font-size: 1.75em; letter-spacing: -.01em; }
h2 { font-family: var(--serif); font-weight: 600; font-size: 1.35em; }
h3 { font-size: 1.05em; font-weight: 650; }
p { margin: 0 0 .8em; }
p:last-child { margin-bottom: 0; }
.serif { font-family: var(--serif); }
.sutil { color: var(--ink-2); }
.mini { font-size: .84em; }
.centro { text-align: center; }
.ojo { font-size: .72em; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); }
.ojo.oro { color: var(--gold); }
.espacio { height: 16px; }
.fila { display: flex; align-items: center; gap: 12px; }
.fila.entre { justify-content: space-between; }
.pila > * + * { margin-top: 12px; }
.pila-g > * + * { margin-top: 20px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.ico { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ico.s { width: 18px; height: 18px; }
.ico.l { width: 28px; height: 28px; }

/* ---------- estructura ---------- */
.app { max-width: 560px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 24px); }
.app.sin-nav { padding-bottom: calc(env(safe-area-inset-bottom) + 24px); }
.vista { padding: 0 18px; outline: none; }
.vista > div { animation: entrar .22s ease-out; }
.vista.tope { padding-top: calc(env(safe-area-inset-top) + 22px); }
@keyframes entrar { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.barra {
  position: sticky; top: 0; z-index: 20; background: var(--bg);
  padding: calc(env(safe-area-inset-top) + 8px) 8px 8px; display: flex; align-items: center; gap: 4px; min-height: 52px;
}
.barra .titulo { flex: 1; font-weight: 650; font-size: 1em; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 4px; }
.barra .hueco { width: 44px; flex: none; }
.icono-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.icono-btn:active { background: var(--surface-2); }
.icono-btn.on { color: var(--accent); }

.cabeza { padding: calc(env(safe-area-inset-top) + 22px) 0 6px; }
.cabeza p { margin: 6px 0 0; color: var(--ink-2); }

.nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--surface);
  border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
}
.nav .tabs-nav { max-width: 560px; margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); height: var(--nav-h); }
.nav a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--ink-3); font-size: .7em; font-weight: 600; letter-spacing: .01em;
}
.nav a .ico { width: 24px; height: 24px; }
.nav a[aria-current="page"] { color: var(--accent); }
.nav a[aria-current="page"] .ico { stroke-width: 2.1; }

/* ---------- tarjetas y listas ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--sombra); }
.card.plana { box-shadow: none; }
.card.suave { background: var(--surface-2); border-color: transparent; box-shadow: none; }
.card.oro { background: var(--gold-soft); border-color: transparent; box-shadow: none; }
.card.vino { background: var(--accent-soft); border-color: transparent; box-shadow: none; }
.card.verde { background: var(--sage-soft); border-color: transparent; box-shadow: none; }
.card h3 + p, .card h2 + p { margin-top: 6px; }
a.card, button.card { display: block; width: 100%; text-align: left; color: inherit; }
a.card:active, button.card:active { transform: scale(.995); }

.lista { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--sombra); }
.lista > a, .lista > button, .lista > .item {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 15px 16px; background: none; border: 0;
  border-top: 1px solid var(--line); color: inherit; text-align: left;
}
.lista > :first-child { border-top: 0; }
.lista > a:active, .lista > button:active { background: var(--surface-2); }
.lista .txt { flex: 1; min-width: 0; }
.lista .txt b { display: block; font-weight: 600; }
.lista .txt span { display: block; color: var(--ink-2); font-size: .88em; margin-top: 1px; }
.lista .der { color: var(--ink-3); display: flex; align-items: center; gap: 6px; font-size: .85em; }

.burbuja {
  width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-2); color: var(--ink-2); flex: none;
}
.burbuja.vino { background: var(--accent-soft); color: var(--accent); }
.burbuja.oro { background: var(--gold-soft); color: var(--gold); }
.burbuja.verde { background: var(--sage-soft); color: var(--sage); }

.seccion { margin-top: 28px; }
.seccion > .ojo { display: block; margin: 0 2px 10px; }
.seccion-t { display: flex; align-items: baseline; justify-content: space-between; margin: 0 2px 10px; }
.seccion-t h2 { font-size: 1.2em; }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 12px 20px;
  border-radius: 14px; border: 1px solid transparent; background: var(--accent); color: var(--accent-ink);
  font-weight: 650; font-size: 1em; text-align: center; line-height: 1.2; transition: transform .08s ease, opacity .15s;
}
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn.bloque { display: flex; width: 100%; }
.btn.sec { background: var(--surface-2); color: var(--ink); }
.btn.borde { background: transparent; border-color: var(--line); color: var(--ink); }
.btn.texto { background: transparent; color: var(--accent); min-height: 44px; padding: 8px 12px; }
.btn.oro { background: var(--gold); color: #fff; }
.btn.chico { min-height: 40px; padding: 8px 14px; font-size: .9em; border-radius: 12px; }
.botones { display: flex; gap: 10px; }
.botones > * { flex: 1; }
.pie-fijo {
  position: sticky; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 10px); padding-top: 12px;
  background: linear-gradient(to bottom, transparent, var(--bg) 30%);
}
.sin-nav .pie-fijo { bottom: calc(env(safe-area-inset-bottom) + 12px); }

/* ---------- chips, segmentado, campos ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  font-size: .9em; font-weight: 550; color: var(--ink); line-height: 1.2;
}
.chip.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.chips.desliza { flex-wrap: nowrap; overflow-x: auto; margin: 0 -18px; padding: 2px 18px 6px; scrollbar-width: none; }
.chips.desliza::-webkit-scrollbar { display: none; }
.chips.desliza .chip { flex: none; }

.segmentado { display: flex; background: var(--surface-2); border-radius: 12px; padding: 4px; gap: 4px; }
.segmentado button { flex: 1; border: 0; background: transparent; padding: 9px 8px; border-radius: 9px; font-weight: 600; font-size: .9em; color: var(--ink-2); }
.segmentado button.on { background: var(--surface); color: var(--ink); box-shadow: var(--sombra); }

.campo { display: block; }
.campo > span { display: block; font-weight: 600; font-size: .92em; margin-bottom: 6px; }
.campo > small { display: block; color: var(--ink-3); font-size: .82em; margin-top: 6px; }
.entrada {
  width: 100%; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 13px 14px;
  font-size: 1em; outline: none; -webkit-appearance: none; appearance: none; min-height: 50px;
}
.entrada:focus { border-color: var(--accent); }
textarea.entrada { min-height: 96px; resize: vertical; line-height: 1.45; }
input[type="time"].entrada, input[type="date"].entrada { min-height: 50px; }

.opcion-grande {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 18px; border-radius: var(--r);
  border: 1.5px solid var(--line); background: var(--surface); text-align: left; font-weight: 600; font-size: 1.05em;
}
.opcion-grande.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }

.interruptor { position: relative; width: 50px; height: 30px; flex: none; }
.interruptor input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.interruptor span { position: absolute; inset: 0; background: var(--line); border-radius: 999px; transition: background .2s; }
.interruptor span::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s;
}
.interruptor input:checked + span { background: var(--sage); }
.interruptor input:checked + span::after { transform: translateX(20px); }

details.acordeon { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
details.acordeon + details.acordeon { margin-top: 10px; }
details.acordeon > summary {
  list-style: none; padding: 15px 16px; display: flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 600;
}
details.acordeon > summary::-webkit-details-marker { display: none; }
details.acordeon > summary .resumen { margin-left: auto; color: var(--ink-3); font-weight: 500; font-size: .88em; text-align: right; }
details.acordeon > summary::after {
  content: ""; width: 8px; height: 8px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3);
  transform: rotate(45deg); margin: -4px 4px 0 4px; transition: transform .2s; flex: none;
}
details.acordeon[open] > summary::after { transform: rotate(225deg); margin-top: 4px; }
details.acordeon > .cuerpo { padding: 0 16px 16px; }

/* ---------- progreso ---------- */
.prog { height: 6px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.prog > i { display: block; height: 100%; background: var(--accent); border-radius: 999px; transition: width .4s ease; }
.prog.verde > i { background: var(--sage); }
.segmentos { display: flex; gap: 4px; }
.segmentos i { flex: 1; height: 4px; border-radius: 4px; background: var(--line); }
.segmentos i.on { background: var(--accent); }
.anillo { width: 56px; height: 56px; flex: none; }
.anillo circle { fill: none; stroke-width: 5; }
.anillo .fondo { stroke: var(--surface-2); }
.anillo .valor { stroke: var(--accent); stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dashoffset .5s ease; }
.anillo text { font-size: 13px; font-weight: 700; fill: var(--ink); text-anchor: middle; dominant-baseline: central; font-family: var(--sans); }

/* ---------- Hoy ---------- */
.racha { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 9px; border-radius: 999px; background: var(--gold-soft); color: var(--gold); font-weight: 700; font-size: .85em; }
.racha .ico { width: 18px; height: 18px; }
.sesion-cab { display: flex; align-items: center; gap: 14px; }
.sesion-cab h2 { font-size: 1.2em; }
.pasos { margin-top: 14px; border-top: 1px solid var(--line); }
.paso { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); color: inherit; }
.paso:last-child { border-bottom: 0; padding-bottom: 0; }
.paso .txt { flex: 1; min-width: 0; }
.paso .txt b { display: block; font-weight: 650; }
.paso .txt span { display: block; color: var(--ink-2); font-size: .88em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.paso .min { color: var(--ink-3); font-size: .8em; font-weight: 600; }
.paso .marca { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line); display: inline-flex; align-items: center; justify-content: center; flex: none; color: transparent; }
.paso.hecho .marca { background: var(--sage); border-color: var(--sage); color: #fff; }
.paso.hecho .txt b { color: var(--ink-2); }
.paso .marca .ico { width: 15px; height: 15px; stroke-width: 2.6; }
.completo { text-align: center; padding: 22px 18px; }
.completo img { width: 72px; height: 72px; margin: 0 auto 12px; border-radius: 18px; animation: latir 1.6s ease-in-out 2; }
@keyframes latir { 50% { transform: scale(1.06); } }

/* ---------- lectura ---------- */
.verso { margin: 0; font-family: var(--serif); font-size: 1.25em; line-height: 1.55; color: var(--ink); }
.verso::before { content: "\201C"; }
.verso::after { content: "\201D"; }
.cita { display: block; margin-top: 12px; font-family: var(--sans); font-size: .82em; font-weight: 650; letter-spacing: .04em; color: var(--gold); }
.bloque-verso { background: var(--gold-soft); border-radius: var(--r); padding: 22px 20px; }
.bloque-verso .verso { font-size: 1.12em; }
.texto-largo { font-size: 1.04em; line-height: 1.62; }
.oracion-txt { font-family: var(--serif); font-size: 1.12em; line-height: 1.65; font-style: italic; }

.contraste { display: grid; gap: 8px; }
.contraste .no, .contraste .si { border-radius: 12px; padding: 12px 14px; font-size: .97em; }
.contraste .no { background: var(--surface-2); color: var(--ink-2); }
.contraste .si { background: var(--sage-soft); color: var(--ink); }
.contraste small { display: block; font-size: .72em; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }
.contraste .no small { color: var(--ink-3); }
.contraste .si small { color: var(--sage); }
.contraste .no q { text-decoration: line-through; text-decoration-color: rgba(138, 59, 74, .35); }
q { quotes: "\00AB" "\00BB"; }

ul.puntos { margin: 0; padding: 0; list-style: none; }
ul.puntos li { position: relative; padding-left: 20px; margin: 8px 0; }
ul.puntos li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
ul.puntos.verde li::before { background: var(--sage); }
ul.puntos.gris li::before { background: var(--ink-3); }

/* ---------- reproductor de lecciones ---------- */
.lector { display: flex; flex-direction: column; min-height: calc(100dvh - 80px); padding-top: 4px; }
.lector .tarjeta { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 18px 2px; }
.lector .tarjeta h2 { margin-bottom: 14px; }
.lector .idea { font-family: var(--serif); font-size: 1.4em; line-height: 1.4; font-weight: 500; }
.lector .acciones { display: flex; gap: 10px; padding-bottom: calc(env(safe-area-inset-bottom) + 12px); }
.lector .acciones .btn.sec { flex: 0 0 auto; padding: 12px 16px; }
.lector .acciones .btn:not(.sec) { flex: 1; }
.tarjeta .etiqueta { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 12px; }

/* ---------- escenarios ---------- */
.opciones { display: grid; gap: 10px; }
.opcion {
  width: 100%; text-align: left; padding: 15px 16px; border-radius: 14px; border: 1.5px solid var(--line);
  background: var(--surface); font-size: .98em; line-height: 1.45; color: var(--ink);
}
.opcion.elegida.bien { border-color: var(--sage); background: var(--sage-soft); }
.opcion.elegida.mal { border-color: var(--accent); background: var(--accent-soft); }
.opcion.mejor:not(.elegida) { border-color: var(--sage); border-style: dashed; }
.opcion[disabled] { cursor: default; }
.opcion .porque { display: block; margin-top: 8px; font-size: .9em; color: var(--ink-2); }
.resultado { border-radius: var(--r); padding: 16px 18px; }
.resultado.bien { background: var(--sage-soft); }
.resultado.mal { background: var(--warn-soft); }
.resultado h3 { margin-bottom: 4px; }

/* ---------- cartas de juego ---------- */
.carta {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--sombra);
  min-height: 300px; padding: 34px 26px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
}
.carta::before, .carta::after { content: ""; position: absolute; width: 26px; height: 26px; border-color: var(--gold); opacity: .55; }
.carta::before { top: 14px; left: 14px; border-top: 1.5px solid; border-left: 1.5px solid; border-top-left-radius: 8px; }
.carta::after { bottom: 14px; right: 14px; border-bottom: 1.5px solid; border-right: 1.5px solid; border-bottom-right-radius: 8px; }
.carta .frase { font-family: var(--serif); font-size: 1.38em; line-height: 1.42; }
.carta .ojo { margin-bottom: 14px; }
.carta .turno { margin-top: 18px; color: var(--ink-3); font-size: .85em; font-weight: 600; }
.carta.girar { animation: girar .35s ease-out; }
@keyframes girar { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.marcador { display: flex; justify-content: center; gap: 28px; text-align: center; }
.marcador b { display: block; font-size: 1.8em; font-family: var(--serif); }
.marcador span { color: var(--ink-2); font-size: .85em; }

.barras { display: grid; gap: 12px; }
.barras .b { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; }
.barras .b .prog { grid-column: 1 / -1; height: 10px; }
.barras .b.top b { color: var(--accent); }

/* ---------- respiración / SOS ---------- */
.respira { display: flex; flex-direction: column; align-items: center; padding: 18px 0 6px; }
.respira .circulo {
  width: 190px; height: 190px; border-radius: 50%; background: var(--accent-soft); display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-weight: 700; font-size: 1.45em; transform: scale(.62); transition: transform 4s ease-in-out;
}
.respira .circulo.dentro { transform: scale(1); transition-duration: 4s; }
.respira .circulo.fuera { transform: scale(.62); transition-duration: 6s; }
.reloj { font-family: var(--serif); font-size: 3em; font-weight: 600; text-align: center; letter-spacing: .02em; font-variant-numeric: tabular-nums; }

.dias7 { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.dias7 .chip { padding: 0; height: 40px; display: flex; align-items: center; justify-content: center; }

/* ---------- logros y estadísticas ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 10px; text-align: center; }
.stat b { display: block; font-family: var(--serif); font-size: 1.6em; line-height: 1.1; }
.stat span { display: block; color: var(--ink-2); font-size: .76em; margin-top: 4px; line-height: 1.25; }
.logros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.logro { text-align: center; padding: 14px 6px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.logro .medalla { width: 46px; height: 46px; border-radius: 50%; margin: 0 auto 8px; display: flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--ink-3); }
.logro.si .medalla { background: var(--gold-soft); color: var(--gold); }
.logro b { display: block; font-size: .8em; line-height: 1.25; }
.logro span { display: block; font-size: .7em; color: var(--ink-3); margin-top: 3px; line-height: 1.25; }
.logro:not(.si) b { color: var(--ink-3); }

.par { display: flex; align-items: center; gap: 10px; }
.par .inic { width: 46px; height: 46px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-family: var(--serif); font-weight: 600; font-size: 1.2em; background: var(--accent-soft); color: var(--accent); }
.par .inic + .inic { margin-left: -18px; background: var(--gold-soft); color: var(--gold); border: 2px solid var(--bg); }

.spark { width: 100%; height: 64px; }
.spark path.linea { fill: none; stroke: var(--accent); stroke-width: 2; }
.spark circle { fill: var(--accent); }

/* ---------- hojas (modales) y avisos ---------- */
.velo { position: fixed; inset: 0; background: rgba(20, 16, 14, .42); z-index: 50; opacity: 0; transition: opacity .2s; }
.velo.abierto { opacity: 1; }
.hoja {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 51; max-width: 560px; margin: 0 auto; max-height: 88vh; overflow: auto;
  background: var(--bg); border-radius: 22px 22px 0 0; padding: 10px 20px calc(env(safe-area-inset-bottom) + 22px);
  transform: translateY(100%); transition: transform .26s cubic-bezier(.2, .8, .2, 1);
}
.hoja.abierta { transform: none; }
.hoja .asa { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 14px; }
.hoja h2 { margin-bottom: 10px; }

.toast {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 16px); z-index: 60;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: all .25s;
  background: var(--ink); color: var(--bg); padding: 11px 18px; border-radius: 999px; font-weight: 600; font-size: .9em;
  max-width: calc(100% - 32px); text-align: center;
}
.toast.ver { opacity: 1; transform: translate(-50%, 0); }
.sin-nav-body .toast { bottom: calc(env(safe-area-inset-bottom) + 20px); }

.aviso { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); font-size: .92em; }
.aviso .ico { margin-top: 1px; color: var(--gold); }
.aviso .cerrar { margin: -8px -8px 0 auto; }

/* ---------- bienvenida ---------- */
.bienvenida { min-height: 100dvh; display: flex; flex-direction: column; padding: calc(env(safe-area-inset-top) + 28px) 4px calc(env(safe-area-inset-bottom) + 20px); }
.bienvenida .cuerpo { flex: 1; }
.bienvenida .logo { width: 84px; height: 84px; border-radius: 22px; box-shadow: var(--sombra); }
.bienvenida h1 { font-size: 2.1em; margin-top: 22px; }
.bienvenida .lead { font-size: 1.12em; color: var(--ink-2); margin-top: 10px; }
.rasgos { display: grid; gap: 14px; margin-top: 26px; }
.rasgos .fila { align-items: flex-start; }
.rasgos b { display: block; }
.rasgos span { color: var(--ink-2); font-size: .93em; }

@media (min-width: 600px) {
  .vista { padding: 0 24px; }
  .chips.desliza { margin: 0 -24px; padding: 2px 24px 6px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
