/* ==========================================================================
   Aroma Moka & Dolce Shop · v7.0
   Mobile-first: la base es el layout móvil; todo lo que escala vive en los
   min-width del final. El interruptor cambia html[data-mode] y con él los
   tokens de campo (hero y cierre).
   ========================================================================== */

:root {
  --moka: #4f2c14;
  --hueso: #fff6ee;
  --durazno: #fee7d9;
  --porcelana: #f2ced5;
  --chicle: #efa6bc;
  --madera: #7e411a;

  --serif: "Playfair Display", Georgia, serif;
  --script: "Yellowtail", "Segoe Script", cursive;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);

  --pad: clamp(16px, 4.5vw, 64px);
  --header-h: 64px;

  /* campo: color de apertura y cierre. Aroma = madera, Dolce = rosa chicle */
  --field: var(--madera);
  --field-ink: var(--hueso);
  --field-sub: var(--porcelana);
  --u: var(--chicle);
}

html[data-mode="dolce"] {
  --field: var(--chicle);
  --field-ink: var(--moka);
  --field-sub: var(--moka);
  --u: var(--moka);
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  background: var(--hueso);
  color: var(--moka);
  font-family: var(--sans);
  line-height: 1.55;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, ol, figure { margin: 0; }
ol { padding: 0; list-style: none; }
button { font-family: inherit; }
[hidden] { display: none !important; }

/* interruptor: cada bloque se muestra solo en su modo */
html[data-mode="aroma"] [data-only="dolce"],
html[data-mode="dolce"] [data-only="aroma"] { display: none !important; }

:focus-visible { outline: 3px solid var(--moka); outline-offset: 3px; }
.on-field :focus-visible { outline-color: var(--field-ink); }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 12px; top: -60px; z-index: 200; padding: 10px 16px;
  background: var(--moka); color: var(--hueso); font-weight: 700; text-decoration: none;
  border-radius: 999px; transition: top 0.2s;
}
.skip:focus { top: 10px; }

.wrap { max-width: 1440px; margin: 0 auto; padding: 0 var(--pad); }

/* ---------- Tipografía y piezas ---------- */
.label {
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; line-height: 1.4;
}
.label--accent { color: var(--moka); }
.label--field { color: var(--field-sub); }

.lead { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.6; max-width: 560px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 52px; padding: 0 28px; border: 1.5px solid currentColor; border-radius: 999px;
  background: linear-gradient(var(--btn-fill, var(--moka)), var(--btn-fill, var(--moka))) no-repeat left center / 0% 100%;
  color: inherit; cursor: pointer; text-decoration: none; text-align: center;
  font: 700 12.5px/1.2 var(--sans); letter-spacing: 0.16em; text-transform: uppercase;
  transition: background-size 0.35s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn:hover { background-size: 100% 100%; color: var(--btn-on, var(--hueso)); border-color: var(--btn-fill, var(--moka)); }
.btn--field { --btn-fill: var(--field-ink); --btn-on: var(--field); }
.btn--sm { min-height: 44px; padding: 0 22px; }

.link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0;
  background: none; color: inherit; cursor: pointer; text-align: left;
  font: 700 12.5px/1.3 var(--sans); letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1.5px;
}
.link:hover { text-decoration-thickness: 3px; }

