/* ───────────────────────── Santo Maíz · marca ─────────────────────────
   Colores y tipografía tomados del logo y del menú: negro brasa, dorado maíz y blanco.
   Todo se centraliza aquí para cambiarlo fácil. */
:root {
  --negro: #0a0806;
  --sup: #13100c;
  --sup-2: #1b1611;
  --sup-3: #241d16;
  --borde: #2f261c;
  --borde-fuerte: #4a3c2b;
  --dorado: #f4b81e;
  --dorado-claro: #ffd65e;
  --dorado-oscuro: #c58b0a;
  --dorado-tenue: rgba(244, 184, 30, .12);
  --texto: #f7f2e8;
  --texto-2: #cfc5b3;
  --texto-3: #978c79;
  --rojo: #ef5350;
  --rojo-tenue: rgba(239, 83, 80, .14);
  --ambar: #ffa726;
  --ambar-tenue: rgba(255, 167, 38, .14);
  --azul: #64b5f6;

  --f-cuerpo: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-titulo: 'Oswald', 'Arial Narrow', Impact, sans-serif;
  --f-mano: 'Caveat', 'Segoe Print', 'Comic Sans MS', cursive;
  --f-pincel: 'Kaushan Script', 'Brush Script MT', cursive;

  --radio: 14px;
  --radio-s: 10px;
  --sombra: 0 10px 30px rgba(0, 0, 0, .45);
  --rapido: 160ms;
  --medio: 240ms;
  --curva: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--negro); color: var(--texto); font-family: var(--f-cuerpo);
  font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--dorado-claro); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; }
p { margin: 0; }
.oculto { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--dorado-claro); outline-offset: 2px; border-radius: 6px; }

/* ───────── Botones ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; padding: .6rem 1.15rem; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: .95rem; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background var(--rapido) var(--curva), border-color var(--rapido), transform var(--rapido), opacity var(--rapido);
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-primario { background: var(--dorado); color: #1a1205; }
.btn-primario:hover:not([disabled]) { background: var(--dorado-claro); }
.btn-borde { border-color: var(--borde-fuerte); background: transparent; color: var(--texto); }
.btn-borde:hover:not([disabled]) { border-color: var(--dorado); color: var(--dorado-claro); }
.btn-suave { background: var(--sup-3); color: var(--texto); }
.btn-suave:hover:not([disabled]) { background: #2e251c; }
.btn-peligro { background: transparent; border-color: rgba(239, 83, 80, .5); color: #ff8a80; }
.btn-peligro:hover:not([disabled]) { background: var(--rojo-tenue); }
.btn-grande { min-height: 54px; padding: .8rem 1.6rem; font-size: 1.05rem; }
.btn-bloque { width: 100%; }
.btn-chico { min-height: 36px; padding: .35rem .8rem; font-size: .85rem; }
.btn-icono { width: 44px; min-height: 44px; padding: 0; border-radius: 12px; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ───────── Formularios ───────── */
.campo { display: grid; gap: .35rem; align-content: start; }
.campo > span, .etiqueta { font-size: .85rem; font-weight: 600; color: var(--texto-2); }
.campo .ayuda { font-size: .78rem; color: var(--texto-3); font-weight: 500; }
.campo .error { font-size: .8rem; color: #ff8a80; font-weight: 600; }
.req::after { content: ' *'; color: var(--dorado); }
.input, select.input, textarea.input {
  width: 100%; min-height: 46px; padding: .6rem .85rem; border-radius: var(--radio-s);
  background: var(--sup-2); border: 1px solid var(--borde); color: var(--texto); outline: none;
  transition: border-color var(--rapido);
}
.input:focus { border-color: var(--dorado); }
.input.invalido { border-color: var(--rojo); }
textarea.input { min-height: 80px; resize: vertical; }
.input-chico { min-height: 38px; padding: .35rem .6rem; font-size: .9rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  min-height: 44px; padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--borde-fuerte);
  background: var(--sup-2); cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--texto-2);
}
.chip[aria-pressed='true'], .chip.activo { background: var(--dorado-tenue); border-color: var(--dorado); color: var(--dorado-claro); }
.check { display: flex; gap: .65rem; align-items: flex-start; font-size: .88rem; color: var(--texto-2); cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--dorado); margin-top: 2px; flex: none; }
.interruptor { display: inline-flex; align-items: center; gap: .6rem; cursor: pointer; font-weight: 600; font-size: .9rem; }
.interruptor input { appearance: none; width: 46px; height: 26px; border-radius: 999px; background: var(--sup-3); border: 1px solid var(--borde-fuerte); position: relative; cursor: pointer; transition: background var(--rapido); flex: none; }
.interruptor input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--texto-3); transition: transform var(--rapido) var(--curva), background var(--rapido); }
.interruptor input:checked { background: var(--dorado-tenue); border-color: var(--dorado); }
.interruptor input:checked::after { transform: translateX(20px); background: var(--dorado); }
.paso { display: inline-flex; align-items: center; border: 1px solid var(--borde-fuerte); border-radius: 999px; overflow: hidden; }
.paso button { width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; font-size: 1.3rem; color: var(--dorado-claro); }
.paso button:hover { background: var(--sup-3); }
.paso output { min-width: 2.4rem; text-align: center; font-weight: 800; font-family: var(--f-titulo); font-size: 1.15rem; }
.honeypot { position: absolute; left: -9999px; opacity: 0; }

