/* =========================================================
   Obrador Pan Comido — styles.css
   Identidad: granate #670627 · crema #f7e9c6 · salvia #bad797 · verde #66784e
   Tipografías: Fraunces (sustituta web de Bomboniere) + Montserrat
   ========================================================= */

/* ---------- Fonts (self-hosted, sin llamadas a Google) ---------- */
@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/fraunces-normal-latin.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/fraunces-italic-latin.woff2") format("woff2");
  font-weight: 100 900; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("assets/fonts/montserrat-normal-latin.woff2") format("woff2");
  font-weight: 300 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("assets/fonts/montserrat-italic-latin.woff2") format("woff2");
  font-weight: 300 700; font-style: italic; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --granate: #670627;
  --granate-deep: #4a031b;
  --granate-soft: #8a1f43;
  --crema: #f7e9c6;
  --paper: #fbf4e3;
  --arena: #ede3cc;
  --salvia: #bad797;
  --verde: #66784e;
  --ink: #24191b;
  --ink-soft: #5b4a4d;
  --line: rgba(103, 6, 39, 0.16);
  --line-strong: rgba(103, 6, 39, 0.32);

  --serif: "Fraunces", "Bomboniere", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --press: 140ms;

  --gutter: clamp(1rem, 4vw, 3rem);
  --wrap: 1240px;
  --radius: 22px;
  --nav-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Grano de papel muy sutil — aporta calidez artesanal */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }
em { font-style: italic; }
::selection { background: var(--granate); color: var(--crema); }
:focus-visible { outline: 2px solid var(--granate); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 300;
  background: var(--granate); color: var(--crema); padding: .7rem 1rem; border-radius: 999px;
  text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 1rem; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--ink-soft); }

/* ---------- Type system ---------- */
.serif, h1, h2, .section-title {
  font-family: var(--serif);
  font-variation-settings: "SOFT" 100, "WONK" 0, "opsz" 144;
}
h1 em, h2 em, h3 em, .serif em {
  font-style: italic;
  color: var(--granate);
}

/* Firma tipográfica del manual: primera letra en serif fina + resto en sans negra */
.section-label {
  display: inline-flex; align-items: baseline; gap: .02em;
  margin: 0 0 1.1rem;
  font-family: var(--sans);
  font-weight: 800;
  font-size: .92rem;
  letter-spacing: .06em;
  color: var(--ink);
}
.section-label .sl-serif {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1.45em;
  letter-spacing: 0;
  line-height: 0;
  font-variation-settings: "SOFT" 100, "opsz" 144;
}

/* Óvalo del manual de marca */
.oval {
  display: inline-grid; place-items: center;
  padding: .7em 1.5em;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 350;
  line-height: 1.15;
  text-align: center;
  font-variation-settings: "SOFT" 100, "opsz" 36;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  margin: 0 0 1.4rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--verde);
}
.eyebrow::before {
  content: ""; width: 28px; height: 1px; background: currentColor;
}

.section-head {
  display: grid; gap: 1.2rem 3rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
  align-items: end;
}
@media (min-width: 900px) {
  .section-head { grid-template-columns: 1.3fr 1fr; }
}
.section-title {
  font-size: clamp(2.2rem, 5.6vw, 4.2rem);
  line-height: 1.02;
  font-weight: 330;
  letter-spacing: -0.02em;
  text-wrap: balance;
  max-width: 16ch;
}
.section-intro { color: var(--ink-soft); max-width: 46ch; margin: 0; font-size: 1.02rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px; padding: .85rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--sans); font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  text-decoration: none; white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, border-color 200ms ease, box-shadow 250ms ease;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 200ms var(--ease-out); }
.btn-primary { background: var(--granate); color: var(--crema); box-shadow: 0 10px 30px -12px rgba(103, 6, 39, .55); }
.btn-ghost { border-color: var(--line-strong); color: var(--granate); background: transparent; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover svg { transform: translateX(4px); }
  .btn-primary:hover { background: var(--granate-deep); transform: translateY(-2px); }
  .btn-ghost:hover { border-color: var(--granate); background: rgba(103, 6, 39, .05); transform: translateY(-2px); }
}
/* La pulsación va DESPUÉS del hover para ganarle siempre */
.btn:active { transform: translateY(0) scale(.97); transition-duration: 100ms; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; font-size: .92rem; color: var(--granate); text-decoration: none;
  border-bottom: 1px solid var(--line-strong); padding-bottom: .2rem;
  transition: gap 200ms var(--ease-out), border-color 200ms ease;
}
.link-arrow::after { content: "→"; }
@media (hover: hover) and (pointer: fine) { .link-arrow:hover { gap: .9rem; border-color: var(--granate); } }

/* ---------- Reveal (con salvavidas) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; } /* defensa A.4.5 */
.no-js .reveal { opacity: 1; transform: none; }

/* Split por palabras */
/* padding lateral: evita que la máscara corte el trazo de las cursivas (la "l" de fácil) */
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding: 0 .14em .08em .04em; margin: 0 -.14em -.08em -.04em; }
[data-split] .w > span {
  display: inline-block;
  transform: translateY(105%);
  transition: transform 700ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 40ms + var(--d, 0s));
}
[data-split].is-visible .w > span { transform: none; }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 120;
  height: var(--nav-h);
  transition: background-color .4s, box-shadow .4s, transform .45s var(--ease-out);
}
.nav.is-scrolled {
  background: rgba(251, 244, 227, .86);
  box-shadow: 0 1px 0 var(--line);
}
@supports (backdrop-filter: blur(10px)) {
  .nav.is-scrolled { background: rgba(251, 244, 227, .72); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); }
}
.nav.is-hidden { transform: translateY(-100%); }
.nav-inner {
  height: 100%; max-width: 1400px; margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.nav-logo { display: block; color: var(--granate); line-height: 0; }
.logo-h { width: 168px; height: 57px; fill: currentColor; }
@media (max-width: 359px) { .logo-h { width: 128px; height: 44px; } .nav-actions { gap: .4rem; } }
.nav-links { display: none; gap: 2rem; }
.nav-links a {
  position: relative; text-decoration: none; font-weight: 500; font-size: .92rem; color: var(--ink);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
  background: var(--granate); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .nav-links a:hover::after { transform: scaleX(1); transform-origin: left; } }
.nav-actions { display: flex; align-items: center; gap: .6rem; }

.status-chip {
  display: none; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 600; color: var(--verde); white-space: nowrap;
  padding: .45rem .8rem; border-radius: 999px; background: rgba(186, 215, 151, .35);
}
.status-chip.is-closed { color: var(--granate); background: rgba(103, 6, 39, .08); }
.status-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; position: relative; }
.status-chip:not(.is-closed) .dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid currentColor;
  animation: pulse 2.2s var(--ease-out) infinite;
}
@keyframes pulse { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }

.cart-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  height: 44px; padding: 0 .9rem 0 .8rem;
  border-radius: 999px; border: 1px solid var(--line-strong); background: transparent;
  font-weight: 600; font-size: .88rem; color: var(--granate);
  transition: background-color 200ms ease, color 200ms ease, transform var(--press) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .cart-btn:hover { background: var(--granate); color: var(--crema); } }
.cart-btn:active { transform: scale(.96); }
.cart-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.cart-btn-label { display: none; }
.cart-count {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 999px; background: var(--granate); color: var(--crema);
  font-size: .72rem; font-weight: 700;
  transition: transform 200ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .cart-btn:hover .cart-count { background: var(--crema); color: var(--granate); } }
.cart-count.is-bump { animation: bump 300ms var(--ease-out); }
@keyframes bump { 40% { transform: scale(1.18); } }

.burger {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent;
  display: grid; place-content: center; gap: 6px;
  transition: transform var(--press) var(--ease-out);
}
.burger:active { transform: scale(.94); }
.burger span { display: block; width: 18px; height: 1.5px; background: var(--granate); transition: transform .4s var(--ease-out); }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .burger { display: none; }
  .cart-btn-label { display: inline; white-space: nowrap; }
}
@media (min-width: 1280px) {
  .status-chip:not([hidden]) { display: inline-flex; }
}

