/* Zeta: tema claro y oscuro, móvil primero. Tokens y tipografía heredados de la tabla de Fit. */
:root {
  --bg: #f3f5f2; --card: #ffffff; --ink: #18221d; --muted: #5d6b63; --line: #dde3de;
  --accent: #0d7a5f; --accent-ink: #ffffff; --hoy: #f2c230; --warn: #b4471f; --soft: #e6f2ed;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --nav-h: 64px;
  --nav-total: calc(var(--nav-h) + env(safe-area-inset-bottom));
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111714; --card: #1a221e; --ink: #e8efea; --muted: #9aaba2; --line: #2b3631;
    --accent: #35b48d; --accent-ink: #0b1410; --warn: #ff8a5c; --soft: #1f2f28;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; } /* los componentes con display propio no deben ignorar [hidden] */
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 500 17px/1.45 var(--body);
  overflow-wrap: anywhere;
}
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; letter-spacing: .01em; }
h1 { font-size: clamp(2.1rem, 8vw, 2.8rem); line-height: 1; font-weight: 800; text-transform: uppercase; }
h2 { font-size: 1.6rem; font-weight: 700; text-transform: uppercase; line-height: 1.1; }
h3 { font-size: 1.45rem; font-weight: 700; line-height: 1.1; }
p { margin: 0; }
a { color: var(--accent); }
.marca { font: 700 .85rem var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.nota { color: var(--muted); font-size: .92rem; }
.centrado { text-align: center; }
.solo-lectores { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.arranque { padding: 40px 16px; text-align: center; color: var(--muted); }

:focus-visible { outline: 3px solid var(--hoy); outline-offset: 2px; }

/* ---------- Estructura ---------- */
.columna { min-width: 0; }
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: calc(env(safe-area-inset-top) + 6px) 16px 0; max-width: 760px; margin: 0 auto;
}
.topbar-marca { font: 800 1.4rem var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.vista {
  max-width: 760px; margin: 0 auto; padding: 8px 16px calc(var(--nav-total) + 96px);
  display: flex; flex-direction: column; gap: 18px;
}
.cabecera { display: flex; flex-direction: column; gap: 4px; padding-top: 6px; }
.pila { display: flex; flex-direction: column; gap: 14px; }
.pila-grande { display: flex; flex-direction: column; gap: 22px; }

.nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--card); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.nav-marca { display: none; }
.nav a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: var(--nav-h); color: var(--muted); text-decoration: none; font: 600 .78rem var(--body);
}
.nav a[aria-current="page"] { color: var(--accent); }
.nav a[aria-current="page"] svg { stroke-width: 2.6; }

@media (min-width: 900px) {
  .nav {
    inset: 0 auto 0 0; width: 220px; grid-template-columns: 1fr; align-content: start; gap: 4px;
    border-top: 0; border-right: 1px solid var(--line); padding: 24px 12px;
  }
  .nav-marca { display: block; font: 800 2rem var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); padding: 0 14px 18px; }
  .nav a { flex-direction: row; justify-content: flex-start; gap: 14px; min-height: 52px; padding: 0 14px; border-radius: 12px; font-size: 1.05rem; }
  .nav a[aria-current="page"] { background: var(--soft); }
  .columna { margin-left: 220px; }
  .topbar-marca { visibility: hidden; }
  .vista { padding-bottom: 110px; }
  :root { --nav-total: 0px; }
}

.btn-icono {
  display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
  border-radius: 12px; color: var(--muted);
}

