/* =====================================================================
   EL RÚSTICO
   Layout: pizarra de carbón con sello ocre gastado; la carta y la comunidad
   se apoyan en papel crema, como el envoltorio del take away.
   Un solo mundo visual (oscuro), igual que las piezas de la marca.
   ===================================================================== */
:root {
  /* Paleta medida sobre la pieza de marca */
  --carbon: #202020;
  --carbon-2: #2b2b2b;
  --carbon-3: #363330;          /* derivado cálido para tarjetas sobre carbón */
  --brasa: #e48e1b;
  --brasa-hi: #f0a33f;          /* derivado: hover del naranja */
  --ocre: #82571d;
  --crema: #fcf3d1;
  --crema-2: #f3e7bd;           /* derivado: papel en sombra */
  /* Texto y líneas, derivados de la paleta (contraste AA) */
  --fg: var(--crema);
  --muted: #cfc5a5;             /* crema apagado sobre carbón: 9.8:1 */
  --ink: #202020;               /* texto sobre crema */
  --ink-soft: #5a4220;          /* ocre oscuro sobre crema: 8.5:1 */
  --line: rgba(252, 243, 209, .14);
  --line-soft: rgba(252, 243, 209, .07);
  --wa: #25d366;
  --wa-ink: #0b3d20;

  --f-display: "Bebas Neue", "Oswald", "Arial Narrow", Impact, sans-serif;
  --f-body: "Montserrat", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --step--1: clamp(.8rem, .78rem + .1vw, .86rem);
  --step-0: clamp(.95rem, .92rem + .15vw, 1.03rem);
  --step-1: clamp(1.15rem, 1.08rem + .35vw, 1.35rem);
  --step-2: clamp(1.5rem, 1.3rem + 1vw, 2.1rem);
  --step-3: clamp(2.3rem, 1.8rem + 2.6vw, 3.9rem);
  --step-4: clamp(3.6rem, 2.4rem + 6.4vw, 7.8rem);

  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 64px;

  /* Textura de pizarra y de sello gastado (ruido SVG) */
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --grunge: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.55' numOctaves='3' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.6 1.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");

  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--carbon);
  color: var(--fg);
  font-family: var(--f-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--brasa); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.selectable { user-select: all; font-variant-numeric: tabular-nums; white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--brasa); color: var(--ink); padding: 8px 14px; border-radius: 8px; font-weight: 700; }
.skip:focus { left: 8px; }

h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
.section-title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: var(--step-3);
  line-height: .95;
  letter-spacing: .01em;
  text-transform: uppercase;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .55em;
  font-size: var(--step--1); font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--brasa); margin-bottom: .7rem;
}
.eyebrow::before { content: ""; width: 1.6em; height: 2px; background: currentColor; }
.eyebrow--dark { color: var(--ink-soft); }
.section-head { display: grid; gap: .2rem; margin-bottom: clamp(1.6rem, 3vw, 2.6rem); }
.section-head--row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; }

/* ---------- Botones ---------- */
.btn {
  --bg: var(--brasa); --c: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .75rem 1.35rem;
  border: 2px solid transparent; border-radius: 999px;
  background: var(--bg); color: var(--c);
  font-weight: 800; font-size: var(--step-0); letter-spacing: .01em; text-decoration: none;
  cursor: pointer; transition: transform .2s var(--ease), background-color .2s, box-shadow .2s, border-color .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 1.25em; height: 1.25em; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--fire { box-shadow: 0 10px 28px -10px rgba(228, 142, 27, .75); }
.btn--fire:hover { --bg: var(--brasa-hi); }
.btn--ghost { --bg: transparent; --c: var(--crema); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--crema); }
.btn--dark { --bg: var(--carbon); --c: var(--crema); }
.btn--outline-dark { --bg: transparent; --c: var(--ink); border-color: rgba(32, 32, 32, .35); }
.btn--outline-dark:hover { border-color: var(--ink); }
.btn--sm { min-height: 40px; padding: .5rem 1rem; font-size: var(--step--1); }
.btn--lg { min-height: 56px; padding: .9rem 1.6rem; font-size: var(--step-1); }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.link-btn {
  background: none; border: 0; padding: .2rem 0; cursor: pointer;
  font-weight: 800; color: var(--brasa); text-decoration: none;
  border-bottom: 2px solid currentColor; display: inline-flex; gap: .4em; align-items: center;
}
.link-btn::after { content: "→"; transition: transform .2s var(--ease); }
.link-btn:hover::after { transform: translateX(4px); }
.link-btn--sm { font-size: var(--step--1); }