/* Mobile menu */
.menu {
  position: fixed; inset: 0; z-index: 110;
  background: var(--granate); color: var(--crema);
  padding: calc(var(--nav-h) + 2rem) var(--gutter) 2rem;
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: circle(0% at calc(100% - 40px) 36px);
  visibility: hidden;
  transition: clip-path 350ms var(--ease-out), visibility 0s 350ms; /* cerrar: rápido */
}
.menu.is-open { clip-path: circle(150% at calc(100% - 40px) 36px); visibility: visible; transition: clip-path 500ms var(--ease-drawer); }
.menu-links { display: flex; flex-direction: column; }
.menu-links a {
  display: flex; align-items: baseline; gap: 1rem;
  padding: .55rem 0; border-bottom: 1px solid rgba(247, 233, 198, .15);
  font-family: var(--serif); font-weight: 300; font-size: clamp(2.2rem, 9vw, 3.4rem); line-height: 1.1;
  font-variation-settings: "SOFT" 100, "opsz" 144;
  text-decoration: none;
}
.menu-links a span { font-family: var(--sans); font-size: .75rem; font-weight: 600; letter-spacing: .1em; opacity: .6; }
.menu-foot { display: grid; gap: .3rem; font-size: .85rem; opacity: .85; }
.menu-foot .oval { justify-self: start; margin-bottom: 1rem; font-size: 1.1rem; }
body.menu-open .nav-logo, body.menu-open .burger { color: var(--crema); }
body.menu-open .burger { border-color: rgba(247, 233, 198, .4); }
body.menu-open .burger span { background: var(--crema); }
body.menu-open .cart-btn { color: var(--crema); border-color: rgba(247, 233, 198, .4); }
body.menu-open .nav { background: transparent; box-shadow: none; backdrop-filter: none; }
body.menu-open .dock { visibility: hidden; }
body.menu-open .cart-count { background: var(--crema); color: var(--granate); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  padding: calc(var(--nav-h) + clamp(1.5rem, 5vw, 3rem)) 0 clamp(3rem, 6vw, 5rem);
  display: flex; align-items: center;
}
.hero::before { /* halo cálido */
  content: ""; position: absolute; z-index: -1;
  width: 70vmax; height: 70vmax; right: -25vmax; top: -20vmax;
  background: radial-gradient(closest-side, rgba(186, 215, 151, .38), rgba(247, 233, 198, 0) 70%);
  pointer-events: none;
}
.hero-grid {
  width: 100%; max-width: 1400px; margin-inline: auto; padding-inline: var(--gutter);
  display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1.02fr 1fr; }
}
.hero-title {
  font-size: clamp(3rem, 8.4vw, 6.6rem);
  line-height: .96;
  font-weight: 300;
  letter-spacing: -0.035em;
  text-wrap: balance;
  max-width: 11ch;
  margin-bottom: 1.6rem;
}
.hero-title em { font-weight: 300; }
.hero-sub { font-size: clamp(1.02rem, 1.5vw, 1.15rem); color: var(--ink-soft); max-width: 44ch; margin-bottom: 2rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.4rem; }
.btn-cta { min-height: 58px; padding-inline: 2rem; font-size: 1rem; }
.hero-address {
  display: inline-flex; align-items: center; gap: .8rem; margin-bottom: 2.2rem;
  color: var(--ink); text-decoration: none;
}
.ha-pin { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(103, 6, 39, .08); color: var(--granate); transition: background-color .2s ease, color .2s ease; }
.ha-pin svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.ha-text { display: grid; gap: .1rem; line-height: 1.3; }
.ha-text strong { font-weight: 700; font-size: .95rem; }
.ha-text small { font-size: .8rem; color: var(--ink-soft); }
.ha-text u { color: var(--granate); font-weight: 600; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
@media (hover: hover) and (pointer: fine) {
  .hero-address:hover .ha-pin { background: var(--granate); color: var(--crema); }
  .hero-address:hover u { text-decoration-color: var(--granate); }
}
.hero-facts {
  list-style: none; margin: 0; padding: 1.4rem 0 0;
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 2.2rem;
}
.hero-facts li { display: grid; gap: .1rem; }
.hero-facts strong {
  font-family: var(--serif); font-weight: 400; font-size: 1.45rem; color: var(--granate);
  font-variation-settings: "SOFT" 100, "opsz" 72;
}
.hero-facts span { font-size: .74rem; letter-spacing: .04em; color: var(--ink-soft); }

@media (max-width: 600px) {
  .hero { min-height: auto; }
  .eyebrow { font-size: .68rem; letter-spacing: .12em; }
  .eyebrow::before { width: 18px; }
  .hero-ctas .btn { flex: 1; padding-inline: 1rem; }
  .hero-ctas .btn-cta { flex: 1 1 100%; }
  .hero-address { margin-bottom: 1.8rem; }
  .hero-facts { gap: 1.3rem; }
  .hero-facts strong { font-size: 1.12rem; white-space: nowrap; }
  .hero-visual { margin-top: .5rem; }
  .hero-note { display: none; }
}
.hero-visual { position: relative; transform-style: preserve-3d; transition: transform .6s var(--ease-out); }
.hero-logo {
  display: block; width: 100%; height: auto; aspect-ratio: 224 / 150;
  animation: logoIn 1.2s .2s var(--ease-out) both;
  filter: drop-shadow(0 30px 40px rgba(74, 3, 27, .22));
}
.hero-visual .badge { left: -2%; bottom: -22%; border: 6px solid var(--paper); box-sizing: content-box; }
@keyframes logoIn { from { opacity: 0; transform: translateY(24px) scale(.96); } }
.hero-visual .hero-note { right: 2%; bottom: -16%; }
.bread { width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 30px 50px rgba(74, 3, 27, .18)); }
.bread-img { transform-origin: 50% 50%; animation: breadBreath 14s ease-in-out infinite alternate; }
@keyframes breadBreath { from { transform: scale(1); } to { transform: scale(1.06) translate(-6px, 4px); } }
.bread-line { fill: none; stroke: var(--granate); stroke-width: 1.4; opacity: .7; }
.bite {
  transform-box: fill-box; transform-origin: center;
  animation: biteIn .55s var(--ease-spring) both;
}
.b1 { animation-delay: 1.1s; }
.b2 { animation-delay: 1.35s; }
.b3 { animation-delay: 1.6s; }
@keyframes biteIn { from { transform: scale(0); } to { transform: scale(1); } }