/* ───────── Insignias ───────── */
.insignia { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .6rem; border-radius: 999px; font-size: .74rem; font-weight: 700; letter-spacing: .02em; background: var(--sup-3); color: var(--texto-2); white-space: nowrap; }
.insignia svg { width: 13px; height: 13px; }
.insignia.dorada { background: var(--dorado-tenue); color: var(--dorado-claro); }
.insignia.roja { background: var(--rojo-tenue); color: #ff8a80; }
.insignia.ambar { background: var(--ambar-tenue); color: var(--ambar); }
.insignia.azul { background: rgba(100, 181, 246, .14); color: var(--azul); }
.insignia.simulado { background: rgba(100, 181, 246, .1); color: var(--azul); border: 1px dashed rgba(100, 181, 246, .5); }

/* ═════════════════════════ SITIO PÚBLICO ═════════════════════════ */
.cabecera {
  position: fixed; inset: 0 0 auto 0; z-index: 40; display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .7rem clamp(1rem, 4vw, 2.5rem); transition: background var(--medio), backdrop-filter var(--medio), border-color var(--medio);
  border-bottom: 1px solid transparent;
}
.cabecera.solida { background: rgba(10, 8, 6, .92); backdrop-filter: blur(10px); border-bottom-color: var(--borde); }
.cabecera .marca { display: flex; align-items: center; text-decoration: none; }
.cabecera .marca img { height: 44px; width: auto; }
.nav-publica { display: flex; gap: 1.6rem; align-items: center; }
.nav-publica a { color: var(--texto-2); text-decoration: none; font-weight: 600; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; }
.nav-publica a:hover { color: var(--dorado-claro); }
.acciones-cab { display: flex; gap: .5rem; align-items: center; }
.btn-carrito { position: relative; }
.btn-carrito .contador { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; border-radius: 999px; background: var(--dorado); color: #1a1205; font-size: .72rem; font-weight: 800; display: grid; place-items: center; padding: 0 5px; }
.solo-movil { display: none; }

.portada {
  position: relative; min-height: 100svh; display: grid; align-items: start; justify-items: center; text-align: center;
  padding: calc(5.5rem + env(safe-area-inset-top)) 1.25rem 2rem; overflow: hidden; isolation: isolate;
}
.portada-foto { position: absolute; inset: auto 0 0 0; height: 62%; z-index: -2; -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 42%); mask-image: linear-gradient(180deg, transparent 0%, #000 42%); }
.portada-foto img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; }
.portada-foto::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 8, 6, .6) 0%, rgba(10, 8, 6, .45) 35%, rgba(10, 8, 6, .05) 70%, rgba(10, 8, 6, .55) 100%); }
.portada::after { content: ''; position: absolute; inset: 0; z-index: -3; background: radial-gradient(120% 70% at 50% 20%, #1d140a 0%, var(--negro) 60%); }
.brasas { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.brasas i { position: absolute; bottom: -10px; width: 3px; height: 3px; border-radius: 50%; background: var(--dorado-claro); box-shadow: 0 0 8px 2px rgba(255, 170, 40, .7); opacity: 0; animation: brasa linear infinite; }
@keyframes brasa { 0% { transform: translate(0, 0); opacity: 0; } 10% { opacity: .9; } 100% { transform: translate(var(--dx, 20px), -75vh); opacity: 0; } }
.portada-logo { width: min(520px, 86vw); filter: drop-shadow(0 6px 30px rgba(244, 184, 30, .18)); }
.portada h1 { margin-top: 1rem; font-family: var(--f-cuerpo); font-weight: 800; font-size: clamp(1.7rem, 5.2vw, 3.1rem); letter-spacing: -.01em; text-shadow: 0 4px 24px rgba(0, 0, 0, .8); }
.portada h1 .linea2 { display: block; font-weight: 700; font-size: .72em; margin-top: .25rem; }
.portada h1 em { font-style: normal; color: var(--dorado); }
.portada .cta .btn-borde { background: rgba(10, 8, 6, .55); backdrop-filter: blur(4px); }
.portada .cta { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
.aviso-ventas { margin-top: 1rem; display: inline-flex; gap: .5rem; align-items: center; background: var(--rojo-tenue); color: #ffb4ab; border: 1px solid rgba(239, 83, 80, .4); padding: .55rem 1rem; border-radius: 999px; font-weight: 600; font-size: .9rem; }

.seccion { padding: clamp(3.5rem, 9vw, 6.5rem) clamp(1.1rem, 4vw, 2.5rem); }
.contenedor { max-width: 1140px; margin: 0 auto; }
.encabezado-sec { text-align: center; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.cejilla { display: inline-flex; align-items: center; gap: .8rem; color: var(--dorado); font-weight: 700; font-size: .78rem; letter-spacing: .28em; text-transform: uppercase; }
.cejilla::before, .cejilla::after { content: ''; width: 34px; height: 1px; background: currentColor; opacity: .7; }
.encabezado-sec h2 { margin-top: .6rem; font-family: var(--f-titulo); font-weight: 600; font-size: clamp(2.2rem, 6vw, 3.6rem); letter-spacing: .02em; text-transform: uppercase; }
.encabezado-sec h2 .adorno { color: var(--dorado); font-size: .5em; vertical-align: middle; margin: 0 .5rem; }
.encabezado-sec p { margin: .8rem auto 0; max-width: 620px; color: var(--texto-2); }
.mano { font-family: var(--f-mano); font-weight: 700; color: var(--dorado); font-size: 1.45rem; line-height: 1.2; }

.sellos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding: 1.4rem clamp(1rem, 4vw, 2.5rem); border-block: 1px solid var(--borde); background: var(--sup); }
.sello { display: flex; align-items: center; justify-content: center; gap: .8rem; text-transform: uppercase; font-size: .78rem; letter-spacing: .1em; font-weight: 600; color: var(--texto-2); }
.sello .ico { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--dorado); display: grid; place-items: center; color: var(--dorado); flex: none; }
.sello .ico svg { width: 22px; height: 22px; }

.historia { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(1.8rem, 5vw, 4rem); align-items: center; }
.historia .texto { display: grid; gap: 1rem; color: var(--texto-2); }
.historia .texto h2 { font-family: var(--f-titulo); text-transform: uppercase; font-size: clamp(2rem, 5vw, 3rem); color: var(--texto); font-weight: 600; }
.historia .foto { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 3.4; border: 1px solid var(--borde); }
.historia .foto img { width: 100%; height: 100%; object-fit: cover; }
.marcador { border: 1px dashed var(--borde-fuerte); border-radius: var(--radio-s); padding: .8rem 1rem; color: var(--texto-3); font-size: .85rem; background: rgba(255, 255, 255, .02); }

.menu-lista { display: grid; gap: clamp(2.5rem, 7vw, 4.5rem); }
.plato { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.plato:nth-child(even) .plato-foto { order: 2; }
.plato-foto { position: relative; justify-self: center; width: min(430px, 100%); aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 6px solid #120e0a; box-shadow: 0 0 0 1px var(--borde-fuerte), 0 30px 60px rgba(0, 0, 0, .55); }
.plato-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--curva); }
.plato:hover .plato-foto img { transform: scale(1.04); }
.plato-info { display: grid; gap: .7rem; justify-items: start; }
.plato-info .titulo { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.plato-info h3 { font-family: var(--f-titulo); font-size: clamp(2rem, 4.5vw, 2.7rem); font-weight: 600; text-transform: uppercase; letter-spacing: .02em; }
.plato-info .icono-plato { width: 34px; height: 34px; color: var(--dorado); }
.plato-info .ingredientes { color: var(--texto-2); max-width: 420px; }
.precio-caja { display: inline-flex; align-items: center; gap: .9rem; margin-top: .3rem; }
.precio-caja .precio { font-family: var(--f-titulo); font-size: 1.9rem; font-weight: 600; color: var(--dorado); }
.precio-caja .tam { border: 1px solid var(--borde-fuerte); padding: .2rem .6rem; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--texto-2); }
.etiqueta-nueva { background: var(--dorado); color: #1a1205; font-family: var(--f-titulo); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .15rem .7rem; border-radius: 4px; transform: rotate(-4deg); font-size: .9rem; }
.agotado { color: #ff8a80; font-weight: 700; }

.extras { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-top: clamp(3rem, 8vw, 5rem); }
.extra { display: flex; gap: 1.2rem; align-items: center; border: 1px solid var(--borde-fuerte); border-radius: 20px; padding: 1.2rem 1.4rem; background: linear-gradient(135deg, var(--sup-2), var(--sup)); }
.extra img { width: 86px; height: 110px; object-fit: cover; border-radius: 12px; flex: none; }
.extra.salsas img { width: 150px; height: 90px; }
.extra h3 { font-family: var(--f-titulo); text-transform: uppercase; font-size: 1.5rem; font-weight: 600; }
.extra p { color: var(--texto-2); font-size: .92rem; }

.pasos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; counter-reset: paso; }
.paso-card { border: 1px solid var(--borde); border-radius: 20px; padding: 1.6rem; background: var(--sup); position: relative; }
.paso-card::before { counter-increment: paso; content: counter(paso); font-family: var(--f-titulo); font-size: 3rem; color: var(--dorado); line-height: 1; display: block; margin-bottom: .6rem; }
.paso-card h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.paso-card p { color: var(--texto-2); font-size: .92rem; }

.visita { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.tarjeta-pub { border: 1px solid var(--borde); border-radius: 20px; padding: 1.6rem; background: var(--sup); display: grid; gap: .9rem; align-content: start; }
.tarjeta-pub h3 { font-family: var(--f-titulo); text-transform: uppercase; font-size: 1.5rem; font-weight: 600; }
.horario { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px dashed var(--borde); padding-bottom: .5rem; color: var(--texto-2); }
.horario b { color: var(--texto); font-weight: 600; }
.contacto { display: flex; gap: .8rem; align-items: center; color: var(--texto-2); text-decoration: none; }
.contacto svg { width: 22px; height: 22px; color: var(--dorado); flex: none; }

.pie { border-top: 1px solid var(--borde); padding: 2.5rem clamp(1rem, 4vw, 2.5rem) calc(6rem + env(safe-area-inset-bottom)); text-align: center; color: var(--texto-3); font-size: .85rem; display: grid; gap: .8rem; justify-items: center; }
.pie img { width: 200px; }
.pie a { color: var(--texto-2); }

.whatsapp-flotante { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 35; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: var(--sombra); text-decoration: none; }
.whatsapp-flotante svg { width: 30px; height: 30px; }
.seguir-flotante { position: fixed; right: 18px; bottom: calc(88px + env(safe-area-inset-bottom)); z-index: 35; width: 58px; height: 58px; border-radius: 50%; background: var(--dorado); color: #1a1205; display: grid; place-items: center; box-shadow: var(--sombra); text-decoration: none; }
.seguir-flotante svg { width: 28px; height: 28px; stroke-width: 2.4; }
.seguir-flotante .punto-activo { position: absolute; top: 4px; right: 4px; width: 14px; height: 14px; border-radius: 50%; background: #25d366; border: 2px solid var(--negro); }
.seguir-flotante .etiqueta-flotante { position: absolute; right: 68px; white-space: nowrap; background: var(--sup-3); color: var(--texto); border: 1px solid var(--borde-fuerte); padding: .35rem .7rem; border-radius: 999px; font-size: .8rem; font-weight: 700; opacity: 0; transform: translateX(6px); pointer-events: none; transition: opacity var(--rapido), transform var(--rapido); }
.seguir-flotante:hover .etiqueta-flotante, .seguir-flotante:focus-visible .etiqueta-flotante { opacity: 1; transform: none; }
.barra-carrito { position: fixed; left: 12px; right: 86px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 35; display: none; }
.barra-carrito.visible { display: block; animation: subir var(--medio) var(--curva); }
.barra-carrito .btn { width: 100%; justify-content: space-between; box-shadow: var(--sombra); }
@keyframes subir { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ───────── Opiniones: carrusel infinito de derecha a izquierda ───────── */
.opiniones { padding-inline: 0; overflow: hidden; }
.carrusel { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.carrusel-pista { display: flex; gap: 1rem; width: max-content; padding: .5rem 0 1rem; animation: desplazar var(--duracion, 40s) linear infinite; will-change: transform; }
@keyframes desplazar { from { transform: translateX(0); } to { transform: translateX(calc(-50% - .5rem)); } }
.opinion { margin: 0; width: min(320px, 78vw); flex: none; display: grid; gap: .7rem; align-content: start; padding: 1.3rem 1.3rem 1.1rem; border-radius: 20px; border: 1px solid var(--borde-fuerte); background: linear-gradient(160deg, var(--sup-2), var(--sup)); }
.opinion .comillas { color: var(--dorado); width: 30px; height: 30px; }
.opinion .comillas svg { width: 30px; height: 30px; }
.opinion blockquote { margin: 0; color: var(--texto); font-size: .98rem; line-height: 1.5; }
.opinion figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .7rem; font-size: .88rem; }
.opinion figcaption b { color: var(--dorado-claro); }
.opinion .tel { display: inline-flex; align-items: center; gap: .3rem; color: var(--texto-3); font-variant-numeric: tabular-nums; }
.opinion .tel svg { width: 14px; height: 14px; color: #25d366; }
.galeria { display: grid; gap: .5rem; }
.galeria > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; border: 1px solid var(--borde); }
.miniaturas { display: flex; gap: .5rem; }
.miniaturas button { width: 64px; height: 52px; padding: 0; border-radius: 10px; overflow: hidden; border: 2px solid transparent; background: none; cursor: pointer; }
.miniaturas button[aria-pressed='true'] { border-color: var(--dorado); }
.miniaturas img { width: 100%; height: 100%; object-fit: cover; }

/* Fotos del producto (panel) */
.fotos-producto { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .8rem; margin-bottom: .8rem; }
.foto-item { margin: 0; display: grid; gap: .4rem; }
.foto-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; border: 1px solid var(--borde); }
.foto-item.referencia img { opacity: .55; }
.foto-item figcaption { display: flex; align-items: center; justify-content: space-between; gap: .4rem; flex-wrap: wrap; }
.foto-item .btn-icono { width: 36px; min-height: 36px; }
.subir-foto { cursor: pointer; }
.mini-producto { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; flex: none; border: 1px solid var(--borde); }

.lista-opiniones { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1rem; }
.chat-cliente { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(37, 211, 102, .15); color: #25d366; vertical-align: middle; margin-left: .2rem; }
.chat-cliente svg { width: 16px; height: 16px; }
.mensaje-aviso { white-space: pre-line; word-break: break-word; }

/* ───────── Hojas (modal / panel lateral) ───────── */
.velo { position: fixed; inset: 0; z-index: 85; background: rgba(0, 0, 0, .65); display: flex; align-items: flex-end; justify-content: center; animation: aparecer var(--medio) var(--curva); }
@keyframes aparecer { from { opacity: 0; } to { opacity: 1; } }
.hoja { width: min(560px, 100%); max-height: 92svh; overflow: auto; background: var(--sup); border: 1px solid var(--borde-fuerte); border-radius: 22px 22px 0 0; padding: 1.3rem 1.3rem calc(1.3rem + env(safe-area-inset-bottom)); animation: subir var(--medio) var(--curva); }
.hoja-cab { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.hoja-cab h2 { font-family: var(--f-titulo); text-transform: uppercase; font-weight: 600; font-size: 1.6rem; letter-spacing: .02em; }
.hoja-pie { position: sticky; bottom: calc(-1.3rem - env(safe-area-inset-bottom)); margin: 1.2rem -1.3rem calc(-1.3rem - env(safe-area-inset-bottom)); padding: 1rem 1.3rem calc(1rem + env(safe-area-inset-bottom)); background: var(--sup); border-top: 1px solid var(--borde); display: grid; gap: .6rem; }
.hoja.ancha { width: min(760px, 100%); }
@media (min-width: 720px) {
  .velo { align-items: center; padding: 1.5rem; }
  .hoja { border-radius: 22px; }
  .hoja-pie { bottom: -1.3rem; margin-bottom: -1.3rem; padding-bottom: 1rem; }
}
.cerrar { background: var(--sup-3); border: 0; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; flex: none; }
.cerrar svg { width: 18px; height: 18px; }
.pila { display: grid; gap: 1rem; }
.fila { display: flex; gap: .8rem; align-items: center; }
.fila-sep { display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.rejilla-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
/* Campos lado a lado: título, caja, ayuda y error comparten filas (subgrid), así las cajas
   quedan siempre a la misma altura aunque un título ocupe dos líneas o un campo tenga ayuda. */
@supports (grid-template-rows: subgrid) {
  .rejilla-2:has(> .campo) { row-gap: 0; margin-bottom: -1rem; }
  .rejilla-2:has(> .campo) > * { margin-bottom: 1rem; }
  .rejilla-2:has(> .campo) > .campo { grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; }
  .rejilla-2:has(> .campo) > .campo > * + * { margin-top: .35rem; }
  .rejilla-2:has(> .campo) > :not(.campo) { grid-row: span 4; }
}
.linea-carrito { display: grid; grid-template-columns: 1fr auto; gap: .4rem 1rem; padding: .9rem 0; border-bottom: 1px solid var(--borde); }
.linea-carrito .nombre { font-weight: 700; }
.linea-carrito .sub { color: var(--texto-3); font-size: .85rem; }
.totales { display: grid; gap: .35rem; }
.totales .fila-sep { color: var(--texto-2); }
.totales .total { color: var(--texto); font-family: var(--f-titulo); font-size: 1.5rem; font-weight: 600; }
.vacio { text-align: center; padding: 2.2rem 1rem; color: var(--texto-3); display: grid; gap: .8rem; justify-items: center; }
.vacio svg { width: 44px; height: 44px; color: var(--borde-fuerte); }

.confirmacion { text-align: center; display: grid; gap: 1rem; justify-items: center; }
.codigo-grande { font-family: var(--f-titulo); font-size: 3rem; color: var(--dorado); letter-spacing: .06em; line-height: 1; }
.enlace-copia { display: flex; gap: .5rem; width: 100%; }
.enlace-copia input { flex: 1; min-width: 0; font-size: .8rem; }
.linea-tiempo { display: grid; gap: 0; width: 100%; text-align: left; }
.hito { display: grid; grid-template-columns: 28px 1fr auto; gap: .8rem; align-items: center; padding: .55rem 0; position: relative; color: var(--texto-3); }
.hito .punto { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--borde-fuerte); background: var(--negro); justify-self: center; z-index: 1; }
.hito::before { content: ''; position: absolute; left: 13px; top: -50%; height: 100%; width: 2px; background: var(--borde); }
.hito:first-child::before { display: none; }
.hito.hecho { color: var(--texto); }
.hito.hecho .punto { background: var(--dorado); border-color: var(--dorado); }
.hito.hecho::before { background: var(--dorado-oscuro); }
.hito.actual .punto { box-shadow: 0 0 0 5px var(--dorado-tenue); }
.hito .hora { font-size: .8rem; color: var(--texto-3); }

/* Agregar más productos desde el carrito o el pago */
.agregar-mas { display: grid; gap: .5rem; margin-top: 1rem; width: 100%; text-align: left; }
.agregar-mas-lista { display: grid; grid-template-columns: minmax(0, 1fr); gap: .5rem; }
.chip-producto { width: 100%; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; gap: 0 .6rem; align-items: center; min-height: 56px; padding: .5rem .6rem .5rem .8rem; border-radius: 14px; border: 1px solid var(--borde-fuerte); background: var(--sup-2); cursor: pointer; text-align: left; }
.chip-producto:hover { border-color: var(--dorado); }
.chip-producto .np { font-weight: 700; font-size: .9rem; }
.chip-producto .pp { font-size: .8rem; color: var(--dorado-claro); grid-row: 2; }
.chip-producto .mas { grid-row: 1 / span 2; grid-column: 2; width: 30px; height: 30px; border-radius: 50%; background: var(--dorado); color: #1a1205; display: grid; place-items: center; }
.chip-producto .mas svg { width: 16px; height: 16px; }
.codigo-aplicado { background: var(--dorado-tenue); border: 1px solid rgba(244, 184, 30, .45); border-radius: var(--radio-s); padding: .45rem .5rem .45rem .8rem; font-size: .9rem; }
.hoja-pie .totales { font-size: .9rem; }
.hoja-pie .totales .total { font-size: 1.25rem; }

/* ───────── Barra de demo (cambio de rol) ───────── */
.barra-demo { position: fixed; left: 50%; transform: translateX(-50%); top: 8px; z-index: 80; display: flex; align-items: center; gap: .3rem; background: rgba(20, 16, 12, .96); border: 1px dashed rgba(100, 181, 246, .55); border-radius: 999px; padding: .25rem .3rem .25rem .8rem; box-shadow: var(--sombra); font-size: .78rem; }
.barra-demo .tit { color: var(--azul); font-weight: 700; margin-right: .3rem; white-space: nowrap; }
.barra-demo button { border: 0; background: transparent; color: var(--texto-2); padding: .35rem .7rem; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: .78rem; min-height: 32px; }
.barra-demo button[aria-pressed='true'] { background: var(--azul); color: #0a1520; }
.barra-demo .min { padding: .35rem .5rem; }
body.con-demo .cabecera { top: 48px; }
body.con-demo .portada { padding-top: calc(8.5rem + env(safe-area-inset-top)); }
body.con-demo .panel-lateral { top: 0; padding-top: 3.6rem; }
body.con-demo .panel-principal { padding-top: 3.6rem; }

/* ───────── Avisos (toasts) ───────── */
.toasts { position: fixed; z-index: 95; left: 50%; transform: translateX(-50%); top: calc(58px + env(safe-area-inset-top)); display: grid; gap: .5rem; width: min(440px, calc(100% - 24px)); pointer-events: none; }
.toast { pointer-events: auto; background: #241d16; border: 1px solid var(--borde-fuerte); border-left: 4px solid var(--dorado); padding: .75rem 1rem; border-radius: 12px; box-shadow: var(--sombra); font-size: .9rem; display: flex; gap: .7rem; align-items: flex-start; animation: subir var(--medio) var(--curva); }
.toast.error { border-left-color: var(--rojo); }
.toast.whatsapp { border-left-color: #25d366; }
.toast .t-tit { font-weight: 700; display: block; }
.toast .t-sub { color: var(--texto-2); font-size: .82rem; }

/* ═════════════════════════ PANEL INTERNO ═════════════════════════ */
.panel { display: grid; grid-template-columns: 250px 1fr; min-height: 100svh; }
.panel-lateral { position: sticky; top: 0; height: 100svh; overflow: auto; background: var(--sup); border-right: 1px solid var(--borde); padding: 1.1rem .8rem; display: flex; flex-direction: column; gap: .3rem; }
.panel-lateral .logo-panel { padding: .2rem .6rem 1rem; }
.panel-lateral .logo-panel img { width: 150px; }
.panel-lateral .grupo { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--texto-3); font-weight: 700; padding: .9rem .7rem .3rem; }
.nav-item { display: flex; align-items: center; gap: .75rem; padding: .6rem .7rem; border-radius: 10px; color: var(--texto-2); text-decoration: none; font-weight: 600; font-size: .92rem; min-height: 42px; }
.nav-item svg { width: 19px; height: 19px; flex: none; }
.nav-item:hover { background: var(--sup-2); color: var(--texto); }
.nav-item[aria-current='page'] { background: var(--dorado-tenue); color: var(--dorado-claro); }
.nav-item .cuenta { margin-left: auto; background: var(--dorado); color: #1a1205; font-size: .7rem; font-weight: 800; border-radius: 999px; padding: 0 .45rem; min-width: 20px; text-align: center; }
.panel-lateral .usuario { margin-top: auto; padding: .8rem .7rem; border-top: 1px solid var(--borde); font-size: .82rem; color: var(--texto-3); }
.panel-lateral .usuario b { color: var(--texto); display: block; font-size: .9rem; }
.panel-principal { padding: 1.5rem clamp(1rem, 3vw, 2.2rem) 6rem; min-width: 0; }
.titulo-vista { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.titulo-vista h1 { font-family: var(--f-titulo); font-weight: 600; font-size: clamp(1.7rem, 4vw, 2.3rem); text-transform: uppercase; letter-spacing: .02em; }
.titulo-vista p { color: var(--texto-3); font-size: .9rem; margin-top: .2rem; }
.barra-movil { display: none; }

.tarjeta { background: var(--sup); border: 1px solid var(--borde); border-radius: var(--radio); padding: 1.2rem; min-width: 0; }
.tarjeta h2 { font-size: 1rem; font-weight: 700; margin-bottom: .9rem; display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; }
.tarjeta h2 small { color: var(--texto-3); font-weight: 500; font-size: .8rem; }
.rejilla { display: grid; gap: 1rem; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 145px), 1fr)); gap: 1rem; margin-bottom: 1rem; }
.kpi { background: var(--sup); border: 1px solid var(--borde); border-radius: var(--radio); padding: 1rem 1.1rem; display: grid; gap: .2rem; }
.kpi .k-et { font-size: .78rem; color: var(--texto-3); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.kpi .k-val { font-family: var(--f-titulo); font-size: 1.8rem; font-weight: 500; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi .k-sub { font-size: .8rem; color: var(--texto-2); }
.barra-prog { height: 8px; border-radius: 99px; background: var(--sup-3); overflow: hidden; margin-top: .4rem; }
.barra-prog > i { display: block; height: 100%; background: var(--dorado); border-radius: 99px; }

.filtros { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: 1rem; }
.filtros .input { width: auto; min-height: 40px; height: 40px; padding-block: 0; }
.segmentado { display: inline-flex; max-width: 100%; overflow-x: auto; scrollbar-width: none; background: var(--sup-2); border: 1px solid var(--borde); border-radius: 999px; padding: 3px; }
.segmentado button { flex: none; border: 0; background: transparent; padding: .4rem .9rem; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: .85rem; color: var(--texto-2); min-height: 34px; }
.segmentado button[aria-pressed='true'] { background: var(--sup-3); color: var(--dorado-claro); }

.kanban { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(240px, 1fr)); gap: 1rem; align-items: start; overflow-x: auto; padding-bottom: .5rem; }
.columna { background: var(--sup); border: 1px solid var(--borde); border-radius: var(--radio); padding: .8rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: .7rem; min-width: 240px; align-content: start; }
.ped > * { min-width: 0; }
.ped .fila-sep { flex-wrap: wrap; gap: .4rem; }
.ped .insignia { white-space: normal; }
.columna-cab { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: .9rem; padding: .1rem .2rem; }
.columna-cab .n { background: var(--sup-3); border-radius: 999px; padding: 0 .55rem; font-size: .78rem; }
.ped { background: var(--sup-2); border: 1px solid var(--borde); border-radius: 12px; padding: .8rem; display: grid; gap: .5rem; font-size: .88rem; }
.ped.nuevo { border-color: var(--dorado); box-shadow: 0 0 0 3px var(--dorado-tenue); animation: latido 1.4s ease-in-out 3; }
@keyframes latido { 50% { box-shadow: 0 0 0 7px rgba(244, 184, 30, .05); } }
.ped-cab { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.ped-cab .cod { font-family: var(--f-titulo); font-size: 1.1rem; letter-spacing: .04em; }
.ped ul { margin: 0; padding-left: 1.1rem; color: var(--texto-2); }
.ped .meta { display: flex; flex-wrap: wrap; gap: .35rem; }
.ped .acciones { display: flex; gap: .4rem; flex-wrap: wrap; }
.ped .acciones .btn { flex: 1; }

.tabla-envoltura { overflow-x: auto; border: 1px solid var(--borde); border-radius: var(--radio); }
table.tabla { width: 100%; border-collapse: collapse; font-size: .88rem; }
.tabla th { text-align: left; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--texto-3); font-weight: 700; padding: .7rem .8rem; background: var(--sup); border-bottom: 1px solid var(--borde); white-space: nowrap; position: sticky; top: 0; }
.tabla td { padding: .65rem .8rem; border-bottom: 1px solid var(--borde); vertical-align: middle; }
.tabla tr:last-child td { border-bottom: 0; }
.tabla tbody tr:hover td { background: rgba(255, 255, 255, .015); }
.tabla .num, .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tabla tfoot td { font-weight: 700; background: var(--sup); border-top: 1px solid var(--borde-fuerte); }
.negativo { color: #ff8a80; font-weight: 700; }
.bajo { color: var(--ambar); font-weight: 700; }
.texto-2 { color: var(--texto-2); }
.texto-3 { color: var(--texto-3); }
.chico { font-size: .82rem; }
.dorado { color: var(--dorado-claro); }

.grid-productos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .7rem; }
.prod-rapido { position: relative; border: 1px solid var(--borde); background: var(--sup-2); border-radius: 14px; padding: .9rem .8rem; text-align: left; cursor: pointer; display: grid; gap: .25rem; min-height: 96px; }
.prod-rapido:hover { border-color: var(--borde-fuerte); }
.prod-rapido.sel { border-color: var(--dorado); background: var(--dorado-tenue); }
.prod-rapido .n { font-weight: 700; font-size: .95rem; }
.prod-rapido .p { color: var(--dorado-claro); font-family: var(--f-titulo); font-size: 1.1rem; }
.prod-rapido .cant { position: absolute; top: 8px; right: 8px; background: var(--dorado); color: #1a1205; font-weight: 800; border-radius: 999px; min-width: 26px; height: 26px; display: grid; place-items: center; font-size: .85rem; }
.prod-rapido .menos { position: absolute; bottom: 8px; right: 8px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--borde-fuerte); background: var(--sup); color: var(--texto); cursor: pointer; font-size: 1.1rem; line-height: 1; }

.grafica { position: relative; }
.grafica svg { width: 100%; height: auto; display: block; overflow: visible; }
.grafica .barra { fill: var(--dorado); transition: opacity var(--rapido); }
.grafica .barra:hover, .grafica .barra.activa { fill: var(--dorado-claro); }
.grafica .rejilla-g { stroke: var(--borde); stroke-width: 1; }
.grafica .eje { fill: var(--texto-3); font-size: 11px; font-family: var(--f-cuerpo); }
.grafica .valor { fill: var(--texto-2); font-size: 11px; font-weight: 600; font-family: var(--f-cuerpo); }
.tooltip { position: absolute; pointer-events: none; background: #2a2219; border: 1px solid var(--borde-fuerte); border-radius: 10px; padding: .45rem .7rem; font-size: .8rem; white-space: nowrap; transform: translate(-50%, calc(-100% - 10px)); box-shadow: var(--sombra); z-index: 5; }
.tooltip b { display: block; }

.cobertura-medidor { display: grid; gap: .6rem; }
.cobertura-medidor .gran { font-family: var(--f-titulo); font-size: 2.6rem; line-height: 1; }
.estado-encima { color: var(--dorado-claro); }
.estado-linea { color: var(--texto); }
.estado-debajo { color: #ff8a80; }
.mensaje-wa { white-space: pre-wrap; background: var(--sup-2); border: 1px solid var(--borde); border-radius: 12px; padding: .8rem; font-size: .85rem; color: var(--texto-2); max-height: 260px; overflow: auto; }
.prov-grupo { border: 1px solid var(--borde); border-radius: var(--radio); overflow: hidden; }
.prov-cab { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .9rem 1rem; background: var(--sup); flex-wrap: wrap; }
.prov-cab h3 { font-size: 1rem; }
.prov-cuerpo { padding: 1rem; display: grid; gap: 1rem; background: var(--negro); }

.alerta { display: flex; gap: .8rem; align-items: flex-start; padding: .9rem 1rem; border-radius: 12px; border: 1px solid var(--borde-fuerte); background: var(--sup); font-size: .9rem; }
.alerta svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.alerta.dorada { border-color: rgba(244, 184, 30, .45); background: var(--dorado-tenue); }
.alerta.dorada svg { color: var(--dorado); }
.alerta.roja { border-color: rgba(239, 83, 80, .45); background: var(--rojo-tenue); }
.alerta.roja svg { color: var(--rojo); }
.alerta.azul { border-color: rgba(100, 181, 246, .4); background: rgba(100, 181, 246, .08); }
.alerta.azul svg { color: var(--azul); }

.proto-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.proto-item { display: grid; gap: .4rem; padding: 1.1rem; border: 1px solid var(--borde); border-radius: var(--radio); background: var(--sup); text-decoration: none; color: var(--texto); cursor: pointer; text-align: left; }
.proto-item:hover { border-color: var(--dorado); }
.proto-item .r { display: flex; gap: .3rem; flex-wrap: wrap; }
.proto-item p { color: var(--texto-3); font-size: .85rem; }

/* ───────── Responsive ───────── */
@media (max-width: 980px) {
  .nav-publica { display: none; }
  .solo-movil { display: inline-flex; }
  .historia, .plato, .visita, .extras { grid-template-columns: 1fr; }
  .plato:nth-child(even) .plato-foto { order: 0; }
  .plato-info { justify-items: center; text-align: center; }
  .plato-foto { width: min(320px, 82vw); }
  .pasos { grid-template-columns: 1fr; }
  .panel { grid-template-columns: 1fr; }
  .panel-lateral { display: none; }
  .barra-movil {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; inset: auto 0 0 0; z-index: 45;
    background: rgba(19, 16, 12, .97); border-top: 1px solid var(--borde); padding: .3rem .3rem calc(.3rem + env(safe-area-inset-bottom)); backdrop-filter: blur(10px);
  }
  .barra-movil a, .barra-movil button { display: grid; justify-items: center; gap: .15rem; padding: .4rem .2rem; color: var(--texto-3); text-decoration: none; font-size: .68rem; font-weight: 600; background: none; border: 0; cursor: pointer; min-height: 52px; position: relative; }
  .barra-movil svg { width: 22px; height: 22px; }
  .barra-movil [aria-current='page'] { color: var(--dorado-claro); }
  .barra-movil .cuenta { position: absolute; top: 2px; left: calc(50% + 6px); background: var(--dorado); color: #1a1205; font-size: .62rem; font-weight: 800; border-radius: 999px; padding: 0 .35rem; }
}
@media (max-width: 620px) {
  .sellos { grid-template-columns: 1fr; gap: .8rem; }
  .sello { justify-content: flex-start; }
  .rejilla-2 { grid-template-columns: 1fr; }
  .kanban { grid-template-columns: 1fr; overflow: visible; }
  .columna { min-width: 0; }
  .cabecera .marca img { height: 38px; }
  .barra-demo .tit { display: none; }
  .barra-demo { padding-left: .3rem; }
  .extra { flex-direction: column; text-align: center; }
  .extra.salsas img { width: 100%; height: 120px; }
  .portada-foto { height: 48%; }
  .kpi .k-val { font-size: 1.4rem; }
  .kpi { padding: .8rem .9rem; }
  .kpi .k-et { font-size: .68rem; }
}
/* Tablas que en celular se ven como tarjetas (cada celda lleva data-l con su título) */
@media (max-width: 620px) {
  table.tarjetas-movil thead { display: none; }
  table.tarjetas-movil, table.tarjetas-movil tbody { display: block; }
  table.tarjetas-movil tr { display: grid; gap: .15rem; padding: .8rem .9rem; border-bottom: 1px solid var(--borde); }
  table.tarjetas-movil td { display: flex; justify-content: space-between; align-items: center; gap: 1rem; border: 0; padding: .15rem 0; text-align: right; }
  table.tarjetas-movil td::before { content: attr(data-l); color: var(--texto-3); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; text-align: left; }
  table.tarjetas-movil td:first-child { display: block; text-align: left; padding-bottom: .3rem; }
  table.tarjetas-movil td:first-child::before, table.tarjetas-movil td:last-child::before { content: none; }
  table.tarjetas-movil td:last-child { justify-content: flex-end; padding-top: .4rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
  .brasas { display: none; }
  /* El carrusel de opiniones se mueve siempre, por decisión del negocio (más lento con movimiento reducido). */
  .carrusel-pista { animation: desplazar calc(var(--duracion, 40s) * 1.5) linear infinite !important; }
}
@media print {
  .barra-demo, .panel-lateral, .barra-movil, .cabecera, .whatsapp-flotante { display: none !important; }
}

/* ───── Pedidos pasados ───── */
.pasos-excel { margin: 0; padding-left: 1.2rem; display: grid; gap: .35rem; color: var(--texto-2); }
.pasos-excel b { color: var(--texto); }
.pedido-pasado { border: 1px solid var(--borde); border-radius: var(--radio); padding: 1rem; display: grid; gap: .9rem; background: rgba(255,255,255,.015); }
.pedido-pasado.con-error { border-color: var(--rojo); }
.pedido-pasado .linea-producto { padding: .25rem 0; border-bottom: 1px dashed var(--borde); }
.pedido-pasado .linea-producto:last-child { border-bottom: 0; }
.pie-pasados { display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; align-items: center; justify-content: space-between; padding-top: .9rem; border-top: 1px solid var(--borde); margin-top: .5rem; }
.pie-pasados .check { flex: 1 1 280px; }
.tabla .fila-total td { border-top: 2px solid var(--borde-fuerte); background: var(--sup-2); }
/* Gráfica de líneas (meta del día / mes) */
.grafica-lineas .linea { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.grafica-lineas .linea-real { stroke: var(--dorado); stroke-width: 2.5; }
.grafica-lineas .linea-proyeccion { stroke: var(--dorado-claro); stroke-width: 2; stroke-dasharray: 6 5; opacity: .9; }
.grafica-lineas .linea-meta { stroke: var(--texto); stroke-width: 1.5; stroke-dasharray: 2 4; opacity: .75; }
.grafica-lineas .linea-ritmo { stroke: var(--texto-3); stroke-width: 1.5; stroke-dasharray: 10 4 2 4; }
.grafica-lineas .punto { stroke: var(--sup); stroke-width: 2; }
.grafica-lineas .punto-real { fill: var(--dorado); }
.grafica-lineas .punto-proyeccion { fill: var(--dorado-claro); }
.grafica-lineas .et-meta { fill: var(--texto-2); font-size: 11px; font-weight: 700; font-family: var(--f-cuerpo); }
.grafica-lineas .linea-ahora { stroke: var(--borde-fuerte); stroke-width: 1; }
.grafica-lineas .cruz { stroke: var(--texto-3); stroke-width: 1; }
.grafica-lineas .cruz.oculto { display: none; }
.grafica-lineas .tooltip { transform: translateX(-50%); white-space: nowrap; }
.fila-tip { display: flex; align-items: center; gap: .4rem; color: var(--texto-2); }
.leyenda { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; font-size: .8rem; color: var(--texto-2); margin: -.2rem 0 .6rem; }
.leyenda span { display: inline-flex; align-items: center; gap: .45rem; }
.muestra { display: inline-block; width: 22px; height: 0; border-top: 2.5px solid var(--dorado); flex: none; }
.muestra-proyeccion { border-top: 2px dashed var(--dorado-claro); }
.muestra-meta { border-top: 2px dotted var(--texto); }
.muestra-ritmo { border-top: 2px dashed var(--texto-3); }
.estado-meta { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.estado-meta.encima { background: var(--dorado-tenue); color: var(--dorado-claro); }
.estado-meta.llegando { background: var(--ambar-tenue); color: var(--ambar); }
.estado-meta.debajo { background: var(--rojo-tenue); color: var(--rojo); }
.barra-prog.con-marca { position: relative; overflow: visible; }
.barra-prog.con-marca b { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--texto); border-radius: 2px; }
.estado-meta svg { width: 14px; height: 14px; flex: none; }
/* Quiénes somos (video) */
.quienes .quienes-texto { max-width: 640px; margin: .6rem auto 0; color: var(--texto-2); }
.marco-video { position: relative; max-width: 880px; margin: 0 auto; border-radius: 22px; overflow: hidden; border: 1px solid var(--borde-fuerte); background: #000; aspect-ratio: 16 / 9; box-shadow: 0 30px 80px -30px rgba(244, 184, 30, .25); }
.marco-video video { width: 100%; height: 100%; display: block; object-fit: contain; background: #000; }
.cargando-video { position: absolute; inset: 0; display: grid; place-content: center; grid-auto-flow: column; gap: .5rem; align-items: center; color: var(--texto-3); font-size: .9rem; }
.cargando-video svg { width: 18px; height: 18px; }
/* Logos en Configuración */
.logos-par { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.logo-caja { border: 1px solid var(--borde); border-radius: var(--radio); padding: .8rem; display: grid; gap: .5rem; justify-items: center; text-align: center; background: repeating-conic-gradient(#1a1510 0 25%, #120e0a 0 50%) 0 0 / 18px 18px; }
.logo-caja.activo { border-color: var(--dorado); box-shadow: 0 0 0 1px var(--dorado) inset; }
.logo-caja img { max-width: 100%; height: 90px; object-fit: contain; }
.logo-caja .vacio-logo { height: 90px; display: grid; place-content: center; color: var(--texto-3); font-size: .85rem; }
.video-previa { width: 100%; max-height: 220px; border-radius: var(--radio-s); background: #000; }
.video-ejemplo { position: relative; width: 100%; height: 100%; }
.video-ejemplo img { width: 100%; height: 100%; object-fit: cover; display: block; filter: brightness(.45) saturate(.9); }
.video-ejemplo-capa { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .9rem; padding: 1rem; text-align: center; color: var(--texto); font-weight: 600; font-size: .95rem; }
.video-play { width: 74px; height: 74px; border-radius: 50%; background: var(--dorado); color: var(--negro); display: grid; place-items: center; box-shadow: 0 10px 40px -8px rgba(244, 184, 30, .6); }
.video-play svg { margin-left: 4px; }
/* Arepas listas */
.gran-num { font-family: var(--f-titulo); font-size: 1.35rem; }
.campo.campo-linea { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px dashed var(--borde); padding-bottom: .6rem; }
.lista-simple { margin: .6rem 0 0; padding-left: 1.1rem; display: grid; gap: .3rem; color: var(--texto-2); font-size: .85rem; }
.archivado { padding: .5rem .7rem; border: 1px solid var(--borde); border-radius: var(--radio-s); flex-wrap: wrap; gap: .5rem; }
.producto-agotado { opacity: .55; }
.etiqueta-quedan { display: inline-flex; align-items: center; gap: .3rem; font-size: .75rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: .2rem .55rem; border-radius: 999px; background: var(--ambar-tenue); color: var(--ambar); }
.etiqueta-quedan.agotada { background: var(--rojo-tenue); color: var(--rojo); }
/* Extras por arepa */
.chips-extra { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip-extra { position: relative; cursor: pointer; }
.chip-extra input { position: absolute; opacity: 0; pointer-events: none; }
.chip-extra span { display: inline-flex; gap: .35rem; align-items: center; padding: .5rem .8rem; min-height: 40px; border-radius: 999px; border: 1px solid var(--borde-fuerte); font-size: .85rem; color: var(--texto-2); background: var(--sup-2); }
.chip-extra span b { color: var(--dorado-claro); font-weight: 700; }
.chip-extra input:checked + span { border-color: var(--dorado); background: var(--dorado-tenue); color: var(--texto); box-shadow: 0 0 0 1px var(--dorado) inset; }
.chip-extra input:focus-visible + span { outline: 2px solid var(--dorado); outline-offset: 2px; }
.extras-arepa { display: grid; gap: .4rem; padding: .7rem .8rem; border: 1px dashed var(--borde); border-radius: var(--radio-s); }
.plato-info .etiqueta-quedan { align-self: flex-start; }
.sello-final { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--dorado-tenue); color: var(--dorado); }
.sello-final svg { width: 30px; height: 30px; }
.sello-final.cancelado { background: var(--rojo-tenue); color: var(--rojo); }
.tabla-horario .dia-cerrado td:not(:first-child) { opacity: .45; }
.tabla-horario input[type=time] { min-width: 110px; }
.vista-horario { display: grid; gap: .35rem; padding: .8rem; border: 1px dashed var(--borde); border-radius: var(--radio-s); }
.vista-horario .horario { display: flex; justify-content: space-between; gap: 1rem; font-size: .9rem; }
.ajuste-proy { padding: .7rem .8rem; border: 1px solid var(--borde); border-radius: var(--radio-s); background: rgba(255,255,255,.02); }
.ajuste-proy .campo-linea { flex-wrap: wrap; }
.ajuste-proy [aria-pressed="true"] { border-color: var(--dorado); color: var(--dorado-claro); }