/* ---------- Cabecera ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background-color .3s, box-shadow .3s, backdrop-filter .3s;
}
.topbar.is-solid { background: rgba(32, 32, 32, .9); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.topbar__in { height: var(--header-h); display: flex; align-items: center; gap: 1rem; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; margin-right: auto; }
.brand img { width: 40px; height: auto; }
.brand__name { font-family: var(--f-display); font-size: 1.6rem; letter-spacing: .06em; line-height: 1; padding-top: .15em; }
.nav { display: flex; gap: 1.6rem; }
.nav a { text-decoration: none; font-weight: 600; font-size: var(--step--1); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: .4rem 0; transition: color .2s; }
.nav a:hover { color: var(--crema); }
.status-chip { font-size: var(--step--1); font-weight: 700; color: var(--muted); display: inline-flex; align-items: center; gap: .45em; white-space: nowrap; }
.status-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dot, #8a8170); }
@media (max-width: 1000px) { .nav { display: none; } }
@media (max-width: 560px) { .status-chip { display: none; } .brand__name { font-size: 1.35rem; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + clamp(1.5rem, 5vw, 3.5rem));
  background:
    radial-gradient(120% 70% at 70% 110%, rgba(228, 142, 27, .28), transparent 60%),
    radial-gradient(60% 50% at 10% 0%, rgba(130, 87, 29, .25), transparent 70%),
    var(--carbon);
}
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--noise); opacity: .07; mix-blend-mode: overlay; }
.hero__embers { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero__glow {
  position: absolute; z-index: -1; left: 50%; bottom: -30%; width: 140%; height: 70%; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(228, 142, 27, .35), rgba(228, 142, 27, .08) 60%, transparent);
  filter: blur(20px); animation: breathe 5s ease-in-out infinite;
}
@keyframes breathe { 0%, 100% { opacity: .7; transform: translateX(-50%) scale(1); } 50% { opacity: 1; transform: translateX(-50%) scale(1.06); } }

.stamp-bg {
  position: absolute; z-index: -1; inset: -10% -20% auto -20%;
  display: grid; transform: rotate(-9deg); transform-origin: center; pointer-events: none;
  font-family: var(--f-display); font-size: clamp(7rem, 22vw, 20rem); line-height: .82; letter-spacing: -.01em;
  color: var(--ocre); opacity: .55; white-space: nowrap;
  -webkit-mask-image: var(--grunge); mask-image: var(--grunge); -webkit-mask-size: 300px; mask-size: 300px;
}
.stamp-bg span:nth-child(2) { margin-left: -0.35em; }

.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; padding-bottom: clamp(2.5rem, 6vw, 5rem); }
.hero__copy { min-width: 0; }
.status { display: inline-flex; align-items: center; gap: .6rem; padding: .45rem .9rem .45rem .7rem; border-radius: 999px; background: rgba(32, 32, 32, .75); border: 1px solid var(--line); font-weight: 700; font-size: var(--step--1); margin-bottom: 1.2rem; backdrop-filter: blur(6px); }
.status__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--dot, #8a8170); box-shadow: 0 0 0 0 var(--dot, transparent); }
.status.is-open .status__dot { --dot: #6fd38a; animation: ping 2s infinite; }
.status.is-closed .status__dot { --dot: var(--brasa); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(111, 211, 138, .6); } 80%, 100% { box-shadow: 0 0 0 10px rgba(111, 211, 138, 0); } }

.hero__title { font-family: var(--f-display); font-weight: 400; font-size: var(--step-4); line-height: .86; text-transform: uppercase; letter-spacing: .005em; }
.hero__line { display: block; animation: rise .9s var(--ease) both; }
.hero__line + .hero__line { animation-delay: .12s; }
.hero__title em { font-style: normal; color: var(--brasa); position: relative; }
@keyframes rise { from { transform: translateY(30%); } to { transform: none; } }
.hero__lead { margin-top: 1.2rem; max-width: 34rem; font-size: var(--step-1); line-height: 1.5; color: var(--muted); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero__facts { list-style: none; padding: 0; margin: 2.2rem 0 0; display: flex; flex-wrap: wrap; gap: 1.2rem 2rem; }
.hero__facts li { display: grid; line-height: 1.2; }
.hero__facts strong { font-family: var(--f-display); font-weight: 400; font-size: 2rem; color: var(--crema); letter-spacing: .02em; }
.hero__facts span { font-size: var(--step--1); color: var(--muted); }

.hero__media { position: relative; margin: 0; justify-self: end; width: min(100%, 520px); }
.hero__slider {
  aspect-ratio: 4 / 5; overflow: hidden; background: var(--carbon-3);
  border-radius: 240px 240px var(--radius) var(--radius);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px var(--line);
}
.hero__track { display: flex; height: 100%; transition: transform .8s var(--ease); }
.hero__track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; }
.tag { position: absolute; left: -1.2rem; bottom: 2.2rem; background: var(--crema); color: var(--ink); font-weight: 700; font-size: var(--step-0); padding: .6rem 1rem; border-radius: 8px; box-shadow: 0 16px 30px -12px rgba(0, 0, 0, .7); }
.tag b { font-family: var(--f-display); font-weight: 400; font-size: 1.6em; line-height: 1; color: var(--ocre); vertical-align: -.08em; }
.tag--tilt { transform: rotate(-4deg); }

.ticker { position: relative; z-index: 1; border-block: 1px solid var(--line); background: rgba(32, 32, 32, .65); overflow: hidden; }
.ticker__track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.ticker span { font-family: var(--f-display); font-size: clamp(1.3rem, 2.4vw, 1.9rem); letter-spacing: .06em; padding: .55rem 1.4rem; white-space: nowrap; color: var(--muted); display: inline-flex; align-items: center; gap: 1.4rem; }
.ticker span::after { content: ""; width: 9px; height: 9px; background: var(--brasa); transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__media { justify-self: center; width: min(100%, 420px); order: 2; }
  .hero__slider { aspect-ratio: 1; border-radius: 180px 180px var(--radius) var(--radius); }
  .tag { left: .6rem; bottom: 1rem; }
}

/* ---------- Revelado al hacer scroll (siempre legible: solo se mueve) ---------- */
.reveal { transition: transform .9s var(--ease); }
.js .reveal.is-pending { transform: translateY(36px); }
.js .reveal.is-pending img { transform: scale(1.06); }
.reveal img { transition: transform 1.2s var(--ease); }