.badge {
  position: absolute; left: -2%; bottom: -4%;
  width: clamp(110px, 16vw, 168px); aspect-ratio: 1;
  border-radius: 50%; background: var(--granate); color: var(--crema);
  display: grid; place-items: center;
  box-shadow: 0 18px 40px -16px rgba(74, 3, 27, .6);
}
.badge-ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 26s linear infinite; }
.badge-ring text { fill: currentColor; font-family: var(--sans); font-size: 14px; font-weight: 600; text-transform: uppercase; }
.badge-iso { width: 58%; height: 30%; fill: currentColor; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero-note {
  position: absolute; right: 2%; bottom: -2%;
  color: var(--granate); background: var(--paper);
  font-size: clamp(.9rem, 1.4vw, 1.05rem);
  transform: rotate(-6deg);
}
.hero-note em { font-weight: 500; }

/* Móvil: sello más pequeño para que no tape el logo */
@media (max-width: 600px) {
  .hero-visual .badge { width: 78px; left: -8%; bottom: -16%; border-width: 4px; }
  .hero-visual .badge .badge-ring text { font-size: 17px; }
}

/* =========================================================
   MARQUEE
   ========================================================= */
.marquee {
  overflow: hidden;
  background: var(--salvia);
  color: var(--granate);
  border-block: 1px solid rgba(103, 6, 39, .12);
  padding: 1.1rem 0;
}
.marquee-track {
  display: flex; align-items: center; gap: 2rem; width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee span {
  font-family: var(--serif); font-style: italic; font-weight: 350;
  font-size: clamp(1.4rem, 3vw, 2.1rem); white-space: nowrap;
  font-variation-settings: "SOFT" 100, "opsz" 72;
}
.marquee i {
  width: 30px; height: 22px; flex: none;
  background: var(--granate);
  -webkit-mask: url("assets/logo/logo-isotipo.svg") center / contain no-repeat;
  mask: url("assets/logo/logo-isotipo.svg") center / contain no-repeat;
  opacity: .8;
}
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* =========================================================
   MANIFESTO
   ========================================================= */
/* Todo centrado sobre un mismo eje: etiqueta, frase, dos columnas iguales y tres cifras iguales */
.manifesto { padding: clamp(5rem, 12vw, 10rem) 0; text-align: center; }
.manifesto .wrap { max-width: 1080px; }
.manifesto .section-label { justify-content: center; }
.manifesto-quote {
  font-size: clamp(2.3rem, 6.4vw, 5.4rem);
  line-height: 1.02; font-weight: 300; letter-spacing: -0.03em;
  max-width: 17ch; text-wrap: balance;
  margin: 0 auto clamp(2.5rem, 5vw, 3.5rem);
}
.manifesto-cols {
  display: grid; gap: 1.2rem 0; max-width: 900px; margin: 0 auto;
  color: var(--ink-soft); font-size: 1.05rem; text-wrap: pretty;
}
.manifesto-cols p { margin: 0; }
@media (min-width: 800px) {
  .manifesto-cols { grid-template-columns: 1fr 1fr; }
  .manifesto-cols p { padding: 0 2.6rem; }
  .manifesto-cols p + p { border-left: 1px solid var(--line-strong); }
  .manifesto-cols p:first-child { text-align: right; }
  .manifesto-cols p:last-child { text-align: left; }
}
.stats {
  list-style: none; padding: 0; margin: clamp(3rem, 7vw, 5rem) auto 0;
  display: grid; gap: 2rem;
  border-top: 1px solid var(--line);
}
@media (min-width: 720px) {
  .stats { grid-template-columns: repeat(3, 1fr); gap: 0; }
  .stats li + li { border-left: 1px solid var(--line); }
}
.stats li { padding: 1.8rem 1rem 0; display: grid; gap: .5rem; justify-items: center; }
.stats strong {
  font-family: var(--serif); font-weight: 300; font-size: clamp(3rem, 6vw, 4.6rem); line-height: 1; color: var(--granate);
  font-variation-settings: "SOFT" 100, "opsz" 144; letter-spacing: -0.03em; font-variant-numeric: tabular-nums;
}
.stats li > span { color: var(--ink-soft); font-size: .92rem; max-width: 24ch; text-wrap: balance; }

/* =========================================================
   CARTA
   ========================================================= */
.carta { padding: clamp(4rem, 9vw, 7rem) 0; background: var(--crema); position: relative; }
.carta::before { /* borde ondulado tipo "mordisco" superior */
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 22px;
  background: radial-gradient(circle at 22px -6px, var(--paper) 18px, transparent 19px) 0 0 / 44px 22px repeat-x;
}

/* Todas las categorías visibles: en varias líneas si no caben (nada escondido en móvil) */
.tabs {
  display: flex; flex-wrap: wrap; gap: .5rem;
  padding: .3rem 0 .6rem; margin: 0 0 clamp(1.5rem, 3vw, 2.5rem);
}
@media (max-width: 600px) {
  .tabs { gap: .4rem; }
  .tabs button { padding: .55rem .85rem; font-size: .8rem; }
}
.tabs button {
  flex: none;
  padding: .7rem 1.2rem; border-radius: 999px;
  border: 1px solid var(--line-strong); background: transparent;
  font-weight: 600; font-size: .88rem; color: var(--granate);
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, transform var(--press) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .tabs button:hover { border-color: var(--granate); } }
.tabs button:active { transform: scale(.96); }
.tabs button[aria-selected="true"] { background: var(--granate); color: var(--crema); border-color: var(--granate); }

.products {
  display: grid; gap: clamp(1rem, 2vw, 1.6rem);
  grid-template-columns: 1fr;
}
@media (min-width: 600px) { .products { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .products { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .products { grid-template-columns: repeat(4, 1fr); } }

.product {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(103, 6, 39, .06), 0 20px 40px -32px rgba(74, 3, 27, .5);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), opacity .4s;
}
.product.is-hidden { display: none; }
@media (hover: hover) and (pointer: fine) { .product:hover { transform: translateY(-6px); box-shadow: 0 1px 0 rgba(103, 6, 39, .06), 0 34px 60px -34px rgba(74, 3, 27, .6); } }
.product-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--arena); }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out), filter .6s; }
.product-media img.crop-alt { object-position: 30% 80%; transform: scale(1.25); }
.product-media img.pos-top { object-position: 50% 30%; }
@media (hover: hover) and (pointer: fine) { .product:hover .product-media img { transform: scale(1.07); filter: saturate(1.08); } }

/* El mordisco: aparece en la esquina al pasar el ratón */
.product-media::after {
  content: ""; position: absolute; top: -26px; right: -18px;
  width: 132px; height: 82px;
  background:
    radial-gradient(circle at 22px 34px, var(--paper) 24px, transparent 25px),
    radial-gradient(circle at 64px 46px, var(--paper) 28px, transparent 29px),
    radial-gradient(circle at 108px 40px, var(--paper) 27px, transparent 28px);
  opacity: 0; transform: scale(.6); transform-origin: 80% 20%;
  transition: transform 220ms var(--ease-out), opacity 180ms ease;
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) { .product:hover .product-media::after { opacity: 1; transform: scale(1); } }
.product-flag {
  position: absolute; left: .9rem; top: .9rem;
  padding: .32rem .7rem; border-radius: 999px;
  background: var(--salvia); color: var(--granate-deep);
  font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.product-body { display: flex; flex-direction: column; flex: 1; padding: 1.2rem 1.25rem 1.3rem; }
.product-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .5rem; }
.product h3 {
  font-family: var(--serif); font-weight: 400; font-size: 1.32rem; line-height: 1.15;
  font-variation-settings: "SOFT" 100, "opsz" 36;
}
.price { font-weight: 700; color: var(--granate); white-space: nowrap; font-size: .98rem; }
.product-body > p:not(.tags) { color: var(--ink-soft); font-size: .9rem; line-height: 1.55; margin-bottom: .9rem; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1.1rem; }
.tags span { font-size: .7rem; font-weight: 600; letter-spacing: .04em; padding: .25rem .6rem; border-radius: 999px; border: 1px solid var(--line); color: var(--verde); }
.add {
  margin-top: auto; align-self: flex-start;
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .55rem .6rem .55rem 1.1rem; border-radius: 999px;
  border: 1px solid var(--granate); background: transparent; color: var(--granate);
  font-weight: 600; font-size: .86rem;
  transition: background-color 200ms ease, color 200ms ease, transform var(--press) var(--ease-out);
}
.add-plus { position: relative; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--granate); color: var(--crema); font-size: 1.05rem; line-height: 1; transition: background-color 150ms ease, color 150ms ease; }
@media (hover: hover) and (pointer: fine) { .add:hover { background: var(--granate); color: var(--crema); }
.add:hover .add-plus { background: var(--crema); color: var(--granate); } }
.add:active { transform: scale(.96); }
/* Confirmación única: el + se convierte un instante en ✓ */
.add.is-added .add-plus { color: transparent; background: var(--verde); }
.add.is-added .add-plus::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--crema); font-size: .85rem; }
.add .qty-badge { font-weight: 700; }

@media (min-width: 1024px) {
  .product-wide { grid-column: span 2; }
  .product-wide .product-media { aspect-ratio: 16 / 8.5; }
}
/* Subtítulos de la carta */
.carta-sub {
  font-family: var(--serif); font-weight: 330; font-style: italic; color: var(--granate);
  font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 1.4rem;
  font-variation-settings: "SOFT" 100, "opsz" 72;
  display: flex; align-items: center; gap: 1rem;
}
.carta-sub::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }
.carta-sub#carta-completa { margin-top: clamp(3.5rem, 7vw, 5.5rem); }

