/* Panel del negocio — móvil primero, letra grande, botones grandes.
   Paleta de Nariño: páramo (verde), maíz (amarillo), añil (azul), achiote (rojo). */
:root {
  --paper: #F5F7F2; --surface: #FFFFFF; --ink: #14261D; --ink-soft: #4E5F55;
  --line: #D9E0D6; --apagado: #8C9A92; --paramo: #1E5B43; --paramo-ink: #FFFFFF; --paramo-tint: #E3EEE7;
  --maiz: #E3A91B; --maiz-tint: #FBF0D2; --anil: #2B4C8C; --anil-tint: #E2E8F4;
  --achiote: #B3322B; --achiote-tint: #F7E1DF; --wa: #1F7A4D; --ok: #2E9E62;
  --sombra: 0 18px 40px -24px rgba(20, 38, 29, .35);
  --display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --body: 'Atkinson Hyperlegible', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0F1813; --surface: #17231C; --ink: #E8EFE9; --ink-soft: #A3B3A8;
    --line: #2A3A30; --apagado: #5E6E64; --paramo: #4FB386; --paramo-ink: #0F1813; --paramo-tint: #1D3328;
    --maiz-tint: #3A2F12; --anil: #8FA9E0; --anil-tint: #1E2840; --achiote: #E4766E; --achiote-tint: #3A1D1B;
    --wa: #4FB386; --ok: #4FB386; --sombra: 0 18px 40px -24px rgba(0, 0, 0, .7); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0F1813; --surface: #17231C; --ink: #E8EFE9; --ink-soft: #A3B3A8;
  --line: #2A3A30; --apagado: #5E6E64; --paramo: #4FB386; --paramo-ink: #0F1813; --paramo-tint: #1D3328;
  --maiz-tint: #3A2F12; --anil: #8FA9E0; --anil-tint: #1E2840; --achiote: #E4766E; --achiote-tint: #3A1D1B;
  --wa: #4FB386; --ok: #4FB386; --sombra: 0 18px 40px -24px rgba(0, 0, 0, .7); color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box }
html { -webkit-text-size-adjust: 100%; height: 100% }
body { margin: 0; min-height: 100%; background: var(--paper); color: var(--ink); font: 400 17px/1.5 var(--body); -webkit-tap-highlight-color: transparent }
button, input, select, textarea { font: inherit; color: inherit }
button { cursor: pointer }
a { color: var(--paramo) }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0; letter-spacing: -.01em; text-wrap: balance }
p { margin: 0 0 .6rem }
:focus-visible { outline: 3px solid var(--maiz); outline-offset: 2px; border-radius: 8px }
.muted { color: var(--ink-soft) }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap }
[hidden] { display: none !important }
.num { font-variant-numeric: tabular-nums }

/* ---------- estructura ---------- */
.demo-flag { background: var(--maiz-tint); color: var(--ink); font-size: 15px; padding: 8px 16px; text-align: center; border-bottom: 1px solid var(--line) }
.demo-flag b { font-family: var(--display) }
.soporte-flag { background: var(--anil); color: #fff; font-size: 15px; padding: 10px 16px; display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap }
.soporte-flag button { border: 1px solid rgba(255,255,255,.6); background: none; color: #fff; border-radius: 10px; padding: 6px 12px; min-height: 40px; font-weight: 700 }

.app { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column }
.cabeza { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line) }
.cabeza-in { max-width: 820px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px }
.cabeza h1 { font-size: 20px; font-weight: 800 }
.cabeza .sub { font-size: 14px; color: var(--ink-soft) }
.vivo { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: var(--line); color: var(--ink-soft); white-space: nowrap }
.vivo::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor }
.vivo.on { background: var(--paramo-tint); color: var(--paramo) }
.vivo.on::before { animation: late 2s ease-in-out infinite }
@keyframes late { 50% { opacity: .35 } }