/* ---------- Menú del día ---------- */
.daily { padding-block: clamp(3.5rem, 8vw, 6rem); position: relative; background: var(--carbon); }
.daily__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.daily__copy { min-width: 0; }
.daily__today {
  margin-top: 1.6rem; padding: 1.4rem clamp(1.1rem, 2.4vw, 1.6rem); border-radius: var(--radius);
  background: linear-gradient(135deg, #3a2a14, var(--carbon-2) 65%); border: 1px solid rgba(228, 142, 27, .45);
  display: grid; gap: .5rem;
}
.daily__kicker { font-size: var(--step--1); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--brasa); }
.daily__dish { font-family: var(--f-display); font-weight: 400; font-size: var(--step-2); line-height: 1.02; letter-spacing: .02em; text-wrap: balance; }
.daily__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.2rem; margin-top: .4rem; }
.daily__note { margin-top: 1rem; color: var(--muted); font-size: var(--step--1); }
.daily__media { margin: 0; position: relative; }
.daily__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius) var(--radius) 200px 200px; box-shadow: 0 40px 70px -35px rgba(0, 0, 0, .9); }
.daily__media figcaption { position: absolute; left: -1rem; top: 1.6rem; max-width: 15rem; background: var(--crema); color: var(--ink); font-weight: 700; font-size: var(--step--1); line-height: 1.35; padding: .6rem .9rem; border-radius: 8px; transform: rotate(-3deg); box-shadow: 0 16px 30px -12px rgba(0, 0, 0, .7); }
.price { font-variant-numeric: tabular-nums; font-weight: 800; white-space: nowrap; }
@media (max-width: 860px) {
  .daily__grid { grid-template-columns: minmax(0, 1fr); }
  .daily__media { max-width: 460px; }
  .daily__media img { aspect-ratio: 5 / 4; }
  .daily__media figcaption { left: .6rem; }
}

