/* Regañas Masa Madre — sitio mayorista
   Paleta y tipografías tomadas del sistema de identidad (Andes Creative, oct. 2026) */

:root {
  --centeno: #1B1713;
  --centeno-2: #262019;
  --harina: #E8E9E5;
  --trigo: #9C6E22;
  --trigo-claro: #B8873A;
  --papel: #F7F7F4;
  --corteza: #E9DCC2;
  --cinta: #8E3B2A;

  /* roles (modo claro) */
  --bg: var(--harina);
  --surface: var(--papel);
  --ink: var(--centeno);
  --ink-soft: #57504A;
  --line: #CFCFC9;
  --accent: var(--trigo);
  --accent-ink: #FFFFFF;
  --field: #EFEFEB;

  --serif: "Fraunces", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, sans-serif;

  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --r-sm: 10px;
  --r-md: 18px;
  --r-pill: 999px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15120F;
    --surface: #262019;
    --ink: #EEEAE2;
    --ink-soft: #B0A89C;
    --line: #3A332B;
    --field: #2F2821;
    --accent: var(--trigo-claro);
    --accent-ink: #1B1713;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 {
  text-wrap: balance;
  font-family: var(--serif);
  font-weight: 400;
  font-variation-settings: "SOFT" 100, "opsz" 72;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.01em;
}
h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
h3 { font-size: 1.3rem; font-variation-settings: "SOFT" 100, "opsz" 24; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.section { padding-block: clamp(64px, 10vw, 120px); }
.section-head {
  display: grid;
  gap: 16px 48px;
  grid-template-columns: 1fr;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.section-head p { color: var(--ink-soft); max-width: 52ch; }
@media (min-width: 860px) {
  .section-head { grid-template-columns: 1.1fr 1fr; align-items: end; }
}

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px;
  border-radius: var(--r-pill);
  border: 1.5px solid currentColor;
  background: transparent; color: inherit;
  font: 600 16px/1 var(--sans);
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, transform .1s;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--cinta); border-color: var(--cinta); color: #fff; }
.btn-ghost:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.btn-block { width: 100%; }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.logo svg { width: 18px; height: 40px; }
.logo-name { display: block; font: 400 26px/1 var(--serif); font-variation-settings: "SOFT" 100; padding-bottom: 5px; border-bottom: 1.5px dotted currentColor; }
.logo-desc { display: block; font: 500 11px/1 var(--sans); letter-spacing: .32em; margin-top: 6px; opacity: .75; }

/* ---------- barra superior y nav ---------- */
.topbar { background: var(--centeno); color: #CFC8BD; font-size: 14px; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding-block: 9px; }
.topbar strong { color: #F4F1EA; font-weight: 600; }
.topbar .muestras { display: none; }
@media (min-width: 760px) { .topbar .muestras { display: block; } }

.nav { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, #2A2520 94%, transparent); backdrop-filter: blur(10px); color: #F4F1EA; border-bottom: 1px solid #3A342D; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 24px; }
.nav-links { display: none; gap: 32px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: #CFC8BD; font-size: 16px; }
.nav-links a:hover { color: #fff; }
@media (min-width: 980px) { .nav-links { display: flex; } }
.cart-btn { background: var(--trigo); border-color: var(--trigo); color: #fff; padding-inline: 20px 10px; }
.cart-btn:hover { background: var(--cinta); border-color: var(--cinta); }
.cart-count { min-width: 26px; height: 26px; padding: 0 7px; border-radius: 99px; background: #fff; color: var(--centeno); display: inline-grid; place-items: center; font-size: 14px; }

/* ---------- portada rotativa ---------- */
.hero-x { display: grid; background: var(--centeno); color: #F4F1EA; }
.hero-x .slide {
  grid-area: 1 / 1; position: relative; overflow: hidden; display: grid;
  min-height: min(calc(100svh - 120px), 820px);
  opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility 0s .8s;
}
.hero-x .slide.is-on { opacity: 1; visibility: visible; z-index: 1; transition: opacity .8s ease; }
.slide-title { font-weight: 350; font-variation-settings: "SOFT" 100, "opsz" 144; letter-spacing: -.025em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-ctas .btn-ghost { color: #F4F1EA; }

/* controles: una franja oscura debajo, con la barrita de tiempo en el punto activo */
.hero-controls { grid-row: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; padding-block: 14px; }
.hero-dots { display: flex; gap: 6px 22px; flex-wrap: wrap; }
.hero-dots button, .hero-pause { background: none; border: 0; color: #A99F92; font: 500 14px/1 var(--sans); cursor: pointer; padding: 8px 0; }
.hero-dots button[aria-current] { color: #F4F1EA; }
.hero-dots .bar { display: block; width: 72px; height: 2px; margin-bottom: 10px; background: #4A4239; position: relative; overflow: hidden; }
.hero-dots .bar::after { content: ""; position: absolute; inset: 0; background: var(--trigo-claro); transform: scaleX(0); transform-origin: left; }
.hero-dots button[aria-current] .bar::after { transform: scaleX(1); }
.hero-x.running .hero-dots button[aria-current] .bar::after { animation: avanzar var(--hero-interval, 8s) linear both; }
@keyframes avanzar { from { transform: scaleX(0); } }
.hero-pause { text-decoration: underline dotted; text-underline-offset: 4px; }
.hero-pause:hover, .hero-dots button:hover { color: #F4F1EA; }

/* Surtido: etiquetas alrededor del titular */
.slide-b { background: var(--harina); color: var(--centeno); place-items: center; text-align: center; }
.b-center { position: relative; z-index: 2; max-width: 720px; padding: 110px 16px; }
.slide-b .slide-title { font-size: clamp(2.9rem, 8.5vw, 6.8rem); line-height: .95; }
.b-center p { max-width: 46ch; margin: 24px auto 0; color: #57504A; }
.slide-b .hero-ctas { justify-content: center; }
.slide-b .hero-ctas .btn-ghost { color: var(--centeno); }
.b-stage { position: absolute; inset: 0; width: min(100%, 1360px); margin-inline: auto; pointer-events: none; }
.b-label { position: absolute; z-index: 1; width: var(--w); aspect-ratio: 1; border-radius: 50%; left: var(--x); top: var(--y); rotate: var(--r); box-shadow: 0 14px 30px rgb(27 23 19 / .18); }
.slide-b.is-on .b-label { animation: b-in .9s var(--d) cubic-bezier(.3,1.5,.5,1) both; }
@keyframes b-in { from { scale: 0; rotate: calc(var(--r) - 40deg); } }
.b-label img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 7px solid var(--papel); }
.b-label.txt { background: var(--papel); color: var(--centeno); display: grid; place-content: center; gap: 4px; box-shadow: inset 0 0 0 7px var(--papel), inset 0 0 0 8.5px var(--centeno), 0 14px 30px rgb(27 23 19 / .18); }
.b-label.txt svg { width: 10px; height: 22px; margin-inline: auto; }
.b-label.txt small { font: 500 8px/1 var(--sans); letter-spacing: .26em; }
.b-label.txt span { font: 400 17px/1.05 var(--serif); font-variation-settings: "SOFT" 100; }
.b-label.dark { background: #2E2822; color: #F4F1EA; box-shadow: inset 0 0 0 7px #2E2822, inset 0 0 0 8.5px #F4F1EA, 0 14px 30px rgb(27 23 19 / .18); }
@media (prefers-color-scheme: dark) {
  .slide-b { background: #2B2520; color: var(--ink); }
  .b-center p { color: var(--ink-soft); }
  .slide-b .hero-ctas .btn-ghost { color: var(--ink); }
}
@media (max-width: 760px) {
  .b-center { padding-top: 200px; padding-bottom: 56px; }
  .b-label { --w: 84px !important; }
  .b-label.txt span { font-size: 12px; }
  .b-label.txt small { font-size: 6px; }
  .b-label.hide-sm { display: none; }
}

/* Muestras: el ticket de la caja */
.slide-d { align-items: center; }
.slide-d .wrap { display: grid; gap: 48px; padding-block: 80px; }
@media (min-width: 960px) { .slide-d .wrap { grid-template-columns: 1.1fr .9fr; align-items: center; } }
.slide-d .slide-title { font-size: clamp(2.9rem, 8vw, 6.4rem); line-height: .95; }
.slide-d .slide-title span { color: var(--corteza); }
.slide-d .lead { color: #CFC8BD; max-width: 44ch; margin-top: 24px; }
.slip {
  position: relative; background: var(--corteza); color: var(--centeno);
  border-radius: 6px; padding: 30px 28px 26px; rotate: 2deg; max-width: 460px;
  box-shadow: 0 30px 60px rgb(0 0 0 / .45);
  background-image: radial-gradient(circle at 0 50%, var(--centeno) 9px, transparent 10px), radial-gradient(circle at 100% 50%, var(--centeno) 9px, transparent 10px);
}
.slide-d.is-on .slip { animation: d-in 1s .2s cubic-bezier(.2,.8,.2,1) both; }
@keyframes d-in { from { translate: 0 60px; rotate: 8deg; opacity: 0; } }
.slip-title { font: 400 2rem/1.1 var(--serif); font-variation-settings: "SOFT" 100; }
.slip-sub { font-size: 15px; color: #57504A; margin-top: 6px; }
.slip ul { list-style: none; margin: 20px 0; padding: 18px 0; border-block: 1.5px dashed rgb(27 23 19 / .35); display: grid; gap: 14px; }
.slip li { display: grid; grid-template-columns: 52px 1fr auto; gap: 14px; align-items: center; }
.slip li img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 3px solid var(--papel); }
.slip li b { font: 400 1.15rem/1.2 var(--serif); font-variation-settings: "SOFT" 100; display: block; }
.slip li small { font-size: 13px; color: #6B6157; }
.slip li span { font-weight: 600; font-size: 14px; }
.slip-total { display: flex; justify-content: space-between; font-weight: 600; }
.stamp { position: absolute; top: -26px; right: -14px; width: 112px; aspect-ratio: 1; border-radius: 50%; border: 2.5px solid var(--cinta); color: var(--cinta); display: grid; place-content: center; text-align: center; rotate: 14deg; background: rgb(233 220 194 / .92); font: 400 21px/1 var(--serif); font-variation-settings: "SOFT" 100; }
.stamp small { display: block; font: 600 9px/1 var(--sans); letter-spacing: .2em; margin-top: 6px; }
.slide-d.is-on .stamp { animation: stamp .5s 1.1s cubic-bezier(.3,1.8,.5,1) both; }
@keyframes stamp { from { scale: 2.2; opacity: 0; } }
@media (max-width: 959px) { .slip { margin-inline: 8px; } .slide-d .wrap { gap: 40px; padding-block: 56px 64px; } }

/* Regañas: la foto a pantalla completa */
.slide-a { background: #8E6420; align-items: end; }
.a-photo { position: absolute; inset: 0; }
.a-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.25) brightness(1.05); mix-blend-mode: multiply; transform: scale(1.08); }
.slide-a.is-on .a-photo img { animation: a-zoom 8s cubic-bezier(.2,.7,.2,1) both; }
@keyframes a-zoom { from { transform: scale(1.25); } }
.slide-a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, #1B1713 8%, rgb(27 23 19 / .55) 45%, rgb(27 23 19 / .1)); }
.slide-a .wrap { position: relative; z-index: 2; padding-block: 120px 40px; }
.slide-a .slide-title { font-size: clamp(3.4rem, 12vw, 10.5rem); line-height: .88; }
.slide-a .slide-title span { display: block; }
.slide-a .slide-title span + span { color: var(--corteza); }
.a-foot { display: grid; gap: 24px; margin-top: 36px; padding-top: 26px; border-top: 1.5px dotted rgb(244 241 234 / .4); }
@media (min-width: 900px) { .a-foot { grid-template-columns: 1fr auto; align-items: end; } }
.a-foot p { max-width: 48ch; color: #DCD4C8; }
.a-foot .hero-ctas { margin-top: 0; }

/* celular: las tres portadas comparten alto, así que la de muestras se compacta */
@media (max-width: 759px) {
  .hero-x .slide { min-height: calc(100svh - 150px); }
  .slide-d .wrap { padding-block: 36px 44px; gap: 30px; }
  .slide-d .lead { font-size: 16px; margin-top: 16px; }
  .slip { padding: 20px 18px 16px; }
  .slip-title { font-size: 1.45rem; }
  .slip-sub, .slip li small { display: none; }
  .slip ul { margin: 12px 0; padding: 12px 0; gap: 10px; }
  .slip li { grid-template-columns: 38px 1fr auto; gap: 10px; }
  .slip li img { width: 38px; height: 38px; }
  .stamp { width: 84px; font-size: 16px; top: -22px; right: -6px; }
  .slide-a .wrap { padding-block: 64px 28px; }
  .a-foot p { font-size: 16px; }
  .hero-ctas { margin-top: 24px; }
  .hero-dots { gap: 6px 16px; }
  .hero-dots .bar { width: 52px; }
}

/* sticker redondo: repite la etiqueta real de los envases */
.sticker {
  width: 148px; aspect-ratio: 1; border-radius: 50%;
  background: var(--papel); color: var(--centeno);
  display: grid; place-content: center; text-align: center; gap: 4px;
  box-shadow: 0 10px 30px rgb(0 0 0 / .35);
}
.sticker svg { width: 12px; height: 26px; margin-inline: auto; }
.sticker small { font: 500 9px/1 var(--sans); letter-spacing: .28em; }
.sticker span { font: 400 18px/1.05 var(--serif); font-variation-settings: "SOFT" 100; }

/* ---------- dónde se vende ---------- */
.stores { background: var(--surface); border-bottom: 1px solid var(--line); }
.stores-grid { display: grid; gap: 32px; padding-block: clamp(56px, 8vw, 96px); align-items: center; }
@media (min-width: 900px) { .stores-grid { grid-template-columns: 340px 1fr; gap: 56px; } }
.stores-copy > p { color: var(--ink-soft); margin-top: 12px; max-width: 36ch; }
.store-list { list-style: none; margin: 24px 0 0; padding: 0; }
.store-list li { display: grid; grid-template-columns: 26px 1fr; align-items: center; padding: 12px 8px; margin-inline: -8px; border-radius: var(--r-sm); cursor: default; transition: background-color .2s; }
.store-list li.is-hot { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.store-list b { font-weight: 600; }
.store-list span.place { grid-column: 2; font-size: 14px; color: var(--ink-soft); }
.pin-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--cinta); display: inline-block; }
.pin-dot.approx { background: transparent; border: 2px solid var(--cinta); }
.map-note { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 13px; color: var(--ink-soft); }

.map { position: relative; border-radius: var(--r-md); overflow: hidden; background: var(--bg); border: 1px solid var(--line); }
.map svg { display: block; width: 100%; height: auto; }
.map .river { fill: color-mix(in srgb, var(--accent) 14%, var(--surface)); }
.map .coast { fill: none; stroke: var(--ink); stroke-width: 1.4; opacity: .55; }
.map .caba { fill: var(--surface); stroke: var(--ink); stroke-width: 1.4; stroke-dasharray: 2 5; stroke-linecap: round; }
.map .riachuelo { fill: none; stroke: color-mix(in srgb, var(--accent) 60%, transparent); stroke-width: 2.5; }
.map .zone { fill: none; stroke: var(--accent); stroke-width: 1.2; stroke-dasharray: 1 6; stroke-linecap: round; opacity: .8; }
.map text { font: 400 14px var(--serif); font-variation-settings: "SOFT" 100; fill: var(--ink-soft); }
.map text.big { font-size: 22px; fill: var(--ink); }
.map text.water { font-style: italic; font-size: 15px; }
.map .pin circle.core { fill: var(--cinta); stroke: var(--surface); stroke-width: 2.5; }
.map .pin.approx circle.core { fill: var(--surface); stroke: var(--cinta); stroke-width: 2.5; }
.map .pin circle.halo { fill: var(--cinta); opacity: 0; transform-box: fill-box; transform-origin: center; }
.map .pin text { font: 500 13px var(--sans); fill: var(--ink); paint-order: stroke; stroke: var(--surface); stroke-width: 4px; stroke-linejoin: round; transition: font-weight .2s; }
.map .pin.is-hot text { font-weight: 700; }
@media (max-width: 899px) {
  .map .pin text { font-size: 19px; stroke-width: 5px; }
  .map text.big { font-size: 30px; }
  .map text, .map text.water { font-size: 20px; }
}
.map .pin.is-hot circle.halo { opacity: .22; scale: 2.6; transition: scale .3s, opacity .3s; }
.map .pin { cursor: pointer; }
.map .pin g.drop { transform-box: fill-box; transform-origin: bottom; }
.map.in .pin g.drop { animation: caer .7s calc(var(--i) * .15s + .2s) cubic-bezier(.3,1.5,.5,1) both; }
@keyframes caer { from { translate: 0 -40px; opacity: 0; } }

/* ---------- cinta de sabores ---------- */
.flavors { background: var(--centeno); border-top: 1px solid #3A342D; padding-block: 22px; overflow: hidden; }
.flavors-track { display: flex; gap: 18px; width: max-content; animation: cinta 70s linear infinite; }
.flavors:hover .flavors-track { animation-play-state: paused; }
@keyframes cinta { to { transform: translateX(-50%); } }
.flavor {
  flex: none; width: 116px; aspect-ratio: 1; border-radius: 50%;
  display: grid; place-content: center; text-align: center; gap: 3px; padding: 14px;
  background: var(--papel); color: var(--centeno);
  box-shadow: inset 0 0 0 5px var(--papel), inset 0 0 0 6.5px currentColor;
  rotate: var(--r, 0deg); transition: rotate .4s cubic-bezier(.3,1.5,.5,1);
}
.flavor:hover { rotate: 0deg; }
.flavor svg { width: 8px; height: 18px; margin-inline: auto; }
.flavor small { font: 500 7px/1 var(--sans); letter-spacing: .26em; }
.flavor span { font: 400 14px/1.1 var(--serif); font-variation-settings: "SOFT" 100, "opsz" 14; }
.flavor.panes { background: #2E2822; color: #F4F1EA; box-shadow: inset 0 0 0 5px #2E2822, inset 0 0 0 6.5px #F4F1EA; }
.flavor.dulces { color: var(--cinta); }
.flavor.pizzas { background: var(--corteza); box-shadow: inset 0 0 0 5px var(--corteza), inset 0 0 0 6.5px currentColor; }
@media (prefers-reduced-motion: reduce) {
  html:not(.force-motion) .flavors { overflow-x: auto; scrollbar-width: none; }
  html:not(.force-motion) .flavors::-webkit-scrollbar { display: none; }
  html:not(.force-motion) .flavors-track { animation: none; padding-inline: 16px; }
}

/* ---------- por qué vende ---------- */
.why-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
@media (min-width: 700px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
.why-grid > div { background: var(--bg); padding: 28px; }
.why-num { font: 400 clamp(44px, 6vw, 64px)/1 var(--serif); font-variation-settings: "SOFT" 100, "opsz" 144; color: var(--accent); }
.why-grid p { margin-top: 10px; max-width: 40ch; }
.why-grid cite { display: block; margin-top: 10px; font-style: normal; font-size: 13px; color: var(--ink-soft); }

.why-args { display: grid; gap: 28px; margin-top: 48px; }
@media (min-width: 860px) { .why-args { grid-template-columns: repeat(3, 1fr); } }
.why-args h3 { margin-bottom: 8px; }
.why-args p { color: var(--ink-soft); }

/* ---------- proceso ---------- */
.process { --pv-line: var(--centeno); --step-accent: var(--cinta); background: var(--corteza); color: var(--centeno); }
@media (prefers-color-scheme: dark) { .process { --pv-line: #EEEAE2; --step-accent: var(--trigo-claro); background: #3A2E21; color: var(--ink); } }

/* pista alta + escenario fijo: el scroll avanza los pasos */
.process-track { height: 420vh; }
.process-stage { position: sticky; top: 72px; height: calc(100svh - 72px); display: flex; align-items: center; overflow: hidden; }
.process-grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 900px) { .process-grid { grid-template-columns: 1fr 1.05fr; } }
.process-intro { margin-top: 16px; opacity: .8; max-width: 44ch; }

.steps { list-style: none; margin: 32px 0 0; padding: 0; counter-reset: paso; }
.steps li { counter-increment: paso; display: grid; grid-template-columns: 34px 1fr; padding: 14px 0; border-top: 1.5px dotted color-mix(in srgb, currentColor 35%, transparent); opacity: .38; transition: opacity .4s; }
.steps li::before { content: counter(paso); font: 600 15px/1.9 var(--sans); color: var(--step-accent); }
.steps li.is-active, .steps li.is-done { opacity: 1; }
.steps li.is-done:not(.is-active) { opacity: .6; }
.steps h3 { grid-column: 2; }
.steps p { grid-column: 2; font-size: 16px; opacity: .85; max-height: 0; overflow: hidden; transition: max-height .5s ease, margin .5s ease; }
.steps li.is-active p { max-height: 6em; margin-top: 6px; }

.process-visual { position: relative; }
.process-visual svg { width: 100%; max-width: 520px; margin-inline: auto; display: block; overflow: visible; position: relative; }
.pv-line { stroke: var(--pv-line); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
#dough-body { fill: #F5EDDC; }
.bowl { fill: var(--papel); }
@media (prefers-color-scheme: dark) { .bowl { fill: #3A3128; } }
.tray { opacity: 0; }
.label-bg { fill: var(--papel); stroke: var(--centeno); stroke-width: 1.6; }
#label .pv-line { stroke: var(--centeno); }
.label-ink { color: var(--centeno); }
.label-text { font: 500 7.5px var(--sans); letter-spacing: .26em; fill: var(--centeno); }
.oven-glow { position: absolute; inset: 5% 10%; border-radius: 50%; background: radial-gradient(closest-side, rgb(214 120 40 / .55), transparent); opacity: 0; filter: blur(10px); }
.process-clock { display: flex; align-items: baseline; justify-content: center; gap: 2px; margin-top: 8px; font-variant-numeric: tabular-nums; }
#clock-num { font: 400 clamp(44px, 6vw, 72px)/1 var(--serif); font-variation-settings: "SOFT" 100, "opsz" 144; min-width: 1.4em; text-align: right; }
.clock-unit { font: 400 clamp(22px, 3vw, 32px)/1 var(--serif); }
.clock-label { margin-left: 12px; font-size: 15px; opacity: .75; }

/* celular: el dibujo arriba, un paso por vez */
@media (max-width: 899px) {
  .process-track { height: 360vh; }
  .process-grid { gap: 8px; }
  .process-visual { order: -1; }
  .process-visual svg { max-height: 32svh; }
  .process-intro { display: none; }
  .process-copy h2 { font-size: 1.9rem; }
  .steps { margin-top: 12px; }
  .steps li { padding: 8px 0; }
  .steps li:not(.is-active) p { display: none; }
  #clock-num { font-size: 40px; }
}
/* sin animación: todo a la vista, sin escenario fijo */

/* ---------- lista mayorista ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.chip {
  min-height: 42px; padding: 0 20px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: transparent; color: var(--ink);
  font: 500 15px/1 var(--sans); cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.catalog-layout { display: grid; gap: 40px; }
@media (min-width: 1080px) { .catalog-layout { grid-template-columns: 1fr 340px; align-items: start; } }

.line-block { display: grid; gap: 24px; padding-bottom: 48px; margin-bottom: 48px; border-bottom: 1px solid var(--line); }
.line-block:last-child { border-bottom: 0; margin-bottom: 0; }
@media (min-width: 760px) { .line-block { grid-template-columns: 240px 1fr; gap: 40px; } }
.line-intro img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--r-md); }
.line-intro h3 { font-size: 2rem; margin-top: 18px; }
.line-intro p { color: var(--ink-soft); margin-top: 6px; font-size: 16px; }
.line-intro .uso { display: inline-block; margin-top: 12px; font-size: 14px; color: var(--accent); font-weight: 600; }
@media (max-width: 759px) {
  .line-intro { display: grid; grid-template-columns: 96px 1fr; gap: 0 16px; align-items: center; }
  .line-intro img { grid-row: span 3; aspect-ratio: 1; }
  .line-intro h3 { margin-top: 0; font-size: 1.6rem; }
}

.products { list-style: none; margin: 0; padding: 0; }
.product { display: grid; grid-template-columns: 52px 1fr auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.product:first-child { padding-top: 0; }
.seal { width: 52px; height: 52px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; color: var(--accent); overflow: hidden; }
.seal img { width: 100%; height: 100%; object-fit: cover; }
.seal svg { width: 10px; height: 22px; }
.product-name { font: 400 1.2rem/1.2 var(--serif); font-variation-settings: "SOFT" 100, "opsz" 24; }
.product-code { font: 500 13px/1 var(--sans); color: var(--ink-soft); margin-left: 8px; letter-spacing: .02em; white-space: nowrap; }
.product-desc { color: var(--ink-soft); font-size: 15px; margin-top: 2px; }
.soon { font-style: italic; font-size: 14px; color: var(--ink-soft); }

.add-btn { min-height: 40px; padding: 0 18px; font-size: 15px; font-weight: 600; border-width: 1px; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--ink); border-radius: var(--r-pill); height: 40px; }
.stepper button { width: 38px; height: 100%; border: 0; background: none; color: inherit; font-size: 20px; cursor: pointer; border-radius: var(--r-pill); }
.stepper output { min-width: 28px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }

/* panel del pedido */
.order {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 28px;
}
@media (min-width: 1080px) { .order-desktop { position: sticky; top: 96px; } }
@media (max-width: 1079px) { .order-desktop { display: none; } }
.order h3 { font-size: 1.6rem; margin-bottom: 18px; }
.order-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.order-list li { display: flex; justify-content: space-between; gap: 12px; }
.order-list li span:last-child { color: var(--ink-soft); white-space: nowrap; }
.order-empty { color: var(--ink-soft); font-size: 15px; }
.order-total { display: flex; justify-content: space-between; font-weight: 600; font-size: 18px; margin-top: 18px; padding-top: 16px; border-top: 1.5px dotted var(--ink-soft); }
.order label { display: block; font-size: 14px; color: var(--ink-soft); margin: 22px 0 6px; }
.order input { width: 100%; }
.order .btn-primary { margin-top: 16px; }
.order-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.order-row .btn { min-height: 44px; font-size: 15px; }
.order-note { font-size: 13px; color: var(--ink-soft); margin-top: 20px; line-height: 1.5; }

/* botón flotante + hoja inferior (celular) */
.fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 50;
  box-shadow: 0 10px 28px rgb(0 0 0 / .3);
}
@media (min-width: 1080px) { .fab { display: none; } }
@media (max-width: 1079px) { .footer { padding-bottom: 72px; } .products { padding-bottom: 8px; } .product:last-child { padding-bottom: 28px; } }
.fab[hidden] { display: none; }
.sheet { border: 0; padding: 0; width: 100%; max-width: 560px; margin: auto auto 0; background: transparent; color: var(--ink); max-height: 92dvh; }
.sheet::backdrop { background: rgb(20 16 12 / .55); }
.sheet .order { border-radius: 22px 22px 0 0; padding-bottom: 32px; max-height: 92dvh; overflow: auto; }
.sheet-close { float: right; border: 0; background: none; color: var(--ink-soft); font: 500 15px var(--sans); cursor: pointer; padding: 6px; }
.sheet[open] .order { animation: subir .25s ease-out; }
@keyframes subir { from { transform: translateY(40px); opacity: 0; } }

/* ---------- surtido por canal ---------- */
.biz-tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 32px; scrollbar-width: none; }
.biz-tabs::-webkit-scrollbar { display: none; }
.biz-tab {
  flex: none; position: relative; min-height: 48px; padding: 0 18px; border: 0; background: none; cursor: pointer;
  font: 400 1.15rem/1 var(--serif); font-variation-settings: "SOFT" 100, "opsz" 24; color: var(--ink-soft);
}
.biz-tab[aria-selected="true"] { color: var(--ink); }
.biz-tab::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; border-bottom: 2.5px dotted var(--accent); transform: scaleX(0); transition: transform .3s; }
.biz-tab[aria-selected="true"]::after { transform: scaleX(1); }
.biz-panel { display: grid; gap: 28px; }
@media (min-width: 860px) { .biz-panel { grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; } }
.biz-photo { position: relative; }
.biz-photo img { width: 100%; aspect-ratio: 5/4; object-fit: cover; border-radius: var(--r-md); }
@media (min-width: 860px) { .biz-photo img { aspect-ratio: 4/5; max-height: 560px; } }
.biz-photo .sticker { position: absolute; right: -10px; bottom: -14px; width: 132px; }
.biz-photo .sticker span { font-size: 15px; }
@media (max-width: 859px) { .biz-photo .sticker { right: 12px; width: 112px; } .biz-photo .sticker span { font-size: 13px; } }
.biz-panel h3 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.biz-need { color: var(--ink-soft); margin-top: 10px; }
.biz-panel blockquote { margin: 22px 0 0; padding-left: 18px; border-left: 2px solid var(--accent); font: 400 1.25rem/1.35 var(--serif); font-variation-settings: "SOFT" 100; }
.biz-pick { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 4px; }
.biz-pick li { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.biz-pick .seal { width: 40px; height: 40px; }
.biz-pick .product-code { margin: 0; }
.biz-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 24px; }
.biz-actions p { font-size: 14px; color: var(--ink-soft); }

/* ---------- vista previa al pasar el mouse por la lista ---------- */
.peek {
  position: fixed; left: 0; top: 0; z-index: 65; width: 200px; pointer-events: none;
  border-radius: var(--r-md); overflow: hidden; background: var(--surface);
  box-shadow: 0 18px 40px rgb(0 0 0 / .28); opacity: 0; scale: .85;
  transition: opacity .18s, scale .18s;
}
.peek.on { opacity: 1; scale: 1; }
.peek img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.peek p { font-size: 12px; color: var(--ink-soft); padding: 8px 12px; }

/* ---------- exhibición ---------- */
.display { background: var(--centeno); color: #F4F1EA; }
.display .wrap { display: grid; gap: 48px; }
@media (min-width: 900px) { .display .wrap { grid-template-columns: 1fr 1fr; align-items: center; } }
.display p { color: #CFC8BD; }
.display-list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 22px; }
.display-list li { display: grid; grid-template-columns: 22px 1fr; gap: 14px; }
.display-list li::before { content: ""; width: 12px; height: 12px; margin-top: 7px; border-radius: 50%; border: 1.5px solid var(--trigo-claro); }
.display-list b { display: block; color: #F4F1EA; font-weight: 600; }
.display-list span { color: #A99F92; font-size: 15px; }
.display-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.display-photos img { border-radius: var(--r-md); aspect-ratio: 3/4; object-fit: cover; width: 100%; }
.display-photos img:last-child { margin-top: 48px; }

/* ---------- cómo trabajamos ---------- */
.how { display: grid; gap: 16px; }
@media (min-width: 860px) { .how { grid-template-columns: repeat(3, 1fr); } }
.how li { list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 28px; }
.how li:first-child { background: var(--centeno); color: #F4F1EA; border-color: var(--centeno); }
.how li:first-child p { color: #CFC8BD; }
.how small { display: block; color: var(--accent); font-weight: 600; font-size: 14px; margin-bottom: 14px; }
.how li:first-child small { color: var(--trigo-claro); }
.how h3 { margin-bottom: 10px; }
.how p { color: var(--ink-soft); font-size: 16px; }
ol.how { padding: 0; margin: 0; }

/* ---------- preguntas ---------- */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 22px 0; font: 400 1.25rem/1.3 var(--serif); font-variation-settings: "SOFT" 100, "opsz" 24; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); color: var(--accent); font-size: 24px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 22px; color: var(--ink-soft); max-width: 64ch; }

/* ---------- alta mayorista ---------- */
.signup { background: var(--corteza); color: var(--centeno); }
@media (prefers-color-scheme: dark) { .signup { background: #3A2E21; color: var(--ink); } }
.signup .wrap { display: grid; gap: 40px; }
@media (min-width: 900px) { .signup .wrap { grid-template-columns: .8fr 1.2fr; } }
.signup-intro p { margin-top: 16px; opacity: .85; max-width: 40ch; }
.signup-intro .ig { margin-top: 32px; font-size: 15px; }
.signup-intro .ig a { font-weight: 600; }

.form { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .form { grid-template-columns: 1fr 1fr; } .form .full { grid-column: 1 / -1; } }
.field label, .field legend { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; padding: 0; }
.field fieldset { border: 0; padding: 0; margin: 0; }
.field .hint { font-weight: 400; opacity: .7; }
input, select, textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--centeno) 18%, transparent);
  border-radius: var(--r-sm); background: var(--papel); color: var(--centeno);
  font: 400 16px/1.4 var(--sans);
}
@media (prefers-color-scheme: dark) {
  input, select, textarea { background: var(--field); color: var(--ink); border-color: #6A5D4F; }
  input::placeholder, textarea::placeholder { color: #8F8577; }
}
.order input { background: var(--field); color: var(--ink); border-color: var(--line); }
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.checks { display: flex; flex-wrap: wrap; gap: 10px; }
.checks label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: var(--r-pill); border: 1px solid color-mix(in srgb, currentColor 25%, transparent); cursor: pointer; font-size: 15px; margin: 0; }
.checks input { width: 18px; min-height: 0; height: 18px; accent-color: var(--trigo); }
.checks label:has(input:checked) { border-color: var(--trigo); background: color-mix(in srgb, var(--trigo) 12%, transparent); }
.form-error { color: var(--cinta); font-size: 14px; font-weight: 500; }
@media (prefers-color-scheme: dark) { .form-error { color: #E08A74; } }
.form-ok { padding: 28px; border-radius: var(--r-md); background: var(--papel); color: var(--centeno); }
.form-ok h3 { margin-bottom: 8px; }

/* ---------- pie ---------- */
.footer { background: var(--centeno); color: #A99F92; font-size: 15px; }
.footer .wrap { display: grid; gap: 32px; padding-block: 56px; }
@media (min-width: 860px) { .footer .wrap { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer .logo { color: #F4F1EA; }
.footer p { margin-top: 16px; max-width: 36ch; }
.footer h4 { color: #F4F1EA; font: 600 15px/1 var(--sans); margin: 0 0 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { text-decoration: none; }
.footer a:hover { color: #F4F1EA; }

.toast { position: fixed; left: 50%; bottom: 88px; transform: translateX(-50%); z-index: 60; background: var(--ink); color: var(--bg); padding: 12px 20px; border-radius: var(--r-pill); font-size: 15px; font-weight: 500; }
.toast[hidden] { display: none; }

/* ---------- movimiento ---------- */

/* etiqueta que vuela al pedido */
.fly {
  position: fixed; z-index: 70; width: 52px; height: 52px; border-radius: 50%;
  overflow: hidden; pointer-events: none; display: grid; place-items: center;
  background: var(--surface); color: var(--accent); border: 1px solid var(--line);
  box-shadow: 0 8px 20px rgb(0 0 0 / .25);
}
.fly img { width: 100%; height: 100%; object-fit: cover; }
.fly svg { width: 10px; height: 22px; }
.cart-count.bump { animation: bump .4s cubic-bezier(.3,1.6,.5,1); }
@keyframes bump { 40% { scale: 1.45; } }

/* filtro: los bloques de cada línea se reacomodan (View Transitions) */
::view-transition-group(*) { animation-duration: .35s; animation-timing-function: cubic-bezier(.2,.7,.2,1); }

/* textura de harina sobre todo el sitio */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.08 0 0 0 0 0.06 0 0 0 1.2 -0.35'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
  body::after { opacity: .1; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 0.97 0 0 0 0 0.92 0 0 0 1.2 -0.4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
}

/* la línea punteada de las etiquetas se dibuja al llegar a cada sección */
.section-head::before {
  content: ""; grid-column: 1 / -1; order: -1; margin-bottom: 8px;
  border-top: 2px dotted var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 1.4s cubic-bezier(.2,.7,.2,1);
}
.section-head.in::before { transform: scaleX(1); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* "Reducir movimiento" apaga solo lo que se mueve solo: la cinta (más arriba), la rotación
   de la portada (app.js) y el zoom lento de la foto. Lo que responde al scroll o a un toque sigue.
   .force-motion (con ?animado en la URL) muestra todo igual. */
@media (prefers-reduced-motion: reduce) {
  html:not(.force-motion) { scroll-behavior: auto; }
  html:not(.force-motion) .slide-a.is-on .a-photo img { animation: none; }
}