/* Selector de sabor */
/* Píldora granate con flecha crema: se lee como parte de la marca, no como un control del sistema */
.variant {
  width: 100%; margin: 0 0 1rem; padding: .62rem 2.6rem .62rem 1.05rem;
  font: inherit; font-size: .86rem; font-weight: 600; color: var(--crema); cursor: pointer;
  border: 0; border-radius: 999px; background-color: var(--granate);
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23f7e9c6' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1.05rem center;
  box-shadow: 0 8px 20px -12px rgba(103, 6, 39, .6);
  transition: background-color 200ms ease, transform var(--press) var(--ease-out);
}
.variant option { color: var(--ink); background: #fffaf0; font-weight: 500; }
@media (hover: hover) and (pointer: fine) { .variant:hover { background-color: var(--granate-deep); } }
.variant:active { transform: scale(.98); }
.variant:focus { outline: none; }
.variant:focus-visible { outline: 2px solid var(--granate); outline-offset: 3px; }

/* Carta completa en formato lista */
.menu-groups { display: grid; gap: clamp(2rem, 4vw, 3rem); }
.menu-group.is-hidden { display: none; }
.menu-group-title {
  margin: 0 0 .6rem; font-family: var(--sans); font-weight: 800; font-size: .8rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--verde);
}
.menu-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; column-gap: 3rem;
}
@media (min-width: 960px) { .menu-list { grid-template-columns: 1fr 1fr; } }
.mi {
  display: grid; grid-template-columns: 52px 1fr auto 40px; align-items: center; gap: .9rem;
  padding: .75rem 0; border-bottom: 1px dashed var(--line-strong);
}
.mi-thumb { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; background: var(--paper); display: grid; place-items: center; }
.mi-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mi-thumb-empty svg { width: 36px; height: 18px; fill: var(--granate); opacity: .35; }
.mi-main { display: flex; flex-direction: column; align-items: flex-start; gap: .2rem; min-width: 0; }
.mi-name { font-family: var(--serif); font-weight: 400; font-size: 1.08rem; line-height: 1.25; font-variation-settings: "SOFT" 100, "opsz" 36; }
.mi-note { font-size: .78rem; color: var(--ink-soft); }
.mi-offer { font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--granate-deep); background: var(--salvia); padding: .18rem .55rem; border-radius: 999px; }
/* En la lista, versión suave: tinte granate sobre el fondo, sin sombra */
.mi .variant {
  width: auto; max-width: 100%; margin: .25rem 0 0; padding: .34rem 2rem .34rem .8rem; font-size: .78rem;
  color: var(--granate); background-color: rgba(103, 6, 39, .08); box-shadow: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23670627' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right .75rem center;
}
@media (hover: hover) and (pointer: fine) { .mi .variant:hover { background-color: rgba(103, 6, 39, .15); } }
.mi-price { font-weight: 700; color: var(--granate); white-space: nowrap; font-size: .95rem; font-variant-numeric: tabular-nums; }
.mi-add {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--granate);
  background: transparent; color: var(--granate); font-size: 1.2rem; line-height: 1;
  display: grid; place-items: center;
  position: relative;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, transform var(--press) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .mi-add:hover { background: var(--granate); color: var(--crema); } }
.mi-add:active { transform: scale(.9); }
.mi-add.is-added { background: var(--verde); border-color: var(--verde); color: transparent; }
.mi-add.is-added::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--crema); font-size: .9rem; }

/* ---------- Panettone: espacio premium (oscuro, sobrio, foto en arco) ---------- */
.season.season-premium {
  background: var(--granate-deep); color: var(--crema);
  padding: clamp(5rem, 11vw, 9rem) 0;
  position: relative; overflow: hidden;
}
.season.season-premium::before { /* filo fino arriba y abajo, como un estuche */
  content: ""; position: absolute; inset: 22px; border: 1px solid rgba(247, 233, 198, .14);
  border-radius: 28px; pointer-events: none;
}
.season.season-premium .season-media {
  order: 2; aspect-ratio: 4 / 5; max-width: 480px; justify-self: center; width: 100%;
  border-radius: 999px 999px 30px 30px;
  box-shadow: 0 0 0 1px rgba(247, 233, 198, .22), 0 0 0 12px var(--granate-deep), 0 0 0 13px rgba(247, 233, 198, .16), 0 50px 80px -40px rgba(0, 0, 0, .7);
}
.season.season-premium .season-media { position: relative; }
.sugar { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.season.season-premium .season-copy .oval { color: var(--salvia); border-color: rgba(186, 215, 151, .6); }
.season.season-premium .season-title { color: var(--crema); }
.season.season-premium .season-title em { color: var(--salvia); }
.season.season-premium .season-copy > p:not(.oval) { color: rgba(247, 233, 198, .78); }
.premium-facts {
  list-style: none; padding: 0; margin: 1.6rem 0 0;
  display: flex; flex-wrap: wrap; gap: .5rem 1.4rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(247, 233, 198, .7);
}
.premium-facts li { display: inline-flex; align-items: center; gap: .55rem; }
.premium-facts li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--salvia); }
.season.season-premium .season-opt {
  background: transparent; color: var(--crema);
  border: 1px solid rgba(247, 233, 198, .28);
}
.season.season-premium .season-opt strong { color: var(--crema); }
.season.season-premium .season-opt::after { background: var(--crema); color: var(--granate-deep); }
@media (hover: hover) and (pointer: fine) {
  .season.season-premium .season-opt:hover { background: var(--crema); color: var(--granate-deep); }
  .season.season-premium .season-opt:hover strong { color: var(--granate); }
  .season.season-premium .season-opt:hover::after { background: var(--granate); color: var(--crema); }
}
.season.season-premium .opt-count { box-shadow: 0 0 0 3px var(--granate-deep); }
@media (max-width: 899px) { .season.season-premium .season-media { order: 0; max-width: 360px; } }

