/* ==========================================================================
   Piedra y Fuego — estilos
   Paleta tomada del logo: verde oliva profundo + crema.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --olive:      #2d311d;   /* color del logo */
  --olive-2:    #3a3f27;
  --olive-3:    #575d3f;
  --cream:      #f3efe5;   /* fondo */
  --paper:      #fbf9f3;
  --sand:       #e7e0cf;
  --ink:        #1e2113;
  --mute:       #6b6d5c;
  --kraft:      #b4975f;   /* acento cálido, muy dosificado */
  --wa:         #1f7a4d;
  --line:       rgba(45, 49, 29, 0.16);
  --line-light: rgba(243, 239, 229, 0.18);

  --f-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --f-mark:    "Marcellus", "Cormorant Garamond", Georgia, serif;
  --f-body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --gutter: clamp(20px, 5vw, 72px);
  --nav-h: 72px;
  --radius: 18px;
}

/* ---------- 2. Reset ---------- */
*, *::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(--f-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
section[id] { scroll-margin-top: calc(var(--nav-h) + 8px); }
::selection { background: var(--olive); color: var(--cream); }
:focus-visible { outline: 2px solid var(--kraft); outline-offset: 3px; border-radius: 4px; }

/* Llama del logo (símbolo SVG) */
.flame {
  fill: none;
  stroke: currentColor;
  stroke-width: 3.4;
  stroke-linejoin: round;
  stroke-linecap: round;
}

/* ---------- 3. Splash ---------- */
.splash {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-content: center; justify-items: center; gap: 18px;
  background: var(--olive); color: var(--cream);
  transition: clip-path 0.9s var(--ease-out), opacity 0.6s ease;
  clip-path: inset(0 0 0 0);
  /* Red de seguridad: se oculta sola aunque el JS falle */
  animation: splashSafety 0.01s 4.5s forwards;
}
.splash.is-out { clip-path: inset(0 0 100% 0); pointer-events: none; }
@keyframes splashSafety { to { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); visibility: hidden; } }
.splash__flame {
  width: 96px; height: 96px;
  stroke-width: 2.6;
  stroke-dasharray: 100; stroke-dashoffset: 100;
  animation: drawFlame 1.4s var(--ease-soft) 0.1s forwards;
}
@keyframes drawFlame { to { stroke-dashoffset: 0; } }
.splash__word {
  font-family: var(--f-mark); font-size: 15px; letter-spacing: 0.42em; text-transform: uppercase;
  opacity: 0; transform: translateY(8px);
  animation: fadeUp 0.8s var(--ease-out) 0.7s forwards;
}
@keyframes fadeUp { to { opacity: 1; transform: none; } }

/* ---------- 4. Botones / enlaces ---------- */
.btn {
  --bg: var(--olive); --fg: var(--cream);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  background: var(--bg); color: var(--fg);
  border: 0; border-radius: 999px; cursor: pointer;
  font-family: var(--f-body); font-size: 14px; font-weight: 500; letter-spacing: 0.06em;
  transition: transform 0.4s var(--ease-out), background-color 0.3s ease, box-shadow 0.4s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(45, 49, 29, 0.55); background: var(--olive-2); }
.btn:active { transform: translateY(0); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--small { min-height: 42px; padding: 0 20px; font-size: 13px; }
.btn--block { width: 100%; }
.btn--wa { --bg: var(--olive); }
.btn--wa svg { color: #8fd6a8; }

.link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500; letter-spacing: 0.04em;
  padding: 6px 0; border-bottom: 1px solid var(--line);
  transition: border-color 0.3s ease, gap 0.4s var(--ease-out);
}
.link:hover { border-color: var(--olive); gap: 12px; }

.kicker {
  font-size: 12px; font-weight: 500; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--olive-3);
}
.kicker--light { color: rgba(243, 239, 229, 0.7); }

.h2 {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: 1.02; letter-spacing: -0.01em;
  color: var(--olive);
}
.h2 em { font-style: italic; color: var(--olive-3); }
.h2--light { color: var(--cream); }

/* Separador del logo: línea · punto · línea */
.rule { display: flex; align-items: center; gap: 12px; width: min(340px, 80%); }
.rule span { flex: 1; height: 1px; background: var(--olive); opacity: 0.45; }
.rule i { width: 7px; height: 7px; border-radius: 50%; background: var(--olive); }