.round {
  width: 44px; height: 44px; border: 1.5px solid var(--moka); border-radius: 50%;
  background: transparent; color: var(--moka); font-size: 18px; line-height: 1; cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.round:hover { background: var(--moka); color: var(--hueso); }

/* ---------- Progreso y cortina ---------- */
.progress {
  position: fixed; left: 0; top: 0; z-index: 60; width: 100%; height: 3px; pointer-events: none;
  background: var(--chicle); transform-origin: left; transform: scaleX(var(--page, 0));
}
.curtain {
  position: fixed; inset: 0; z-index: 100; pointer-events: none; background: var(--madera);
  clip-path: inset(100% 0 0 0);
}
.curtain.is-in { clip-path: inset(0 0 0 0); transition: clip-path 0.45s var(--ease); }
.curtain.is-out { clip-path: inset(0 0 100% 0); transition: clip-path 0.45s var(--ease); }

/* Cambio de web: círculo que se abre desde el botón (transiciones de vista). El círculo lo anima
   main.js; acá solo se apagan las animaciones por defecto y se parte con el círculo cerrado.
   Con "reducir movimiento" queda el fundido por defecto, acortado. */
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
  ::view-transition-old(root) { z-index: 1; }
  ::view-transition-new(root) { z-index: 2; clip-path: circle(0px at var(--vt-x, 50%) var(--vt-y, 50%)); }
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) { animation-duration: 0.15s; }
}

/* Movimiento de la portada. Todo es transform; con "reducir movimiento" no se aplica nada.
   --hp (0 a 1) lo pone main.js según el scroll sobre la portada; --mx y --my (-1 a 1), según el mouse.
   La foto parte un 2 % más grande para que el movimiento no deje bordes, y siempre se agranda:
   la comida se aleja del centro, nunca hacia el texto. El texto sube un poco más rápido que la
   página al salir, sin desvanecerse. */