main.pantalla { flex: 1; width: 100%; max-width: 820px; margin: 0 auto; padding: 16px 16px 110px }
.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(var(--cols, 5), 1fr); background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px) }
.nav button { border: 0; background: none; padding: 9px 2px 8px; font-size: 14px; font-weight: 700; color: var(--ink-soft); display: flex; flex-direction: column; align-items: center; gap: 3px; min-height: 60px; position: relative }
.nav button svg { width: 24px; height: 24px }
.nav button[aria-current="page"] { color: var(--paramo) }
.nav button[aria-current="page"]::after { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--paramo) }
.punto { position: absolute; top: 5px; left: calc(50% + 6px); background: var(--achiote); color: #fff; font-size: 12px; min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; padding: 0 5px; font-weight: 700 }
@media (min-width: 900px) {
  .app.con-nav { padding-left: 220px }
  .nav { top: 0; right: auto; width: 220px; grid-template-columns: 1fr; grid-auto-rows: min-content; align-content: start; border-top: 0; border-right: 1px solid var(--line); padding: 90px 12px 12px; gap: 4px }
  .nav button { flex-direction: row; justify-content: flex-start; gap: 12px; padding: 12px 14px; font-size: 16px; min-height: 52px; border-radius: 12px }
  .nav button[aria-current="page"] { background: var(--paramo-tint) }
  .nav button[aria-current="page"]::after { display: none }
  .punto { position: static; margin-left: auto }
  main.pantalla { padding-bottom: 40px }
}

/* ---------- componentes ---------- */
.titulo { font-family: var(--display); font-weight: 700; font-size: 18px; margin: 22px 0 10px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px }
.titulo small { font-family: var(--body); font-weight: 400; font-size: 14px; color: var(--ink-soft) }
.tarjeta { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px }
.pila { display: grid; gap: 10px }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 10px 16px; font-weight: 700; min-height: 48px; text-decoration: none; color: var(--ink); line-height: 1.2 }
.btn svg { width: 20px; height: 20px; flex: none }
.btn.primario { background: var(--paramo); color: var(--paramo-ink); border-color: var(--paramo) }
.btn.peligro { background: var(--achiote); color: #fff; border-color: var(--achiote) }
.btn.suave { background: var(--paramo-tint); border-color: transparent; color: var(--paramo) }
.btn.bloque { width: 100% }
.btn:disabled { opacity: .5; cursor: not-allowed }
.btn.chico { min-height: 44px; padding: 7px 12px; font-size: 15px; border-radius: 11px }
.fila-btns { display: flex; gap: 8px; flex-wrap: wrap }
.fila-btns .btn { flex: 1 1 auto }

.interruptor { appearance: none; -webkit-appearance: none; width: 64px; height: 40px; border-radius: 20px; background: var(--apagado); position: relative; cursor: pointer; flex: none; border: 0; margin: 0; transition: background .2s }
.interruptor::after { content: ""; position: absolute; top: 4px; left: 4px; width: 32px; height: 32px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.3) }
.interruptor:checked { background: var(--paramo) }
.interruptor:checked::after { transform: translateX(24px) }
.interruptor.chico { width: 56px; height: 34px }
.interruptor.chico::after { width: 26px; height: 26px }
.interruptor.chico:checked::after { transform: translateX(20px) }
.interruptor:disabled { opacity: .45; cursor: not-allowed }
.interruptor.rojo:checked { background: var(--achiote) }

.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; padding: 4px 11px; border-radius: 999px; background: var(--line); white-space: nowrap }
.chip.ok { background: var(--paramo-tint); color: var(--paramo) }
.chip.alerta { background: var(--achiote-tint); color: var(--achiote) }
.chip.aviso { background: var(--maiz-tint); color: var(--ink) }
.chip.azul { background: var(--anil-tint); color: var(--anil) }

.filtros { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 14px; padding: 2px 16px 4px; scrollbar-width: none }
.filtros::-webkit-scrollbar { display: none }
.filtros button { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 16px; font-size: 15px; font-weight: 700; white-space: nowrap; min-height: 44px }
.filtros button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink) }

.vacio { text-align: center; padding: 34px 18px; color: var(--ink-soft); border: 2px dashed var(--line); border-radius: 18px }
.vacio b { display: block; color: var(--ink); font-family: var(--display); font-size: 18px; margin-bottom: 6px }