/* ---------- 5. Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; } /* defensa: nunca invisible */
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- 6. Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--gutter);
  transition: background-color 0.4s ease, box-shadow 0.4s ease, height 0.4s var(--ease-out);
}
.nav.is-scrolled {
  background: rgba(243, 239, 229, 0.94);
  box-shadow: 0 1px 0 var(--line);
  height: 62px;
}
@supports (backdrop-filter: blur(10px)) {
  .nav.is-scrolled { background: rgba(243, 239, 229, 0.78); backdrop-filter: blur(14px) saturate(1.2); }
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--olive); }
.brand__mark {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--olive); color: var(--cream);
  transition: transform 0.6s var(--ease-out);
}
.brand__mark .flame { width: 80%; height: 80%; stroke-width: 4.4; margin-top: -6%; }
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.05); }
.brand__mark--light { background: var(--cream); color: var(--olive); }
.brand__word { font-family: var(--f-mark); font-size: 17px; letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap; }
.nav__links { display: flex; gap: 36px; margin-left: auto; }
.nav__links a { font-size: 14px; letter-spacing: 0.04em; position: relative; padding: 4px 0; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--olive);
  transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease-out);
}
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: clamp(24px, 4vw, 64px);
  padding: calc(var(--nav-h) + 32px) var(--gutter) 64px;
  max-width: 1440px; margin: 0 auto;
}
.hero__text { display: grid; gap: 26px; justify-items: start; position: relative; z-index: 2; }
.hero__title {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(3.2rem, 7.4vw, 7rem); line-height: 0.95; letter-spacing: -0.015em;
  color: var(--olive);
}
.hero__title em { font-style: italic; color: var(--olive-3); }
.hero__lead { max-width: 30rem; color: var(--mute); font-size: 17px; font-weight: 300; }
.hero__cta { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 28px; margin-top: 6px; }
.hero__cta--center { justify-content: center; }

.hero__visual { position: relative; aspect-ratio: 1 / 1; display: grid; place-items: center; }
.hero__disc {
  position: absolute; inset: 9%; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, var(--sand), rgba(231, 224, 207, 0) 70%);
}
.ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; }
/* Rotamos el contenido, no el <svg>: así no genera scroll horizontal */
.ring__spin { transform-origin: 100px 100px; animation: spin 60s linear infinite; }
.ring text {
  font-family: var(--f-mark); font-size: 8.4px; letter-spacing: 0.28em; fill: var(--olive); opacity: 0.75;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero__pizza {
  position: relative; width: 76%; height: auto;
  filter: drop-shadow(0 36px 40px rgba(45, 49, 29, 0.28));
  will-change: transform;
  opacity: 0; transform: scale(0.92) rotate(-6deg);
  animation: pizzaIn 1.6s var(--ease-out) 0.5s forwards;
}
@keyframes pizzaIn { to { opacity: 1; transform: none; } }

/* ---------- 8. Marquee ---------- */
.marquee { background: var(--olive); color: var(--cream); overflow: hidden; padding: 22px 0; }
.marquee__track {
  display: flex; align-items: center; gap: 36px; width: max-content;
  animation: marquee 40s linear infinite;
}
.marquee__track span { font-family: var(--f-display); font-style: italic; font-size: clamp(1.6rem, 3vw, 2.4rem); white-space: nowrap; line-height: 1; }
.marquee__track .flame { width: 26px; height: 26px; flex: none; opacity: 0.6; stroke-width: 4.5; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 9. La casa ---------- */
.house {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); gap: clamp(32px, 7vw, 120px); align-items: center;
  padding: clamp(80px, 12vw, 160px) var(--gutter);
  max-width: 1320px; margin: 0 auto;
}
.house__figure { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--sand); isolation: isolate; }
/* multiply: el fondo blanco de la foto toma el tono arena del marco */
.house__figure img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; transform: scale(1.06); transition: transform 1.6s var(--ease-out); }
.house__figure:hover img { transform: scale(1.12); }
.house__figure figcaption {
  position: absolute; left: 18px; bottom: 18px;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(251, 249, 243, 0.92); color: var(--olive);
  font-family: var(--f-display); font-style: italic; font-size: 18px;
}
.house__text { display: grid; gap: 26px; }
.points { display: grid; margin-top: 12px; border-top: 1px solid var(--line); }
.points li { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.points__n { font-family: var(--f-mark); color: var(--kraft); letter-spacing: 0.1em; padding-top: 4px; }
.points h3 { font-family: var(--f-display); font-weight: 600; font-size: 1.6rem; line-height: 1.1; color: var(--olive); margin-bottom: 6px; }
.points p { color: var(--mute); font-weight: 300; }

/* ---------- 10. Sabores + pedido ---------- */
.order { background: var(--paper); padding: clamp(80px, 11vw, 150px) var(--gutter); border-top: 1px solid var(--line); }
.order__head { max-width: 1320px; margin: 0 auto 56px; display: grid; gap: 16px; }
.order__intro { color: var(--mute); font-weight: 300; max-width: 34rem; font-size: 17px; }
.order__grid {
  max-width: 1320px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: clamp(32px, 5vw, 80px); align-items: start;
}

.menu__group {
  font-family: var(--f-mark); font-weight: 400; font-size: 13px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--olive-3); padding: 0 0 14px; border-bottom: 1px solid var(--olive);
}
.menu__group + .flavor { border-top: 0; }
.flavor + .menu__group { margin-top: 64px; }