/* ---------- Roscón: mismo nivel que el panettone, en versión clara ---------- */
.season.season-feature { position: relative; padding: clamp(5rem, 11vw, 9rem) 0; }
.season.season-feature::before {
  content: ""; position: absolute; inset: 22px; border: 1px solid var(--line);
  border-radius: 28px; pointer-events: none;
}
.season-frame { position: relative; justify-self: center; width: 100%; max-width: 460px; }
.season.season-feature .season-media {
  aspect-ratio: 4 / 5; border-radius: 999px 999px 30px 30px;
  box-shadow: 0 0 0 1px var(--line-strong), 0 0 0 12px var(--paper), 0 0 0 13px var(--line), 0 50px 80px -40px rgba(74, 3, 27, .5);
}
.season-seal {
  position: absolute; right: -26px; bottom: 56px; z-index: 2;
  width: 118px; aspect-ratio: 1; border-radius: 50%;
  background: var(--granate); color: var(--crema);
  display: grid; place-items: center;
  border: 5px solid var(--paper);
  box-shadow: 0 16px 34px -16px rgba(74, 3, 27, .6);
  rotate: 8deg;
}
.season-seal .badge-ring text { font-size: 15px; }
.seal-crown { width: 40%; height: auto; fill: none; stroke: var(--crema); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.season.season-feature .premium-facts { color: var(--ink-soft); }
.season.season-feature .premium-facts li::before { background: var(--granate); }
@media (max-width: 899px) {
  .season-frame { max-width: min(340px, 78vw); }
  .season.season-feature::before, .season.season-premium::before { inset: 10px; border-radius: 22px; }
  .season-seal { width: 86px; right: -8px; bottom: 30px; border-width: 4px; }
  .season-seal .badge-ring text { font-size: 18px; }
}

/* ---------- Empresas (B2B) ---------- */
.b2b { padding: clamp(5rem, 10vw, 8rem) 0; background: var(--paper); position: relative; }
.b2b-grid { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: start; }
@media (min-width: 1024px) { .b2b-grid { grid-template-columns: 1fr 1fr; } }
.b2b-copy .section-title { margin-bottom: 1.4rem; max-width: 14ch; }
.b2b-intro { color: var(--ink-soft); font-size: 1.05rem; max-width: 46ch; }
.b2b-cards { list-style: none; padding: 0; margin: 2.2rem 0 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
@media (min-width: 600px) { .b2b-cards { grid-template-columns: 1fr 1fr; } }
.b2b-cards li { background: var(--paper); padding: 1.3rem 1.4rem 1.4rem; }
.b2b-cards h3 { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; margin-bottom: .35rem; color: var(--granate); font-variation-settings: "SOFT" 100, "opsz" 36; }
.b2b-cards p { margin: 0; font-size: .9rem; color: var(--ink-soft); line-height: 1.55; }
/* Multitiendas: tarjeta destacada a lo ancho */
.b2b-cards .b2b-card-wide { grid-column: 1 / -1; background: var(--granate); }
.b2b-cards .b2b-card-wide h3 { color: var(--crema); }
.b2b-cards .b2b-card-wide p { color: rgba(247, 233, 198, .82); max-width: 52ch; }
.b2b-perks { list-style: none; padding: 0; margin: 1.8rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.b2b-perks li {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .45rem .85rem; border-radius: 999px; background: rgba(186, 215, 151, .35);
  font-size: .8rem; font-weight: 600; color: var(--granate-deep);
}
.b2b-perks li::before { content: "✓"; color: var(--verde); font-weight: 700; }

/* ---- Tarjeta de contacto directo (sin formulario: WhatsApp, llamada o email) ---- */
.b2b-grid > * { min-width: 0; }
.b2b-contact {
  position: relative; display: flex; flex-direction: column;
  background: var(--crema); border-radius: 28px;
  box-shadow: 0 1px 0 rgba(103, 6, 39, .06), 0 40px 70px -40px rgba(74, 3, 27, .45);
}
.b2b-contact-media { flex: 1 1 auto; min-height: 220px; border-radius: 28px 28px 0 0; overflow: hidden; }
.b2b-contact-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.b2b-contact-body { padding: clamp(1.4rem, 3vw, 2rem); display: grid; gap: .9rem; }
.b2b-form-title { font-family: var(--serif); font-weight: 350; font-size: 1.9rem; margin: 0; color: var(--granate); font-variation-settings: "SOFT" 100, "opsz" 72; }
.b2b-contact-text { margin: 0; color: var(--ink-soft); font-size: .95rem; max-width: 40ch; }
.b2b-actions { display: grid; gap: .6rem; margin-top: .3rem; }
.b2b-actions .btn { width: 100%; white-space: normal; text-align: center; }
.b2b-actions .btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; flex: none; }
.b2b-actions .btn-ghost { font-size: .88rem; }
@media (hover: hover) and (pointer: fine) { .b2b-actions .btn:hover svg { transform: none; } }

/* Ordenador: la tarjeta ocupa la misma altura que la columna izquierda (arriba y abajo cuadran) */
@media (min-width: 1024px) {
  .b2b-grid { align-items: stretch; }
  .b2b-copy { display: flex; flex-direction: column; }
  .b2b-perks { margin-top: auto; padding-top: 1.8rem; }
}

/* ---- Sello "Reparto incluido" (mismo lenguaje que el sello de la portada) ---- */
.b2b-seal {
  position: absolute; top: -40px; right: -22px; z-index: 2;
  width: 112px; aspect-ratio: 1; border-radius: 50%;
  background: var(--granate); color: var(--crema);
  display: grid; place-items: center;
  border: 5px solid var(--paper);
  box-shadow: 0 16px 34px -16px rgba(74, 3, 27, .6);
  rotate: -8deg;
}
.b2b-seal .badge-ring text { font-size: 15px; }
.seal-truck { width: 46%; height: auto; fill: none; stroke: var(--crema); stroke-width: 1.8; stroke-linejoin: round; overflow: visible; }
.seal-truck circle { fill: var(--granate); }
.seal-truck .seal-window { fill: rgba(247, 233, 198, .25); stroke: none; }

/* ---- Empresas en móvil: contacto primero, tarjetas en carrusel, todo más compacto ---- */
@media (max-width: 1023px) {
  .b2b-grid { display: flex; flex-direction: column; gap: 0; align-items: stretch; }
  .b2b-actions .btn { overflow-wrap: anywhere; padding-inline: 1rem; }
  .b2b-actions .btn-ghost { font-size: .8rem; letter-spacing: 0; }
  .b2b-copy { display: contents; }
  .b2b-copy > .section-label { order: 1; }
  .b2b-copy > .section-title { order: 2; margin-bottom: 1rem; }
  .b2b-intro { order: 3; margin-bottom: 2.6rem; }
  .b2b-contact { order: 4; }
  .b2b-contact-media { min-height: 0; aspect-ratio: 16 / 9; flex: none; }
  .b2b-cards { order: 5; margin-top: 2.4rem; }
  .b2b-perks { order: 6; }
}
@media (max-width: 600px) {
  .b2b-seal { width: 74px; top: -26px; right: 12px; border-width: 4px; rotate: 8deg; }
  .b2b-seal .badge-ring text { font-size: 19px; }
  .b2b-form-title { font-size: 1.7rem; }

  /* tarjetas: cuadrícula 2 × 2 compacta, todo a la vista sin deslizar */
  .b2b-cards { grid-template-columns: 1fr 1fr; border-radius: 18px; }
  .b2b-cards li { padding: 1rem .95rem 1.05rem; min-width: 0; }
  .b2b-cards h3 { font-size: 1.04rem; line-height: 1.2; margin-bottom: .3rem; }
  .b2b-cards p { font-size: .78rem; line-height: 1.5; }
  .b2b-cards .b2b-card-wide { padding: 1.1rem 1.1rem 1.2rem; }

  /* ventajas: más pequeñas para que quepan varias por línea */
  .b2b-perks { gap: .35rem; margin-top: 1.2rem; }
  .b2b-perks li { font-size: .72rem; padding: .35rem .65rem; }
}
/* ---------- Selector de cantidad (estilo Uber Eats) ---------- */
.stepper {
  display: none; align-items: center; gap: .15rem;
  height: 36px; padding: 0 4px; border-radius: 999px;
  background: var(--granate); color: var(--crema);
  box-shadow: 0 8px 20px -12px rgba(74, 3, 27, .7);
}
.has-qty [data-add] { display: none; }
.has-qty .stepper { display: inline-flex; animation: stepIn 180ms var(--ease-out); }
@keyframes stepIn { from { opacity: 0; transform: scale(.92); } }
.stepper-btn {
  width: 28px; height: 28px; border: 0; border-radius: 50%;
  background: transparent; color: inherit; font-size: 1.15rem; line-height: 1;
  display: grid; place-items: center;
  transition: transform var(--press) var(--ease-out), background-color 150ms ease;
}
.stepper-btn:active { transform: scale(.86); }
@media (hover: hover) and (pointer: fine) { .stepper-btn:hover { background: rgba(247, 233, 198, .16); } }
.stepper-btn:focus-visible { outline: 2px solid var(--crema); outline-offset: 1px; }
.stepper-qty { min-width: 1.7em; text-align: center; font-weight: 700; font-size: .92rem; font-variant-numeric: tabular-nums; }
/* En las tarjetas grandes, el selector ocupa el sitio del botón Añadir */
.product-body .stepper { margin-top: auto; align-self: flex-start; height: 42px; padding: 0 6px; }
.product-body .stepper-btn { width: 32px; height: 32px; }
/* En la lista, la última columna se adapta al selector */
.mi { grid-template-columns: 52px 1fr auto auto; }
.mi [data-add] { justify-self: end; }
@media (max-width: 600px) {
  .mi { gap: .6rem; grid-template-columns: 44px 1fr auto auto; }
  .mi-thumb { width: 44px; height: 44px; }
  .mi .stepper { height: 32px; padding: 0 2px; }
  .mi .stepper-btn { width: 26px; height: 26px; }
  .mi .stepper-qty { min-width: 1.4em; }
}
/* Roscón: contador sobre la tarjeta de temporada */
.season-opt { position: relative; }
.opt-count {
  position: absolute; top: -8px; right: -6px; display: none;
  min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px;
  place-items: center; background: var(--verde); color: var(--crema);
  font-size: .75rem; font-weight: 700; box-shadow: 0 0 0 3px var(--paper);
}
.season-opt.has-qty .opt-count { display: grid; animation: stepIn 180ms var(--ease-out); }

.season-more { justify-content: center; text-decoration: none; background: transparent; color: var(--granate); font-weight: 600; }
.season-more::after { content: "→"; }

.carta-note { margin: 2.5rem 0 0; font-size: .82rem; color: var(--ink-soft); max-width: 70ch; }

/* =========================================================
   TEMPORADA
   ========================================================= */
.season { padding: clamp(4rem, 9vw, 7rem) 0; background: var(--paper); }
.season-grid { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 900px) { .season-grid { grid-template-columns: 1fr 1fr; } }
.season-media {
  position: relative; border-radius: 48% 52% 46% 54% / 56% 50% 50% 44%;
  overflow: hidden; aspect-ratio: 5 / 4;
  box-shadow: 0 40px 70px -40px rgba(74, 3, 27, .55);
}
.season-media img { width: 100%; height: 100%; object-fit: cover; }
.season-copy .oval { color: var(--verde); margin-bottom: 1.3rem; }
.season-title { font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.02; font-weight: 320; letter-spacing: -0.025em; margin-bottom: 1.4rem; text-wrap: balance; }
.season-copy > p:not(.oval) { color: var(--ink-soft); max-width: 48ch; }
.season-options { display: grid; gap: .8rem; margin-top: 1.8rem; }
@media (min-width: 520px) { .season-options { grid-template-columns: 1fr 1fr; } }
.season-opt {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1rem 1.2rem; border-radius: 18px;
  background: var(--crema); border: 1px solid var(--line);
  text-align: left; font-weight: 500; font-size: .9rem;
  transition: transform .35s var(--ease-spring), background-color .25s, color .25s;
}
.season-opt span { flex: 1; line-height: 1.35; }
.season-opt small { font-size: .74rem; font-weight: 500; opacity: .75; }
.season-opt strong { font-family: var(--serif); font-weight: 400; font-size: 1.4rem; color: var(--granate); white-space: nowrap; transition: color .25s; }
.season-opt::after { content: "+"; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--granate); color: var(--crema); font-size: 1.1rem; flex: none; }
@media (hover: hover) and (pointer: fine) { .season-opt:hover { transform: translateY(-3px); background: var(--granate); color: var(--crema); }
.season-opt:hover strong { color: var(--crema); }
.season-opt:hover::after { background: var(--crema); color: var(--granate); } }
.season-opt:active { transform: scale(.97); transition-duration: 100ms; }

/* =========================================================
   ENCARGOS
   ========================================================= */
.encargos { padding: clamp(4rem, 9vw, 7rem) 0; background: var(--arena); }
.enc-grid { display: grid; gap: 1.4rem; }
@media (min-width: 900px) { .enc-grid { grid-template-columns: repeat(3, 1fr); } }
.enc-card {
  background: var(--paper); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .5s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .enc-card:hover { transform: translateY(-6px); } }
.enc-media { aspect-ratio: 16 / 10; overflow: hidden; }
.enc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .enc-card:hover .enc-media img { transform: scale(1.06); } }
.enc-body { padding: 1.5rem 1.5rem 1.7rem; display: flex; flex-direction: column; flex: 1; }
.enc-num { font-size: .75rem; font-weight: 700; letter-spacing: .12em; color: var(--verde); margin-bottom: .6rem; }
.enc-body h3 { font-family: var(--serif); font-weight: 350; font-size: 1.8rem; margin-bottom: .6rem; font-variation-settings: "SOFT" 100, "opsz" 72; }
.enc-body p { color: var(--ink-soft); font-size: .94rem; }
.enc-body .link-arrow { margin-top: auto; align-self: flex-start; }