/* ---------- Componentes ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.cabeza-card { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 20px; border: 2px solid var(--accent); border-radius: 12px;
  background: var(--accent); color: var(--accent-ink); font: 700 1.05rem var(--body);
  text-decoration: none; cursor: pointer;
}
.btn:disabled { opacity: .5; cursor: default; }
.btn.sec { background: transparent; color: var(--accent); }
.btn.peligro { background: var(--warn); border-color: var(--warn); color: #fff; }
.btn.pequeno { min-height: 44px; padding: 0 14px; font-size: .95rem; }
.btn-icono-cuadrado { width: 52px; padding: 0; }
@media (prefers-color-scheme: dark) { .btn.peligro { color: #1a0d05; } }

input, select, textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; font: 500 1rem var(--body);
  color: var(--ink); background: var(--bg); border: 2px solid var(--line); border-radius: 12px;
}
textarea { resize: vertical; line-height: 1.4; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .8; }
label { font-weight: 600; }
.form { display: flex; flex-direction: column; gap: 8px; }
.form h2 { margin-bottom: 4px; }
.form .btn { margin-top: 6px; }
.form-mensaje { min-height: 1.4em; color: var(--muted); }
.form-mensaje.es-error { color: var(--warn); font-weight: 600; }
.dos-col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dos-col > div { display: flex; flex-direction: column; gap: 8px; min-width: 0; }

.barra { height: 12px; background: var(--line); border-radius: 99px; overflow: hidden; }
.barra i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s; }

.vacio { padding: 22px 16px; text-align: center; border: 2px dashed var(--line); border-radius: 16px; display: flex; flex-direction: column; gap: 6px; }
.vacio p { color: var(--muted); }
.error-caja { padding: 14px 16px; border: 2px solid var(--warn); border-radius: 14px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; color: var(--warn); font-weight: 600; }
.esqueleto { display: flex; flex-direction: column; gap: 10px; padding: 6px 0; }
.esqueleto i { display: block; height: 16px; border-radius: 8px; background: var(--line); animation: pulso 1.4s ease-in-out infinite; }
.esqueleto i.corta { width: 60%; }
@keyframes pulso { 50% { opacity: .45; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--soft); border-radius: 999px; padding: 4px 12px; font-weight: 600; font-size: .95rem; }
.chip.fuerte { background: var(--accent); color: var(--accent-ink); }

/* ---------- Avisos y diálogos ---------- */
.avisos {
  position: fixed; left: 0; right: 0; bottom: calc(var(--nav-total) + 84px); z-index: 60;
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0 16px; pointer-events: none;
}
.aviso { background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 12px; font-weight: 600; max-width: 480px; }
.aviso.error { background: var(--warn); color: #fff; }
@media (prefers-color-scheme: dark) { .aviso.error { color: #1a0d05; } }

.dialogo {
  width: min(92vw, 440px); padding: 20px; border: 1px solid var(--line); border-radius: 18px;
  background: var(--card); color: var(--ink);
}
.dialogo::backdrop { background: rgba(0, 0, 0, .55); }
.dialogo-texto { font-size: 1.1rem; margin-bottom: 16px; }
.dialogo-botones { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.dialogo-botones .btn { flex: 1 1 140px; margin-top: 0; }
.dialogo.captura textarea { min-height: 120px; }

.fab {
  position: fixed; right: 16px; bottom: calc(var(--nav-total) + 16px); z-index: 30;
  display: inline-flex; align-items: center; gap: 8px; min-height: 56px; padding: 0 20px 0 16px;
  border: 0; border-radius: 999px; background: var(--hoy); color: #1d1600;
  font: 800 1.1rem var(--display); letter-spacing: .06em; text-transform: uppercase;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .28); cursor: pointer;
}
body[data-ruta="chat"] .fab { bottom: calc(var(--nav-total) + 88px); }

/* ---------- Login ---------- */
.login { min-height: 100dvh; display: grid; place-items: center; padding: 20px; }
.login .card { width: min(100%, 420px); display: flex; flex-direction: column; gap: 14px; padding: 24px; }

/* ---------- Hoy ---------- */
.zeta-dice { border-left: 6px solid var(--accent); display: flex; flex-direction: column; gap: 10px; }
.mensaje-zeta { font-size: 1.15rem; line-height: 1.5; }
.campo { display: flex; flex-direction: column; gap: 8px; }
.campo-titulo { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-weight: 700; flex-wrap: wrap; }
.escala { display: grid; gap: 8px; grid-template-columns: repeat(5, 1fr); }
.escala.n11 { grid-template-columns: repeat(6, 1fr); }
.opcion {
  min-height: 52px; border: 2px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink);
  font: 800 1.3rem var(--display); cursor: pointer; padding: 0 6px;
}
.opcion[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.contador { display: flex; align-items: center; justify-content: center; gap: 20px; }
.contador-boton { width: 64px; font-size: 2rem; padding: 0; }
.contador-valor { font: 800 3rem/1 var(--display); min-width: 2ch; text-align: center; }
.dato-grande { font: 800 2rem/1 var(--display); text-transform: uppercase; color: var(--accent); }
.medida { display: flex; flex-direction: column; gap: 6px; }
.medida-fila { display: flex; justify-content: space-between; gap: 10px; }

/* ---------- Entreno ---------- */
.dias { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.dia {
  border: 2px solid var(--line); background: var(--card); color: var(--ink); border-radius: 10px;
  min-height: 64px; padding: 6px 2px; font: inherit; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 0;
}
.dia b { font: 800 1.3rem var(--display); }
.dia small { font-size: .75rem; color: var(--muted); }
.dia .punto { width: 6px; height: 6px; border-radius: 50%; background: transparent; margin-top: 2px; }
.dia .punto.con { background: var(--accent); }
.dia.hoy { border-color: var(--hoy); }
.dia[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.dia[aria-pressed="true"] small { color: var(--accent-ink); }
.dia[aria-pressed="true"] .punto.con { background: var(--accent-ink); }

.progreso { display: flex; flex-direction: column; gap: 8px; }
.bloque { display: flex; flex-direction: column; gap: 14px; }
.ej { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.fotos { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--line); }
.fotos.una { grid-template-columns: 1fr; }
.fotos figure { margin: 0; position: relative; background: #fff; }
.fotos img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.fotos figcaption {
  position: absolute; left: 8px; top: 8px; background: rgba(0, 0, 0, .66); color: #fff;
  font: 700 .8rem var(--display); letter-spacing: .08em; text-transform: uppercase; padding: 2px 8px; border-radius: 6px;
}
.cuerpo { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; }
.cabeza { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.dosis {
  background: var(--hoy); color: #1d1600; font: 800 1.6rem/1 var(--display); padding: 6px 12px; border-radius: 10px;
  text-align: center; flex: none;
}
.dosis small { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; margin-top: 2px; }
.para { color: var(--accent); font-weight: 600; }
.carga { background: var(--soft); border-radius: 10px; padding: 6px 12px; align-self: flex-start; }
.carga span { color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
ol.pasos { margin: 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: 4px; }
.ojo { color: var(--warn); font-weight: 600; border-left: 4px solid var(--warn); padding-left: 10px; }
.video { font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.series { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.serie { border: 2px solid var(--line); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 10px; }
.serie.hecha { border-color: var(--accent); background: var(--soft); }
.serie-cab { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.4fr); gap: 8px; align-items: center; }
.serie-cab b { font: 700 1.2rem var(--display); text-transform: uppercase; }
.serie-botones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.serie-botones .opcion { font: 700 .95rem var(--body); min-height: 48px; }
.serie-botones .dolor-btn { grid-column: 1 / -1; }
.opcion.dolor-btn[aria-pressed="true"] { background: var(--warn); border-color: var(--warn); color: #fff; }
@media (min-width: 520px) {
  .serie-botones { grid-template-columns: repeat(4, 1fr); }
  .serie-botones .dolor-btn { grid-column: auto; }
}
.reglas { border: 2px solid var(--warn); }
.reglas ul { margin: 8px 0 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 4px; }
.material summary { font: 700 1.4rem var(--display); text-transform: uppercase; cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.material[open] summary { margin-bottom: 12px; }
.fila-material { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.fila-acciones { display: flex; gap: 8px; }

/* ---------- Comidas ---------- */
.navegador-dia { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dia-actual { font: 700 1.5rem var(--display); text-transform: capitalize; text-align: center; flex: 1; }
.lista-comidas { padding: 6px 16px; }
.lista-comidas .vacio { border: 0; }
.fila-comida { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.fila-comida:last-child { border-bottom: 0; }
.fila-comida .hora { font: 700 1.2rem var(--display); color: var(--muted); min-width: 3.2ch; }
.comida-texto { flex: 1; display: flex; flex-direction: column; min-width: 0; }

/* ---------- Chat ---------- */
.hilo { display: flex; flex-direction: column; gap: 12px; min-height: 40vh; }
.fila-chat { display: flex; flex-direction: column; gap: 2px; max-width: 88%; }
.fila-chat.usuario { align-self: flex-end; align-items: flex-end; }
.fila-chat.zeta { align-self: flex-start; }
.burbuja { padding: 10px 14px; border-radius: 16px; line-height: 1.5; }
.burbuja.usuario { background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 4px; }
.burbuja.usuario a { color: inherit; }
.burbuja.zeta { background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.escribiendo { color: var(--muted); font-weight: 600; animation: pulso 1.4s ease-in-out infinite; }
@keyframes pulso { 50% { opacity: .45; } }
.banner-desconexion { background: var(--soft); border-left: 6px solid var(--hoy); padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.composer {
  position: sticky; bottom: var(--nav-total); display: flex; gap: 8px; align-items: flex-end;
  padding: 10px 0; background: var(--bg);
}
.composer textarea { resize: none; max-height: 160px; }
.composer .btn { min-height: 48px; }

/* ---------- Centro de mando ---------- */
.volver { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font-weight: 600; text-decoration: none; }
.rejilla-tarjetas { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 560px) { .rejilla-tarjetas { grid-template-columns: 1fr 1fr; } }
.tarjeta-grande { display: flex; flex-direction: column; gap: 6px; min-height: 130px; color: var(--ink); text-decoration: none; }
.tarjeta-titulo { display: flex; align-items: center; gap: 8px; font: 700 1.3rem var(--display); text-transform: uppercase; color: var(--accent); }
.pie-fuente { color: var(--muted); font-size: .82rem; }
.pie-fuente.viejo strong { color: var(--ink); }
.lista-simple { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.fila-simple { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.crece { flex: 1; }
.entrega { display: flex; flex-direction: column; gap: 2px; }
.caja-alerta { border: 2px solid var(--warn); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--card); }
.caja-alerta h2 { color: var(--warn); }
.caja-grande { display: flex; flex-direction: column; }
.caja-grande .dato-grande { font-size: 2.6rem; }
.chip-boton { border: 2px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; min-height: 44px; padding: 0 14px; font: 600 .95rem var(--body); cursor: pointer; }
.chip-boton[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.plegable summary { font: 700 1.3rem var(--display); text-transform: uppercase; cursor: pointer; min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; list-style: none; }
.plegable summary::-webkit-details-marker { display: none; }
.plegable summary::after { content: ''; flex: none; width: 10px; height: 10px; border-right: 3px solid var(--muted); border-bottom: 3px solid var(--muted); transform: rotate(45deg); margin: -4px 4px 0 0; }
.plegable[open] > summary::after { transform: rotate(225deg); margin-top: 4px; }
.plegable-cuerpo { margin: 0; }
.plegable[open] > summary { margin-bottom: 10px; }
.fila-limite { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: center; }
.grafico { width: 100%; height: auto; display: block; }
.g-barra { fill: var(--accent); }
.g-linea { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; }
.g-punto { fill: var(--accent); }
.g-eje { stroke: var(--line); stroke-width: 1; }
.g-texto { fill: var(--muted); font: 500 9px var(--body); }
.tarjeta-proyecto { display: flex; flex-direction: column; gap: 10px; }
.tarjeta-proyecto.destacada { border: 2px solid var(--accent); }
.tarjeta-proyecto h3 a { color: var(--ink); text-decoration: none; }
.chip.estado-foco { background: var(--accent); color: var(--accent-ink); }
.chip.estado-hecho, .chip.estado-pausa { color: var(--muted); }
.limite.vencida { color: var(--warn); font-weight: 700; }
.titulo-area { border-left: 8px solid var(--line); padding-left: 10px; }
.interruptor { align-items: center; min-height: 48px; }
.fila-area { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.fila-area input[type="text"] { flex: 1 1 140px; width: auto; }
.selector-color { width: 56px; padding: 4px; flex: none; }
.campo-orden { width: 72px; flex: none; }
.fila-tarea { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.fila-tarea.hecha .captura-texto { text-decoration: line-through; color: var(--muted); }
.btn.peligro-sec { color: var(--warn); border-color: var(--warn); }
input[type="range"] { padding: 0; accent-color: var(--accent); }
.adjunto-elegido { display: flex; align-items: center; gap: 8px; width: 100%; }
.composer { flex-direction: column; align-items: stretch; gap: 6px; }
.composer-fila { display: flex; gap: 8px; align-items: flex-end; }
.miniatura { display: block; max-width: 220px; max-height: 220px; border-radius: 10px; margin-bottom: 6px; }

/* ---------- Capturas (bandeja) ---------- */
.pestanas { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pestana { min-height: 48px; border: 2px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); font: 700 1.05rem var(--body); cursor: pointer; }
.pestana[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.captura-item { display: flex; flex-direction: column; gap: 12px; }
.captura-item.hecha .captura-texto { text-decoration: line-through; color: var(--muted); }
.check { display: flex; gap: 14px; align-items: flex-start; cursor: pointer; font-weight: 500; }
.check input { width: 28px; height: 28px; min-height: 0; flex: none; accent-color: var(--accent); margin: 2px 0 0; }
.captura-pie { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.captura-pie select { width: auto; flex: 1 1 140px; }

@media (max-width: 400px) {
  body { font-size: 16px; }
  .dia small { font-size: .65rem; }
  .serie-cab { grid-template-columns: 1fr 1fr; }
  .serie-cab b { grid-column: 1 / -1; }
}
/* ---------- Cola sin conexión, estado del sistema y verificación en dos pasos ---------- */
.insignia-cola { min-height: 36px; padding: 0 12px; border-radius: 999px; border: 2px solid var(--warn); background: transparent; color: var(--warn); font: 600 .85rem var(--body); cursor: pointer; }
.topbar-derecha { display: flex; align-items: center; gap: 6px; }
.estado-lista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.estado-fila { display: flex; align-items: flex-start; gap: 10px; }
.punto { flex: none; width: 14px; height: 14px; margin-top: 5px; border-radius: 50%; background: var(--muted); }
.punto.verde { background: #2e9e57; }
.punto.ambar { background: #e0a100; }
.punto.rojo { background: #d23b2e; }
.errores-recientes { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; font-size: .92rem; }
.qr { align-self: center; width: min(240px, 100%); height: auto; background: #fff; border-radius: 12px; padding: 8px; }
.pasos { margin: 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: 8px; }
.secreto { display: flex; gap: 8px; align-items: stretch; }
.secreto input { flex: 1; font-family: ui-monospace, Consolas, monospace; letter-spacing: .06em; }
.codigo-seis { font: 700 1.8rem var(--display); letter-spacing: .4em; text-align: center; }

/* ---------- Hoy, tanda 2: tarjeta Ahora, foco tachable, check-in de 1 toque, contador rápido ---------- */
.cabecera-hoy { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 12px; }
.cabecera-texto { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.porros-rapido { display: flex; align-items: center; gap: 6px; flex: none; }
.porros-valor { background: none; border: 0; color: var(--ink); cursor: default; padding: 0; min-height: 44px; }
.porros-rapido-valor { padding: 0 6px; min-width: 2.2ch; font: 800 1.6rem/1 var(--display); }
.porros-rapido .btn { min-width: 48px; padding: 0 12px; }
.ahora { border: 2px solid var(--accent); }
.ahora-titulo { font-size: 2rem; line-height: 1.05; text-transform: none; }
.ahora-detalle { font-size: 1.1rem; }
.ahora-lista { font-size: 1.1rem; }
.ahora .btn { width: 100%; min-height: 56px; }
.escala-palabras { gap: 6px; }
.opcion-palabra { min-height: 68px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 0 2px; }
.opcion-palabra b { font: 800 1.5rem/1 var(--display); }
.opcion-palabra span { font: 600 .74rem/1.1 var(--body); overflow-wrap: normal; }
.mas-opcional > summary { font-weight: 700; color: var(--accent); cursor: pointer; min-height: 48px; display: flex; align-items: center; }
.mas-opcional[open] > summary { margin-bottom: 10px; }
.foco-lista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.foco-item { display: flex; flex-direction: column; gap: 8px; }
.foco-fila { display: flex; align-items: center; gap: 14px; min-height: 56px; }
.foco-check { width: 36px; height: 36px; min-height: 0; flex: none; accent-color: var(--accent); margin: 0; }
.foco-texto { flex: 1; font-size: 1.15rem; font-weight: 600; cursor: pointer; min-height: 48px; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
.foco-texto .chip { font-size: .8rem; }
.foco-item.hecho .foco-texto { text-decoration: line-through; color: var(--muted); }
.foco-ir { flex: none; min-height: 48px; display: inline-flex; align-items: center; font-weight: 600; }
.foco-paso { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; background: var(--soft); border-radius: 12px; }
.foco-fin { font: 700 1.3rem var(--display); color: var(--accent); }
.entrega-grande { display: flex; flex-direction: column; gap: 2px; border-left: 6px solid var(--hoy); padding-left: 12px; }
.entrega-cliente { font: 700 1.5rem/1.1 var(--display); }
.tarjeta-sobria { border-left: 6px solid var(--accent); }

/* ---------- Voz (micrófono) ---------- */
.micro.activo { background: var(--warn); border-color: var(--warn); color: #fff; }
.micro-fila { display: flex; align-items: center; gap: 10px; }
.micro-indicador { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-weight: 600; }
.micro-fila .micro-indicador { flex: 1; }
.micro-punto { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--warn); animation: pulso 1.2s ease-in-out infinite; }

/* ---------- Guías paso a paso y avisos ---------- */
.guia { margin: 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: 8px; }
.compartido-vista { margin-bottom: 14px; white-space: pre-wrap; }

/* ---------- Bandeja en Hoy y repaso ---------- */
.bandeja-linea { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; border-left: 6px solid var(--hoy); }
.bandeja-texto { font-weight: 700; }
.btn.grande { min-height: 64px; font-size: 1.25rem; }
.repaso {
  width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0; border: 0; border-radius: 0;
  padding: calc(env(safe-area-inset-top) + 16px) 16px calc(env(safe-area-inset-bottom) + 16px);
  background: var(--bg); color: var(--ink);
}
.repaso[open] { display: flex; flex-direction: column; }
.repaso-contenido { flex: 1; max-width: 560px; width: 100%; margin: 0 auto; justify-content: center; }
.repaso-cabecera { display: flex; justify-content: space-between; align-items: center; }
.repaso-texto { font-size: 1.5rem; line-height: 1.35; font-weight: 600; white-space: pre-wrap; }
.repaso-nota { background: var(--soft); border-left: 6px solid var(--accent); padding: 10px 14px; border-radius: 10px; }
.repaso-botones { margin-top: 8px; }
.repaso-fin { text-align: center; }
.repaso-deshacer { max-width: 560px; width: 100%; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 4px; font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