.flavor {
  position: relative;
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 18px; align-items: start;
  padding: 26px 14px 26px 0;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.4s ease, padding 0.4s var(--ease-out);
}
.flavor::before {
  content: ""; position: absolute; left: -14px; top: 18px; bottom: 18px; width: 3px; border-radius: 3px;
  background: var(--olive); transform: scaleY(0); transition: transform 0.5s var(--ease-out);
}
.flavor.is-picked::before { transform: scaleY(1); }
.flavor__n {
  display: grid; place-items: center; width: 36px; height: 36px; margin-top: 4px; border-radius: 50%;
  border: 1px solid var(--olive); color: var(--olive);
  font-family: var(--f-mark); font-size: 15px;
  transition: background-color 0.35s ease, color 0.35s ease;
}
.flavor.is-picked .flavor__n { background: var(--olive); color: var(--cream); }
.flavor__name {
  font-family: var(--f-display); font-weight: 600; font-size: clamp(1.7rem, 2.6vw, 2.15rem); line-height: 1.05;
  color: var(--olive);
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px;
}
.flavor__name small { font-family: var(--f-display); font-style: italic; font-weight: 500; font-size: 0.62em; color: var(--mute); }
.flavor--star .flavor__name small { color: var(--kraft); }
.tag {
  align-self: center;
  font-family: var(--f-body); font-size: 10px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 4px 9px 3px; border-radius: 999px; background: var(--olive); color: var(--cream);
}
.flavor__desc { color: var(--mute); font-weight: 300; margin-top: 6px; }
.flavor__price { font-family: var(--f-mark); font-size: 17px; letter-spacing: 0.04em; color: var(--olive); margin-top: 8px; }
.summary__total {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 12px 0 2px; border-top: 1px solid var(--line);
}
.summary__total[hidden] { display: none; }
.summary__total span { font-size: 11px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mute); }
.summary__total strong { font-family: var(--f-mark); font-weight: 400; font-size: 1.5rem; color: var(--olive); }
.summary__list .p { display: block; font-family: var(--f-mark); font-size: 13px; color: var(--olive-3); margin-top: 2px; }

.flavor__opts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; } /* visible siempre: se elige antes de sumar */
/* Selector de masa: Normal / Integral */
.dough {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 14px;
  padding: 4px 4px 4px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper);
}
.dough__label { font-size: 11px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mute); margin-right: 6px; }
.dough label { position: relative; cursor: pointer; }
.dough input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.dough label span {
  display: block; padding: 6px 14px; border-radius: 999px;
  font-size: 13px; color: var(--olive-3);
  transition: background-color 0.3s ease, color 0.3s ease;
}
.dough label:hover span { background: var(--sand); }
.dough input:checked + span { background: var(--olive); color: var(--cream); }
.dough input:focus-visible + span { outline: 2px solid var(--kraft); outline-offset: 2px; }