.steps {
  list-style: none; padding: 0; margin: clamp(3rem, 6vw, 4.5rem) 0 0;
  display: grid; gap: 1.6rem;
  counter-reset: s;
}
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { display: flex; gap: 1.1rem; align-items: flex-start; }
.step-n {
  flex: none; width: 52px; height: 40px; display: grid; place-items: center;
  border: 1px solid var(--granate); border-radius: 50%; color: var(--granate);
  font-family: var(--serif); font-style: italic; font-size: 1.2rem;
}
.steps h3 { font-weight: 700; font-size: 1rem; margin-bottom: .25rem; font-family: var(--sans); }
.steps p { color: var(--ink-soft); font-size: .92rem; margin: 0; }

/* =========================================================
   PROCESO (fondo granate)
   ========================================================= */
.proceso { padding: clamp(5rem, 10vw, 8rem) 0; background: var(--granate); color: var(--crema); position: relative; }
.proceso .section-label { color: var(--crema); }
.proceso .section-title em { color: var(--salvia); }
.proceso .section-intro { color: rgba(247, 233, 198, .78); }

.timeline { list-style: none; margin: 0; padding: 0 0 0 0; position: relative; --progress: 0; }
.timeline::before, .timeline::after {
  content: ""; position: absolute; left: 22px; top: 8px; bottom: 8px; width: 1px;
}
.timeline::before { background: rgba(247, 233, 198, .2); }
.timeline::after { background: var(--salvia); transform-origin: top; transform: scaleY(var(--progress)); }
.tl-item {
  position: relative;
  display: grid; gap: 1rem 2rem;
  grid-template-columns: 46px 1fr;
  padding: 0 0 clamp(2.5rem, 5vw, 3.5rem);
}
.tl-num {
  position: relative; z-index: 1;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--granate); border: 1px solid rgba(247, 233, 198, .4);
  font-size: .78rem; font-weight: 700; letter-spacing: .05em;
  transition: background-color .5s, color .5s, border-color .5s;
}
.tl-item.is-active .tl-num { background: var(--salvia); color: var(--granate-deep); border-color: var(--salvia); }
.tl-text h3 { font-family: var(--serif); font-weight: 330; font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1.05; margin-bottom: .7rem; font-variation-settings: "SOFT" 100, "opsz" 144; }
.tl-text p { color: rgba(247, 233, 198, .8); max-width: 46ch; margin: 0; }
.tl-img { grid-column: 2; margin: 0; border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 10; max-width: 420px; }
.tl-img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.92) contrast(1.02); transition: transform 1.2s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .tl-item:hover .tl-img img { transform: scale(1.05); } }
@media (min-width: 900px) {
  .tl-item { grid-template-columns: 46px 1.1fr 1fr; align-items: center; }
  .tl-img { grid-column: 3; justify-self: end; width: 100%; }
}

/* =========================================================
   NOSOTROS
   ========================================================= */