/* ---------- Hoy ---------- */
.asistente-fila { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; border-radius: 18px; background: var(--paramo-tint) }
.asistente-fila.pausa { background: var(--achiote-tint) }
.asistente-fila b { font-size: 18px; display: block }
.asistente-fila span { font-size: 15px; color: var(--ink-soft) }
.valor { margin: 20px 0 4px }
.valor .etiqueta { font-size: 15px; color: var(--ink-soft) }
.valor .grande { font-family: var(--display); font-weight: 800; font-size: clamp(38px, 11vw, 52px); letter-spacing: -.03em; line-height: 1.02; font-variant-numeric: tabular-nums; margin: 4px 0 }
.valor .comparacion { display: inline-flex; gap: 8px; align-items: center; background: var(--maiz-tint); border-radius: 12px; padding: 8px 12px; font-size: 15px; margin: 6px 0 10px }
.banda { display: flex; height: 16px; border-radius: 8px; overflow: hidden; gap: 3px; background: var(--line); margin-top: 10px }
.banda span { display: block; height: 100%; min-width: 4px }
.leyenda { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; font-size: 14px; color: var(--ink-soft) }
.leyenda i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px }
.cifras { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 18px }
.cifras div { border: 1px solid var(--line); border-radius: 16px; padding: 12px; background: var(--surface) }
.cifras strong { display: block; font-family: var(--display); font-size: clamp(17px, 5.4vw, 26px); line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; letter-spacing: -.02em }
.cifras span { font-size: 15px; color: var(--ink-soft) }
.cifras div { min-width: 0; overflow: hidden }
.estado-hoy { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; margin-top: 12px; color: var(--ink-soft) }
.estado-hoy::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--line) }
.estado-hoy.abierto::before { background: var(--ok) }
.estado-hoy.cerrado::before { background: var(--achiote) }

.aviso-caja { border-radius: 16px; padding: 14px 16px; position: relative; margin-top: 16px }
.aviso-caja.sugerencia { border: 1px solid var(--maiz); background: var(--maiz-tint) }
.aviso-caja.urgente { border: 1px solid var(--achiote); background: var(--achiote-tint); display: flex; justify-content: space-between; align-items: center; gap: 12px }
.aviso-caja.info { background: var(--anil-tint) }
.aviso-caja p { margin: 0 40px 10px 0 }
.aviso-caja .cerrar { position: absolute; top: 6px; right: 6px; border: 0; background: none; font-size: 22px; width: 44px; height: 44px; border-radius: 10px; color: var(--ink-soft) }

.feed { list-style: none; margin: 0; padding: 0 }
.feed li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: flex-start }
.feed li:last-child { border-bottom: 0 }
.feed .t { font-size: 15px; color: var(--ink-soft) }
.feed .monto { margin-left: auto; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums }
.canal { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 12px; font-weight: 700 }
.canal svg { width: 20px; height: 20px }
.canal.whatsapp { background: var(--paramo-tint); color: var(--wa) }
.canal.voz { background: var(--maiz-tint); color: var(--ink) }
.canal.web { background: var(--anil-tint); color: var(--anil) }
.canal.local { background: var(--line) }
.nuevo-llega { animation: llega .6s ease-out }
@keyframes llega { from { opacity: 0; transform: translateY(-10px) } to { opacity: 1; transform: none } }

/* ---------- pedidos y citas ---------- */
.pedido { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; margin-bottom: 10px }
.pedido.es-nuevo { border: 2px solid var(--maiz) }
.pedido-cab { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start }
.pedido h3 { font-size: 18px }
.pedido dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 12px 0; font-size: 16px }
.pedido dt { color: var(--ink-soft) }
.pedido dd { margin: 0; min-width: 0; overflow-wrap: anywhere }
.estado { font-size: 14px; font-weight: 700; padding: 5px 11px; border-radius: 999px; white-space: nowrap }
.e-nuevo, .e-agendada { background: var(--maiz-tint) }
.e-preparando, .e-confirmada { background: var(--anil-tint); color: var(--anil) }
.e-en_camino { background: var(--paramo-tint); color: var(--paramo) }
.e-entregado, .e-atendida { background: var(--line); color: var(--ink-soft) }
.e-cancelado, .e-cancelada, .e-no_llego { background: var(--achiote-tint); color: var(--achiote) }
.dia-titulo { font-family: var(--display); font-weight: 700; font-size: 16px; color: var(--ink-soft); margin: 18px 0 8px; text-transform: capitalize }
.hora-cita { font-family: var(--display); font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums }

/* ---------- chats ---------- */
.chat-item { display: flex; gap: 12px; width: 100%; text-align: left; border: 0; background: none; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center; min-height: 68px }
.avatar { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--paramo-tint); color: var(--paramo); display: grid; place-items: center; font-weight: 700; font-size: 18px; position: relative }
.avatar .n { position: absolute; top: -3px; right: -3px; background: var(--achiote); color: #fff; font-size: 12px; min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; padding: 0 5px }
.chat-item .meta { flex: 1; min-width: 0 }
.chat-item .linea1 { display: flex; gap: 8px; align-items: center; justify-content: space-between }
.chat-item .ultimo { display: block; color: var(--ink-soft); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.chat-item .hora { font-size: 13px; color: var(--ink-soft); white-space: nowrap }
.hilo { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 }
.msg { max-width: 86%; padding: 9px 13px; border-radius: 16px; font-size: 16px; white-space: pre-wrap; overflow-wrap: anywhere }
.msg small { display: block; font-size: 13px; color: var(--ink-soft); margin-bottom: 2px; font-weight: 700 }
.msg time { display: block; font-size: 12px; color: var(--ink-soft); text-align: right; margin-top: 2px }
.msg.cliente { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 5px }
.msg.asistente { align-self: flex-end; background: var(--paramo-tint); border-bottom-right-radius: 5px }
.msg.dueno { align-self: flex-end; background: var(--anil-tint); border-bottom-right-radius: 5px }
.msg.sistema { align-self: center; background: none; color: var(--ink-soft); font-size: 14px; text-align: center; max-width: 100% }
.banner { padding: 12px 14px; border-radius: 14px; font-size: 15px; margin-bottom: 8px }
.banner.pausa { background: var(--anil-tint) }
.banner.alerta { background: var(--achiote-tint) }
.componer { display: flex; gap: 8px; position: sticky; bottom: 76px; background: var(--paper); padding: 8px 0 }
@media (min-width: 900px) { .componer { bottom: 0 } }
.componer textarea, .componer input { flex: 1; border: 1px solid var(--line); border-radius: 14px; padding: 11px 13px; background: var(--surface); min-height: 50px; resize: none }
.volver { border: 0; background: none; padding: 6px 0; font-weight: 700; color: var(--paramo); min-height: 44px; display: inline-flex; align-items: center; gap: 4px }

/* ---------- menú ---------- */
.sincro { font-size: 15px; background: var(--paramo-tint); border-radius: 14px; padding: 11px 14px; display: flex; gap: 10px; align-items: center }
.sincro svg { width: 22px; height: 22px; flex: none; color: var(--paramo) }
.categoria { font-family: var(--display); font-weight: 700; margin: 22px 0 4px; font-size: 16px; color: var(--ink-soft) }
.item { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center }
.item .nombre { font-weight: 700; border: 0; background: none; padding: 0; text-align: left; min-height: 44px; display: flex; align-items: center; gap: 10px }
.item .nombre img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex: none }
.item.agotado .nombre span { text-decoration: line-through; color: var(--ink-soft) }
.precio { display: flex; align-items: center; gap: 4px; font-size: 16px }
.precio input { width: 108px; border: 1px solid var(--line); border-radius: 12px; padding: 9px 11px; background: var(--paper); text-align: right; min-height: 46px; font-variant-numeric: tabular-nums }
.item label { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink-soft); grid-column: 1 / -1 }
.pendiente { color: var(--achiote); font-weight: 700; font-size: 14px }

/* ---------- listas y formularios ---------- */
.lista-btn { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; border: 1px solid var(--line); background: var(--surface); border-radius: 16px; padding: 14px 16px; margin-bottom: 8px; text-align: left; min-height: 64px; color: var(--ink); text-decoration: none }
.lista-btn .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--paramo-tint); color: var(--paramo); flex: none }
.lista-btn .ic svg { width: 22px; height: 22px }
.lista-btn .tx { flex: 1; min-width: 0 }
.lista-btn b { font-size: 17px; display: block }
.lista-btn span.d { display: block; font-size: 15px; color: var(--ink-soft) }
.lista-btn .flecha { color: var(--ink-soft); font-size: 22px }
.renglon { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line) }
.renglon p { margin: 2px 0 0; font-size: 15px; color: var(--ink-soft) }
.renglon > div { min-width: 0 }
.campo { display: grid; gap: 6px; margin-bottom: 14px }
.campo label { font-weight: 700; font-size: 15px }
.campo input, .campo select, .campo textarea { border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; background: var(--surface); min-height: 50px; width: 100% }
.campo textarea { min-height: 110px; resize: vertical }
.campo .ayuda { font-size: 14px; color: var(--ink-soft) }
.error-caja { background: var(--achiote-tint); color: var(--ink); border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; font-size: 15px }

