/* =====================================================================
   DOBLE — Landing de hamburguesería
   Diseño y desarrollo: Webliby · Licencia: ver LICENSE.txt
   Estilo: crema cálida + negro + mostaza + tomate. Tipografía display muy
   gruesa, bloques redondeados con borde negro y sombra dura, pegatinas.
   ===================================================================== */

:root {
  --cream: #FFF4E4;
  --cream-2: #FFE9CC;
  --ink: #14110E;
  --ink-2: #241E18;
  --muted: #6E6257;
  --yellow: #FFC01E;
  --red: #E8452B;
  --green: #5E8C3F;

  --line: #14110E;
  --shadow: 6px 6px 0 var(--ink);
  --shadow-sm: 4px 4px 0 var(--ink);
  --radius: 26px;
  --radius-sm: 14px;

  --display: "Archivo Black", "Arial Black", Impact, sans-serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shell: 1200px;
  --gutter: clamp(16px, 4.5vw, 44px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, dl, dd, figure, blockquote { margin: 0; }
button { font: inherit; }
::selection { background: var(--yellow); color: var(--ink); }

.shell { width: min(100% - var(--gutter) * 2, var(--shell)); margin-inline: auto; }

/* ---------- Tipografía ---------- */
h1, h2, h3, .price, .num__v, .step__n {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.95;
}
h2 { font-size: clamp(2.3rem, 5.6vw, 4.2rem); text-transform: uppercase; }
h3 { font-size: 1.32rem; }

mark {
  background: none;
  color: var(--red);
  position: relative;
}
.section--dark mark, .close mark { color: var(--yellow); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 18px;
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); animation: blink 1.8s ease-in-out infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.head--center { margin-inline: auto; text-align: center; }
.head__note { color: var(--muted); margin-top: 20px; max-width: 54ch; }
.head--center .head__note { margin-inline: auto; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 24px;
  font-family: var(--sans); font-size: 0.95rem; font-weight: 700;
  border: 3px solid var(--ink); border-radius: 999px;
  background: var(--cream); color: var(--ink); cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.25s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn--red { background: var(--red); color: #fff; }
.btn--yellow { background: var(--yellow); }
.btn--dark { background: var(--ink); color: var(--cream); }
.btn--line { background: transparent; }
.btn--ghost-light { background: transparent; color: var(--cream); border-color: var(--cream); box-shadow: 4px 4px 0 rgba(255, 244, 228, 0.35); }
.btn--ghost-light:hover { box-shadow: 7px 7px 0 rgba(255, 244, 228, 0.35); }
.btn--lg { padding: 17px 30px; font-size: 1rem; }

/* ---------- Navegación ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 400;
  padding: 16px 0;
  transition: padding 0.35s var(--ease), background 0.35s, box-shadow 0.35s;
}
.nav.is-scrolled {
  padding: 9px 0; background: var(--cream);
  box-shadow: 0 3px 0 var(--ink);
}
.nav__inner { display: flex; align-items: center; gap: 20px; }
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-size: 1.4rem; letter-spacing: -0.02em;
}
.nav__links { display: flex; align-items: center; gap: 28px; margin-left: auto; font-weight: 500; font-size: 0.94rem; }
.nav__links > a { position: relative; padding: 3px 0; }
.nav__links > a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; border-radius: 3px;
  background: var(--yellow); transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav__links > a:hover::after { transform: scaleX(1); }
.nav__cta { padding: 10px 20px; font-size: 0.88rem; }

.burger-btn {
  display: none; width: 46px; height: 46px; border: 3px solid var(--ink); border-radius: 14px;
  background: var(--cream); cursor: pointer; position: relative; box-shadow: var(--shadow-sm);
}
.burger-btn span {
  position: absolute; left: 10px; right: 10px; height: 3px; border-radius: 2px; background: var(--ink);
  transition: transform 0.35s var(--ease), opacity 0.25s;
}
.burger-btn span:nth-child(1) { top: 14px; }
.burger-btn span:nth-child(2) { top: 21px; }
.burger-btn span:nth-child(3) { top: 28px; }
.burger-btn[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger-btn[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ---------- Revelados ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(120px, 16vw, 168px) 0 clamp(50px, 7vw, 86px); overflow: hidden; }
.hero__blob {
  position: absolute; top: -18vw; right: -16vw; width: 62vw; height: 62vw; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 192, 30, 0.5), rgba(255, 192, 30, 0) 66%);
  filter: blur(10px); z-index: -1;
  animation: drift 16s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate(-8vw, 8vh) scale(1.12); } }

.hero__grid { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero__copy { min-width: 0; }
.hero__title { font-size: clamp(2.4rem, 5.2vw, 4.25rem); text-transform: uppercase; margin-bottom: 26px; }
.hero__title .line { display: block; overflow: hidden; }
.hero__title .word { display: inline-block; will-change: transform; }
.hero__lead { max-width: 48ch; color: var(--muted); font-size: 1.06rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 34px; }

.hero__facts { display: flex; flex-wrap: wrap; gap: 26px; }
.hero__facts li { display: flex; flex-direction: column; }
.hero__facts b { font-family: var(--display); font-size: 1.5rem; }
.hero__facts span { font-size: 0.82rem; color: var(--muted); }

.hero__art { position: relative; }
.shot {
  position: relative; border: 4px solid var(--ink); border-radius: var(--radius);
  overflow: hidden; background: var(--ink-2); box-shadow: var(--shadow);
}
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot--hero { aspect-ratio: 1 / 1; max-width: 520px; margin-left: auto; transform: rotate(-2deg); }
.shot--hero img { will-change: transform; }

.sticker {
  position: absolute; display: grid; place-items: center;
  background: var(--yellow); border: 4px solid var(--ink); border-radius: 50%;
  box-shadow: var(--shadow-sm);
}
.sticker--spin { left: -26px; bottom: 26px; width: 124px; height: 124px; }
.sticker--spin svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 18s linear infinite; }
.sticker--spin text { font-size: 9.6px; font-weight: 700; letter-spacing: 0.1em; fill: var(--ink); font-family: var(--sans); }
.sticker--spin b { font-size: 1.9rem; }
@keyframes spin { to { transform: rotate(360deg); } }

.sticker--flat {
  right: -18px; top: -20px; width: 116px; height: 116px; border-radius: 50%;
  background: var(--red); color: #fff; font-family: var(--display); font-size: 0.94rem;
  text-align: center; line-height: 1.15; transform: rotate(-9deg); padding: 10px;
}

.tag-float {
  position: absolute; padding: 9px 16px; background: var(--cream);
  border: 3px solid var(--ink); border-radius: 999px; font-weight: 700; font-size: 0.86rem;
  box-shadow: var(--shadow-sm);
  animation: bob 4s ease-in-out infinite;
}
.tag-float--1 { top: 8%; left: -12px; transform: rotate(-6deg); }
.tag-float--2 { bottom: 16%; right: -10px; transform: rotate(5deg); animation-delay: 1.4s; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -9px; } }

/* ---------- Cinta ---------- */
.strip {
  background: var(--yellow); border-top: 4px solid var(--ink); border-bottom: 4px solid var(--ink);
  overflow: hidden; padding: 13px 0; transform: rotate(-1.2deg); margin: 10px 0 44px; width: 104%; margin-left: -2%;
}
.strip__track {
  display: flex; align-items: center; gap: 26px; width: max-content;
  font-family: var(--display); font-size: 1.36rem; text-transform: uppercase;
  animation: slide 30s linear infinite;
}
.strip__track i { color: var(--red); font-style: normal; font-size: 0.8rem; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */
.section { padding: clamp(56px, 9vw, 116px) 0; }
.section--soft { background: var(--cream-2); border-top: 4px solid var(--ink); border-bottom: 4px solid var(--ink); }
.section--dark { background: var(--ink); color: var(--cream); border-top: 4px solid var(--ink); }
.section--dark .eyebrow { color: rgba(255, 244, 228, 0.55); }

/* ---------- Carta ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.chip {
  padding: 10px 20px; border: 3px solid var(--ink); border-radius: 999px;
  background: var(--cream); font-weight: 700; font-size: 0.88rem; cursor: pointer;
  transition: background 0.25s, color 0.25s, transform 0.2s var(--ease);
}
.chip:hover { transform: translateY(-2px); }
.chip.is-active { background: var(--ink); color: var(--cream); }

.menu { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.6vw, 30px); }
.dish {
  position: relative; display: flex; flex-direction: column;
  background: var(--cream); border: 4px solid var(--ink); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: opacity 0.4s, transform 0.4s var(--ease), box-shadow 0.3s;
  will-change: transform;
}
.dish.is-out { display: none; }
.dish__shot { aspect-ratio: 1 / 1; overflow: hidden; border-bottom: 4px solid var(--ink); background: var(--ink-2); }
.dish__shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.dish:hover .dish__shot img { transform: scale(1.06); }

.badge {
  position: absolute; z-index: 2; padding: 7px 14px; border: 3px solid var(--ink); border-radius: 999px;
  background: var(--red); color: #fff; font-weight: 700; font-size: 0.78rem;
  box-shadow: var(--shadow-sm);
}
.badge--top { top: 14px; left: 14px; transform: rotate(-4deg); }

.dish__body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.dish__row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.price { font-size: 1.28rem; color: var(--red); white-space: nowrap; }
.dish__body p { color: var(--muted); font-size: 0.95rem; flex: 1; }
.dish__tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.dish__tags li {
  font-size: 0.74rem; font-weight: 700; padding: 5px 11px;
  border: 2px solid var(--ink); border-radius: 999px; background: var(--cream-2);
}

.menu__foot { margin-top: 30px; color: var(--muted); font-size: 0.95rem; }
.menu__foot a { font-weight: 700; color: var(--ink); border-bottom: 3px solid var(--yellow); }

/* ---------- Proceso: la hamburguesa se monta ---------- */
.build { display: grid; grid-template-columns: 1fr 0.9fr; gap: clamp(28px, 5vw, 70px); align-items: stretch; }
.steps { margin-top: 34px; display: grid; gap: 22px; }
.step {
  display: flex; gap: 18px; padding: 20px 22px;
  border: 3px solid rgba(255, 244, 228, 0.22); border-radius: var(--radius-sm);
  transition: border-color 0.5s, background 0.5s, opacity 0.5s;
  opacity: 0.5;
}
.step.is-active { opacity: 1; border-color: var(--yellow); background: rgba(255, 192, 30, 0.08); }
.step__n { font-size: 1.5rem; color: var(--yellow); }
.step h3 { margin-bottom: 6px; }
.step p { color: rgba(255, 244, 228, 0.72); font-size: 0.95rem; }

.build__art { position: relative; height: 100%; }
.build__sticky { position: sticky; top: 108px; display: grid; place-items: center; padding: 10px 0 24px; }
.burger { width: 100%; max-width: 420px; overflow: visible; }
.burger .layer { will-change: transform; }
.build__hint {
  margin-top: 14px; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255, 244, 228, 0.5);
}

/* ---------- Números ---------- */
.nums { background: var(--yellow); border-top: 4px solid var(--ink); border-bottom: 4px solid var(--ink); }
.nums__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.num { padding: 34px 16px; text-align: center; border-right: 3px solid var(--ink); }
.num:last-child { border-right: 0; }
.num__v { display: block; font-size: clamp(2.1rem, 4.4vw, 3.3rem); }
.num span { font-size: 0.84rem; font-weight: 500; }

/* ---------- Local ---------- */
.local { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.local__shot {
  position: relative; border: 4px solid var(--ink); border-radius: var(--radius); overflow: visible;
  box-shadow: var(--shadow); background: var(--ink-2);
}
.local__shot img { display: block; width: 100%; height: 100%; border-radius: 22px; object-fit: cover; }
.local__shot { aspect-ratio: 16 / 11; }
.local__desc { color: var(--muted); margin-top: 18px; max-width: 46ch; }

.hours { margin: 26px 0 28px; border-top: 3px solid var(--ink); }
.hours > div {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 11px 0; border-bottom: 3px solid var(--ink);
}
.hours dt { font-weight: 700; }
.hours dd { margin: 0; color: var(--muted); text-align: right; }
.local__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Opiniones ---------- */
.notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.6vw, 30px); }
.note {
  padding: 26px 24px; background: var(--cream); border: 4px solid var(--ink);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-sm);
}
.note:nth-child(1) { transform: rotate(-1.4deg); }
.note:nth-child(2) { transform: rotate(0.8deg); }
.note:nth-child(3) { transform: rotate(-0.6deg); }
.note p { font-size: 1.02rem; margin-bottom: 16px; }
.note footer { font-size: 0.8rem; font-weight: 700; color: var(--muted); }

/* ---------- Cierre ---------- */
.close { background: var(--red); color: #fff; padding: clamp(60px, 9vw, 120px) 0; border-top: 4px solid var(--ink); }
.close__inner { text-align: center; max-width: 760px; margin-inline: auto; }
.close__title { font-size: clamp(3.4rem, 12vw, 8rem); text-transform: uppercase; margin-bottom: 18px; }
.close__note { font-size: 1.06rem; opacity: 0.92; max-width: 50ch; margin: 0 auto 30px; }
.close__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.close__small { margin-top: 24px; font-size: 0.88rem; opacity: 0.8; }

/* ---------- Pie ---------- */
.foot { padding: 34px 0 40px; background: var(--ink); color: var(--cream); }
.foot__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.foot__links { display: flex; flex-wrap: wrap; gap: 22px; font-size: 0.9rem; color: rgba(255, 244, 228, 0.72); }
.foot__links a:hover { color: var(--yellow); }
.foot__legal { width: 100%; font-size: 0.78rem; color: rgba(255, 244, 228, 0.5); }

/* ---------- Barra fija de pedido (móvil) ---------- */
.orderbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 350;
  display: none; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: var(--cream); border-top: 4px solid var(--ink);
}
.orderbar .btn { flex: 1; box-shadow: none; padding: 13px 10px; }
.orderbar .btn:hover { transform: none; box-shadow: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .menu { grid-template-columns: repeat(2, 1fr); }
  .build { grid-template-columns: 1fr; }
  .build__sticky { position: static; }
  .build__hint { display: none; }
  .local { grid-template-columns: 1fr; }
  .notes { grid-template-columns: 1fr; }
  .nums__grid { grid-template-columns: repeat(2, 1fr); }
  .num:nth-child(2) { border-right: 0; }
  .num:nth-child(-n+2) { border-bottom: 3px solid var(--ink); }
}

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { max-width: 480px; margin-inline: auto; width: 100%; }
  .shot--hero { margin-inline: auto; }
  .nav__links {
    position: fixed; inset: 0; z-index: 300;
    flex-direction: column; justify-content: center; gap: 24px;
    background: var(--cream); font-family: var(--display); font-size: 2rem; text-transform: uppercase;
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
  }
  .nav__links.is-open { opacity: 1; visibility: visible; transform: none; }
  .burger-btn { display: block; z-index: 400; order: 3; }
  .nav__cta { margin-left: auto; }
}

@media (max-width: 620px) {
  body { padding-bottom: 76px; }
  .orderbar { display: flex; }
  .menu { grid-template-columns: 1fr; }
  .hero__facts { gap: 18px; }
  .hero__actions .btn { width: 100%; }
  .close__actions .btn { width: 100%; }
  .sticker--spin { width: 100px; height: 100px; left: -14px; }
  .tag-float--1 { left: -4px; }
  .tag-float--2 { right: -4px; }
  .nav__cta span { display: none; }
}

/* Solo se suaviza lo intrusivo: en Windows el ajuste de movimiento reducido suele venir activado */
@media (prefers-reduced-motion: reduce) {
  .sticker--spin svg { animation-duration: 60s; }
  .strip__track { animation-duration: 70s; }
  .hero__blob { animation-duration: 50s; }
}