.nosotros { padding: clamp(5rem, 10vw, 8rem) 0; }
.nos-grid { display: grid; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
@media (min-width: 900px) { .nos-grid { grid-template-columns: 1fr 1.05fr; } }
.nos-media { position: relative; margin: 0; }
.blob-img {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 46% 54% 52% 48% / 52% 46% 54% 48%;
  animation: morph 16s ease-in-out infinite alternate;
}
@keyframes morph {
  50% { border-radius: 56% 44% 46% 54% / 44% 56% 44% 56%; }
  100% { border-radius: 44% 56% 58% 42% / 54% 48% 52% 46%; }
}
.blob-img img { width: 100%; height: 100%; object-fit: cover; }
.blob-portrait { aspect-ratio: 4 / 5; max-width: 520px; margin-inline: auto; border-radius: 48% 52% 44% 56% / 40% 42% 58% 60%; }
.blob-portrait img { object-position: 50% 30%; }
.nos-media .oval {
  position: absolute; right: 0; bottom: 6%;
  background: var(--salvia); border-color: var(--salvia); color: var(--granate-deep);
  font-size: 1.05rem; transform: rotate(5deg);
}
.nos-copy > p:not(.section-label):not(.signature) { color: var(--ink-soft); font-size: 1.05rem; max-width: 52ch; }
.nos-copy .section-title { margin-bottom: 1.6rem; }
.signature { font-family: var(--serif); font-style: italic; font-size: 1.4rem; color: var(--granate); margin-top: 1.6rem; }
.signature span { font-family: var(--sans); font-style: normal; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }

/* =========================================================
   RESEÑAS
   ========================================================= */
.resenas { padding: clamp(4rem, 9vw, 7rem) 0; background: var(--salvia); }
.resenas .section-title em { color: var(--granate); }
.resenas .btn-ghost { border-color: var(--granate); }
.rating { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.2rem; }
@media (min-width: 900px) { .rating { justify-content: flex-end; } }
.rating-num {
  margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(3.4rem, 7vw, 5rem); line-height: .9;
  color: var(--granate); letter-spacing: -0.03em; font-variation-settings: "SOFT" 100, "opsz" 144;
}
.rating-num span { font-size: .45em; vertical-align: .9em; margin-left: .05em; }
.rating-txt { margin: 0; font-weight: 600; font-size: .9rem; line-height: 1.35; }
.rating-txt span { font-weight: 500; color: var(--ink-soft); }
.rating .btn { width: 100%; }
@media (min-width: 520px) { .rating .btn { width: auto; } }
.reviews { display: grid; gap: 1.2rem; }
@media (min-width: 900px) { .reviews { grid-template-columns: repeat(3, 1fr); } }
.review {
  margin: 0; padding: 1.8rem 1.6rem 1.6rem; border-radius: var(--radius);
  background: var(--paper); position: relative;
  display: flex; flex-direction: column; gap: .9rem;
}
.review-tag {
  align-self: flex-start; font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: .25rem .6rem; border-radius: 999px; background: rgba(103, 6, 39, .08); color: var(--granate);
}
.stars { color: var(--granate); letter-spacing: .2em; font-size: .95rem; }
.review blockquote { margin: 0; font-family: var(--serif); font-size: 1.25rem; line-height: 1.35; font-weight: 350; font-variation-settings: "SOFT" 100, "opsz" 36; }
.review figcaption { margin-top: auto; font-size: .82rem; font-weight: 600; color: var(--ink-soft); }

/* =========================================================
   VISÍTANOS
   ========================================================= */
.visitanos { padding: clamp(5rem, 10vw, 8rem) 0; }
.vis-grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
@media (min-width: 960px) {
  .vis-grid { grid-template-columns: 1fr 1fr; align-items: stretch; gap: 4rem; }
  .vis-map { min-height: 100%; height: 100%; }
}
.vis-info .section-title { margin-bottom: 2rem; }
.vis-address { font-style: normal; font-size: 1.15rem; line-height: 1.6; margin-bottom: 2rem; }
.vis-address span { display: inline-block; margin-top: .3rem; color: var(--verde); font-size: .9rem; font-weight: 500; }
.hours { width: 100%; max-width: 440px; border-collapse: collapse; margin-bottom: 2rem; font-size: .95rem; }
.hours th, .hours td { padding: .62rem 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 500; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours .is-closed td { color: var(--ink-soft); }
.hours tr.is-today th, .hours tr.is-today td { color: var(--granate); font-weight: 700; }
.hours tr.is-today th::after {
  content: "hoy"; margin-left: .6rem; padding: .1rem .5rem; border-radius: 999px;
  background: var(--granate); color: var(--crema); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; vertical-align: 2px;
}
.vis-ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.6rem; }
.vis-social { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; }
.vis-social a { font-weight: 600; font-size: .92rem; color: var(--granate); text-decoration: none; border-bottom: 1px solid var(--line-strong); }
@media (hover: hover) and (pointer: fine) { .vis-social a:hover { border-color: var(--granate); } }

.vis-map { position: relative; border-radius: 32px; overflow: hidden; min-height: 460px; background: var(--arena); }
.vis-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-placeholder { position: absolute; inset: 0; display: grid; place-items: center; }
.map-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-art path { fill: none; stroke: rgba(103, 6, 39, .14); stroke-width: 14; stroke-linecap: round; }
.map-art .map-road { stroke: rgba(102, 120, 78, .35); stroke-width: 26; }
.map-pin {
  position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%);
  width: 96px; height: 96px; border-radius: 50% 50% 50% 4px; rotate: -45deg;
  background: var(--granate); display: grid; place-items: center;
  box-shadow: 0 18px 30px -12px rgba(74, 3, 27, .6);
  animation: pinBob 3s ease-in-out infinite;
}
.map-pin svg { width: 66px; height: 30px; fill: var(--crema); rotate: 45deg; }
@keyframes pinBob { 50% { transform: translate(-50%, calc(-50% - 8px)); } }
.map-cta {
  position: absolute; left: 1.2rem; right: 1.2rem; bottom: 1.2rem;
  background: var(--paper); border-radius: 20px; padding: 1.1rem 1.2rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem;
}
.map-cta p { margin: 0; font-size: .82rem; color: var(--ink-soft); max-width: 34ch; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--granate-deep); color: var(--crema); padding: clamp(4rem, 8vw, 6rem) 0 calc(2rem + 76px); }
@media (min-width: 1024px) { .footer { padding-bottom: 2rem; } }
.footer-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 2rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(247, 233, 198, .16); }
.footer-logo { width: clamp(220px, 32vw, 380px); height: auto; aspect-ratio: 224 / 158; fill: var(--crema); }
.footer-claim { font-size: .82rem; font-weight: 600; letter-spacing: .4em; text-transform: uppercase; margin: 0; opacity: .85; }
.footer-cols { display: grid; gap: 2rem; padding: 3rem 0; }
@media (min-width: 720px) { .footer-cols { grid-template-columns: repeat(3, 1fr); } }
.footer h3 { font-family: var(--serif); font-style: italic; font-weight: 350; font-size: 1.3rem; margin-bottom: .7rem; color: var(--salvia); }
.footer p { font-size: .92rem; opacity: .85; line-height: 1.8; margin: 0; }
.footer a { text-decoration: none; border-bottom: 1px solid rgba(247, 233, 198, .25); }
@media (hover: hover) and (pointer: fine) { .footer a:hover { border-color: var(--crema); } }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.6rem; border-top: 1px solid rgba(247, 233, 198, .16); font-size: .8rem; opacity: .75; }
.footer-bottom p { font-size: .8rem; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }

/* =========================================================
   DOCK (móvil)
   ========================================================= */
.dock {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 90;
  display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 6px;
  padding: 6px; border-radius: 999px;
  background: rgba(74, 3, 27, .94);
  box-shadow: 0 18px 40px -14px rgba(36, 25, 27, .6);
  animation: dockIn .7s .9s var(--ease-out) both;
}
@keyframes dockIn { from { transform: translateY(140%); } }
.dock a, .dock button {
  transition: transform var(--press) var(--ease-out);
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 48px; border-radius: 999px; border: 0; background: transparent;
  color: var(--crema); font-weight: 600; font-size: .82rem; text-decoration: none;
}
.dock .dock-wa { background: var(--salvia); color: var(--granate-deep); }
.dock a:active, .dock button:active { transform: scale(.95); }
.dock .dock-wa svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.dock .cart-count { background: var(--crema); color: var(--granate); }
@media (min-width: 1024px) { .dock { display: none; } }

/* =========================================================
   DRAWER (encargo)
   ========================================================= */
.drawer-backdrop {
  position: fixed; inset: 0; z-index: 140; background: rgba(36, 25, 27, .45);
  opacity: 0; pointer-events: none; transition: opacity 300ms ease;
}
.drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 150;
  width: min(460px, 100%);
  background: var(--paper);
  display: flex; flex-direction: column;
  transform: translateX(104%);
  transition: transform 300ms var(--ease-out); /* cerrar: el sistema responde, más rápido */
  box-shadow: -30px 0 60px -30px rgba(36, 25, 27, .4);
}
.drawer.is-open { transform: none; transition: transform 450ms var(--ease-drawer); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 1.2rem 1.4rem; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 1.9rem; font-weight: 330; }
.drawer-close { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; display: grid; place-items: center; }
.drawer-close svg { width: 18px; height: 18px; stroke: var(--granate); stroke-width: 1.8; fill: none; stroke-linecap: round; }
.drawer-body { flex: 1; overflow-y: auto; padding: 1.2rem 1.4rem 2rem; overscroll-behavior: contain; }
.drawer-empty { text-align: center; padding: 2.5rem 0; display: grid; justify-items: center; gap: .3rem; }
.drawer-empty[hidden] { display: none; }
.empty-logo { width: 150px; height: 100px; fill: var(--granate); opacity: .85; margin-bottom: 1rem; }
.drawer-empty .btn { margin-top: 1.2rem; }

.cart-list { list-style: none; margin: 0; padding: 0; }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: .9rem; align-items: center; padding: .9rem 0; border-bottom: 1px solid var(--line); animation: itemIn .45s var(--ease-out); }
@keyframes itemIn { from { opacity: 0; transform: translateX(16px); } }
.cart-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 14px; }
.cart-item .ci-thumb { width: 64px; height: 64px; border-radius: 14px; background: var(--crema); display: grid; place-items: center; }
.cart-item .ci-thumb svg { width: 44px; height: 22px; fill: var(--granate); }
.ci-name { font-weight: 600; font-size: .92rem; line-height: 1.3; }
.ci-price { font-size: .82rem; color: var(--ink-soft); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 999px; }
.qty button { width: 34px; height: 34px; border: 0; background: transparent; color: var(--granate); font-size: 1.1rem; border-radius: 50%; }
@media (hover: hover) and (pointer: fine) { .qty button:hover { background: rgba(103, 6, 39, .08); } }
.qty button { transition: transform var(--press) var(--ease-out), background-color 150ms ease; }
.qty button:active { transform: scale(.9); }
.qty span { min-width: 22px; text-align: center; font-weight: 700; font-size: .9rem; }

.order-form { display: grid; gap: 1rem; margin-top: 1.2rem; }
.order-form[hidden] { display: none; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; padding: .4rem 0 .8rem; }
.cart-total strong { font-family: var(--serif); font-size: 1.8rem; font-weight: 400; color: var(--granate); }
.order-form label { display: grid; gap: .35rem; font-size: .8rem; font-weight: 600; color: var(--ink-soft); }
.order-form input, .order-form select, .order-form textarea {
  width: 100%; font: inherit; font-size: 1rem; font-weight: 500; color: var(--ink);
  padding: .8rem .9rem; border-radius: 14px; border: 1px solid var(--line-strong); background: #fffaf0;
}
.order-form input:focus, .order-form select:focus, .order-form textarea:focus { outline: 2px solid var(--granate); outline-offset: 0; border-color: transparent; }
.form-row { display: grid; grid-template-columns: 1.3fr 1fr; gap: .8rem; }
.form-hint { font-size: .78rem; color: var(--ink-soft); margin: -.3rem 0 0; }
.form-hint.is-error { color: var(--granate); font-weight: 600; }