.week { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .5rem; }
.week li { border: 1px solid var(--line); border-radius: 10px; padding: .8rem .9rem; display: grid; gap: .25rem; align-content: start; min-width: 0; }
.week span { font-size: var(--step--1); line-height: 1.35; }
@media (max-width: 760px) {
  .week { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 72%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .4rem; }
  .week li { scroll-snap-align: start; }
}

/* ---------- Especialidades ---------- */
.specials { padding-block: clamp(3.5rem, 8vw, 6rem); background: var(--carbon-2); position: relative; }
.specials::before { content: ""; position: absolute; inset: 0; background-image: var(--noise); opacity: .05; pointer-events: none; }
.specials__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2.4vw, 1.8rem); }
.special { position: relative; display: grid; grid-template-rows: auto 1fr; background: var(--carbon); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-soft); }
.special__img { aspect-ratio: 16 / 11; overflow: hidden; }
.special__img img { width: 100%; height: 100%; object-fit: cover; }
.special:hover .special__img img { transform: scale(1.05); }
.special__body { position: relative; padding: 1.4rem clamp(1.2rem, 2.5vw, 1.8rem) 1.6rem; display: grid; gap: .55rem; align-content: start; }
.special__big {
  position: absolute; right: clamp(1rem, 2.4vw, 1.6rem); top: 0; transform: translateY(-62%);
  font-family: var(--f-display); font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: .9; color: var(--brasa);
  text-shadow: 0 6px 24px rgba(0, 0, 0, .55);
}
.special h3 { font-family: var(--f-display); font-weight: 400; font-size: var(--step-2); letter-spacing: .02em; line-height: 1; }
.special p { color: var(--muted); }
.special .link-btn { justify-self: start; margin-top: .4rem; }
@media (max-width: 760px) { .specials__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Carta ---------- */
.menu { padding-block: clamp(3.5rem, 8vw, 6rem); background: var(--crema); color: var(--ink); position: relative; }
.menu::before { content: ""; position: absolute; inset: 0; background-image: var(--noise); opacity: .12; mix-blend-mode: multiply; pointer-events: none; }
.menu .wrap { position: relative; }
.menu__hint { max-width: 26rem; color: var(--ink-soft); font-weight: 500; }
.menu__hint a { color: var(--ink); text-underline-offset: 3px; }
.tabs { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .6rem; margin-bottom: 1.6rem; scrollbar-width: thin; scroll-snap-type: x proximity; }
.tab {
  flex: none; scroll-snap-align: start; min-height: 44px; padding: .5rem 1.05rem; border-radius: 999px; cursor: pointer;
  border: 2px solid rgba(32, 32, 32, .18); background: transparent; color: var(--ink); font-weight: 700; font-size: var(--step--1); letter-spacing: .02em;
  transition: background-color .2s, border-color .2s, color .2s;
}
.tab:hover { border-color: var(--ink); }
.tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--crema); }
.menu-panel { display: grid; gap: 1.2rem; animation: fadeUp .45s var(--ease); }
@keyframes fadeUp { from { transform: translateY(12px); } to { transform: none; } }
.menu-panel__note { color: var(--ink-soft); font-weight: 600; }
.menu-items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 1rem; }
.item { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 1rem; padding: .8rem; border-radius: var(--radius); background: rgba(255, 255, 255, .5); border: 1px solid rgba(32, 32, 32, .08); align-items: center; transition: transform .25s var(--ease), box-shadow .25s; }
.item:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -18px rgba(32, 32, 32, .5); }
.item--noimg { grid-template-columns: minmax(0, 1fr); }
.item__img { width: 112px; aspect-ratio: 1; border-radius: 10px; overflow: hidden; }
.item__img img { width: 100%; height: 100%; object-fit: cover; }
.item__body { display: grid; gap: .3rem; min-width: 0; }
.item__top { display: flex; justify-content: space-between; gap: .8rem; align-items: baseline; }
.item h3 { font-size: var(--step-0); font-weight: 800; line-height: 1.25; }
.item p { font-size: var(--step--1); color: var(--ink-soft); line-height: 1.45; }
.item .price { font-size: var(--step-0); }
.price.is-link { font-size: var(--step--1); color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; text-decoration-color: var(--brasa); }
.price.is-link:hover { color: var(--ocre); }
.menu-aviso { display: grid; justify-items: start; gap: .8rem; padding: clamp(1.4rem, 4vw, 2.4rem); border-radius: var(--radius); background: var(--carbon); color: var(--crema); }
.menu-aviso h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: .02em; line-height: 1; }
.menu-aviso p { color: var(--muted); max-width: 34rem; }
@media (max-width: 420px) { .item { grid-template-columns: 88px minmax(0, 1fr); } .item__img { width: 88px; } }

