/* Prego — "Luces prendidas en Carrasco": el cartel que se enciende, la comanda que se arma, la caja que se lleva.
   Color: verde Prego para superficies de marca; crema para texto y papel; rojo (del Club) SOLO para pedir;
   kraft sólo en la caja del cierre; ámbar sólo en las lamparitas. */
:root {
  --verde: #06370A;
  --verde-2: #0D4A14;
  --verde-d: #03230A;
  --crema: #EEEDD2;
  --papel: #FBFAF2;
  --rojo: #C8372D;
  --rojo-d: #A82A21;
  --kraft: #D3B48A;
  --luz: #F7C873;
  --ink: #0F2311;
  --gris: #4E5B4C;

  --display: 'Fraunces', Georgia, serif;
  --sans: 'Archivo', system-ui, sans-serif;
  --gut: clamp(16px, 4vw, 56px);
  --nav: 64px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-padding-top: var(--nav); }
body { margin: 0; overflow-x: clip; background: var(--crema); color: var(--ink); font: 400 1.06rem/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
img, iframe, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure, dl, dd, ul, fieldset { margin: 0; padding: 0; }
ul { list-style: none; }
fieldset { border: 0; min-width: 0; }
em { font-style: italic; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: -80px; z-index: 200; background: var(--rojo); color: #fff; padding: 10px 16px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--luz); outline-offset: 3px; }
.tag { font: 700 .76rem/1.2 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--luz); }
.tag-red { color: var(--crema); }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px;
  font: 700 1rem/1 var(--sans); text-decoration: none; border-radius: 999px; border: 2px solid transparent;
  transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-red { background: var(--rojo); color: #fff; }
.btn-red:hover { background: var(--rojo-d); }
.btn-cream { background: var(--crema); color: var(--verde); }
.btn-cream:hover { background: #fff; }
.btn-green { background: var(--verde); color: var(--crema); }
.btn-green:hover { background: var(--verde-d); }
.btn-line { border-color: rgba(238, 237, 210, .7); color: var(--crema); }
.btn-line:hover { background: rgba(238, 237, 210, .12); }
.btn-line-green { border-color: var(--verde); color: var(--verde); }
.btn-line-green:hover { background: var(--verde); color: var(--crema); }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav); padding: 0 var(--gut);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: rgba(3, 35, 10, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--crema);
}
.nav-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-brand img { width: 36px; height: 36px; border-radius: 50%; }
.nav-brand span { font: 800 1.5rem/1 var(--display); letter-spacing: -.01em; }
.nav-links { display: none; gap: 26px; }
.nav-links a { font: 600 .9rem/1 var(--sans); text-decoration: none; padding: 8px 0; opacity: .85; }
.nav-links a:hover { opacity: 1; color: var(--luz); }
.nav-cta { font: 700 .88rem/1 var(--sans); text-decoration: none; background: var(--rojo); color: #fff; padding: 11px 16px; border-radius: 999px; }
@media (min-width: 1000px) { .nav-links { display: flex; } }

/* ---------- HERO: el cartel ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-items: center; overflow: hidden; background: var(--verde-d); color: var(--crema); padding: calc(var(--nav) + 40px) var(--gut) 40px; }
.hero-ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; filter: brightness(.78) contrast(1.06) saturate(.95); }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 40%, rgba(6, 55, 10, .55), rgba(3, 35, 10, .9)); mix-blend-mode: multiply; pointer-events: none; }
.hero-in { position: relative; z-index: 2; display: grid; justify-items: center; text-align: center; gap: 18px; }
.hero-kicker { font: 600 .74rem/1.3 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--luz); }
.neon {
  font: 900 clamp(7.4rem, 31vw, 27rem)/.78 var(--display); font-variation-settings: 'opsz' 144, 'SOFT' 0;
  letter-spacing: -.035em; color: #FFF9E4;
  text-shadow: 0 0 6px rgba(255, 244, 214, .9), 0 0 26px rgba(247, 200, 115, .55), 0 0 70px rgba(247, 200, 115, .35);
  padding-bottom: .16em;
}
.neon span span { display: inline-block; animation: flicker 2.6s linear both; }
.neon .n2 { animation-delay: .25s; } .neon .n3 { animation-delay: .5s; } .neon .n4 { animation-delay: .15s; animation-duration: 3.4s; } .neon .n5 { animation-delay: .4s; }
@keyframes flicker {
  0% { opacity: .08; text-shadow: none; }
  8% { opacity: 1; } 10% { opacity: .15; } 14% { opacity: 1; } 22% { opacity: .3; } 26% { opacity: 1; }
  60% { opacity: 1; } 62% { opacity: .55; } 64%, 100% { opacity: 1; }
}
.hero-lead { font: 400 clamp(1.4rem, 2.6vw, 2.2rem)/1.15 var(--display); }
.hero-lead em { color: var(--luz); }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 6px; }
.hero-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; font: 500 .9rem/1.3 var(--sans); color: rgba(238, 237, 210, .85); }
.hero-meta b { color: var(--crema); }
.lights { position: absolute; z-index: 2; top: calc(var(--nav) + 6px); left: -2%; right: -2%; display: flex; justify-content: space-between; pointer-events: none; }
.lights::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 40px; border-bottom: 1px solid rgba(238, 237, 210, .25); border-radius: 0 0 50% 50% / 0 0 100% 100%; }
.lights i { width: 9px; height: 13px; border-radius: 50% 50% 45% 45%; background: var(--luz); box-shadow: 0 0 10px 3px rgba(247, 200, 115, .7), 0 0 30px 6px rgba(247, 200, 115, .25); animation: twinkle 3s ease-in-out infinite; }
.lights i:nth-child(odd) { animation-delay: 1.1s; }
.lights i:nth-child(3n) { animation-delay: .5s; }
.lights i:nth-child(2), .lights i:nth-child(13) { margin-top: 12px; } .lights i:nth-child(3), .lights i:nth-child(12) { margin-top: 20px; }
.lights i:nth-child(4), .lights i:nth-child(11) { margin-top: 25px; } .lights i:nth-child(n+5):nth-child(-n+10) { margin-top: 27px; }
@keyframes twinkle { 50% { opacity: .55; } }
.seal { position: absolute; z-index: 2; right: var(--gut); bottom: 28px; width: clamp(96px, 13vw, 180px); aspect-ratio: 1; display: grid; place-items: center; color: var(--crema); }
.seal svg, .caja-seal svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 28s linear infinite; }
.seal text, .caja-seal text { font: 600 13.5px var(--sans); letter-spacing: 1px; fill: currentColor; }
.seal span, .caja-seal span { font: 900 clamp(2.4rem, 4vw, 4rem)/1 var(--display); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 759px) { .seal { top: calc(var(--nav) + 46px); bottom: auto; } .hero-kicker { max-width: 30ch; } }

/* Split */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.w > span { display: inline-block; }

/* ---------- El horno ---------- */
.horno { padding: clamp(96px, 12vw, 170px) var(--gut); max-width: 1440px; margin: 0 auto; }
.ember-line { display: inline-flex; align-items: center; gap: 12px; font: 700 .82rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--rojo-d); }
.ember { width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 40% 40%, #FFD38A, #E8542F 60%, #9D1E12); box-shadow: 0 0 12px 3px rgba(232, 84, 47, .55); animation: glow 1.8s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: 0 0 20px 6px rgba(232, 84, 47, .75); } }
.horno-title { font: 900 clamp(3rem, 8.6vw, 9rem)/.9 var(--display); letter-spacing: -.03em; color: var(--verde); margin-top: 20px; max-width: 14ch; }
.horno-title em { font-weight: 500; color: var(--rojo); }
.horno-lede { font: 400 clamp(1.25rem, 2vw, 1.65rem)/1.35 var(--display); max-width: 40ch; margin-top: 32px; color: var(--ink); }
.trio { display: grid; gap: 28px; margin-top: clamp(56px, 7vw, 96px); }
.tri { border-top: 2px solid var(--verde); padding-top: 18px; }
.tri h3 { font: italic 600 clamp(2.6rem, 5vw, 4.6rem)/1 var(--display); color: var(--verde); margin-bottom: 10px; }
.tri p { color: var(--gris); max-width: 34ch; }
.borde { margin: clamp(56px, 7vw, 96px) 0 0 auto; max-width: 1000px; overflow: hidden; border-radius: 22px; }
.borde img { width: 100%; aspect-ratio: 1170 / 510; object-fit: cover; border-radius: 22px; }
.borde figcaption { margin-top: 12px; font: italic 400 1.05rem/1.3 var(--display); color: var(--gris); }
@media (min-width: 900px) { .trio { grid-template-columns: repeat(3, 1fr); gap: 40px; } }

/* ---------- La comanda ---------- */
.comanda { background: var(--verde); color: var(--crema); padding: clamp(96px, 12vw, 170px) var(--gut); }
.com-head { max-width: 1320px; margin: 0 auto; display: grid; gap: 18px; }
.com-title { font: 900 clamp(3rem, 9vw, 9rem)/.88 var(--display); letter-spacing: -.03em; }
.com-title em { font-weight: 500; color: var(--luz); }
.com-sub { max-width: 52ch; color: rgba(238, 237, 210, .85); font-size: 1.12rem; }
.com-grid { max-width: 1320px; margin: clamp(48px, 6vw, 80px) auto 0; display: grid; gap: 40px; align-items: start; }
.item { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 20px 0; border-top: 1px solid rgba(238, 237, 210, .2); }
.item h3 { font: 700 clamp(1.6rem, 2.6vw, 2.2rem)/1.05 var(--display); }
.item p { color: rgba(238, 237, 210, .78); font-size: .98rem; max-width: 44ch; margin-top: 4px; }
.qty { display: inline-flex; align-items: center; gap: 4px; border: 1px solid rgba(238, 237, 210, .35); border-radius: 999px; padding: 4px; }
.qty button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--crema); font: 600 1.4rem/1 var(--sans); cursor: pointer; transition: background .2s; }
.qty button:hover { background: rgba(238, 237, 210, .14); }
.qty .q-plus { background: var(--crema); color: var(--verde); }
.qty .q-plus:hover { background: #fff; }
.qty output { min-width: 26px; text-align: center; font: 700 1.1rem/1 var(--sans); font-variant-numeric: tabular-nums; }
.item.has h3::after { content: " ✓"; color: var(--luz); font-size: .7em; }
.mode { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(238, 237, 210, .2); }
.mode legend { float: left; width: 100%; font: 700 .78rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--luz); margin-bottom: 14px; }
.mode label { position: relative; cursor: pointer; }
.mode input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.mode span { display: inline-flex; min-height: 46px; align-items: center; padding: 0 20px; border-radius: 999px; border: 1px solid rgba(238, 237, 210, .45); font-weight: 700; transition: background .2s, color .2s; }
.mode input:checked + span { background: var(--crema); color: var(--verde); border-color: var(--crema); }
.mode input:focus-visible + span { outline: 3px solid var(--luz); outline-offset: 3px; }
.fields { display: grid; gap: 14px; margin-top: 22px; }
.field { display: grid; gap: 6px; }
.field span { font: 600 .8rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: rgba(238, 237, 210, .8); }
.field input { font: 500 1.05rem/1.3 var(--sans); color: var(--crema); background: rgba(3, 35, 10, .45); border: 1px solid rgba(238, 237, 210, .3); border-radius: 10px; padding: 14px 14px; }
.field input::placeholder { color: rgba(238, 237, 210, .5); }
.field-dir { display: none; }
.order.is-delivery .field-dir { display: grid; }