/* ---- Errores de formulario y estados de carga ---- */
.field-error { display: flex; gap: .4rem; align-items: flex-start; font-size: .78rem; font-weight: 600; color: var(--granate); line-height: 1.35; }
.field-error[hidden] { display: none; }
.field-error::before, .form-hint.is-error::before {
  content: "!"; flex: none; width: 16px; height: 16px; border-radius: 50%; display: inline-grid; place-items: center;
  background: var(--granate); color: var(--crema); font-size: .66rem; font-weight: 800; margin-top: .05rem;
}
.form-hint.is-error { display: flex; gap: .4rem; align-items: flex-start; }
.order-form [aria-invalid="true"] { border-color: var(--granate); background: #fff3ef; box-shadow: inset 0 0 0 1px var(--granate); }
.spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; flex: none; }
.is-sending .btn-wa svg { display: none; }
.is-sending .btn-wa .spinner { display: inline-block; }
.btn[disabled] { cursor: progress; opacity: .85; }
.btn[disabled]:active { transform: none; }

.vis-map.is-loading::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 250, 240, .55) 50%, transparent 70%) var(--arena);
  background-size: 220% 100%; animation: shimmer 1.4s linear infinite;
}
.vis-map.is-loading .map-placeholder { z-index: 1; }
.vis-map iframe { z-index: 2; }
.map-cta p.is-error { color: var(--granate); font-weight: 600; }
.map-cta p.is-error a { color: inherit; }
@keyframes shimmer { to { background-position: -120% 0; } }

/* Imágenes: aparecen suaves; si una falla, no se ve el icono roto */
.img-pending { opacity: 0; }
.img-in { animation: img-in .6s var(--ease-out) both; }
@keyframes img-in { from { opacity: 0; } to { opacity: 1; } }
.img-broken { visibility: hidden; }
.media-fallback { background: var(--arena); }
@media (prefers-reduced-motion: reduce) { .img-in { animation-duration: .2s; } .vis-map.is-loading::after { animation: none; } }
.btn-wa { width: 100%; background: #1f7a4d; color: #fff; min-height: 56px; font-size: 1rem; }
@media (hover: hover) and (pointer: fine) { .btn-wa:hover { background: #18633e; transform: translateY(-2px); } }
.btn-wa:active { transform: scale(.97); }
.btn-wa svg { width: 20px; height: 20px; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 160;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--crema); padding: .8rem 1.2rem; border-radius: 999px;
  font-size: .88rem; font-weight: 500; white-space: nowrap;
  transition: opacity 400ms ease, transform 400ms ease;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 1024px) { .toast { bottom: 2rem; } }

body.is-locked, html:has(body.is-locked) { overflow: hidden; }

/* =========================================================
   MOTION · sentido del scroll
   ========================================================= */
/* Barra de progreso de lectura */
.scroll-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 130; pointer-events: none; }
.scroll-progress span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--granate), var(--granate-soft) 60%, var(--salvia));
  transform-origin: left center; transform: scaleX(var(--p, 0));
}

/* Indicador de capítulo (dónde estás) */
.chapter {
  position: fixed; left: 22px; bottom: 24px; z-index: 85;
  display: none; align-items: center; gap: .7rem;
  padding: .55rem 1rem .55rem .8rem; border-radius: 999px;
  background: rgba(251, 244, 227, .92); color: var(--granate);
  box-shadow: 0 10px 30px -14px rgba(36, 25, 27, .45);
  font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .5s var(--ease-out);
}
@supports (backdrop-filter: blur(8px)) { .chapter { background: rgba(251, 244, 227, .78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); } }
.chapter.is-on { opacity: 1; transform: none; }
.chapter-num { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1rem; letter-spacing: 0; text-transform: none; }
.chapter-line { width: 34px; height: 1px; background: currentColor; opacity: .4; position: relative; overflow: hidden; }
.chapter-line::after { content: ""; position: absolute; inset: 0; background: currentColor; transform-origin: left; transform: scaleX(var(--cp, 0)); }
.chapter-name { display: inline-block; transition: opacity .3s, transform .4s var(--ease-out); }
.chapter.is-changing .chapter-name, .chapter.is-changing .chapter-num { opacity: 0; transform: translateY(6px); }
.chapter-num { display: inline-block; transition: opacity .3s, transform .4s var(--ease-out); }
@media (min-width: 1024px) { .chapter { display: inline-flex; } }

/* Invitación a bajar en la portada */
.scroll-cue {
  position: absolute; left: 50%; bottom: 22px; translate: -50% 0;
  display: none; flex-direction: column; align-items: center; gap: .6rem;
  font-size: .66rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase;
  color: var(--verde); text-decoration: none; transition: opacity .5s;
}
.scroll-cue i { width: 1px; height: 52px; background: rgba(103, 6, 39, .18); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -100%; width: 100%; height: 100%; background: var(--granate); animation: cue 1.9s var(--ease-out) infinite; }
@keyframes cue { to { top: 100%; } }
@media (min-width: 1024px) and (min-height: 700px) { .scroll-cue { display: flex; } }
body.past-hero .scroll-cue { opacity: 0; pointer-events: none; }

/* Parallax y giro (propiedades individuales: no pisan otras transformaciones) */
[data-parallax] { translate: 0 var(--py, 0px); will-change: translate; }
[data-spin] { rotate: var(--rot, 0deg); }
.badge-ring { rotate: var(--scroll-rot, 0deg); }

/* Formas de pan mordido flotando */
.manifesto, .encargos, .nosotros { position: relative; }
.manifesto > .wrap, .encargos > .wrap, .nosotros > .wrap { position: relative; z-index: 1; }
.deco { position: absolute; pointer-events: none; z-index: 0; color: var(--salvia); width: 240px; height: 184px; }
.deco-a { top: 10%; right: -60px; opacity: .7; }
.deco-b { bottom: 8%; left: -70px; width: 170px; height: 130px; color: var(--granate); opacity: .14; }
.deco-c { top: 60px; right: 4%; width: 190px; height: 146px; color: var(--granate); opacity: .12; }
.deco-d { bottom: 6%; left: 2%; width: 200px; height: 154px; opacity: .6; }
@media (max-width: 720px) { .deco { width: 130px; height: 100px; } .deco-a { right: -50px; } .deco-b, .deco-d { left: -50px; } }

/* Fotos que se descubren con cortinilla */
.tl-item .tl-img { clip-path: inset(100% 0 0 0 round 18px); transition: clip-path 1.2s var(--ease-out) .15s; }
.tl-item.is-visible .tl-img { clip-path: inset(0 0 0 0 round 18px); }
.tl-img img { scale: 1.18; translate: 0 var(--py, 0px); }
.enc-card .enc-media { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--ease-out) .1s; }
.enc-card.is-visible .enc-media { clip-path: inset(0 0 0 0); }
/* El recorte va en la imagen, no en el elemento observado (si no, el observador nunca lo "ve") */
.season-media.reveal img { clip-path: circle(0% at 50% 50%); transition: clip-path 1.4s var(--ease-out) .1s; }
.season-media.reveal.is-visible img { clip-path: circle(75% at 50% 50%); }
.product .product-media { clip-path: inset(0 0 100% 0); transition: clip-path 1s var(--ease-out) calc(var(--d, 0s) + .1s); }
.product.is-visible .product-media { clip-path: inset(0 0 0 0); }
.no-js .tl-img, .no-js .enc-media, .no-js .season-media img, .no-js .product-media { clip-path: none !important; }

/* Cinta: controlada por scroll cuando hay JS */
.marquee.is-driven .marquee-track { animation: none; will-change: transform; }

/* =========================================================
   Movimiento reducido — solo lo intrusivo
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* Menos movimiento, no cero: las apariciones se quedan, pero solo en opacidad */
  .reveal { transform: none; transition: opacity 500ms ease; transition-delay: var(--d, 0s); }
  [data-split] .w > span { transform: none; opacity: 0; transition: opacity 500ms ease; transition-delay: calc(var(--i, 0) * 30ms); }
  [data-split].is-visible .w > span { opacity: 1; }
  .badge-ring, .bread-img, .blob-img, .map-pin { animation: none; }
  .marquee-track { animation-duration: 80s; }
}