/* ---------- Cómo pedir ---------- */
.how { padding-block: clamp(3.5rem, 8vw, 6rem); background: var(--carbon); position: relative; overflow: hidden; }
.how__in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 1.6rem 0 0; display: grid; gap: 1rem; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 1rem; align-items: baseline; color: var(--muted); }
.steps li::before { content: counter(s); font-family: var(--f-display); font-size: 2.6rem; line-height: .8; color: var(--brasa); }
.steps b { color: var(--crema); }
.how__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; margin-top: 2rem; }
.how__note { color: var(--muted); font-size: var(--step--1); }
.how__note a { color: var(--crema); font-weight: 700; }
.how__app { justify-self: center; width: min(100%, 360px); padding: 1rem 1.4rem 1.6rem; border-radius: 28px; background: var(--carbon-2); border: 1px solid var(--line); display: grid; justify-items: center; gap: 1rem; text-align: center; text-decoration: none; color: var(--crema); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9); transform: rotate(2deg); transition: transform .3s var(--ease), border-color .3s; }
.how__app:hover { transform: rotate(0) translateY(-4px); border-color: var(--brasa); }
.app__url { justify-self: stretch; padding: .45rem .9rem; border-radius: 999px; background: var(--carbon); color: var(--muted); font-size: .8rem; font-weight: 600; }
.how__app img { width: 72px; height: auto; margin-top: .6rem; }
.app__title { font-family: var(--f-display); font-size: clamp(2.2rem, 5vw, 2.8rem); line-height: .95; letter-spacing: .02em; }
.app__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; }
.app__chips span { padding: .35rem .8rem; border-radius: 999px; border: 1px solid var(--line); font-size: var(--step--1); font-weight: 700; }
.app__btn { justify-self: stretch; padding: .85rem 1rem; border-radius: 999px; background: var(--brasa); color: var(--ink); font-weight: 800; }
@media (max-width: 860px) { .how__in { grid-template-columns: minmax(0, 1fr); } .how__app { transform: none; } }