@keyframes breathe { from { transform: scale(1); } to { transform: scale(1.035); } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@media (prefers-reduced-motion: no-preference) {
  :root { --rise: -64px; }   /* cuánto sube el texto al salir de la portada */
  @media (max-width: 899px) { :root { --rise: -28px; } }   /* en celular y tablet el margen con la comida es chico */
  .hero--cover .hero__media picture {
    display: block; width: 100%; height: 100%; will-change: transform;
    transform: translate(calc(var(--mx, 0) * -6px), calc(var(--my, 0) * -4px)) scale(calc(1.02 + 0.06 * var(--hp, 0)));
  }
  .hero--cover .hero__bg { animation: settle 1.8s var(--ease) both, breathe 22s ease-in-out 1.8s infinite alternate; }
  .hero--cover.is-paused .hero__bg { animation-play-state: paused; }
  .hero--cover .hero__grid {
    transform: translate(calc(var(--mx, 0) * 4px), calc(var(--hp, 0) * var(--rise) + var(--my, 0) * 3px));
  }
  .hero--cover .ring { animation: float 7s ease-in-out infinite; }
  .hero--cover.is-paused .ring { animation-play-state: paused; }
}

/* ---------- Encabezado e interruptor ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40; background: var(--hueso); border-bottom: 1px solid var(--moka);
}
.site-header__in {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 1440px; min-height: var(--header-h); margin: 0 auto; padding: 8px var(--pad);
}
.brand { display: block; line-height: 0; text-decoration: none; }
.brand img { width: 72px; }
.brand--dolce img { width: 80px; }

.switch {
  position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; flex: 0 0 auto;
  height: 44px; padding: 3px; border: 1.5px solid var(--moka); border-radius: 999px; background: var(--hueso);
}
.switch__btn {
  position: relative; z-index: 1; min-width: 0; padding: 0 14px; border: 0; border-radius: 999px;
  background: transparent; color: var(--moka); cursor: pointer; white-space: nowrap;
  font: 700 11.5px/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase;
  transition: color 0.3s var(--ease);
}
.switch__btn[aria-pressed="true"] { color: var(--field-ink); }
.switch__thumb {
  position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 999px;
  background: var(--field); transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.45s var(--ease);
}
html[data-mode="dolce"] .switch__thumb { transform: translateX(100%); }

.nav { display: none; }

/* ---------- Hero: campo de color + foto que crece ---------- */
.hero__field { position: relative; background: var(--field); color: var(--field-ink); }
.hero__grid { display: flex; flex-direction: column; gap: 24px; padding-top: 32px; padding-bottom: 88px; }
.hero__text { display: flex; flex-direction: column; gap: 18px; }
.hero__title { font: 700 clamp(44px, 7vw, 88px)/1 var(--serif); letter-spacing: -0.02em; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }

.line { display: block; overflow: hidden; padding-bottom: 0.2em; margin-bottom: -0.2em; }
.line > span { display: block; }

.u {
  background-image: linear-gradient(var(--u), var(--u));
  background-repeat: no-repeat; background-position: 0 100%; background-size: 100% 0.07em;
}
/* en la portada el acento va en script (más grande, porque el script tiene el ojo chico), sin subrayado */
.hero__title .u { font: 400 1.22em/1 var(--script); letter-spacing: 0; color: var(--madera); background-image: none; padding-right: 0.05em; }

.ring {
  position: absolute; right: var(--pad); bottom: -56px; z-index: 5;
  width: 112px; aspect-ratio: 1; color: var(--field-ink);
}
.ring::before { content: ""; position: absolute; inset: -4px; border-radius: 50%; background: var(--field); }
.ring__text { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; }
.ring__text text { font: 700 13px/1 var(--sans); fill: currentColor; }
.ring__text text.ring__text--sm { font-size: 12px; }
.ring__core { position: absolute; left: 25%; top: 25%; width: 50%; height: 50%; border-radius: 50%; object-fit: cover; }
.ring__heart { position: absolute; left: 32%; top: 32%; width: 36%; height: 36%; }
.ring--static { position: relative; right: auto; bottom: auto; flex: 0 0 auto; width: 140px; }
.ring--static::before { display: none; }

/* ---------- Portada de Aroma Moka: foto de fondo, texto al centro ----------
   Solo aplica a .hero--cover (la portada de Dolce Shop no cambia). La foto es el fondo en todos los
   tamaños, pero cada rango usa su propia composición (<picture>) con la comida en las cuatro esquinas
   y la madera libre al centro, y la altura sigue la proporción de esa imagen: celular 1125x1900,
   tablet 1536x1600 y desde 900 px la foto horizontal 1860x846. */
.hero--cover { --field: #f4d6bb; --field-ink: var(--moka); --field-sub: var(--moka); }
.hero--dolce { --field: #f3cccb; }
.hero--cover .hero__field { display: grid; place-items: center; aspect-ratio: 1125 / 1900; background: var(--field); }
.hero__media { position: absolute; inset: 0; overflow: hidden; }
.hero__bg { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero--cover .hero__grid { position: relative; width: 100%; align-items: center; text-align: center; padding-top: 0; padding-bottom: 0; }
.hero--cover .hero__text { align-items: center; gap: 20px; }
.hero--cover .hero__cta { justify-content: center; }
.hero--cover .ring { left: 50%; right: auto; transform: translateX(-50%); }
.hero--cover .ring::before { background: var(--hueso); }
.hero--cover .hero__title { font-size: clamp(36px, 11vw, 44px); }
/* celulares angostos: la franja libre de la foto es más baja que el texto, así que se compacta */
@media (max-width: 399px) {
  .hero--cover .hero__text { gap: 14px; }
  .hero--cover .hero__cta { gap: 4px 20px; }
}
@media (max-width: 359px) {
  .hero--cover .hero__title { font-size: 30px; }
}
@media (min-width: 640px) {
  .hero--cover .hero__field { aspect-ratio: 1536 / 1600; }
  .hero--cover .hero__title { font-size: clamp(44px, 7vw, 88px); }
}
@media (min-width: 900px) {
  .hero--cover .hero__field { aspect-ratio: 1860 / 846; }
  .hero--cover .hero__grid { padding-top: 48px; padding-bottom: 48px; }
  .hero--cover .hero__title { font-size: clamp(40px, 4.5vw, 70px); }
}

/* ---------- Juntos / A medida ---------- */
.juntos { border-top: 1px solid var(--moka); }
.juntos__in {
  display: flex; flex-direction: column; align-items: center; gap: clamp(28px, 4vw, 48px);
  max-width: 1100px; margin: 0 auto; padding: clamp(48px, 8vw, 112px) var(--pad); text-align: center;
}
.juntos__head { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.juntos__statement { font: 600 clamp(26px, 3.8vw, 54px)/1.15 var(--serif); letter-spacing: -0.01em; }
.promises { display: flex; flex-direction: column; width: 100%; text-align: left; }
.promises li { display: flex; align-items: baseline; gap: 16px; padding: 12px 0; border-top: 1px solid var(--moka); }
.promises li:last-child { border-bottom: 1px solid var(--moka); }
.promises__text { font: 600 20px/1.2 var(--serif); }

/* ---------- Dos carriles ---------- */
.lanes { position: relative; display: flex; flex-direction: column; border-top: 1px solid var(--moka); }
.seam, .amp { display: none; }

.lane { min-width: 0; padding: 0 var(--pad) clamp(48px, 6vw, 88px); }
.lane--l { --lane-bg: var(--hueso); background: var(--hueso); }
.lane--r { --lane-bg: var(--porcelana); background: var(--porcelana); border-top: 1px solid var(--moka); }

.lane__bar {
  position: sticky; top: var(--header-h); z-index: 5; display: flex; justify-content: space-between;
  align-items: baseline; gap: 14px; padding: 14px 0 12px; background: var(--lane-bg);
  border-bottom: 1px solid var(--moka);
}
.lane__name { font: 600 20px/1.2 var(--serif); }
.lane__text { display: flex; flex-direction: column; gap: 16px; max-width: 440px; margin-top: clamp(28px, 4vw, 56px); }
.lane__title { font: 700 clamp(34px, 5vw, 64px)/1 var(--serif); letter-spacing: -0.01em; }

.stack-wrap { width: calc(100% - 44px); margin-top: 48px; }
.lane--l .stack-wrap { margin-left: 30px; }
.lane--r .stack-wrap { margin-right: 30px; }

.stack { position: relative; aspect-ratio: 4 / 5; touch-action: pan-y; }
.stack__card { position: absolute; inset: 0; overflow: hidden; border-radius: 18px; background: var(--hueso); opacity: 0; visibility: hidden; z-index: 0; }
.stack__card.is-active { opacity: 1; visibility: visible; z-index: 1; }
.stack__card.is-entering { opacity: 1; visibility: visible; z-index: 2; }
.stack__card img { width: 100%; height: 100%; object-fit: cover; }
/* recorte vertical del papel de Dolce Shop (de la foto cuadrada de 1440 px) */
.stack__card--paper img { position: absolute; max-width: none; width: 327.27%; height: auto; left: -200%; top: -167%; }

/* fotos que cambian solas, estilo historias: barra de segmentos arriba y toque en los lados */
.stack::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 76px; z-index: 3; pointer-events: none;
  border-radius: 18px 18px 0 0; background: linear-gradient(rgba(35, 20, 8, 0.34), transparent);
}
.hist__segs { position: absolute; left: 12px; right: 12px; top: 12px; z-index: 5; display: flex; gap: 6px; pointer-events: none; }
.hist__seg { flex: 1 1 0; height: 3px; overflow: hidden; border-radius: 3px; background: rgba(255, 246, 238, 0.42); }
.hist__seg i { display: block; height: 100%; background: var(--hueso); transform-origin: left; transform: scaleX(0); }
.hist__zone { position: absolute; top: 0; bottom: 0; z-index: 4; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.hist__zone--l { left: 0; width: 35%; }
.hist__zone--r { right: 0; width: 65%; }
.hist__zone::after {
  content: "‹"; position: absolute; top: 50%; left: 14px; width: 40px; height: 40px; translate: 0 -50%;
  border-radius: 50%; background: rgba(255, 246, 238, 0.92); color: var(--moka);
  font: 400 26px/38px var(--serif); text-align: center; opacity: 0; transition: opacity 0.25s var(--ease);
}
.hist__zone--r::after { content: "›"; left: auto; right: 14px; }
@media (hover: hover) { .hist__zone:hover::after, .hist__zone:focus-visible::after { opacity: 1; } }

.stack__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.stack__caption { font: 600 clamp(22px, 2.2vw, 30px)/1.15 var(--serif); letter-spacing: -0.01em; }
.stack__ctrl { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.stack__count { font: 700 14px/1 var(--sans); letter-spacing: 0.12em; }
.hist__pause { width: 36px; height: 36px; font: 700 11px/1 var(--sans); letter-spacing: 0.08em; }

/* ---------- Productos de Dolce Shop: láminas que se descubren una sobre otra ----------
   Base = bloques apilados (sin JavaScript o con "reducir movimiento"). Con JavaScript, main.js agrega .is-pinned:
   la pantalla se fija y el scroll va descubriendo cada lámina sobre la anterior (--w) con un borde que sube.
   Fotos y textos no se mueven: están quietos en su lugar y solo cambian al pasar el borde. */
.prod { --n: 4; background: var(--hueso); border-top: 1px solid var(--moka); }
.slide { position: relative; display: grid; grid-template-rows: minmax(280px, 62vw) auto; overflow: hidden; --panel: var(--porcelana); background: var(--panel); }
.slide + .slide { border-top: 1px solid var(--moka); }
.slide--1 { --panel: var(--porcelana); }
.slide--2 { --panel: var(--durazno); }
.slide--3 { --panel: var(--chicle); }
.slide--4 { --panel: color-mix(in srgb, var(--chicle) 42%, var(--durazno)); }
.slide__photo { position: relative; overflow: hidden; background: #e9ded4; }
.slide__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide__panel {
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px; min-height: 380px;
  padding: clamp(24px, 4vw, 56px) var(--pad) clamp(28px, 4vw, 56px); background: var(--panel);
}
.slide__count { align-self: flex-end; font: 500 14px/1 var(--sans); letter-spacing: 0.14em; }
.slide__count b { font-weight: 700; }
.slide__main { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.slide__title { padding-bottom: 0.08em; font: 700 clamp(54px, 13vw, 150px)/0.95 var(--serif); letter-spacing: -0.03em; }
.slide__text { max-width: 440px; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; }
.slide__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.slide__facts { display: grid; gap: 14px; }
.slide__facts dt { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.slide__facts dd { margin-top: 2px; font-weight: 700; }
.slide__inset { flex: 0 0 auto; width: clamp(120px, 16vw, 230px); aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; }
@media (min-width: 1000px) {
  .slide { grid-template-columns: minmax(0, 42%) minmax(0, 1fr); grid-template-rows: none; min-height: 680px; }
  .slide__panel { padding-left: clamp(32px, 4vw, 64px); }
}

/* con JavaScript: pantalla fija y láminas que suben */
.prod.is-pinned .prod__track { height: calc(max(560px, 100svh - var(--header-h)) * (1 + 0.85 * (var(--n) - 1))); }
.prod.is-pinned .prod__pin { position: sticky; top: var(--header-h); height: max(560px, calc(100svh - var(--header-h))); overflow: hidden; }
.prod.is-pinned .slide { position: absolute; inset: 0; min-height: 0; border-top: 0; grid-template-rows: 44% 56%; }
.prod.is-pinned .slide__panel { min-height: 0; }
.prod.is-pinned .slide:not(.slide--1) { clip-path: inset(calc((1 - var(--w, 0)) * 100%) 0 0 0); }
@media (max-width: 999px) { .prod.is-pinned .slide__foot { display: none; } }
@media (min-width: 1000px) { .prod.is-pinned .slide { grid-template-rows: none; } }

/* ---------- Cierre ---------- */
.closing { background: var(--field); color: var(--field-ink); overflow: hidden; }
.closing__in {
  display: flex; flex-direction: column; gap: clamp(28px, 4vw, 48px);
  padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(48px, 7vw, 88px);
}
.closing__head { display: flex; flex-direction: column; gap: 16px; }
.closing__title { font: 700 clamp(34px, 5vw, 64px)/1 var(--serif); letter-spacing: -0.01em; }

.converge { display: flex; flex-direction: column; gap: 28px; }
.info { min-width: 0; flex: 1 1 0; }
.info__title { font: 600 22px/1.1 var(--serif); padding-bottom: 10px; }
.info dl > div {
  display: flex; justify-content: space-between; gap: 16px; padding: 10px 0;
  border-top: 1px solid currentColor; font-size: 16px;
}
.info dl > div:last-child { border-bottom: 1px solid currentColor; }
.info dt { font-size: 12.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--field-sub); }
.info dd { font-weight: 700; text-align: right; }
.info a { text-underline-offset: 4px; }
.info__note { display: block; font-size: 13px; font-weight: 500; color: var(--field-sub); }
.info__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding-bottom: 14px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 16px;
  border: 1px solid currentColor; border-radius: 999px;
  font: 700 13.5px/1.2 var(--sans); letter-spacing: 0.02em; text-decoration: none;
}
.pill[hidden] { display: none; }
.pill__dot { width: 10px; height: 10px; flex: none; border: 2px solid currentColor; border-radius: 50%; }
.pill.is-open .pill__dot { background: currentColor; }
.pill__star { width: 15px; height: 15px; flex: none; }
.pill__sub { font-weight: 500; }
a.pill { transition: background-color 0.2s, color 0.2s; }
a.pill:hover { background: var(--field-ink); color: var(--field); }

.map { display: flex; flex-direction: column; gap: 14px; }
.map__frame {
  height: clamp(260px, 52vw, 380px); border-radius: 18px; overflow: hidden;
  background: color-mix(in srgb, var(--field-ink) 14%, transparent);
}
.map__frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.conv-l, .conv-r { transform: none; }


.closing__foot { display: flex; flex-direction: column; gap: 28px; }
.closing__cta { display: flex; flex-direction: column; gap: 12px; }

.foot { background: var(--hueso); border-top: 1px solid var(--moka); }
.foot__in {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px;
  max-width: 1440px; margin: 0 auto; padding: 16px var(--pad);
}
.foot img { width: 88px; }
.foot p { font-size: 13px; font-weight: 600; }

/* ---------- Movimiento (solo si el usuario no pidió menos) ---------- */
@keyframes rise { from { transform: translateY(105%); } to { transform: translateY(0); } }
@keyframes settle { from { transform: scale(1.15); } to { transform: scale(1); } }
@keyframes uline { from { background-size: 0% 0.07em; } to { background-size: 100% 0.07em; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgb(255 255 255 / 0.55); } 70%, 100% { box-shadow: 0 0 0 8px rgb(255 255 255 / 0); } }

@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise 0.9s var(--ease) both; }
  .rise.d1 { animation-delay: 0.1s; }
  .rise.d2 { animation-delay: 0.2s; }
  .u { animation: uline 0.9s var(--ease) 0.9s both; }
  .settle { animation: settle 1.8s var(--ease) both; }
  .spin { animation: spin 24s linear infinite; }
  .pill.is-open .pill__dot { animation: live 2.4s ease-out infinite; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* ==========================================================================
   Escalar hacia arriba
   ========================================================================== */
@media (min-width: 640px) {
  :root { --header-h: 72px; }
  .brand img { width: 84px; }
  .brand--dolce img { width: 96px; }
  .switch__btn { padding: 0 18px; font-size: 12px; }

  .hero__grid { padding-top: 56px; padding-bottom: 112px; }
  .ring { width: 150px; bottom: -68px; }

  .promises { flex-direction: row; gap: 32px; }
  .promises li { flex: 1 1 0; flex-direction: column; gap: 6px; border-bottom: 0; }
  .promises li:last-child { border-bottom: 0; }
  .promises__text { font-size: 22px; }

  .converge { flex-direction: row; gap: 28px 48px; }
  .info__title { font-size: 24px; }
  .closing__foot { flex-direction: row; align-items: center; justify-content: space-between; }
  .closing__cta { flex-direction: row; flex-wrap: wrap; }
  .map .btn { align-self: flex-start; }
  .ring--static { width: 170px; }
}

@media (min-width: 1000px) {
  .nav { display: flex; align-items: center; gap: 4px; }
  .nav__set { display: flex; gap: 4px; }
  .nav a:not(.btn) {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
    font: 700 12.5px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none;
  }
  .nav a:not(.btn):hover { text-decoration: underline; text-underline-offset: 6px; }
  .nav .btn { margin-left: 8px; }
  .site-header__in { gap: 20px; }

  .lanes { flex-direction: row; }
  .lane { flex: 1 1 50%; }
  .lane--l { padding-right: clamp(16px, 3.5vw, 48px); }  .lane--r { padding-left: clamp(16px, 3.5vw, 48px); border-top: 0; }
  .lane--l .lane__text { margin-left: auto; }
  .lane--r .lane__text { margin-right: auto; }
  .lane--l .stack-wrap { width: 72%; margin-left: auto; margin-right: 0; }
  .lane--r .stack-wrap { width: 72%; margin-left: 0; margin-right: auto; }

  .seam {
    display: block; position: absolute; left: 50%; top: 0; bottom: 0; z-index: 6; width: 1px; margin-left: -0.5px;
    background: var(--moka); transform-origin: top; transform: scaleY(var(--p, 1)); pointer-events: none;
  }
  .amp {
    position: absolute; left: 50%; top: 8px; z-index: 8; transform: translateX(-50%);
    display: flex; align-items: center; justify-content: center; width: 46px; height: 46px;
    border: 1.5px solid var(--moka); border-radius: 50%; background: var(--hueso); font: 700 24px/1 var(--serif);
  }
}

@media (min-width: 1280px) {
  .ring--static { width: 190px; }
}

/* el mouse no existe en móvil: la deriva de carriles solo en pantallas anchas */
@media (max-width: 999px) {
  .stack-wrap[data-parallax] { transform: none !important; }
}

/* Bento Focus: solo las galerías de imágenes de los dos carriles. */
.lanes .stack-wrap {
  width: 100%; margin-left: 0; margin-right: 0;
}
.lanes .stack {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(8px, 1vw, 14px); aspect-ratio: auto;
}
.lanes .stack::after { display: none; }
.lanes .stack__card {
  position: relative; inset: auto; opacity: 1; visibility: visible;
  z-index: auto; aspect-ratio: 4 / 3; border-radius: 16px;
}
.lanes .stack__card:first-child { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
.lanes .stack__card--paper img { top: -278.33%; }
.lanes .stack__card img { transition: transform 350ms var(--ease); }
.bento__open {
  position: absolute; inset: 0; width: 100%; height: 100%; padding: 0;
  border: 0; background: transparent; cursor: pointer; color: var(--moka);
}
.bento__open span {
  position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%; background: var(--hueso);
  font-size: 23px; line-height: 1;
}
.bento__open:focus-visible { outline-offset: -5px; border-radius: inherit; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .lanes .stack__card:hover img { transform: scale(1.035); }
}
.bento-focus {
  padding: 0; border: 0; border-radius: 18px; background: transparent;
  width: fit-content; max-width: calc(100vw - 32px); max-height: calc(100dvh - 32px);
  overflow: hidden; color: var(--moka);
}
.bento-focus::backdrop { background: rgb(35 20 8 / 75%); }
.bento-focus__close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 44px; height: 44px; padding: 0; border: 1px solid var(--moka);
  border-radius: 50%; background: var(--hueso); color: var(--moka);
  font-size: 30px; line-height: 1; cursor: pointer;
}
.bento-focus .stack__card {
  position: relative; inset: auto; opacity: 1; visibility: visible;
  border-radius: 0; background: transparent;
}
.bento-focus .stack__card img {
  width: auto; height: auto; max-width: min(860px, calc(100vw - 32px)); max-height: 80dvh; object-fit: contain;
}
.bento-focus .stack__card--paper { width: min(640px, 64dvh, calc(100vw - 32px)); margin: 0; aspect-ratio: 4 / 5; }
.bento-focus .stack__card--paper img { width: 327.27%; height: auto; max-width: none; max-height: none; }
@media (prefers-reduced-motion: no-preference) {
  .bento-focus[open] { animation: bento-focus-in 220ms var(--ease); }
  @keyframes bento-focus-in { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: scale(1); } }
}

/* Visitanos: cada renglón entra cuando alcanza la zona visible. */
@media (prefers-reduced-motion: no-preference) {
  .info-line {
    opacity: 0; transform: translateX(var(--line-from, -36px));
    transition: transform 600ms var(--ease), opacity 450ms var(--ease);
  }
  .conv-r .info-line { --line-from: 36px; }
  .info-line.is-visible { opacity: 1; transform: none; }
}
/* Encabezado compartido y presentación de marcas, según la referencia. */
.lanes {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px;
  padding: clamp(32px, 4vw, 56px) var(--pad) clamp(48px, 6vw, 88px);
  background: var(--hueso);
}
.lanes__head { grid-column: 1 / -1; text-align: center; }
.lanes__head .label { margin-bottom: 8px; }
.lanes__head h2 {
  font: 700 clamp(34px, 4.6vw, 64px)/1.08 var(--serif); letter-spacing: -0.025em;
}
.lanes__head h2 em { font-weight: 600; }
.lanes__head > p:last-child { margin-top: 8px; font-size: clamp(16px, 1.5vw, 19px); }
.lanes .lane { padding: 0; background: transparent; border: 0; }
.lanes .lane__text { max-width: none; margin: 0; gap: 4px; }
.lanes .lane__title { font-size: clamp(32px, 3.4vw, 46px); }
.lanes .lane__text .lead { max-width: none; line-height: 1.4; }
.lanes .stack-wrap { margin-top: 12px; }
@media (min-width: 1000px) {
  .lanes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Recupera la división original sin alterar el encabezado ni las galerías. */
.lanes { padding-left: 0; padding-right: 0; gap: 0; }
.lanes__head { padding: 0 var(--pad) 32px; }
.lanes .lane {
  position: relative; padding: 0 var(--pad) clamp(32px, 4vw, 56px);
  background: var(--lane-bg);
}
.lanes .lane--r { border-top: 1px solid var(--moka); }
.lanes .lane__text { position: static; margin-top: 16px; }
.lanes .lane__bar { position: relative; top: auto; }
.lanes .lanes__amp { display: none; }
@media (min-width: 1000px) {
  .lanes .lane--l { border-right: 1px solid var(--moka); }
  .lanes .lane--r { border-top: 0; }
  .lanes .lane__bar { padding-top: 18px; }
  .lanes .lanes__amp {
    display: flex; left: auto; right: 0; top: 8px; transform: translateX(50%);
  }
}
/* Alineación original hacia la unión; & visible también entre bloques en móvil. */
.lanes .lane__text { max-width: 440px; }
.lanes .lane__bar { position: sticky; top: var(--header-h); }
.lanes .lanes__amp {
  position: absolute; display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; left: 50%; right: auto; top: -23px;
  transform: translateX(-50%); z-index: 8; border: 1.5px solid var(--moka);
  border-radius: 50%; background: var(--hueso); color: var(--moka);
  font: 700 24px/1 var(--serif); pointer-events: none;
}
@media (min-width: 1000px) {
  .lanes .lane--l { padding-right: clamp(16px, 3.5vw, 48px); }
  .lanes .lane--r { padding-left: clamp(16px, 3.5vw, 48px); }
  .lanes .lane--l .lane__text { margin-left: auto; margin-right: 0; }
  .lanes .lane--r .lane__text { margin-left: 0; margin-right: auto; }
  .lanes .lanes__amp { left: 0; top: 8px; }
}