/* =====================================================================
   MenuPY — estilos del menú público y del seguimiento
   Los colores principales se cambian en js/config.js
   ===================================================================== */
@font-face { font-family: 'Anton'; src: url('../fonts/anton.woff') format('woff'); font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('../fonts/dmsans.woff') format('woff'); font-weight: 100 1000; font-display: swap; }

:root {
  --pri: #9b1c1c;
  --pri-osc: #6f1212;
  --acento: #f5b819;
  --fondo: #f6f1ea;
  --tarjeta: #ffffff;
  --texto: #1f1a17;
  --gris: #6d645c;
  --borde: #e9e1d7;
  --verde: #1d8a4a;
  --rojo: #c0262d;
  --radio: 16px;
  --sombra: 0 1px 2px rgba(40, 20, 10, .06), 0 6px 18px rgba(40, 20, 10, .06);
  --titulo: 'Anton', 'Arial Narrow', 'Roboto Condensed', Impact, sans-serif;
  --cuerpo: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ancho: 720px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--fondo); color: var(--texto);
  font-family: var(--cuerpo); font-size: 16px; line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}
body:not(.admin) { padding-top: env(safe-area-inset-top); }
body.bloqueado { overflow: hidden; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
body.sin-datos .hero-in, body.sin-datos #pie-dir, body.sin-datos #firma { visibility: hidden; }
.oculto-accesible { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Encabezado ---------- */
.hero {
  background:
    radial-gradient(circle at 85% -20%, rgba(255, 255, 255, .14), transparent 45%),
    radial-gradient(circle at 0% 120%, rgba(0, 0, 0, .25), transparent 50%),
    var(--pri);
  color: #fff;
  border-bottom: 4px solid var(--acento);
}
.hero-in {
  max-width: var(--ancho); margin: 0 auto; padding: 18px 16px 18px;
  display: flex; gap: 14px; align-items: center;
}
.hero-logo {
  width: 86px; height: 86px; flex: none; border-radius: 50%;
  background: #fff; padding: 3px; box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
}
.hero-logo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.hero h1 { font-family: var(--titulo); font-weight: 400; font-size: 34px; line-height: 1.05; margin: 0; letter-spacing: .3px; }
.hero .eslogan { margin: 2px 0 0; font-size: 14px; opacity: .85; }
.hero .horario { margin: 4px 0 8px; font-size: 13.5px; opacity: .9; }
.estado {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 999px;
  background: var(--acento); color: var(--acento-txt, #2a1a05); font-weight: 700; font-size: 13px;
}
.estado::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #1d8a4a; box-shadow: 0 0 0 3px rgba(29, 138, 74, .25); }
.estado.cerrado { background: rgba(255, 255, 255, .16); color: #fff; }
.estado.cerrado::before { background: #ff8a80; box-shadow: none; }

/* ---------- Categorías (chips) ---------- */
.chips-wrap {
  position: sticky; top: env(safe-area-inset-top); z-index: 20;
  background: rgba(246, 241, 234, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--borde);
}
.chips {
  max-width: var(--ancho); margin: 0 auto; display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px 8px 9px; border-radius: 12px;
  background: #fff; border: 1px solid var(--borde); font-weight: 600; font-size: 14.5px; white-space: nowrap;
  transition: background .15s, border-color .15s;
}
.chip .ico { width: 26px; height: 26px; display: grid; place-items: center; background: var(--fondo); border-radius: 8px; font-size: 16px; }
.chip.activa { background: var(--acento); border-color: var(--acento); color: var(--acento-txt, #2a1a05); }
.chip.activa .ico { background: rgba(255, 255, 255, .55); }

/* ---------- Buscador ---------- */
.contenido { max-width: var(--ancho); margin: 0 auto; padding: 14px 16px 130px; }
.buscar { position: relative; margin-bottom: 6px; }
.buscar input {
  width: 100%; padding: 13px 14px 13px 44px; border-radius: 14px; border: 1px solid var(--borde);
  background: #fff; font-size: 16px; outline: none; transition: border-color .15s, box-shadow .15s;
}
.buscar input:focus { border-color: var(--pri); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pri) 15%, transparent); }
.buscar svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--gris); }

.aviso-ultimo {
  display: flex; align-items: center; gap: 10px; margin: 10px 0 0; padding: 12px 14px; border-radius: 14px;
  background: #fff; border: 1px solid var(--borde); box-shadow: var(--sombra); text-decoration: none;
}
.aviso-ultimo b { color: var(--pri); }
.aviso-ultimo .flecha { margin-left: auto; font-weight: 700; color: var(--pri); white-space: nowrap; }

/* ---------- Secciones ---------- */
.seccion { scroll-margin-top: 70px; padding-top: 18px; }
.seccion h2 {
  font-family: var(--titulo); font-weight: 400; font-size: 28px; color: var(--pri); margin: 0 0 12px;
  display: inline-block; position: relative; padding-bottom: 6px; letter-spacing: .2px;
}
.seccion h2::after { content: ''; position: absolute; left: 0; bottom: 0; width: 56px; height: 4px; border-radius: 4px; background: var(--acento); }
.vacio { text-align: center; color: var(--gris); padding: 30px 10px; }

/* ---------- Tarjeta de producto (lista) ---------- */
.lista { display: grid; gap: 12px; }
@media (min-width: 700px) { .lista { grid-template-columns: 1fr 1fr; } }
.prod {
  display: flex; gap: 14px; background: var(--tarjeta); border-radius: var(--radio); padding: 12px; box-shadow: var(--sombra);
  border: 1px solid rgba(0, 0, 0, .03); position: relative;
}
.prod-img {
  width: 108px; height: 108px; flex: none; border-radius: 12px; overflow: hidden;
  background: radial-gradient(circle at 50% 40%, #fff, #f3ece3);
}
.prod-img img { width: 100%; height: 100%; object-fit: cover; }
.prod-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.prod-nombre { font-weight: 700; font-size: 16.5px; line-height: 1.2; margin: 2px 0 3px; }
.prod-desc {
  color: var(--gris); font-size: 13.5px; margin: 0 0 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.precio { font-family: var(--titulo); font-weight: 400; color: var(--pri); font-size: 21px; letter-spacing: .3px; line-height: 1.1; }
.precio small { font-family: var(--cuerpo); font-weight: 600; font-size: 12px; color: var(--gris); letter-spacing: 0; margin-right: 3px; }
.prod-pie { margin-top: auto; padding-top: 8px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.en-carrito { font-size: 12.5px; font-weight: 700; color: var(--verde); background: #e7f5ec; padding: 4px 8px; border-radius: 8px; }

.btn-agregar {
  background: var(--acento); color: var(--acento-txt, #2a1a05); font-weight: 800; font-size: 15px; padding: 10px 18px; border-radius: 11px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .12); transition: transform .08s, background .2s; min-width: 112px;
}
.btn-agregar:active { transform: scale(.96); }
.btn-agregar.ok { background: var(--verde); color: #fff; }
.btn-agregar:disabled, .btn-agregar.agotado { background: #ece7e1; color: #9a9189; box-shadow: none; cursor: default; }
.es-agotado .prod-img img { filter: grayscale(.8); opacity: .65; }

/* ---------- Lo más pedido (carrusel) ---------- */
.carrusel {
  display: grid; grid-auto-flow: column; grid-auto-columns: 168px; gap: 12px; overflow-x: auto;
  scroll-snap-type: x mandatory; padding: 2px 16px 10px; margin: 0 -16px; scrollbar-width: none;
}
.carrusel::-webkit-scrollbar { display: none; }
.dest {
  scroll-snap-align: start; background: var(--tarjeta); border-radius: var(--radio); box-shadow: var(--sombra);
  padding: 10px; display: flex; flex-direction: column;
}
.dest .prod-img { width: 100%; height: 132px; margin-bottom: 8px; }
.dest .prod-nombre { font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 36px; }
.dest .btn-agregar { width: 100%; margin-top: 8px; min-width: 0; }
.dest .prod-pie { padding-top: 4px; }

/* ---------- Barra del carrito ---------- */
.barra-carrito {
  position: fixed; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  width: calc(100% - 24px); max-width: calc(var(--ancho) - 24px); z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--pri); color: #fff; padding: 15px 18px; border-radius: 16px;
  box-shadow: 0 10px 30px rgba(60, 10, 10, .35); font-weight: 700; font-size: 16.5px;
  animation: subir .25s ease-out;
}
.barra-carrito .total { font-family: var(--titulo); font-weight: 400; color: var(--acento); font-size: 22px; letter-spacing: .4px; }
.barra-carrito .cant {
  display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 13px;
  background: #fff; color: var(--pri); font-size: 14px; margin-left: 4px;
}
.barra-carrito.salta { animation: salto .35s; }
@keyframes subir { from { transform: translate(-50%, 120%); } to { transform: translate(-50%, 0); } }
@keyframes salto { 30% { transform: translate(-50%, 0) scale(1.04); } }

/* ---------- Avisos ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px);
  background: #1f1a17; color: #fff; padding: 11px 16px; border-radius: 12px; font-size: 14.5px; font-weight: 600;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 80; max-width: calc(100% - 40px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}
.toast.ver { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Modal de opciones ---------- */
.fondo-modal {
  position: fixed; inset: 0; z-index: 50; background: rgba(20, 10, 5, .55);
  display: flex; align-items: flex-end; justify-content: center; animation: aparecer .2s;
}
@keyframes aparecer { from { opacity: 0; } }
.modal {
  background: var(--fondo); width: 100%; max-width: 560px; max-height: 94vh; max-height: 94dvh;
  border-radius: 22px 22px 0 0; display: flex; flex-direction: column; overflow: hidden; animation: hoja .25s ease-out;
}
@keyframes hoja { from { transform: translateY(40px); opacity: .4; } }
@media (min-width: 700px) { .fondo-modal { align-items: center; } .modal { border-radius: 22px; } }
.modal-cab { position: relative; background: #fff; }
.modal-cab .foto { height: 190px; background: radial-gradient(circle at 50% 45%, #fff, #efe6da); }
.modal-cab .foto img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.modal-cab .foto img.es-foto { object-fit: cover; padding: 0; }
.modal-cab .txt { padding: 14px 18px 12px; }
.modal-cab h3 { font-family: var(--titulo); font-weight: 400; font-size: 26px; margin: 0; color: var(--pri); line-height: 1.1; }
.modal-cab p { margin: 4px 0 0; color: var(--gris); font-size: 14px; }
.cerrar-x {
  position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255, 255, 255, .95); box-shadow: 0 2px 8px rgba(0, 0, 0, .15); font-size: 20px; line-height: 1; z-index: 2;
}
.modal-cuerpo { overflow-y: auto; padding: 6px 18px 18px; flex: 1; overscroll-behavior: contain; }
.modal-pie {
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--borde);
  display: flex; gap: 12px; align-items: center;
}
.paso-txt { font-size: 12.5px; font-weight: 700; color: var(--gris); text-transform: uppercase; letter-spacing: .6px; margin: 12px 0 2px; }
.barra-pasos { display: flex; gap: 5px; margin: 8px 0 4px; }
.barra-pasos i { flex: 1; height: 5px; border-radius: 3px; background: var(--borde); }
.barra-pasos i.hecho { background: var(--acento); }

.grupo { margin-top: 16px; }
.grupo-tit { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.grupo-tit h4 { margin: 0; font-size: 17px; }
.grupo-tit h4.grande { font-family: var(--titulo); font-weight: 400; color: var(--pri); font-size: 25px; }
.etq { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; padding: 3px 8px; border-radius: 6px; background: #efe7dc; color: var(--gris); white-space: nowrap; }
.etq.req { background: var(--pri); color: #fff; }
.etq.error { background: var(--rojo); color: #fff; }
.opc {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 13px 14px; margin-bottom: 8px;
  background: #fff; border: 2px solid var(--borde); border-radius: 13px; transition: border-color .12s, background .12s;
}
.opc .marca { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 2px solid #c9bfb2; display: grid; place-items: center; }
.opc.multi .marca { border-radius: 6px; }
.opc.sel { border-color: var(--pri); background: #fff7f5; background: color-mix(in srgb, var(--pri) 6%, #fff); }
.opc.sel .marca { border-color: var(--pri); background: var(--pri); }
.opc.sel .marca::after { content: '✓'; color: #fff; font-size: 13px; font-weight: 900; }
.opc .nom { flex: 1; font-weight: 600; }
.opc .pr { font-weight: 700; color: var(--pri); white-space: nowrap; font-size: 14.5px; }
.opc:disabled { opacity: .5; }
.opc:disabled .pr { color: var(--gris); }

.mitad-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.mitad-toggle button { padding: 11px; border-radius: 12px; background: #fff; border: 2px solid var(--borde); font-weight: 700; }
.mitad-toggle button.sel { border-color: var(--pri); background: var(--pri); color: #fff; }
.sabores { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 480px) { .sabores { grid-template-columns: repeat(3, 1fr); } }
.sabor {
  position: relative; background: #fff; border: 2px solid var(--borde); border-radius: 14px; padding: 8px 8px 10px;
  text-align: center; font-weight: 700; font-size: 14px; transition: border-color .12s, transform .08s;
}
.sabor:active { transform: scale(.97); }
.sabor img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; margin-bottom: 6px; }
.sabor .extra { display: block; font-size: 12px; color: var(--pri); font-weight: 700; }
.sabor.sel { border-color: var(--pri); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pri) 18%, transparent); }
.sabor .num {
  position: absolute; top: 6px; left: 6px; background: var(--pri); color: #fff; font-size: 11.5px; font-weight: 800;
  padding: 3px 7px; border-radius: 8px;
}
.sabor:disabled { opacity: .45; }
.sabor:disabled::after { content: 'Agotado'; position: absolute; top: 40%; left: 50%; transform: translate(-50%, -50%) rotate(-8deg); background: #1f1a17; color: #fff; padding: 3px 8px; border-radius: 6px; font-size: 12px; }

.resumen-item { background: #fff; border-radius: 14px; padding: 14px; border: 1px solid var(--borde); }
.resumen-item b { display: block; font-size: 16px; margin-bottom: 3px; }
.resumen-item span { color: var(--gris); font-size: 14.5px; }

.cantidad { display: inline-flex; align-items: center; background: #fff; border: 1px solid var(--borde); border-radius: 12px; overflow: hidden; flex: none; }
.cantidad button { width: 42px; height: 44px; font-size: 22px; font-weight: 700; color: var(--pri); }
.cantidad button:disabled { color: #cfc6bb; }
.cantidad output { min-width: 30px; text-align: center; font-weight: 800; font-size: 17px; }
.cantidad.chica button { width: 36px; height: 36px; font-size: 19px; }
.cantidad.chica output { min-width: 24px; font-size: 15px; }

.btn-pri {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 16px; border-radius: 14px;
  background: var(--acento); color: var(--acento-txt, #2a1a05); font-weight: 800; font-size: 16.5px; text-decoration: none; text-align: center;
  box-shadow: 0 3px 0 rgba(0, 0, 0, .12); transition: transform .08s, opacity .2s;
}
.btn-pri:active { transform: scale(.98); }
.btn-pri.inactivo { opacity: .55; }
.btn-pri.verde { background: #25d366; color: #fff; }
.btn-sec {
  display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; padding: 13px; border-radius: 13px;
  background: #fff; border: 1px solid var(--borde); font-weight: 700; color: var(--pri); text-decoration: none;
}
textarea.nota, input.campo, select.campo {
  width: 100%; padding: 13px 14px; border-radius: 12px; border: 1.5px solid var(--borde); background: #fff; outline: none; font-size: 16px;
}
textarea.nota { min-height: 64px; resize: vertical; }
textarea.nota:focus, input.campo:focus, select.campo:focus { border-color: var(--pri); }
input.campo.mal { border-color: var(--rojo); background: #fff6f6; }

/* ---------- Hoja de checkout (pantalla completa) ---------- */
.hoja {
  position: fixed; inset: 0; z-index: 60; background: var(--fondo); display: flex; flex-direction: column;
  animation: entrar .22s ease-out;
}
@keyframes entrar { from { transform: translateY(24px); opacity: .5; } }
.hoja-cab { background: var(--pri); color: #fff; border-bottom: 4px solid var(--acento); }
.hoja-cab .in { max-width: var(--ancho); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; padding-top: calc(14px + env(safe-area-inset-top)); }
.hoja-cab h2 { font-family: var(--titulo); font-weight: 400; font-size: 27px; margin: 0; letter-spacing: .3px; }
.hoja-cab button { background: rgba(255, 255, 255, .16); color: #fff; padding: 8px 14px; border-radius: 10px; font-weight: 700; font-size: 14px; }
.hoja-cuerpo { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.hoja-cuerpo .in { max-width: var(--ancho); margin: 0 auto; padding: 6px 16px 30px; }
.hoja-pie { background: #fff; border-top: 1px solid var(--borde); box-shadow: 0 -6px 20px rgba(0, 0, 0, .06); }
.hoja-pie .in { max-width: var(--ancho); margin: 0 auto; padding: 10px 16px calc(12px + env(safe-area-inset-bottom)); }

.bloque { margin-top: 22px; }
.bloque > h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-family: var(--titulo); font-weight: 400; font-size: 23px; letter-spacing: .2px; }
.bloque > h3 .n { width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--pri); color: #fff; display: grid; place-items: center; font-family: var(--cuerpo); font-weight: 800; font-size: 15px; }
.bloque.error > h3 { color: var(--rojo); }
.caja { background: #fff; border-radius: 14px; border: 1px solid var(--borde); padding: 14px; }
.linea { padding: 12px 0; border-bottom: 1px solid var(--borde); }
.linea:first-child { padding-top: 0; }
.linea:last-child { border-bottom: 0; padding-bottom: 0; }
.linea-top { display: flex; gap: 10px; align-items: flex-start; }
.linea-top .txt { flex: 1; min-width: 0; }
.linea-top .txt b { display: block; font-size: 15.5px; }
.linea-top .txt span { display: block; color: var(--gris); font-size: 13.5px; }
.linea-top .pr { font-family: var(--titulo); font-size: 19px; color: var(--pri); white-space: nowrap; letter-spacing: .3px; }
.linea-acc { display: flex; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.link-btn { color: var(--pri); font-weight: 700; font-size: 14px; padding: 6px 0; text-decoration: underline; text-underline-offset: 3px; }
.quitar { color: var(--rojo); font-weight: 700; font-size: 13.5px; padding: 8px 10px; border-radius: 9px; background: #fdf0f0; }
.linea .nota { margin-top: 8px; min-height: 48px; font-size: 15px; }

.dos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.eleccion {
  text-align: left; padding: 14px; border-radius: 14px; background: #fff; border: 2px solid var(--borde); min-height: 74px;
  transition: background .12s, border-color .12s;
}
.eleccion b { display: block; font-size: 16px; }
.eleccion span { display: block; font-size: 13px; color: var(--gris); margin-top: 2px; }
.eleccion.sel { background: var(--pri); border-color: var(--pri); color: #fff; }
.eleccion.sel span { color: rgba(255, 255, 255, .85); }
.nota-info { margin-top: 10px; padding: 11px 13px; border-radius: 12px; background: #fff7e0; border: 1px solid #f6e2a6; font-size: 14px; }
.ubicacion { margin-top: 12px; border: 2px solid var(--borde); border-radius: 16px; padding: 14px; background: #fff; }
.ubicacion.lista { border-color: var(--verde); background: #f3fbf6; }
.ubicacion.falta { border-color: var(--rojo); }
.ubi-tit { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-family: var(--titulo); font-weight: 400; font-size: 21px; }
.btn-ubi {
  width: 100%; padding: 14px; border-radius: 13px; background: var(--pri); color: #fff; font-weight: 800; font-size: 16px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.ubicacion.lista .btn-ubi { background: var(--verde); }
.ubi-det { font-size: 14px; color: var(--gris); margin: 8px 0 0; }
.ubi-det a, .ubi-det button { color: var(--pri); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; padding: 0; }
.ubi-otras { margin-top: 10px; border-top: 1px dashed var(--borde); padding-top: 10px; }
.ubi-otras summary { cursor: pointer; font-weight: 700; color: var(--pri); font-size: 14.5px; list-style: none; }
.ubi-otras summary::-webkit-details-marker { display: none; }
.ubi-otras summary::before { content: '▸ '; }
.ubi-otras[open] summary::before { content: '▾ '; }
.ubi-otras ol { margin: 8px 0; padding-left: 20px; font-size: 14px; color: var(--gris); }
.etiqueta { display: block; font-weight: 700; font-size: 14.5px; margin: 14px 0 6px; }
.ayuda { font-size: 12.5px; color: var(--gris); margin: 6px 0 0; }
.error-txt { color: var(--rojo); font-size: 13.5px; font-weight: 700; margin: 6px 0 0; }
.ok-txt { color: var(--verde); font-weight: 700; }

.montos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.monto { padding: 10px; border-radius: 12px; background: #fff; border: 2px solid var(--borde); text-align: center; }
.monto b { display: block; font-size: 15.5px; }
.monto span { display: block; font-size: 12px; color: var(--gris); }
.monto.sel { background: var(--pri); border-color: var(--pri); color: #fff; }
.monto.sel span { color: rgba(255, 255, 255, .85); }
.transfer { margin-top: 12px; border: 2px dashed color-mix(in srgb, var(--pri) 45%, transparent); border-radius: 14px; padding: 12px 14px; background: #fffdf8; }
.transfer h4 { margin: 0 0 6px; font-size: 15px; }
.dato { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--borde); }
.dato:last-of-type { border-bottom: 0; }
.dato small { display: block; color: var(--gris); font-size: 12px; }
.dato b { font-size: 15.5px; }
.copiar { background: var(--pri); color: #fff; font-weight: 700; font-size: 13px; padding: 7px 12px; border-radius: 9px; flex: none; }

.totales { display: grid; gap: 3px; margin-bottom: 10px; font-size: 14.5px; }
.totales div { display: flex; justify-content: space-between; }
.totales .tot { font-family: var(--titulo); font-size: 22px; color: var(--pri); letter-spacing: .3px; margin-top: 2px; }
.totales .tot span:first-child { color: var(--texto); }
.aviso-cerrado { text-align: center; font-weight: 700; color: var(--rojo); margin: 0 0 8px; font-size: 14px; }

/* ---------- Pantalla "Listo" ---------- */
.listo { max-width: 520px; margin: 0 auto; padding: 30px 20px calc(30px + env(safe-area-inset-bottom)); text-align: center; }
.listo .check { width: 84px; height: 84px; margin: 10px auto 14px; border-radius: 50%; background: #25d366; color: #fff; font-size: 44px; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(37, 211, 102, .35); }
.listo h2 { font-family: var(--titulo); font-weight: 400; font-size: 32px; margin: 0 0 6px; color: var(--pri); }
.listo p { color: var(--gris); margin: 6px 0; }
.listo .codigo { display: inline-block; font-family: var(--titulo); font-size: 26px; letter-spacing: 2px; background: #fff; border: 2px dashed var(--borde); padding: 6px 16px; border-radius: 12px; margin: 8px 0 14px; color: var(--texto); }
.listo .grande { font-size: 17px; color: var(--texto); font-weight: 600; }
.listo .acciones { display: grid; gap: 10px; margin-top: 20px; }

.pie { text-align: center; color: var(--gris); font-size: 13px; padding: 24px 0 0; }
.pie a { color: var(--pri); font-weight: 700; }
.modo-demo { text-align: center; font-size: 12px; font-weight: 700; padding: 6px; background: #1f1a17; color: #f5d48a; letter-spacing: .3px; }

/* ---------- Seguimiento ---------- */
.seg-caja { background: #fff; border-radius: 18px; box-shadow: var(--sombra); padding: 18px; margin-top: 16px; }
.seg-estado { font-family: var(--titulo); font-weight: 400; font-size: 28px; margin: 4px 0 2px; line-height: 1.1; }
.seg-sub { color: var(--gris); font-size: 14px; margin: 0; }
.pasos { list-style: none; padding: 0; margin: 18px 0 4px; }
.pasos li { position: relative; padding: 0 0 22px 40px; color: #a39a90; font-weight: 600; }
.pasos li::before { content: ''; position: absolute; left: 6px; top: 1px; width: 18px; height: 18px; border-radius: 50%; border: 3px solid #ddd3c7; background: #fff; }
.pasos li::after { content: ''; position: absolute; left: 15px; top: 24px; bottom: 2px; width: 3px; background: #e9e1d7; }
.pasos li:last-child { padding-bottom: 0; }
.pasos li:last-child::after { display: none; }
.pasos li.hecho { color: var(--texto); }
.pasos li.hecho::before { background: var(--verde); border-color: var(--verde); }
.pasos li.hecho::after { background: var(--verde); }
.pasos li.actual { color: var(--texto); font-weight: 800; }
.pasos li.actual::before { background: var(--acento); border-color: var(--acento); box-shadow: 0 0 0 6px color-mix(in srgb, var(--acento) 30%, transparent); animation: latido 1.6s infinite; }
@keyframes latido { 50% { box-shadow: 0 0 0 10px transparent; } }
.seg-items { margin: 0; padding: 0; list-style: none; font-size: 14.5px; }
.seg-items li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--borde); }
.seg-items li span:first-child { color: var(--texto); }
.seg-items li small { display: block; color: var(--gris); }

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

/* Firma del desarrollador */
.firma { text-align: center; color: var(--gris); font-size: 12px; padding: 14px 0 6px; margin: 0; opacity: .85; }
.firma a { color: inherit; text-decoration: none; }
.firma-marca { font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, 'Liberation Mono', monospace; letter-spacing: -.2px; }
.firma-marca b { color: var(--texto); font-weight: 700; }
.firma a:hover .firma-marca b, .firma a:focus .firma-marca b { color: var(--pri); }

/* Menú guardado cuando no hay conexión con el sistema */
.aviso-copia { display: flex; gap: 8px; align-items: flex-start; background: #fff4e5; border: 1.5px solid #f5c27a; color: #7a3e00; border-radius: 14px; padding: 10px 12px; margin: 0 0 12px; font-size: 13.5px; font-weight: 600; line-height: 1.4; }