.ticket { position: sticky; top: calc(var(--nav) + 24px); }
.tk-paper {
  background: var(--papel); color: #1b1b17; padding: 28px 26px 34px; rotate: -1.2deg;
  font-family: var(--sans); font-stretch: 75%; font-variation-settings: 'wdth' 75;
  box-shadow: 0 40px 60px -30px rgba(0, 0, 0, .65);
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 10px) no-repeat, radial-gradient(circle at 50% 100%, transparent 7px, #000 7.5px) bottom / 18px 10px repeat-x;
          mask: linear-gradient(#000 0 0) top / 100% calc(100% - 10px) no-repeat, radial-gradient(circle at 50% 100%, transparent 7px, #000 7.5px) bottom / 18px 10px repeat-x;
}
.tk-brand { font: 900 2rem/1 var(--display); font-stretch: normal; font-variation-settings: normal; text-align: center; color: var(--verde); }
.tk-sub { text-align: center; font-size: .9rem; letter-spacing: .04em; color: #55554c; margin-top: 6px; }
.tk-meta { display: flex; justify-content: space-between; margin-top: 18px; padding: 10px 0; border-block: 2px dashed #b9b7a7; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .9rem; }
.tk-lines { margin: 14px 0; display: grid; gap: 8px; min-height: 96px; font-size: 1.25rem; font-weight: 600; }
.tk-lines li { display: flex; gap: 10px; }
.tk-lines b { min-width: 2.2ch; color: var(--rojo); }
.tk-empty { color: #8a887a; font-weight: 500; font-style: italic; }
.tk-mode { border-top: 2px dashed #b9b7a7; padding-top: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .92rem; }
.tk-send { width: 100%; margin-top: 18px; font-stretch: normal; font-variation-settings: normal; }
.tk-foot { text-align: center; font-size: .85rem; color: #6b695d; margin-top: 10px; }
@media (min-width: 1000px) { .com-grid { grid-template-columns: 7fr 5fr; gap: 72px; } }

/* ---------- El local ---------- */
.local { background: var(--verde-d); color: var(--crema); padding: clamp(110px, 13vw, 180px) 0 clamp(96px, 12vw, 160px); position: relative; overflow: hidden; }
.garland { position: absolute; top: 34px; left: -3%; right: -3%; display: flex; justify-content: space-between; }
.garland::before { content: ""; position: absolute; left: 0; right: 0; top: -20px; height: 46px; border-bottom: 1px solid rgba(238, 237, 210, .25); border-radius: 0 0 50% 50% / 0 0 100% 100%; }
.garland i { width: 10px; height: 14px; border-radius: 50%; background: #3a3a2a; transition: background .5s, box-shadow .5s; }
.garland i:nth-child(2), .garland i:nth-child(17) { margin-top: 10px; } .garland i:nth-child(3), .garland i:nth-child(16) { margin-top: 18px; }
.garland i:nth-child(4), .garland i:nth-child(15) { margin-top: 23px; } .garland i:nth-child(n+5):nth-child(-n+14) { margin-top: 26px; }
.garland i.on, html:not(.js) .garland i { background: var(--luz); box-shadow: 0 0 10px 3px rgba(247, 200, 115, .7), 0 0 30px 8px rgba(247, 200, 115, .25); }
.local-title { font: 900 clamp(3rem, 9vw, 9.5rem)/.88 var(--display); letter-spacing: -.03em; padding: 0 var(--gut); text-align: center; }
.local-title em { font-weight: 500; color: var(--luz); }
.local-big { margin: clamp(40px, 6vw, 80px) 0 0; overflow: hidden; }
.local-big img { width: 100%; aspect-ratio: 16 / 9; max-height: 82vh; object-fit: cover; }
.local-row { display: grid; gap: 24px; padding: 40px var(--gut) 0; max-width: 1320px; margin: 0 auto; align-items: start; }
.local-tx { font: 400 clamp(1.25rem, 1.9vw, 1.6rem)/1.35 var(--display); }
.local-sm img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; }
.local-sm figcaption { margin-top: 8px; font-size: .9rem; color: rgba(238, 237, 210, .75); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 36px var(--gut) 0; max-width: 1320px; margin: 0 auto; }
.chips li { padding: 10px 16px; border: 1px solid rgba(238, 237, 210, .35); border-radius: 999px; font-weight: 600; font-size: .95rem; }
@media (min-width: 900px) { .local-row { grid-template-columns: 6fr 3fr 3fr; gap: 32px; } }

/* ---------- Club ---------- */
.club { background: var(--rojo); color: #fff; padding: clamp(96px, 12vw, 160px) var(--gut); display: grid; gap: 48px; align-items: center; overflow: hidden; }
.club-poster { max-width: 340px; justify-self: center; rotate: -4deg; }
.club-poster img { width: 100%; aspect-ratio: 9 / 13; object-fit: cover; object-position: 50% 45%; border-radius: 8px; box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .6); }
.club-tx { display: grid; gap: 20px; max-width: 640px; }
.club-title { font: 900 clamp(2.6rem, 5.6vw, 5.4rem)/.92 var(--display); letter-spacing: -.02em; }
.club-tx > p:not(.tag):not(.club-how) { font-size: 1.15rem; }
.club-how { display: grid; gap: 8px; }
.club-how span { display: flex; gap: 10px; align-items: baseline; font-weight: 600; }
.club-how span::before { content: "→"; color: var(--crema); }
.club-how a { color: #fff; }
.club-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.club .btn-green { background: var(--verde-d); }
@media (min-width: 900px) { .club { grid-template-columns: 5fr 7fr; gap: 80px; } .club-poster { justify-self: end; } }

/* ---------- La caja ---------- */
.caja-sec { padding: clamp(96px, 12vw, 160px) var(--gut); display: grid; gap: 32px; max-width: 1440px; margin: 0 auto; }
.caja {
  position: relative; background: var(--kraft); color: var(--verde); padding: clamp(28px, 5vw, 64px); border-radius: 6px;
  display: grid; gap: 22px; align-content: start;
  background-image: repeating-linear-gradient(90deg, rgba(120, 82, 40, .06) 0 2px, transparent 2px 7px), linear-gradient(160deg, rgba(255, 255, 255, .16), rgba(0, 0, 0, .05));
  box-shadow: inset 0 0 0 10px rgba(255, 255, 255, .08), 0 40px 70px -40px rgba(15, 35, 17, .6);
}
.caja-seal { position: relative; width: 120px; aspect-ratio: 1; display: grid; place-items: center; color: var(--verde); }
.caja-seal span { font-size: 2.6rem; }
.caja-k { font: 700 .78rem/1.2 var(--sans); letter-spacing: .18em; text-transform: uppercase; }
.caja-title { font: 900 clamp(2.3rem, 4.6vw, 4.4rem)/.95 var(--display); letter-spacing: -.02em; max-width: 16ch; }
.caja-data > div { display: grid; grid-template-columns: 110px 1fr; gap: 14px; padding: 12px 0; border-top: 2px dotted rgba(6, 55, 10, .35); }
.caja-data dt { font: 700 .76rem/1.8 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.caja-data dd { font-weight: 600; }
.caja-data small { font-weight: 500; font-size: .92rem; }
.caja-ctas { display: flex; flex-wrap: wrap; gap: 8px; }
.caja-map { min-height: 360px; border-radius: 6px; overflow: hidden; }
.caja-map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; }
@media (min-width: 1000px) { .caja-sec { grid-template-columns: 7fr 5fr; } .caja { padding-left: 200px; } .caja-seal { position: absolute; left: 48px; top: 56px; } }
@media (max-width: 520px) { .caja-data > div { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- Pie ---------- */
.foot { background: var(--verde); color: var(--crema); padding: 64px var(--gut) 32px; overflow: hidden; }
.foot-big { font: italic 600 clamp(3rem, 11vw, 11rem)/.9 var(--display); text-align: center; letter-spacing: -.02em; color: var(--luz); }
.foot-row { display: grid; gap: 16px; margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(238, 237, 210, .2); font-size: .95rem; }
.foot-row img { width: 60px; height: 60px; border-radius: 50%; }
.foot-row a { text-underline-offset: 3px; }
.demo { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
@media (min-width: 800px) { .foot-row { grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; } }

/* ---------- Barra mobile ---------- */
.mbar {
  position: fixed; z-index: 60; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom));
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 6px; padding: 6px; border-radius: 999px;
  background: var(--crema); box-shadow: 0 16px 40px -14px rgba(0, 0, 0, .6); transition: transform .5s var(--ease), opacity .5s;
}
.mbar a { display: grid; place-items: center; min-height: 48px; border-radius: 999px; text-decoration: none; font: 700 .92rem/1 var(--sans); color: var(--verde); }
.mbar .mbar-main { background: var(--rojo); color: #fff; }
.mbar.is-hidden { transform: translateY(150%); opacity: 0; pointer-events: none; }
@media (max-width: 999px) { body { padding-bottom: 74px; } }
@media (min-width: 1000px) { .mbar { display: none; } }

/* ---------- Reveals (sólo con JS) ---------- */
.js .rv { opacity: 0; transform: translateY(26px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rv { opacity: 1; transform: none; }
}