/* ---------- vistas especiales ---------- */
.burbuja-wa-fondo { background: #E5DDD5; border-radius: 16px; padding: 14px }
:root[data-theme="dark"] .burbuja-wa-fondo { background: #1B2620 }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .burbuja-wa-fondo { background: #1B2620 } }
.burbuja-wa { background: #fff; color: #111; border-radius: 12px; padding: 11px 13px; font-size: 16px; white-space: pre-wrap; max-width: 94%; box-shadow: 0 1px 1px rgba(0,0,0,.12); overflow-wrap: anywhere }
.plan { border: 1px solid var(--line); border-radius: 18px; padding: 16px; margin-bottom: 10px; background: var(--surface) }
.plan.actual { border: 2px solid var(--paramo) }
.plan h3 { font-size: 20px; display: flex; justify-content: space-between; align-items: center; gap: 8px }
.plan ul { margin: 10px 0 12px; padding-left: 20px }
.plan .costo { font-family: var(--display); font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums }

/* ---------- agencia ---------- */
.cliente-fila { display: grid; grid-template-columns: 16px 1fr auto; gap: 12px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--line); width: 100%; text-align: left; border-left: 0; border-right: 0; border-top: 0; background: none }
.luz { width: 16px; height: 16px; border-radius: 50%; margin-top: 4px }
.luz.verde { background: var(--ok) }
.luz.amarillo { background: var(--maiz) }
.luz.rojo { background: var(--achiote) }
.cliente-fila p { margin: 2px 0 0; font-size: 15px; color: var(--ink-soft) }
.cliente-fila .alerta-tx { color: var(--ink); background: var(--maiz-tint); border-radius: 10px; padding: 7px 11px; margin-top: 7px; font-size: 15px }
.cliente-fila .alerta-tx.riesgo { background: var(--achiote-tint) }
.tabla-precios { width: 100%; border-collapse: collapse; font-size: 15px }
.tabla-precios th, .tabla-precios td { text-align: left; padding: 10px 6px; border-bottom: 1px solid var(--line); vertical-align: top }
.tabla-precios th { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft) }
.scroll-x { overflow-x: auto }
code, .codigo { font-family: ui-monospace, Consolas, monospace; background: var(--paramo-tint); border-radius: 8px; padding: 2px 7px; font-size: 15px; overflow-wrap: anywhere }

/* ---------- hoja inferior (modal) ---------- */
.fondo { position: fixed; inset: 0; background: rgba(15, 24, 19, .5); z-index: 50; display: flex; align-items: flex-end; justify-content: center; animation: aparece .2s ease-out }
@keyframes aparece { from { opacity: 0 } }
.hoja { background: var(--paper); width: 100%; max-width: 640px; border-radius: 24px 24px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom, 0px)); max-height: 92vh; max-height: 92dvh; display: flex; flex-direction: column; animation: sube .25s ease-out }
@keyframes sube { from { transform: translateY(40px) } }
@media (min-width: 700px) { .fondo { align-items: center } .hoja { border-radius: 24px } }
.hoja-cab { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px }
.hoja-cab h2 { font-size: 21px }
.hoja-cuerpo { overflow-y: auto; flex: 1; min-height: 0; margin: 0 -16px; padding: 0 16px }
.hoja .hilo { min-height: 160px }

/* ---------- aviso flotante ---------- */
.toast { position: fixed; left: 50%; bottom: calc(86px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%) translateY(20px); background: var(--ink); color: var(--paper); padding: 13px 18px; border-radius: 14px; font-weight: 700; opacity: 0; pointer-events: none; transition: all .25s; z-index: 70; width: max-content; max-width: calc(100vw - 32px); text-align: center; box-shadow: var(--sombra) }
.toast.ver { opacity: 1; transform: translateX(-50%) }
@media (min-width: 900px) { .toast { bottom: 28px } }

/* ---------- entrada ---------- */
.entrada { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px }
.entrada .caja { width: 100%; max-width: 440px }
.entrada .marca { display: flex; align-items: center; gap: 12px; margin-bottom: 26px }
.entrada .marca svg { width: 48px; height: 48px }
.entrada h1 { font-size: 30px; font-weight: 800; margin-bottom: 8px }
.codigo-input { font-size: 30px !important; letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums }
.separador { display: flex; align-items: center; gap: 12px; color: var(--ink-soft); font-size: 14px; margin: 26px 0 14px }
.separador::before, .separador::after { content: ""; flex: 1; height: 1px; background: var(--line) }
.cargando { display: grid; place-items: center; min-height: 40vh; color: var(--ink-soft) }
.girar { width: 34px; height: 34px; border: 4px solid var(--line); border-top-color: var(--paramo); border-radius: 50%; animation: gira 1s linear infinite }
@keyframes gira { to { transform: rotate(360deg) } }

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