/* ---------- Historia ---------- */
.story { padding-block: clamp(3.5rem, 8vw, 6rem); background: var(--carbon-2); }
.story__grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.story__media { position: relative; padding-bottom: 3.5rem; padding-right: 2.5rem; }
.story__main { margin: 0; border-radius: var(--radius); overflow: hidden; }
.story__main img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.story__team { position: absolute; right: 0; bottom: 0; width: 56%; margin: 0; background: var(--crema); color: var(--ink); padding: .5rem .5rem .6rem; border-radius: 6px; transform: rotate(3deg); box-shadow: 0 30px 50px -24px rgba(0, 0, 0, .8); }
.story__team img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 3px; }
.story__team figcaption { font-size: .78rem; font-weight: 600; padding-top: .45rem; line-height: 1.3; }
.story__lead { margin-top: 1rem; color: var(--muted); font-size: var(--step-1); line-height: 1.55; max-width: 38rem; }
.timeline { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 1.2rem 1.4rem; display: grid; gap: .1rem; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: .45rem; width: 12px; height: 12px; border-radius: 50%; background: var(--carbon-2); border: 2px solid var(--brasa); }
.timeline li:last-child::before { background: var(--brasa); }
.timeline__year { font-family: var(--f-display); font-size: 1.5rem; letter-spacing: .04em; color: var(--brasa); line-height: 1.1; }
.timeline p { color: var(--muted); }
.story__diff { margin-top: 1rem; padding: 1rem 1.2rem; border-left: 3px solid var(--brasa); background: rgba(228, 142, 27, .1); border-radius: 0 10px 10px 0; }
.story__diff b { color: var(--brasa); }
@media (max-width: 860px) { .story__grid { grid-template-columns: minmax(0, 1fr); } .story__media { max-width: 520px; } }