.opt { position: relative; cursor: pointer; }
.opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.opt span {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line);
  font-size: 13px; color: var(--olive-3);
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.opt span::before {
  content: ""; width: 12px; height: 12px; border-radius: 50%; border: 1px solid currentColor;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.opt input:checked + span { background: var(--olive); border-color: var(--olive); color: var(--cream); }
.opt input:checked + span::before { background: var(--cream); box-shadow: inset 0 0 0 2px var(--olive); }
.opt input:focus-visible + span { outline: 2px solid var(--kraft); outline-offset: 2px; }

.stepper {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 4px;
  padding: 4px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper);
}
.stepper button {
  width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
  background: transparent; color: var(--olive); font-size: 20px; line-height: 1;
  display: grid; place-items: center;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.stepper button:hover { background: var(--sand); }
.stepper button:active { transform: scale(0.9); }
.stepper button[data-step="1"] { background: var(--olive); color: var(--cream); }
.stepper button[data-step="1"]:hover { background: var(--olive-2); }
.stepper button[data-step="-1"]:disabled { opacity: 0.3; cursor: default; background: transparent; }
.stepper__qty { min-width: 26px; text-align: center; font-family: var(--f-mark); font-size: 17px; color: var(--olive); }
.stepper__qty.bump { animation: bump 0.4s var(--ease-out); }
@keyframes bump { 40% { transform: scale(1.4); } }

.menu__note { margin-top: 32px; color: var(--mute); font-size: 15px; font-weight: 300; }
.menu__note strong { color: var(--olive); font-weight: 500; }

/* Resumen */
.summary { position: sticky; top: calc(var(--nav-h) + 16px); }
.summary__card {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: grid; gap: 18px;
}
.summary__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.summary__head h3 { font-family: var(--f-display); font-weight: 600; font-size: 1.9rem; line-height: 1; color: var(--olive); }
.summary__count { font-size: 13px; letter-spacing: 0.08em; color: var(--mute); white-space: nowrap; }
.summary__empty { color: var(--mute); font-size: 15px; font-weight: 300; }
.summary__empty b { color: var(--olive); }
.summary__list { display: grid; gap: 12px; }
.summary__list:empty { display: none; }
.summary__list li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; animation: itemIn 0.5s var(--ease-out); }
@keyframes itemIn { from { opacity: 0; transform: translateX(-8px); } }
.summary__list .q { font-family: var(--f-mark); color: var(--olive); font-size: 16px; }
.summary__list .n { font-family: var(--f-display); font-weight: 600; font-size: 1.2rem; line-height: 1.2; color: var(--olive); }
.summary__list .o { display: block; font-family: var(--f-body); font-size: 13px; font-weight: 300; color: var(--mute); }
.summary__fields { display: grid; gap: 12px; padding-top: 4px; }
.field { display: grid; gap: 6px; }
.field span { font-size: 13px; color: var(--olive-3); }
.field em { font-style: normal; color: var(--mute); font-weight: 300; }
.field input, .field textarea {
  width: 100%; padding: 11px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--paper);
  font-size: 15px; resize: vertical;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--olive); box-shadow: 0 0 0 3px rgba(45, 49, 29, 0.12); }
