/* Tizón · pollería a la leña (demo). Carbón, brasa y ámbar.
   Tipografía: Big Shoulders Display (titulares, condensada y deportiva) y DM Sans (texto). Diseñado primero para el teléfono. */

:root {
  --carbon: #0f0a07;
  --carbon-2: #1a110c;
  --carbon-3: #24180f;
  --brasa: #ff5a1f;
  --ambar: #ffb238;
  --crema: #f7ecd9;
  --humo: #b9a89a;
  --linea: rgb(247 236 217 / .12);
  --r: 20px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --display: "Big Shoulders Display", Impact, sans-serif;
  --sans: "DM Sans", system-ui, sans-serif;
  --cab-h: 64px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; background: var(--carbon); color: var(--crema); font: 400 1rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, dl, dd, fieldset { margin: 0; }
ul { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
button, input { font: inherit; color: inherit; }
.envoltura { width: min(1240px, 100% - 32px); margin-inline: auto; }
body::after { content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .08; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

/* ---------- Tipos ---------- */
.antetitulo { display: inline-flex; align-items: center; gap: .55rem; margin-bottom: .9rem; font-size: .75rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--ambar); }
.titulo-sec { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(3rem, 13vw, 7rem); line-height: .86; letter-spacing: -.005em; }
.titulo-sec em { font-style: normal; color: var(--brasa); }
.nota { color: var(--humo); font-size: .82rem; margin-top: .8rem; }
.punto { width: 8px; height: 8px; border-radius: 50%; background: var(--brasa); box-shadow: 0 0 12px var(--brasa); animation: titila 1.6s infinite; }
@keyframes titila { 50% { opacity: .35; } }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; height: 52px; padding: 0 1.5rem; border-radius: 12px; border: 0; cursor: pointer;
  font-family: var(--display); font-weight: 800; font-size: 1.15rem; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; transition: transform .3s var(--ease), background-color .2s, box-shadow .3s; }
.btn:active { transform: scale(.97); }
.btn-brasa { background: linear-gradient(180deg, #ff7a2f, var(--brasa)); color: #1a0700; box-shadow: 0 10px 30px -10px rgb(255 90 31 / .8), inset 0 1px 0 rgb(255 255 255 / .35); }
.btn-brasa:hover { box-shadow: 0 14px 40px -8px rgb(255 90 31 / 1), inset 0 1px 0 rgb(255 255 255 / .35); }
.btn-borde { background: rgb(15 10 7 / .4); box-shadow: inset 0 0 0 1.5px rgb(247 236 217 / .4); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.btn-borde:hover { box-shadow: inset 0 0 0 1.5px var(--ambar); color: var(--ambar); }
.btn-oscuro { background: var(--carbon); color: var(--ambar); }
.btn-sm { height: 40px; padding: 0 1rem; font-size: 1rem; }
.btn-lg { height: 60px; width: 100%; font-size: 1.35rem; }
:focus-visible { outline: 2px solid var(--ambar); outline-offset: 3px; border-radius: 6px; }

/* ---------- Carga ---------- */
.carga { position: fixed; inset: 0; z-index: 100; display: grid; place-content: center; justify-items: center; gap: 1.2rem; background: var(--carbon); }
.carga-marca { position: relative; padding-top: .2em; font-family: var(--display); font-weight: 900; font-size: clamp(5rem, 26vw, 11rem); line-height: .8; color: var(--carbon-3); }
.carga-fuego { position: absolute; inset: 0; padding-top: .2em; color: transparent; background: linear-gradient(0deg, var(--brasa), var(--ambar) 45%, #fff2c4 70%, transparent 71%); background-size: 100% 300%; background-position: 0 0%; -webkit-background-clip: text; background-clip: text; }
.carga-barra { width: 180px; height: 3px; background: var(--carbon-3); border-radius: 3px; overflow: hidden; }
.carga-barra i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brasa), var(--ambar)); }
.carga-txt { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--humo); }
html:not(.js) .carga { display: none; }

/* ---------- Cabecera ---------- */
.cab { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--cab-h); display: flex; align-items: center; gap: 1rem; padding: 0 16px; transition: background-color .4s; }
.cab.solida { background: rgb(15 10 7 / .82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--linea); }
.marca { display: inline-flex; align-items: center; gap: .45rem; text-decoration: none; font-family: var(--display); font-weight: 900; font-size: 1.7rem; letter-spacing: .03em; }
.marca-llama { width: 18px; height: 24px; fill: var(--brasa); filter: drop-shadow(0 0 6px rgb(255 90 31 / .8)); }
.cab-nav { display: none; gap: 2rem; margin-left: auto; }
.cab-nav a { text-decoration: none; font-weight: 600; font-size: .92rem; color: var(--humo); }
.cab-nav a:hover { color: var(--ambar); }
.cab .btn { margin-left: auto; }
@media (min-width: 900px) { .cab { padding: 0 32px; } .cab-nav { display: flex; } .cab .btn { margin-left: 1.5rem; } }

/* ---------- Inicio ---------- */
.inicio { position: relative; height: 230vh; }
.inicio-fijo { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.escena { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.escena-respaldo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.sin-3d .escena-respaldo { opacity: .75; }
.inicio-texto { position: absolute; left: 16px; right: 16px; bottom: 7vh; z-index: 2; }
.titulo { font-family: var(--display); font-weight: 900; line-height: .78; font-size: clamp(7rem, 40vw, 17rem); letter-spacing: -.01em; margin: .1rem 0 1rem; }
.titulo-fuego { display: inline-block; padding-top: .16em; margin-top: -.16em; color: transparent; background: linear-gradient(0deg, var(--brasa) 0%, #ff8a2a 30%, var(--ambar) 55%, #fff4d1 80%); background-size: 100% 220%; -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 6px 30px rgb(255 90 31 / .55)); animation: llama 3s ease-in-out infinite alternate; }
@keyframes llama { from { background-position: 0 100%; } to { background-position: 0 0%; } }
.titulo .l { display: inline-block; }
.bajada { max-width: 32ch; font-size: 1.05rem; color: var(--crema); text-shadow: 0 2px 20px rgb(0 0 0 / .8); }
.acciones { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.3rem; }
.inicio-dato { position: absolute; z-index: 2; left: 16px; top: calc(var(--cab-h) + 4vh); display: flex; align-items: center; gap: .8rem; opacity: 0; }
.inicio-dato b { font-family: var(--display); font-weight: 900; font-size: clamp(6rem, 30vw, 12rem); line-height: .8; color: var(--ambar); text-shadow: 0 0 40px rgb(255 120 30 / .6); }
.inicio-dato span { font-family: var(--display); font-weight: 700; font-size: 1.6rem; line-height: 1; text-transform: uppercase; }
@media (min-width: 900px) {
  .inicio-texto { left: 6vw; right: auto; bottom: 10vh; max-width: 44vw; }
  .inicio-dato { left: auto; right: 6vw; top: auto; bottom: 12vh; }
}

/* ---------- Cinta ---------- */
.cinta { overflow: hidden; padding: .9rem 0; background: var(--brasa); color: #1a0700; transform: rotate(-1.5deg) scale(1.03); margin: -1.4rem 0 0; position: relative; z-index: 3; }
.cinta-pista { display: flex; align-items: center; gap: 1.4rem; width: max-content; white-space: nowrap; }
.cinta-pista span { font-family: var(--display); font-weight: 900; font-size: clamp(1.8rem, 6vw, 3rem); text-transform: uppercase; line-height: 1; }
.cinta-pista b { font-size: .8rem; }

/* ---------- Ritual ---------- */
.ritual { position: relative; padding: 18vh 0 14vh; overflow: hidden; }
.ritual-fondo { position: absolute; inset: -10% 0; z-index: -1; }
.ritual-fondo img { width: 100%; height: 100%; object-fit: cover; opacity: .32; filter: saturate(1.2); }
.ritual-fondo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--carbon) 0%, transparent 30%, transparent 60%, var(--carbon) 100%); }
.numeros { display: grid; gap: 2.2rem; margin-top: 3rem; }
.numero { display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 0 .8rem; border-top: 1px solid var(--linea); padding-top: 1.2rem; }
.numero b { font-family: var(--display); font-weight: 900; font-size: clamp(6rem, 28vw, 10rem); line-height: .8; color: var(--ambar); font-variant-numeric: tabular-nums; }
.numero .unidad { font-family: var(--display); font-weight: 800; font-size: 1.8rem; text-transform: uppercase; color: var(--brasa); padding-bottom: .4rem; }
.numero p { grid-column: 1 / -1; color: var(--humo); margin-top: .6rem; max-width: 34ch; }
@media (min-width: 900px) { .numeros { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }

/* ---------- Combo ---------- */
.combo { padding: 12vh 0; background: linear-gradient(180deg, var(--carbon), var(--carbon-2) 25%, var(--carbon-2) 80%, var(--carbon)); }
.combo-cab { margin-bottom: 2.4rem; }
.combo-grid { display: grid; gap: 2rem; }
.pasos { display: grid; gap: 1.8rem; }
.paso legend { display: flex; align-items: center; gap: .6rem; margin-bottom: .8rem; font-family: var(--display); font-weight: 800; font-size: 1.7rem; text-transform: uppercase; }
.paso legend span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--brasa); color: #1a0700; font-size: 1.1rem; }
.paso legend small { font-family: var(--sans); font-size: .8rem; font-weight: 500; color: var(--humo); text-transform: none; }
.opciones { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .6rem; }
.opciones + .opciones { margin-top: .6rem; }
.opciones label { position: relative; cursor: pointer; }
.opciones input { position: absolute; opacity: 0; pointer-events: none; }
.opciones label > span { display: grid; gap: .1rem; height: 100%; padding: .9rem 1rem; border-radius: 14px; background: var(--carbon-3); box-shadow: inset 0 0 0 1.5px var(--linea); transition: box-shadow .25s, background-color .25s, transform .3s var(--ease); }
.opciones b { font-weight: 700; }
.opciones small { color: var(--humo); }
.opciones input:checked + span { background: rgb(255 90 31 / .14); box-shadow: inset 0 0 0 2px var(--brasa); }
.opciones input:checked + span small { color: var(--ambar); }
.opciones input:focus-visible + span { outline: 2px solid var(--ambar); outline-offset: 2px; }
.cremas { display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
.crema { display: grid; justify-items: center; gap: .3rem; width: 74px; background: none; border: 0; padding: 0; cursor: pointer; }
.crema-gota { position: relative; width: 62px; height: 62px; filter: url(#goo); }
.crema-gota i { position: absolute; border-radius: 50%; background: var(--c); }
.crema-gota i:nth-child(1) { inset: 8px; }
.crema-gota i:nth-child(2) { width: 22px; height: 22px; left: 4px; top: 30px; }
.crema-gota i:nth-child(3) { width: 18px; height: 18px; right: 6px; top: 6px; }
.crema span { font-size: .78rem; font-weight: 600; color: var(--humo); }
.crema[aria-pressed="true"] span { color: var(--crema); }
.crema[aria-pressed="true"] .crema-gota::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; font-weight: 900; color: #1a0700; font-size: 1.3rem; }
.crema[aria-pressed="false"] .crema-gota { opacity: .45; transform: scale(.82); }
.crema .crema-gota { transition: opacity .3s, transform .4s var(--ease); }
.combo-lado { display: grid; gap: 1rem; align-content: start; }
.combo-foto { border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; }
.combo-foto img { width: 100%; height: 100%; object-fit: cover; }
.ticket { position: relative; overflow: hidden; padding-top: 10px; }
.ticket::before { content: ""; position: absolute; left: -4px; right: -4px; top: 0; height: 14px; border-radius: 8px; background: #050302; box-shadow: inset 0 2px 4px rgb(0 0 0 / .8); z-index: 1; }   /* ranura de la impresora */
.ticket-papel { position: relative; margin: 0 10px; padding: 1.2rem 1.1rem 1.6rem; background: #fbf6ec; color: #2a1d12; font: 500 .86rem/1.5 ui-monospace, "SF Mono", Menlo, monospace;
  -webkit-mask: radial-gradient(circle 7px at 50% 100%, transparent 98%, #000) 0 0 / 18px 100% repeat-x; mask: radial-gradient(circle 7px at 50% 100%, transparent 98%, #000) 0 0 / 18px 100% repeat-x; }
.ticket-cab { text-align: center; font-weight: 800; letter-spacing: .06em; border-bottom: 1.5px dashed #c9b9a3; padding-bottom: .7rem; margin-bottom: .6rem; }
.ticket-cab span { font-weight: 500; color: #7a6a58; }
.ticket-lineas li { display: flex; justify-content: space-between; gap: 1rem; }
.ticket-lineas li.sub { color: #7a6a58; padding-left: .8rem; }
.ticket-total { display: flex; justify-content: space-between; border-top: 1.5px dashed #c9b9a3; margin-top: .6rem; padding-top: .6rem; font-weight: 800; font-size: 1.05rem; }
.ticket-pie { text-align: center; margin-top: .8rem; color: #7a6a58; }
@media (min-width: 900px) { .combo-grid { grid-template-columns: 1.2fr 1fr; gap: 3rem; } .combo-lado { position: sticky; top: calc(var(--cab-h) + 20px); } .combo-foto { aspect-ratio: 16 / 10; } }

.combo-barra { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 8px 8px 8px 18px; border-radius: 16px; background: rgb(247 236 217 / .97); color: var(--carbon); box-shadow: 0 20px 50px -10px rgb(0 0 0 / .7); }
.combo-barra[hidden] { display: none; }
.combo-barra b { font-family: var(--display); font-weight: 900; font-size: 1.4rem; margin-left: .3rem; }

/* ---------- Delivery ---------- */
.delivery { padding: 12vh 0; }
.delivery-grid { display: grid; gap: 2rem; align-items: center; }
.delivery-foto { border-radius: var(--r); overflow: hidden; }
.ruta { margin: 1.6rem 0 1rem; padding: 1rem; border-radius: var(--r); background: var(--carbon-2); border: 1px solid var(--linea); }
.ruta svg { display: block; width: 100%; height: auto; }
.ruta-tiempo { margin-top: .4rem; color: var(--humo); font-size: .92rem; }
.ruta-tiempo b { color: var(--crema); }
.pin-onda { transform-origin: center; animation: pin 2s var(--ease) infinite; }
@keyframes pin { 0% { transform: scale(.5); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }
.delivery-datos li { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--linea); }
.delivery-datos span { color: var(--humo); text-align: right; }
@media (min-width: 900px) { .delivery-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }

/* ---------- Local ---------- */
.local { padding: 10vh 0 14vh; }
.local-grid { display: grid; gap: 2rem; }
.estado { display: inline-flex; align-items: center; gap: .6rem; margin: 1.4rem 0 1rem; padding: .5rem 1rem; border-radius: 99px; background: rgb(255 90 31 / .12); color: var(--ambar); font-size: .9rem; }
.estado.cerrado { background: rgb(247 236 217 / .08); color: var(--humo); }
.estado.cerrado .punto { background: var(--humo); box-shadow: none; animation: none; }
.horario div { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--linea); max-width: 440px; }
.horario dt { color: var(--humo); }
.horario dd { font-weight: 700; font-variant-numeric: tabular-nums; }
.direccion { margin-top: 1.2rem; }
.direccion span { color: var(--humo); font-size: .8rem; }
.local-fotos { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; align-items: end; }
.local-fotos img { border-radius: var(--r); width: 100%; height: 100%; object-fit: cover; }
.local-fotos img:first-child { aspect-ratio: 3 / 4; }
.local-fotos img:last-child { aspect-ratio: 4 / 5; }
@media (min-width: 900px) { .local-grid { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; } }

/* ---------- Pie ---------- */
.pie { padding: 4rem 0 3rem; border-top: 1px solid var(--linea); }
.pie-marca { font-family: var(--display); font-weight: 900; font-size: clamp(5rem, 30vw, 16rem); line-height: .8; color: var(--carbon-3); }
.pie-aviso { margin-top: 1.2rem; color: var(--humo); font-size: .82rem; max-width: 70ch; }
.pie-firma { margin-top: .8rem; font-size: .9rem; }
.pie-firma a { color: var(--ambar); font-weight: 700; }

/* ---------- Panel de vista previa ---------- */
.panel { width: min(500px, 100% - 24px); padding: 0; border: 0; border-radius: var(--r); background: var(--crema); color: var(--carbon); }
.panel::backdrop { background: rgb(15 10 7 / .75); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.panel-in { position: relative; padding: 1.6rem; }
.panel .antetitulo { color: #b3400e; }
.panel h2 { font-family: var(--display); font-weight: 900; font-size: 2.3rem; line-height: .95; text-transform: uppercase; margin-bottom: 1rem; }
.panel .nota { color: #6b5b4c; }
.cerrar { position: absolute; right: 12px; top: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgb(15 10 7 / .08); font-size: 1.6rem; line-height: 1; cursor: pointer; color: inherit; }
.wa-chat { padding: 1rem; border-radius: 16px; background: #0b141a; }
.wa-burbuja { margin-left: auto; max-width: 90%; padding: .7rem .9rem 1.2rem; border-radius: 12px 12px 2px 12px; background: #005c4b; color: #e9edef; font-size: .9rem; white-space: pre-line; position: relative; }
.wa-burbuja::after { content: "✓✓"; position: absolute; right: 8px; bottom: 4px; font-size: .65rem; color: #53bdeb; }
.demo-cta { margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px solid rgb(15 10 7 / .12); display: grid; gap: .7rem; }
.demo-cta p { font-family: var(--display); font-weight: 800; font-size: 1.5rem; text-transform: uppercase; line-height: 1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .inicio { height: auto; }
  .inicio-fijo { position: relative; }
  .titulo-fuego, .punto, .pin-onda { animation: none; }
}