/* ---------- Reseñas ---------- */
.reviews { padding-block: clamp(3.5rem, 8vw, 6rem); background: var(--carbon); }
.reviews__in { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.score { width: clamp(220px, 26vw, 300px); aspect-ratio: 1; border-radius: 50%; display: grid; place-content: center; text-align: center; gap: .3rem; background: radial-gradient(circle at 50% 35%, #3a2a14, var(--carbon-2) 70%); border: 2px solid rgba(228, 142, 27, .45); }
.score__num { font-family: var(--f-display); font-size: clamp(4.5rem, 9vw, 6.5rem); line-height: .85; color: var(--crema); }
.score__stars { position: relative; width: 140px; height: 24px; margin-inline: auto; background: var(--line); -webkit-mask: var(--stars) center / contain no-repeat; mask: var(--stars) center / contain no-repeat; --stars: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 24'%3E%3Cg%3E%3Cpath id='s' d='M12 1.5l3.1 6.6 7.2.9-5.3 5 1.4 7.1L12 17.6l-6.4 3.5L7 14l-5.3-5 7.2-.9z'/%3E%3Cuse href='%23s' x='24'/%3E%3Cuse href='%23s' x='48'/%3E%3Cuse href='%23s' x='72'/%3E%3Cuse href='%23s' x='96'/%3E%3C/g%3E%3C/svg%3E"); }
.score__stars span { position: absolute; inset: 0 auto 0 0; width: var(--fill); background: var(--brasa); }
.score__count { font-size: var(--step--1); color: var(--muted); font-weight: 600; }
.reviews__copy { display: grid; gap: 1rem; justify-items: start; }
.reviews__copy > p { color: var(--muted); }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li { padding: .45rem .9rem; border-radius: 999px; border: 1px solid var(--line); font-weight: 700; font-size: var(--step--1); }
.reviews__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1rem; width: 100%; }
.review { background: var(--carbon-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; display: grid; gap: .6rem; }
.review cite { font-style: normal; font-weight: 700; font-size: var(--step--1); color: var(--muted); }
@media (max-width: 760px) { .reviews__in { grid-template-columns: minmax(0, 1fr); justify-items: center; } .reviews__copy { justify-items: start; } }

/* ---------- Galería ---------- */
.gallery { padding-block: clamp(3.5rem, 8vw, 6rem); background: var(--carbon-2); }
.gallery__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 18vw, 230px); grid-auto-flow: dense; gap: clamp(.5rem, 1.2vw, 1rem); }
.g { margin: 0; overflow: hidden; border-radius: 12px; background: var(--carbon-3); }
.g--tall { grid-row: span 2; }
.g img, .g video { width: 100%; height: 100%; object-fit: cover; }
.g:hover img { transform: scale(1.06); }
@media (max-width: 760px) { .gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 42vw; } }

/* ---------- Ubicación ---------- */
.place { padding-block: clamp(3.5rem, 8vw, 6rem); background: var(--carbon); }
.place__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4rem); align-items: stretch; }
.place__zone { color: var(--muted); margin-top: .8rem; max-width: 30rem; }
.hours { width: 100%; border-collapse: collapse; margin-top: 1.6rem; font-variant-numeric: tabular-nums; }
.hours th, .hours td { text-align: left; padding: .6rem .2rem; border-bottom: 1px solid var(--line-soft); font-size: var(--step-0); }
.hours th { font-weight: 700; width: 38%; }
.hours td { color: var(--muted); }
.hours tr.is-today th, .hours tr.is-today td { color: var(--brasa); font-weight: 800; }
.hours tr.is-today th::after { content: " · hoy"; font-weight: 600; font-size: .8em; }
.place__ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.place__phone { margin-top: 1rem; color: var(--muted); font-size: var(--step--1); }
.map { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 340px; border: 1px solid var(--line); background: var(--carbon-2); }
.map__art, .map__art svg, .map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__pin { position: absolute; left: 50%; top: 54%; transform: translate(-50%, -100%); display: grid; place-items: center; width: 70px; height: 70px; border-radius: 50% 50% 50% 0; rotate: -45deg; background: var(--brasa); box-shadow: 0 16px 30px -10px rgba(0, 0, 0, .8); animation: drop 1.2s var(--ease) both; }
.map__pin img { rotate: 45deg; width: 40px; height: auto; filter: brightness(0) saturate(100%) invert(11%); }
@keyframes drop { from { translate: 0 -30px; } to { translate: 0 0; } }
.map__open { position: absolute; left: 1rem; bottom: 1rem; z-index: 2; background: var(--crema); color: var(--ink); font-weight: 800; font-size: var(--step--1); text-decoration: none; padding: .6rem 1rem; border-radius: 999px; }
.map.has-embed .map__art { display: none; }
@media (max-width: 860px) { .place__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Comunidad ---------- */
.community { padding-block: clamp(3rem, 7vw, 5rem); background: var(--brasa); color: var(--ink); position: relative; overflow: hidden; }
.community::before { content: "EL RÚSTICO"; position: absolute; right: -2rem; bottom: -3.2rem; font-family: var(--f-display); font-size: clamp(8rem, 20vw, 16rem); line-height: 1; color: var(--ocre); opacity: .35; -webkit-mask-image: var(--grunge); mask-image: var(--grunge); -webkit-mask-size: 260px; mask-size: 260px; pointer-events: none; white-space: nowrap; }
.community__in { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) auto; gap: 2rem; align-items: center; }
.community p:not(.eyebrow) { margin-top: .8rem; max-width: 36rem; font-weight: 500; }
.community .eyebrow--dark { color: var(--ink); }
.community__ctas { display: grid; gap: .8rem; }
@media (max-width: 860px) { .community__in { grid-template-columns: minmax(0, 1fr); } .community__ctas { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); } }

/* ---------- Pie ---------- */
.footer { background: #181818; padding-block: 3rem calc(6rem + env(safe-area-inset-bottom, 0px)); color: var(--muted); font-size: var(--step--1); }
.footer__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 2rem; }
.footer__brand { display: flex; gap: 1rem; align-items: center; }
.footer__name { font-family: var(--f-display); font-size: 1.8rem; color: var(--crema); letter-spacing: .05em; line-height: 1; }
.footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1.4rem; }
.footer__cols b { color: var(--crema); }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--crema); }
.footer__legal { margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px solid var(--line-soft); }
@media (max-width: 760px) { .footer__in { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Botones flotantes ---------- */
.fabs { position: fixed; z-index: 45; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; gap: .7rem; }
.fab-wa { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--wa); color: #fff; box-shadow: 0 12px 30px -8px rgba(0, 0, 0, .6); transition: transform .2s var(--ease); }
.fab-wa svg { width: 32px; height: 32px; }
.fab-wa:hover { transform: scale(1.07); }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .hero__embers { display: none; }
  .js .reveal.is-pending, .js .reveal.is-pending img { transform: none; }
}