.field .req { font-style: normal; color: var(--kraft); margin-left: 2px; }
.field input::placeholder, .field textarea::placeholder { color: var(--mute); opacity: 0.7; }
.field.is-invalid input { border-color: #a8552e; box-shadow: 0 0 0 3px rgba(168, 85, 46, 0.14); }
.field.is-invalid span { color: #8a4b2a; }
.summary__hint { font-size: 14px; color: #8a4b2a; min-height: 0; }
.summary__hint:empty { display: none; }
.summary__small { font-size: 12.5px; color: var(--mute); font-weight: 300; text-align: center; margin-top: -6px; }
.summary.is-shake .summary__card { animation: shake 0.45s var(--ease-soft); }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* ---------- 11. Cómo pedir ---------- */
.how { background: var(--olive); color: var(--cream); padding: clamp(80px, 11vw, 150px) var(--gutter); }
.how__inner { max-width: 1320px; margin: 0 auto; display: grid; gap: 18px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); margin-top: 48px; }
.steps li { padding-top: 26px; border-top: 1px solid var(--line-light); display: grid; gap: 10px; align-content: start; }
.steps__n { font-family: var(--f-mark); color: var(--kraft); letter-spacing: 0.12em; }
.steps h3 { font-family: var(--f-display); font-weight: 500; font-style: italic; font-size: clamp(2rem, 3.2vw, 2.8rem); line-height: 1; }
.steps p { color: rgba(243, 239, 229, 0.72); font-weight: 300; max-width: 22rem; }
.steps strong { color: var(--cream); font-weight: 500; }
.how__note {
  margin-top: 40px; justify-self: start;
  font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase;
  padding: 10px 18px; border: 1px solid var(--line-light); border-radius: 999px;
}

/* ---------- 12. Cierre + footer ---------- */
.closing { padding: clamp(90px, 13vw, 170px) var(--gutter); display: grid; justify-items: center; gap: 26px; text-align: center; }
.closing__flame { width: 64px; height: 64px; color: var(--olive); stroke-width: 2.8; }
.closing__title { font-family: var(--f-display); font-weight: 500; font-size: clamp(3rem, 8vw, 6.4rem); line-height: 0.95; color: var(--olive); letter-spacing: -0.015em; }
.closing__title em { font-style: italic; color: var(--olive-3); }

.footer {
  background: var(--ink); color: rgba(243, 239, 229, 0.75);
  padding: 56px var(--gutter) 36px;
  display: grid; grid-template-columns: 1fr auto; gap: 32px 48px; align-items: end;
}
.footer__brand { display: flex; align-items: center; gap: 16px; }
.footer__brand .brand__mark { width: 52px; height: 52px; }
.footer__word { font-family: var(--f-mark); color: var(--cream); letter-spacing: 0.18em; text-transform: uppercase; font-size: 17px; }
.footer__tag { font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; margin-top: 4px; }
.footer__info { display: grid; gap: 4px; font-size: 14px; font-weight: 300; text-align: right; }
.footer__info a { color: var(--cream); border-bottom: 1px solid var(--line-light); }
.footer__copy { grid-column: 1 / -1; font-size: 12px; padding-top: 24px; border-top: 1px solid var(--line-light); color: rgba(243, 239, 229, 0.45); }

/* ---------- 12b. Horarios, freezer y textos extra ---------- */
.hours { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.hours li {
  display: inline-flex; align-items: baseline; gap: 10px;
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: rgba(251, 249, 243, 0.6);
}
.hours span { font-size: 11px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mute); }
.hours strong { font-family: var(--f-mark); font-weight: 400; font-size: 15px; color: var(--olive); white-space: nowrap; }

.house__lead { color: var(--mute); font-weight: 300; font-size: 17px; max-width: 32rem; }

.freezer {
  display: grid; justify-items: center; text-align: center; gap: 22px;
  padding: clamp(80px, 11vw, 150px) var(--gutter);
  border-top: 1px solid var(--line);
}
.freezer__flame { width: 46px; height: 46px; color: var(--kraft); stroke-width: 3; }
.freezer__quote {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(2.2rem, 5.4vw, 4.6rem); line-height: 1.05; letter-spacing: -0.01em;
  color: var(--olive); max-width: 16ch; text-wrap: balance;
}
.freezer__quote em { font-style: italic; color: var(--olive-3); white-space: nowrap; }
.freezer__sub { color: var(--mute); font-weight: 300; font-size: 18px; max-width: 30rem; }
.freezer__steps {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0;
  margin-top: 26px; width: min(900px, 100%);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.freezer__steps li {
  display: grid; gap: 6px; padding: 22px 16px;
  font-family: var(--f-display); font-style: italic; font-size: 1.35rem; line-height: 1.2; color: var(--olive);
}
.freezer__steps li + li { border-left: 1px solid var(--line); }
.freezer__steps span { font-family: var(--f-mark); font-style: normal; font-size: 12px; letter-spacing: 0.2em; color: var(--kraft); }

.summary__hours {
  display: grid; gap: 4px;
  font-size: 13px; color: var(--olive-3); text-align: center;
  padding-top: 14px; border-top: 1px solid var(--line);
}
.summary__hours p span { font-size: 10.5px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mute); margin-right: 6px; }

/* Redes */
.social { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 16px; }
.social__label { font-size: 11px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mute); }
.social__link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--olive);
  transition: color 0.3s ease;
}
.social__link svg { width: 20px; height: 20px; flex: none; transition: transform 0.35s var(--ease-soft); }
.social__link span { border-bottom: 1px solid transparent; transition: border-color 0.3s ease; }
.social__link:hover span { border-color: currentColor; }
.social__link:hover svg { transform: translateY(-2px) rotate(-6deg); }
.social--light .social__label { color: rgba(243, 239, 229, 0.55); }
.social--light .social__link { color: var(--cream); }
.how .social { margin-top: 6px; }

.footer__social { display: flex; gap: 10px; justify-content: flex-end; margin-top: 12px; }
.footer__social a {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line-light); color: var(--cream);
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.35s var(--ease-soft);
}
.footer__social a:hover { background: var(--cream); color: var(--ink); transform: translateY(-2px); }
.footer__social svg { width: 19px; height: 19px; }
.closing__sub { color: var(--mute); font-weight: 300; font-size: 18px; max-width: 30rem; margin-top: -6px; }

@media (max-width: 680px) {
  .freezer__steps { grid-template-columns: minmax(0, 1fr); }
  .freezer__steps li + li { border-left: 0; border-top: 1px solid var(--line); }
  .hours li { width: 100%; flex-direction: column; align-items: flex-start; gap: 3px; border-radius: 16px; padding: 10px 16px; }
  .social__label { flex-basis: 100%; }
  .hours strong { font-size: 14px; }
}

/* ---------- 13. Barra de pedido (móvil) ---------- */
.orderbar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40;
  display: none; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 8px 8px 20px; border-radius: 999px;
  background: var(--olive); color: var(--cream);
  box-shadow: 0 18px 40px -16px rgba(30, 33, 19, 0.6);
  transform: translateY(140%); transition: transform 0.5s var(--ease-out);
}
.orderbar.is-on { transform: none; }
.orderbar__count { font-size: 14px; font-weight: 500; letter-spacing: 0.04em; }
.orderbar .btn { --bg: var(--cream); --fg: var(--olive); }
.orderbar .btn:hover { background: var(--paper); }
.orderbar .btn svg { color: var(--wa); }

.orderbar .btn svg { color: var(--olive); width: 18px; height: 18px; }

/* ---------- 13b. Carrito (panel lateral) ---------- */
.nav__cart {
  position: relative; flex: none; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--line); background: rgba(251, 249, 243, 0.7); color: var(--olive);
  transition: background-color 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}
.nav__cart:hover { background: var(--sand); }
.nav__cart:focus-visible, .cart__close:focus-visible { outline: 2px solid var(--kraft); outline-offset: 2px; }
.nav__cart svg { width: 21px; height: 21px; }
.nav__cart.bump { animation: cartBump 0.45s var(--ease-out); }
@keyframes cartBump { 40% { transform: scale(1.14); } }
.nav__badge {
  position: absolute; top: -5px; right: -5px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; background: var(--kraft); color: var(--ink);
  font-size: 11px; font-weight: 600; line-height: 20px; text-align: center;
}
.nav__badge[hidden] { display: none; }

html.cart-open { overflow: hidden; }
.cart { position: fixed; inset: 0; z-index: 80; visibility: hidden; pointer-events: none; transition: visibility 0s linear 0.5s; }
.cart.is-open { visibility: visible; pointer-events: auto; transition: none; }
.cart__backdrop { position: absolute; inset: 0; background: rgba(30, 33, 19, 0.5); opacity: 0; transition: opacity 0.4s ease; }
.cart.is-open .cart__backdrop { opacity: 1; }
.cart__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(470px, 100%);
  display: flex; flex-direction: column;
  background: var(--cream); outline: none;
  box-shadow: -24px 0 60px -30px rgba(30, 33, 19, 0.55);
  transform: translateX(100%); transition: transform 0.5s var(--ease-out);
}
.cart.is-open .cart__panel { transform: none; }
.cart__head { display: flex; align-items: center; gap: 12px; padding: 16px 18px 14px 24px; border-bottom: 1px solid var(--line); }
.cart__head h2 { font-family: var(--f-display); font-weight: 600; font-size: 1.9rem; line-height: 1; color: var(--olive); }
.cart__count { margin-right: auto; font-size: 13px; letter-spacing: 0.08em; color: var(--mute); white-space: nowrap; }
.cart__close {
  flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--line); background: transparent; color: var(--olive);
  transition: background-color 0.3s ease;
}
.cart__close:hover { background: var(--sand); }
.cart__close svg { width: 18px; height: 18px; }
.cart__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 4px 24px 32px; }

.cart__empty { display: grid; justify-items: center; gap: 14px; padding: 48px 8px 20px; text-align: center; color: var(--mute); font-weight: 300; }
.cart__empty[hidden] { display: none; }
.cart__empty .flame { width: 46px; height: 46px; color: var(--kraft); stroke-width: 3; }

.cart__list { display: grid; }
.cart__item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart__name { font-family: var(--f-display); font-weight: 600; font-size: 1.25rem; line-height: 1.15; color: var(--olive); }
.cart__opts { font-size: 13px; font-weight: 300; color: var(--mute); margin-top: 3px; }
.cart__price { font-family: var(--f-mark); font-size: 16px; color: var(--olive); white-space: nowrap; padding-top: 2px; }
.cart__dough {
  grid-column: 1 / -1; justify-self: start;
  display: inline-flex; align-items: center; gap: 2px;
  padding: 3px 3px 3px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper);
}
.cart__dough span { font-size: 10.5px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mute); margin-right: 6px; }
.cart__dough button {
  padding: 5px 12px; border-radius: 999px; border: 0; cursor: pointer;
  background: transparent; color: var(--olive-3); font-size: 12.5px;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.cart__dough button:hover { background: var(--sand); }
.cart__dough button[aria-pressed="true"] { background: var(--olive); color: var(--cream); cursor: default; }
.cart__dough button:focus-visible { outline: 2px solid var(--kraft); outline-offset: 2px; }
.cart__ctrl { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cart__ctrl .stepper { margin-top: 0; }
.stepper--sm button { width: 34px; height: 34px; font-size: 18px; }
.stepper--sm .stepper__qty { font-size: 16px; }
.cart__remove {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 2px; cursor: pointer;
  border: 0; background: transparent; color: var(--mute); font-size: 13px;
  transition: color 0.3s ease;
}
.cart__remove:hover { color: #8a4b2a; }
.cart__remove svg { width: 17px; height: 17px; }
.cart__clear {
  display: block; margin: 12px 0 0 auto; padding: 6px 0; cursor: pointer;
  border: 0; background: transparent; color: var(--mute);
  font-size: 12.5px; text-decoration: underline; text-underline-offset: 3px;
}
.cart__clear[hidden] { display: none; }
.cart__clear.is-armed { color: #8a4b2a; font-weight: 500; }

.checkout { display: grid; gap: 28px; margin-top: 28px; }
.checkout[hidden] { display: none; }
.checkout fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 12px; }
.checkout legend {
  padding: 0; margin-bottom: 12px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--olive-3);
}
.choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choice label { position: relative; cursor: pointer; display: block; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice__box {
  position: relative; display: grid; gap: 3px; height: 100%;
  padding: 13px 12px 13px 40px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--paper);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.choice__box::before {
  content: ""; position: absolute; left: 14px; top: 15px; width: 16px; height: 16px; border-radius: 50%;
  border: 1.5px solid var(--olive-3); transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.choice__box b { font-weight: 500; font-size: 14.5px; line-height: 1.25; color: var(--olive); }
.choice__box small { font-size: 12.5px; font-weight: 300; line-height: 1.35; color: var(--mute); }
.choice label:hover .choice__box { border-color: var(--olive-3); }
.choice input:checked + .choice__box { border-color: var(--olive); box-shadow: inset 0 0 0 1px var(--olive); }
.choice input:checked + .choice__box::before { border-color: var(--olive); background: var(--olive); box-shadow: inset 0 0 0 3px var(--paper); }
.choice input:focus-visible + .choice__box { outline: 2px solid var(--kraft); outline-offset: 2px; }
@media (max-width: 420px) {
  .choice { gap: 8px; }
  .choice__box { padding: 12px 10px 12px 34px; }
  .choice__box::before { left: 11px; top: 14px; }
  .choice__box b { font-size: 14px; }
  .cart__body { padding: 4px 18px 28px; }
  .cart__foot { padding-left: 18px; padding-right: 18px; }
  .cart__head { padding-left: 18px; }
}
.choice.is-invalid .choice__box { border-color: #a8552e; box-shadow: 0 0 0 3px rgba(168, 85, 46, 0.12); }

.checkout__more { display: grid; gap: 12px; padding: 14px; border-radius: 14px; background: rgba(231, 224, 207, 0.5); animation: moreIn 0.45s var(--ease-out); }
.checkout__more[hidden] { display: none; }
@keyframes moreIn { from { opacity: 0; transform: translateY(-6px); } }
.checkout__note { font-size: 13.5px; font-weight: 300; color: var(--olive-3); }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) 104px; gap: 10px; }
.field select {
  width: 100%; padding: 11px 38px 11px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink); font-size: 15px;
  -webkit-appearance: none; appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--olive) 50%), linear-gradient(135deg, var(--olive) 50%, transparent 50%);
  background-position: calc(100% - 20px) 52%, calc(100% - 15px) 52%;
  background-size: 5px 5px; background-repeat: no-repeat;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.field select:focus { outline: none; border-color: var(--olive); box-shadow: 0 0 0 3px rgba(45, 49, 29, 0.12); }
.field.is-invalid select { border-color: #a8552e; box-shadow: 0 0 0 3px rgba(168, 85, 46, 0.14); }
.field .money { position: relative; display: block; }
.field .money::before { content: "$"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--mute); font-size: 15px; pointer-events: none; }
.field .money input { padding-left: 28px; }
.vuelto { font-size: 14px; color: var(--olive-3); font-weight: 300; }
.vuelto b { font-family: var(--f-mark); font-weight: 400; font-size: 16px; color: var(--olive); }
.vuelto.is-warn, .vuelto.is-warn b { color: #8a4b2a; }

.cart__foot {
  display: grid; gap: 10px;
  padding: 14px 24px calc(16px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line); background: var(--cream);
}
.cart__total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.cart__total span { font-size: 11px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mute); }
.cart__total strong { font-family: var(--f-mark); font-weight: 400; font-size: 1.6rem; color: var(--olive); }
.cart__hint { font-size: 13.5px; line-height: 1.45; color: #8a4b2a; }
.cart__hint:empty { display: none; }
.cart__small { font-size: 12px; font-weight: 300; text-align: center; color: var(--mute); }
.cart.is-shake .cart__foot .btn { animation: shake 0.45s var(--ease-soft); }
.cart__hint[data-kind="info"] { color: var(--olive); }

/* Cliente frecuente: repetir pedido + dirección recordada */
.repeat {
  display: grid; gap: 3px; justify-items: center; width: 100%; max-width: 340px;
  padding: 14px 18px; border-radius: 16px; cursor: pointer;
  border: 1.5px dashed var(--kraft); background: rgba(180, 151, 95, 0.12);
  color: var(--olive); font: inherit; text-align: center;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s var(--ease-out);
}
.repeat[hidden] { display: none; }
.repeat:hover { background: rgba(180, 151, 95, 0.2); border-color: var(--olive-3); transform: translateY(-1px); }
.repeat:active { transform: translateY(0) scale(0.99); }
.repeat:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; }
.repeat__label { font-family: var(--f-mark); font-size: 1.08rem; letter-spacing: 0.01em; }
.repeat__info { font-size: 12.5px; font-weight: 400; color: var(--olive-3); }
.summary__card .repeat { max-width: none; margin: 4px 0 2px; }

.remember { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; font-size: 12.5px; font-weight: 300; color: var(--olive-3); }
.remember[hidden] { display: none; }
.remember__forget {
  padding: 2px 0; border: 0; background: none; cursor: pointer; font: inherit; font-weight: 500;
  color: var(--olive-3); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(87, 93, 63, 0.4);
}
.remember__forget:hover { color: #8a4b2a; text-decoration-color: currentColor; }

/* ---------- 14. Responsive ---------- */
@media (max-width: 1080px) {
  .order__grid { grid-template-columns: minmax(0, 1fr); }
  .summary { position: static; }
  .orderbar { display: flex; }
}
@media (max-width: 860px) {
  :root { --nav-h: 64px; }
  .nav { gap: 10px; }
  .nav__cart { margin-left: auto; }
  .nav__links { display: none; }
  .brand__word { font-size: 14px; letter-spacing: 0.12em; }
  .brand__mark { width: 38px; height: 38px; }
  .hero { grid-template-columns: minmax(0, 1fr); min-height: auto; padding-top: calc(var(--nav-h) + 40px); gap: 8px; }
  .hero__visual { order: 2; width: 100%; max-width: 560px; justify-self: center; margin-top: 12px; }
  .house { grid-template-columns: minmax(0, 1fr); }
  .house__figure { aspect-ratio: 4 / 3.6; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .footer { grid-template-columns: minmax(0, 1fr); }
  .footer__info { text-align: left; }
  .footer__social { justify-content: flex-start; }
}
@media (max-width: 520px) {
  .nav .btn--small { padding: 0 14px; font-size: 12px; min-height: 38px; }
  .brand__word { display: none; }
  .flavor { grid-template-columns: 34px minmax(0, 1fr); gap: 12px 14px; padding-right: 0; }
  .flavor__n { width: 30px; height: 30px; font-size: 13px; }
  .stepper { grid-column: 2; justify-self: start; margin-top: 0; }
  .summary__card { padding: 22px; }
  .hero__lead { font-size: 16px; }
}

/* Solo efectos realmente intrusivos se reducen */
@media (prefers-reduced-motion: reduce) {
  .ring__spin { animation-duration: 160s; }
}
