/* =========================================================
   Legendaria Panadería "La Nueva" — estilos
   Concepto: el arco del horno. El arco enmarca la portada y
   el cierre; la fecha de origen funciona como detalle editorial.
   Los colores son aproximaciones de diseño a la identidad
   observada en Instagram, no códigos oficiales.
   ========================================================= */

@font-face {
  font-family: 'Young Serif';
  src: url('../fonts/young-serif.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Caveat';
  src: url('../fonts/caveat-var.woff2') format('woff2-variations');
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('../fonts/instrument-sans-var.woff2') format('woff2-variations');
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Paleta */
  --crema: #F4EDD7;
  --crema-2: #EBE1C3;       /* superficie crema un tono más profundo */
  --verde: #30402C;
  --verde-2: #3A4C35;       /* verde levemente más claro para hover sobre verde */
  --verde-3: #263322;       /* verde profundo para el pie */
  --ocre: #BC9454;
  --dorado: #D9AE66;
  --ocre-texto: #8A6428;  /* ocre oscurecido para texto sobre crema (contraste AA en tamaño grande) */      /* dorado de horno: acentos grandes sobre verde y la cinta */
  --tinta: #30402C;
  --tinta-suave: #4E5B49;   /* texto secundario sobre crema (contraste AA) */
  --crema-suave: #D9D2BC;   /* texto secundario sobre verde */
  --linea: rgba(48, 64, 44, .18);
  --linea-crema: rgba(244, 237, 215, .22);

  /* Tipografía */
  --serif: 'Young Serif', 'Georgia', serif;
  --hand: 'Caveat', 'Segoe Print', cursive;
  --sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Espacio */
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --section: clamp(88px, 12vw, 176px);
  --header-h: 68px;

  /* Movimiento: curvas y tiempos compartidos */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --t-micro: 220ms;
  --t-ui: 420ms;
  --t-reveal: 900ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--crema);
  color: var(--tinta);
  font-family: var(--sans);
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--verde); color: var(--crema); }

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
  border-radius: 4px;
}

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--crema); color: var(--verde); padding: 12px 18px; border-radius: 999px;
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Tipos reutilizables ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .75em;
  font-stretch: 78%;
  font-weight: 650;
  font-size: .8125rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--tinta-suave);
}
.eyebrow::before {
  content: ''; width: 28px; height: 2px; background: var(--ocre); flex: none;
}
.eyebrow--crema { color: var(--crema-suave); }
.eyebrow .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--ocre); }

.h2 {
  font-family: var(--serif);
  font-size: clamp(2.25rem, 1.4rem + 3.4vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.h2--crema { color: var(--crema); }

/* ---------- Botones ---------- */
.btn {
  --bg: var(--verde); --fg: var(--crema); --bd: var(--verde);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: 0 1.6em;
  border-radius: 999px;
  border: 1.5px solid var(--bd);
  background: var(--bg); color: var(--fg);
  font: 600 1rem/1 var(--sans);
  letter-spacing: .01em;
  text-decoration: none;
  isolation: isolate; overflow: hidden;
  transition: transform var(--t-micro) var(--ease-out), color var(--t-ui) var(--ease-out), border-color var(--t-ui) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
/* relleno que sube desde abajo, como el fuego en el arco */
.btn::before {
  content: ''; position: absolute; inset: -1px; z-index: -1;
  background: var(--fill, var(--verde-2));
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform var(--t-ui) var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn:active { transform: scale(.97); }
.btn .icon { transition: transform var(--t-ui) var(--ease-out); }
.btn:hover .icon, .btn:focus-visible .icon { transform: rotate(-8deg) scale(1.08); }

.btn--verde { --fill: #22301F; }
.btn--crema { --bg: var(--crema); --fg: var(--verde); --bd: var(--crema); --fill: #FFF8E6; }
.btn--linea { --bg: transparent; --fg: var(--verde); --bd: var(--verde); --fill: var(--verde); }
.btn--linea:hover, .btn--linea:focus-visible { color: var(--crema); }
.btn--linea-crema { --bg: transparent; --fg: var(--crema); --bd: rgba(244,237,215,.6); --fill: var(--crema); }
.btn--linea-crema:hover, .btn--linea-crema:focus-visible { color: var(--verde); border-color: var(--crema); }
.btn--sm { min-height: 42px; padding: 0 1.15em; font-size: .9375rem; }

/* ---------- Enlaces de texto ---------- */
.link {
  display: inline-flex; align-items: center; gap: .45em;
  font-weight: 600; text-decoration: none;
  padding: 6px 0;
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 1.5px no-repeat;
  transition: background-size var(--t-ui) var(--ease-out);
}
.link:hover, .link:focus-visible { background-size: 0 1.5px; background-position: right bottom; }
.link .icon--arrow { transition: transform var(--t-ui) var(--ease-out); }
.link:hover .icon--arrow, .link:focus-visible .icon--arrow { transform: translateX(4px); }
.link--crema { color: var(--crema); }

/* =========================================================
   CABECERA
   ========================================================= */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--verde);
  color: var(--crema);
  transition: box-shadow var(--t-ui) var(--ease-out);
}
.header.is-scrolled { box-shadow: 0 1px 0 rgba(0,0,0,.08), 0 12px 30px -18px rgba(25, 34, 22, .55); }
.header__inner {
  max-width: var(--max); margin: 0 auto;
  height: var(--header-h);
  padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 24px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; margin-right: auto;
  border-radius: 6px;
}
.brand__mark { width: 62px; height: auto; transition: transform var(--t-ui) var(--ease-out); }
.brand:hover .brand__mark { transform: translateY(-2px); }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__small {
  font-size: .625rem; font-weight: 600; font-stretch: 80%;
  letter-spacing: .2em; text-transform: uppercase; color: var(--crema-suave);
  margin-bottom: 4px;
}
.brand__name { font-family: var(--serif); font-size: 1.375rem; letter-spacing: -.01em; }

.nav__list { display: flex; gap: 6px; }
.nav__link {
  position: relative; display: block;
  padding: 10px 14px;
  text-decoration: none; font-weight: 550; font-size: .9375rem;
  color: var(--crema);
  border-radius: 999px;
}
.nav__link::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 1.5px;
  background: var(--ocre);
  transform: scaleX(0); transform-origin: right;
  transition: transform var(--t-ui) var(--ease-out);
}
.nav__link:hover::after, .nav__link:focus-visible::after, .nav__link[aria-current="true"]::after {
  transform: scaleX(1); transform-origin: left;
}

.menu-btn {
  display: none;
  align-items: center; gap: 10px;
  min-height: 44px; padding: 0 4px 0 12px;
  background: none; border: 0; color: var(--crema);
  font: 600 .9375rem var(--sans); cursor: pointer;
  border-radius: 999px;
}
.menu-btn__bars { position: relative; width: 22px; height: 12px; }
.menu-btn__bars span {
  position: absolute; left: 0; right: 0; height: 1.75px; background: currentColor; border-radius: 2px;
  transition: transform var(--t-ui) var(--ease-out), top var(--t-ui) var(--ease-out);
}
.menu-btn__bars span:first-child { top: 0; }
.menu-btn__bars span:last-child { top: 10px; }
.menu-btn[aria-expanded="true"] .menu-btn__bars span:first-child { top: 5px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bars span:last-child { top: 5px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: var(--header-h) 0 0 0;
  background: var(--verde);
  padding: 24px var(--gutter) calc(32px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; justify-content: space-between;
  overflow-y: auto;
}
.menu[hidden] { display: none; }
.menu__list li { border-bottom: 1px solid var(--linea-crema); }
.menu__list a {
  display: flex; align-items: baseline; gap: 16px;
  padding: 18px 0;
  font-family: var(--serif); font-size: clamp(2.25rem, 10vw, 3rem); line-height: 1.05;
  color: var(--crema); text-decoration: none;
}
.menu__num { font: 600 .8125rem var(--sans); letter-spacing: .1em; color: var(--ocre); }
.menu__foot { display: grid; gap: 18px; padding-top: 32px; }
.menu__foot .btn { width: 100%; }
.menu__addr { color: var(--crema-suave); font-size: .9375rem; text-align: center; }

.js .menu.is-open .menu__list li { animation: menu-in var(--t-reveal) var(--ease-out) both; }
.js .menu.is-open .menu__list li:nth-child(2) { animation-delay: 60ms; }
.js .menu.is-open .menu__list li:nth-child(3) { animation-delay: 120ms; }
.js .menu.is-open .menu__foot { animation: menu-in var(--t-reveal) var(--ease-out) 180ms both; }
@keyframes menu-in { from { opacity: 0; transform: translateY(18px); } }

@media (max-width: 880px) {
  .nav, .header__cta { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (min-width: 881px) { .menu { display: none !important; } }

/* =========================================================
   PORTADA — el horno encendido
   ========================================================= */
.hero {
  position: relative;
  background: var(--verde);
  color: var(--crema);
  isolation: isolate;
  overflow: hidden;
}
/* luz cálida del horno derramándose sobre la portada */
.hero::before {
  content: ''; position: absolute; z-index: -1; inset: 0;
  background:
    radial-gradient(60% 70% at 78% 62%, rgba(214, 150, 72, .30), transparent 70%),
    radial-gradient(40% 50% at 10% 0%, rgba(244, 237, 215, .06), transparent 70%);
}
.hero__inner {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(32px, 4vw, 56px) var(--gutter) clamp(170px, 14vw, 196px);
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  min-height: min(calc(100svh - var(--header-h)), 960px);
}
.hero__eyebrow { margin-bottom: clamp(24px, 3vw, 40px); }
.hero__title {
  font-family: var(--serif);
  font-size: clamp(3rem, .9rem + 5.6vw, 6.6rem);
  line-height: .94;
  letter-spacing: -.035em;
  color: var(--crema);
}
.hero__title .line { display: block; overflow: hidden; white-space: nowrap; padding-bottom: .08em; margin-bottom: -.08em; }
.hero__title .line > span { display: inline-block; }
.hero__year { font-style: normal; color: var(--dorado); position: relative; white-space: nowrap; }
.hero__year::after {
  content: ''; position: absolute; left: .02em; right: .2em; bottom: .02em; height: .07em;
  background: var(--dorado); border-radius: 99px; transform-origin: left; opacity: .9;
}
.hero__note { margin: 6px 0 0 clamp(120px, 18vw, 300px); color: var(--dorado); }
.hero__lead {
  max-width: 34rem;
  margin-top: clamp(18px, 2.4vw, 28px);
  font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
  line-height: 1.55;
  color: var(--crema-suave);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(28px, 3.4vw, 44px); }

.hero__oven { position: relative; width: 100%; max-width: 420px; justify-self: end; }
.oven { margin: 0; position: relative; padding: 24px 24px 0; }
/* anillo de ladrillos alrededor de la boca del horno */
.oven::before {
  content: ''; position: absolute; inset: 0;
  border-radius: 50% 50% 12px 12px / 39% 39% 12px 12px;
  background:
    repeating-conic-gradient(from -90deg at 50% 52%, transparent 0 7.2deg, rgba(48, 64, 44, .9) 7.2deg 8deg),
    var(--crema-2);
}
.oven__mouth {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 50% 50% 4px 4px / 40% 40% 4px 4px;
  background: radial-gradient(85% 58% at 50% 100%, #C9813F 0%, #8A5A2C 30%, #3A3424 60%, #1F2A1C 100%);
  display: grid; place-items: center;
  overflow: hidden;
  isolation: isolate;
  box-shadow: inset 0 18px 40px rgba(0, 0, 0, .45);
}
.oven__glow {
  position: absolute; z-index: -1; left: 50%; bottom: -24%;
  width: 120%; aspect-ratio: 1; translate: -50% 0;
  background: radial-gradient(closest-side, rgba(255, 186, 96, .55), rgba(214, 140, 64, .18) 55%, transparent 75%);
  animation: brasa 3.8s var(--ease-in-out) infinite alternate;
}
@keyframes brasa {
  0%   { opacity: .7;  transform: scale(.95); }
  40%  { opacity: 1;   transform: scale(1.04); }
  70%  { opacity: .82; transform: scale(.99); }
  100% { opacity: .95; transform: scale(1.02); }
}
.oven__embers { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.oven__logo {
  position: relative; z-index: 2; width: 86%; height: auto;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .35));
  translate: var(--mx, 0px) var(--my, 0px);
  transition: translate 1.2s var(--ease-out);
}

/* sello giratorio */
.badge { width: clamp(118px, 12vw, 158px); aspect-ratio: 1; }
.badge svg { width: 100%; height: 100%; overflow: visible; animation: spin 26s linear infinite; }
.badge__bg { fill: var(--crema); }
.badge__ring { fill: none; stroke: var(--verde); stroke-width: 1.5; stroke-dasharray: 2 5; }
.badge__text { font: 700 15px var(--sans); font-stretch: 75%; letter-spacing: .1em; fill: var(--verde); }
.badge__big { font: 38px var(--serif); fill: var(--verde); letter-spacing: -.02em; }
.badge__small { font: 700 11px var(--sans); font-stretch: 75%; letter-spacing: .18em; fill: var(--verde); }
.badge--ocre .badge__bg { fill: var(--dorado); }
@keyframes spin { to { transform: rotate(360deg); } }
.hero__badge { position: absolute; left: calc(-1 * clamp(40px, 5vw, 72px)); top: 6%; z-index: 3; }
.hero__badge svg { filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .25)); }

.hero__address {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px;
  margin-top: 18px; padding-top: 14px;
  border-top: 1.5px solid rgba(244, 237, 215, .35);
  font-size: .9375rem; color: var(--crema-suave);
}
.hero__address-k { font-weight: 650; color: var(--crema); }

/* mostrador: pizarrón y productos sobre el estante */
.counter { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; }
.counter__inner {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: flex-end; gap: clamp(16px, 3vw, 48px);
}
.board {
  flex: none; position: relative;
  width: clamp(230px, 22vw, 300px);
  margin-bottom: -2px;
  padding: 14px 20px 18px;
  background:
    radial-gradient(60% 50% at 30% 30%, rgba(244, 237, 215, .07), transparent 70%),
    radial-gradient(40% 40% at 80% 80%, rgba(244, 237, 215, .05), transparent 70%),
    #1E281B;
  border: 9px solid #8A5A34;
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .35), inset 0 0 24px rgba(0, 0, 0, .35), 0 16px 26px -14px rgba(0, 0, 0, .7);
  rotate: -1.5deg; transform-origin: bottom center;
}
.board::before { /* borde de madera */
  content: ''; position: absolute; inset: -9px; border-radius: 6px; pointer-events: none;
  box-shadow: inset 0 0 0 2px #6E4428, inset 0 2px 0 3px rgba(255, 220, 160, .25);
}
.board__label {
  font: 700 .6875rem var(--sans); font-stretch: 78%; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(244, 237, 215, .62);
}
.board__item {
  margin-top: 4px; min-height: 1.15em;
  font-family: var(--hand); font-weight: 700; font-size: clamp(1.875rem, 1.4rem + 1.2vw, 2.5rem); line-height: 1.1;
  color: #F4EDD7; white-space: nowrap;
  text-shadow: 0 0 1px rgba(244, 237, 215, .6), 0 0 8px rgba(244, 237, 215, .12);
}
.board__text { display: inline-block; }
.board__doodle { display: block; width: 62%; height: 10px; margin-top: 2px; overflow: visible; }
.board__doodle path { fill: none; stroke: var(--dorado); stroke-width: 2.4; stroke-linecap: round; vector-effect: non-scaling-stroke; opacity: .85; }
/* escribir con tiza y borrar */
.board.is-writing .board__text { animation: chalk-write .95s cubic-bezier(.45, .1, .3, 1) both; }
.board.is-writing .board__doodle path { stroke-dasharray: 200; animation: chalk-line .7s var(--ease-out) .55s both; }
.board.is-erasing .board__text { animation: chalk-erase .38s ease-in both; }
.board.is-erasing .board__doodle path { opacity: 0; transition: opacity .3s; }
@keyframes chalk-write { from { clip-path: inset(-20% 100% -20% 0); } to { clip-path: inset(-20% -4% -20% 0); } }
@keyframes chalk-line { from { stroke-dashoffset: 200; } to { stroke-dashoffset: 0; } }
@keyframes chalk-erase { to { opacity: 0; filter: blur(3px); translate: 6px 0; } }

.counter__items {
  flex: 1; min-width: 0;
  display: flex; align-items: flex-end; justify-content: space-around; gap: clamp(8px, 2vw, 28px);
}
.counter__item {
  position: relative;
  width: clamp(80px, 8.6vw, 128px);
  margin-bottom: -10px;
  filter: brightness(.86) saturate(.85);
  transition: translate .7s var(--ease-out), filter .7s var(--ease-out);
}
.counter__item::after { /* luz cálida cuando el pizarrón lo nombra */
  content: ''; position: absolute; left: 10%; right: 10%; bottom: 8px; height: 18px; z-index: -1;
  border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 190, 110, .55), transparent);
  opacity: 0; transition: opacity .7s var(--ease-out);
}
.counter__item .art { display: block; width: 100%; height: auto; overflow: visible; }
.counter__item.is-on { translate: 0 -12px; filter: none; }
.counter__item.is-on::after { opacity: 1; }

.counter__shelf {
  height: 22px;
  background: linear-gradient(180deg, #C98A45 0 3px, #A8743A 3px 14px, #6E4428 14px);
  box-shadow: 0 14px 24px -8px rgba(0, 0, 0, .45);
}

/* Entrada de portada */
@media (prefers-reduced-motion: no-preference) {
  .js .hero [data-intro] { opacity: 0; }
  .js .hero .line > [data-intro] { opacity: 1; transform: translateY(105%); }
  .js .hero .oven { clip-path: inset(100% 0 0 0); }
  .js .hero .oven__logo { opacity: 0; }
  .js .hero .hero__year::after { transform: scaleX(0); }
  .js .hero .counter { transform: translateY(105%); }

  .is-ready .hero [data-intro] { animation: fade-up var(--t-reveal) var(--ease-out) both; }
  .is-ready .hero .line > [data-intro] { animation: line-up 1s var(--ease-out) both; }
  .is-ready .hero [data-intro="1"] { animation-delay: 80ms; }
  .is-ready .hero [data-intro="2"] { animation-delay: 140ms; }
  .is-ready .hero [data-intro="3"] { animation-delay: 220ms; }
  .is-ready .hero [data-intro="4"] { animation-delay: 300ms; }
  .is-ready .hero [data-intro="5"] { animation-delay: 560ms; }
  .is-ready .hero [data-intro="6"] { animation-delay: 660ms; }
  .is-ready .hero .hero__address[data-intro="7"] { animation-delay: 900ms; }
  .is-ready .hero .hero__badge[data-intro="7"] { animation: badge-in 1s var(--ease-out) 1000ms both; }
  .is-ready .hero .oven { animation: oven-rise 1.25s var(--ease-out) 120ms both; }
  .is-ready .hero .oven__logo { animation: logo-in 1.1s var(--ease-out) 600ms both; }
  .is-ready .hero .hero__year::after { animation: draw 800ms var(--ease-out) 950ms both; }
  .is-ready .hero .counter { transition: transform 1.1s var(--ease-out) 700ms; transform: none; }
}
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes line-up { from { transform: translateY(105%); } to { transform: none; } }
@keyframes oven-rise { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(-10% -10% 0 -10%); } }
@keyframes logo-in { from { opacity: 0; transform: translateY(24px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes badge-in { from { opacity: 0; transform: scale(.4) rotate(-90deg); } to { opacity: 1; transform: none; } }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (max-width: 880px) {
  .hero__inner { grid-template-columns: 1fr; min-height: 0; gap: 56px; padding-top: 36px; padding-bottom: 190px; }
  .counter__item:nth-child(n + 5) { display: none; }
  .hero__title { font-size: clamp(2.6rem, 12.4vw, 5.5rem); }
  .hero__note { margin-left: 34%; }
  .hero__oven { max-width: 400px; justify-self: center; }
  .oven__mouth { aspect-ratio: 1 / 1.1; }
  .hero__badge { left: -14px; top: -28px; width: 104px; }
}
@media (max-width: 560px) {
  .counter__items { display: none; }
  .counter__inner { justify-content: center; }
  .board { width: min(100%, 300px); }
}
@media (max-width: 420px) {
  .hero__actions .btn { width: 100%; }
  .hero__note { margin-left: 18%; }
}

/* =========================================================
   NOTAS A MANO
   ========================================================= */
.note {
  position: relative;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--hand);
  font-size: clamp(1.375rem, 1.1rem + .9vw, 1.75rem);
  font-weight: 600;
  line-height: 1;
  rotate: -3deg;
  transform-origin: left center;
}
.note__arrow {
  width: 46px; height: 32px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
}
@media (prefers-reduced-motion: no-preference) {
  .is-ready .hero__note .note__arrow path,
  .js .note.is-in .note__arrow path,
  .js .is-in .corner__note .note__arrow path { stroke-dasharray: 120; animation: scribble .9s var(--ease-out) .5s both; }
}
@keyframes scribble { from { stroke-dashoffset: 120; } to { stroke-dashoffset: 0; } }

/* =========================================================
   REVELADOS AL RECORRER
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0; transform: translateY(22px);
    transition: opacity var(--t-reveal) var(--ease-out), transform var(--t-reveal) var(--ease-out);
    transition-delay: var(--d, 0ms);
  }
  .js [data-reveal="rise"] {
    opacity: 1; transform: none;
    clip-path: inset(0 0 100% 0);
    translate: 0 .35em;
    transition: clip-path 1s var(--ease-out), translate 1s var(--ease-out);
    transition-delay: var(--d, 0ms);
  }
  .js [data-reveal="arch"] {
    opacity: 1; transform: none;
    clip-path: inset(18% 6% 0 6% round 999px 999px 0 0);
    transition: clip-path 1.3s var(--ease-out);
  }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js [data-reveal="rise"].is-in { clip-path: inset(0 0 -10% 0); translate: 0 0; }
  .js [data-reveal="arch"].is-in { clip-path: inset(0 0 0 0 round 999px 999px 0 0); }
}

/* =========================================================
   PRODUCTOS
   ========================================================= */
.products {
  max-width: var(--max); margin: 0 auto;
  padding: var(--section) var(--gutter);
  border-top: 1px solid var(--linea);
}
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  grid-template-areas: "eyebrow eyebrow" "title lead";
  gap: 20px clamp(32px, 6vw, 96px);
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 88px);
}
.section-head .eyebrow { grid-area: eyebrow; }
.section-head .h2 { grid-area: title; }
.section-head__lead { grid-area: lead; color: var(--tinta-suave); max-width: 30rem; }
.section-head__lead strong { color: var(--verde); font-weight: 650; }
@media (max-width: 880px) {
  .section-head { grid-template-columns: 1fr; grid-template-areas: "eyebrow" "title" "lead"; }
}

/* Destacados: dos piezas con composición asimétrica */
.featured {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(16px, 2vw, 24px);
  margin-bottom: clamp(64px, 8vw, 120px);
}
.feat {
  position: relative;
  display: grid; grid-template-rows: 1fr auto;
  min-height: clamp(360px, 38vw, 520px);
  padding: clamp(24px, 3vw, 44px);
  border-radius: 28px;
  overflow: hidden;
  text-decoration: none;
  isolation: isolate;
}
.feat--verde { background: var(--verde); color: var(--crema); }
.feat--crema { background: var(--crema-2); color: var(--verde); }
.feat__art {
  align-self: center; justify-self: center;
  width: min(78%, 360px);
  transition: transform 1.1s var(--ease-out);
}
.feat:hover .feat__art, .feat:focus-within .feat__art { transform: rotate(-6deg) scale(1.04); }
.feat__tag {
  position: absolute; top: clamp(24px, 3vw, 40px); left: clamp(24px, 3vw, 44px);
  font: 650 .75rem var(--sans); font-stretch: 80%; letter-spacing: .16em; text-transform: uppercase;
  opacity: .8;
}
.feat__foot { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.feat__name {
  font-family: var(--serif);
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3.5rem);
  line-height: 1; letter-spacing: -.02em;
}
.feat__text { margin-top: 12px; max-width: 26rem; font-size: 1rem; opacity: .86; }
.feat__go {
  flex: none;
  display: grid; place-items: center;
  width: 56px; height: 56px; border-radius: 50%;
  border: 1.5px solid currentColor;
  color: inherit; text-decoration: none;
  transition: background-color var(--t-ui) var(--ease-out), color var(--t-ui) var(--ease-out), transform var(--t-micro) var(--ease-out);
}
.feat__go .icon { transition: transform var(--t-ui) var(--ease-out); }
.feat--verde .feat__go:hover, .feat--verde .feat__go:focus-visible { background: var(--crema); color: var(--verde); }
.feat--crema .feat__go:hover, .feat--crema .feat__go:focus-visible { background: var(--verde); color: var(--crema); }
.feat__go:hover .icon, .feat__go:focus-visible .icon { transform: rotate(-45deg); }
.feat__go:active { transform: scale(.94); }
/* enlace estirado: toda la pieza consulta, el botón conserva el foco */
.feat__go::after { content: ''; position: absolute; inset: 0; }
.feat:has(.feat__go:focus-visible) { outline: 2px solid var(--verde); outline-offset: 4px; }
.feat__go:focus-visible { outline-offset: 3px; }

/* ilustraciones: piezas gráficas, no fotos */
.art-sugar { transform-box: fill-box; transform-origin: center; transition: transform 1.1s var(--ease-out); }
.feat:hover .art-sugar, .feat:focus-within .art-sugar { transform: rotate(14deg); }

@media (max-width: 880px) {
  .featured { grid-template-columns: 1fr; }
  .feat { min-height: 380px; border-radius: 22px; }
  .feat__art { width: min(62%, 260px); margin-top: 28px; }
}

/* Índice de categorías: filas tipográficas, no tarjetas */
.index { border-top: 1.5px solid var(--verde); }
.index__row {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 4fr) minmax(0, 6fr) auto;
  gap: 8px 24px;
  align-items: baseline;
  padding: clamp(22px, 2.6vw, 34px) 0;
  border-bottom: 1px solid var(--linea);
  isolation: isolate;
}
.index__row::before {
  content: ''; position: absolute; inset: 0 calc(-1 * clamp(12px, 2vw, 28px)); z-index: -1;
  background: var(--crema-2); border-radius: 14px;
  opacity: 0; transform: scaleY(.6);
  transition: opacity var(--t-ui) var(--ease-out), transform var(--t-ui) var(--ease-out);
}
.index__row:hover::before, .index__row:focus-within::before { opacity: 1; transform: none; }
.index__num {
  font: 650 .8125rem var(--sans); letter-spacing: .1em; color: var(--tinta-suave);
  font-variant-numeric: tabular-nums;
}
.index__name {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 1.2rem + 1.9vw, 2.75rem);
  line-height: 1.05; letter-spacing: -.015em;
  transition: transform var(--t-ui) var(--ease-out);
}
.index__row:hover .index__name, .index__row:focus-within .index__name { transform: translateX(8px); }
.index__note {
  display: inline-block; vertical-align: middle;
  margin-left: 12px; padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--verde);
  font: 650 .6875rem var(--sans); font-stretch: 80%; letter-spacing: .12em; text-transform: uppercase;
  transform: translateY(-.3em);
}
.index__items { display: flex; flex-wrap: wrap; gap: 0 .55em; color: var(--tinta-suave); line-height: 1.7; min-width: 0; }
.index__items li { display: inline-flex; gap: .55em; }
.index__items li + li::before { content: '·'; color: var(--ocre); font-weight: 700; }
.index__go {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 4px;
  font-weight: 600; font-size: .9375rem; text-decoration: none; white-space: nowrap;
}
.index__go::after { content: ''; position: absolute; inset: 0; }
.index__go .icon { transition: transform var(--t-ui) var(--ease-out); }
.index__row:hover .index__go .icon, .index__go:focus-visible .icon { transform: translateX(5px); }
.index__go:focus-visible { outline: none; }
.index__row:has(.index__go:focus-visible)::before { opacity: 1; transform: none; outline: 2px solid var(--verde); outline-offset: 0; }

@media (max-width: 880px) {
  .index__row { grid-template-columns: 40px minmax(0, 1fr); padding: 22px 0; }
  .index__items { grid-column: 2; }
  .index__go { grid-column: 2; justify-self: start; margin-top: 4px; padding-left: 0; }
  .index__row::before { inset: 0 -10px; }
}
.noscript { padding: 24px 0; }

/* =========================================================
   HISTORIA — año que se dora, etiquetas de los fundadores
   y un álbum de cuatro postales
   ========================================================= */
.story { position: relative; background: var(--verde); color: var(--crema); overflow: hidden; isolation: isolate; }
/* arcos de horno de fondo, muy suaves */
.story::before {
  content: ''; position: absolute; z-index: -1; right: -12%; top: -8%;
  width: 70vw; max-width: 900px; aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, transparent 64%, rgba(244, 237, 215, .05) 64.4% 66%, transparent 66.4% 78%, rgba(244, 237, 215, .04) 78.4% 80%, transparent 80.4%),
    radial-gradient(closest-side, rgba(214, 150, 72, .14), transparent 70%);
}
.story__inner { max-width: var(--max); margin: 0 auto; padding: var(--section) var(--gutter); }

.story__head {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: end;
}
.story__date { display: flex; flex-direction: column; margin-top: 28px; font-family: var(--serif); line-height: .86; }
.story__date-d { font-size: clamp(1.5rem, 1rem + 1.6vw, 2.5rem); color: var(--crema-suave); margin-bottom: .2em; }
/* el año se "dora" mientras se recorre la sección */
.story__date-y {
  font-size: clamp(6.5rem, 2rem + 14vw, 15rem);
  letter-spacing: -.05em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--dorado);
  background: linear-gradient(0deg, var(--dorado) 0 var(--bake, 100%), transparent var(--bake, 100%));
  -webkit-background-clip: text; background-clip: text;
  /* los números de Young Serif bajan de la línea: se agranda la caja para que
     el dorado y el recorte del revelado lleguen hasta abajo */
  padding: .04em .08em .3em 0;
  margin-bottom: -.3em;
}
.js .story__date-y[data-reveal="rise"].is-in { clip-path: inset(-10% -10% -10% -10%); }
.story__body .h2 { max-width: 15ch; }
.story__lead { margin-top: 28px; max-width: 36rem; font-size: clamp(1.0625rem, 1rem + .4vw, 1.3125rem); line-height: 1.6; }

/* fundadores: etiquetas colgadas de un hilo */
.founders {
  margin-top: clamp(72px, 9vw, 128px);
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(24px, 5vw, 72px); align-items: center;
  padding: clamp(28px, 4vw, 48px) 0;
  border-top: 1px solid var(--linea-crema); border-bottom: 1px solid var(--linea-crema);
}
.founders__note { color: var(--dorado); }
.founders__title { margin-top: 14px; font-family: var(--serif); font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.25rem); line-height: 1.1; }
.founders__years { display: flex; align-items: center; gap: 14px; margin-top: 22px; }
.founders__num {
  font-family: var(--serif); font-size: clamp(3.5rem, 2rem + 4vw, 5.5rem); line-height: .9;
  color: var(--dorado); font-variant-numeric: tabular-nums; min-width: 2ch;
}
.founders__unit { font-size: .9375rem; line-height: 1.35; color: var(--crema-suave); }

.tags { position: relative; padding-top: 14px; }
.tags__string { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 60px; overflow: visible; }
.tags__string path { fill: none; stroke: var(--crema-suave); stroke-width: 1.5; vector-effect: non-scaling-stroke; opacity: .7; }
.tags__list { position: relative; display: flex; justify-content: space-between; gap: clamp(18px, 2.4vw, 32px); padding: 0 8px; }
.tag {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  min-width: 0; flex: 1 1 0; max-width: 128px;
  margin-top: calc(28px + 10px * var(--i) * (4 - var(--i)) / 4);
  padding: 30px 10px 16px;
  background: var(--crema); color: var(--verde);
  clip-path: polygon(18% 0, 82% 0, 100% 14%, 100% 100%, 0 100%, 0 14%);
  border-radius: 4px;
  rotate: var(--r);
  transform-origin: 50% -24px;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .25));
}
/* agujero e hilo */
.tag::before {
  content: ''; position: absolute; top: 10px; left: 50%; width: 10px; height: 10px; margin-left: -5px;
  border-radius: 50%; background: var(--verde); box-shadow: 0 0 0 2px var(--dorado);
}
.tag::after {
  content: ''; position: absolute; left: 50%; bottom: calc(100% - 15px); width: 1.5px; height: 40px;
  background: var(--crema-suave); opacity: .7;
}
.tag__name { font-family: var(--hand); font-weight: 700; font-size: clamp(1.5rem, 1.1rem + 1vw, 2.125rem); line-height: 1; }
.tag__role { margin-top: 6px; font: 700 .625rem var(--sans); font-stretch: 78%; letter-spacing: .16em; text-transform: uppercase; color: var(--tinta-suave); }
.tag:hover, .tag:focus-within { animation: swing 1.4s var(--ease-out); }
@keyframes swing { 0% { rotate: var(--r); } 25% { rotate: calc(var(--r) * -2.2); } 55% { rotate: calc(var(--r) * 1.4); } 80% { rotate: calc(var(--r) * -.6); } 100% { rotate: var(--r); } }

@media (prefers-reduced-motion: no-preference) {
  .js .founders[data-reveal] .tag { opacity: 0; translate: 0 -30px; rotate: calc(var(--r) * 4); transition: opacity .6s var(--ease-out), translate .9s var(--ease-out), rotate 1.4s cubic-bezier(.3, 1.6, .4, 1); transition-delay: calc(300ms + var(--i) * 110ms); }
  .js .founders.is-in .tag { opacity: 1; translate: 0 0; rotate: var(--r); }
  .js .founders[data-reveal] .tags__string path { stroke-dasharray: 700; stroke-dashoffset: 700; transition: stroke-dashoffset 1.2s var(--ease-out); }
  .js .founders.is-in .tags__string path { stroke-dashoffset: 0; }
}

/* álbum: cuatro postales con cinta */
.album { margin-top: clamp(72px, 9vw, 120px); position: relative; }
.album__note { color: var(--dorado); margin-bottom: 28px; }
.album__list {
  position: relative;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 32px);
}
/* camino punteado que une las postales */
.album__list::before {
  content: ''; position: absolute; left: 4%; right: 4%; top: 46%; height: 2px; z-index: 0;
  background: repeating-linear-gradient(90deg, var(--dorado) 0 10px, transparent 10px 20px);
  opacity: .6; transform-origin: left;
}
.photo {
  position: relative; z-index: 1;
  background: var(--crema); color: var(--verde);
  padding: 12px 12px 20px;
  border-radius: 4px;
  rotate: var(--tilt, 0deg);
  box-shadow: 0 18px 30px -16px rgba(0, 0, 0, .55);
  transition: rotate .7s var(--ease-out), translate .7s var(--ease-out), box-shadow .7s var(--ease-out);
}
.photo:hover { rotate: 0deg; translate: 0 -8px; box-shadow: 0 28px 40px -18px rgba(0, 0, 0, .6); }
.photo__tape {
  position: absolute; top: -12px; left: 50%; width: 76px; height: 24px; margin-left: -38px;
  background: rgba(244, 237, 215, .55);
  border-left: 2px dashed rgba(48, 64, 44, .12); border-right: 2px dashed rgba(48, 64, 44, .12);
  rotate: calc(var(--tilt, 0deg) * -2);
  backdrop-filter: blur(1px);
}
.photo__pic {
  aspect-ratio: 1 / .86;
  background: var(--dorado);
  border-radius: 2px;
  display: grid; place-items: center;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(48, 64, 44, .15);
}
.photo__pic .art { width: 82%; height: auto; overflow: visible; }
.photo:nth-child(2) .photo__pic { background: #E3B978; }
.photo:nth-child(3) .photo__pic { background: #CFA463; }
.photo__year { margin-top: 16px; font-family: var(--serif); font-size: clamp(2rem, 1.5rem + 1.4vw, 2.75rem); line-height: 1; letter-spacing: -.02em; }
.photo__title { margin-top: 6px; font-family: var(--hand); font-weight: 700; font-size: 1.5rem; line-height: 1.05; color: var(--ocre-texto); }
.photo__text { margin-top: 10px; font-size: .9375rem; line-height: 1.5; color: var(--tinta-suave); }

@media (prefers-reduced-motion: no-preference) {
  .js .photo[data-reveal] { transform: translateY(40px) rotate(calc(var(--tilt, 0deg) * -3)); }
  .js .photo[data-reveal].is-in { transform: none; }
  .js .album__list::before { transform: scaleX(0); transition: transform 1.6s var(--ease-out) .3s; }
  .js .album:has(.photo.is-in) .album__list::before { transform: none; }
  .art__flame { transform-box: fill-box; transform-origin: 50% 100%; animation: flame 1.3s var(--ease-in-out) infinite alternate; }
}
@keyframes flame { from { transform: scaleY(.92) skewX(-2deg); } to { transform: scaleY(1.06) skewX(2deg); } }

.story__link { margin-top: clamp(40px, 5vw, 64px); }

@media (max-width: 1024px) {
  .album__list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .album__list::before { display: none; }
}
@media (max-width: 880px) {
  .story__head { grid-template-columns: 1fr; gap: 20px; }
  .story__date { flex-direction: row; align-items: baseline; flex-wrap: wrap; gap: 0 .4em; margin-top: 18px; }
  .story__date-d { order: 2; margin: 0; }
  .story__date-y { font-size: clamp(5.5rem, 30vw, 9rem); margin-bottom: 0; padding-bottom: .22em; }
  .founders { grid-template-columns: 1fr; }
  .tags__list { flex-wrap: wrap; justify-content: center; row-gap: 18px; }
  .tag { flex: 0 0 calc(33.3% - 12px); margin-top: 6px; }
  .tags__string { display: none; }
  .tag::after { display: none; }
}
@media (max-width: 560px) {
  /* en el celular, el álbum se pasa con el dedo */
  .album__list {
    display: flex; gap: 18px;
    overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 calc(-1 * var(--gutter)); padding: 18px var(--gutter) 28px;
    scrollbar-width: none;
  }
  .album__list::-webkit-scrollbar { display: none; }
  .photo { flex: 0 0 78%; scroll-snap-align: center; }
}

/* =========================================================
   ENCONTRANOS
   ========================================================= */
.find {
  max-width: var(--max); margin: 0 auto;
  padding: var(--section) var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 7vw, 112px);
  align-items: center;
}
.find__info .h2 { margin-top: 20px; max-width: 12ch; }
.facts { margin: 40px 0 0; border-top: 1.5px solid var(--verde); }
.facts__row {
  display: grid; grid-template-columns: 140px 1fr; gap: 6px 24px;
  padding: 20px 0; border-bottom: 1px solid var(--linea);
}
.facts dt {
  font: 650 .75rem/1.9 var(--sans); font-stretch: 80%; letter-spacing: .16em; text-transform: uppercase;
  color: var(--tinta-suave);
}
.facts dd { margin: 0; font-size: 1.125rem; }
.hours-table { border-collapse: collapse; width: 100%; }
.hours-table th, .hours-table td { text-align: left; padding: 2px 16px 2px 0; font-weight: 400; }
.hours-table th { font-weight: 600; }
.find__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 36px; }
@media (max-width: 560px) {
  .facts__row { grid-template-columns: 1fr; }
  .find__actions .btn { width: 100%; }
}

/* La esquina: Juan B. Justo y Pueyrredón como composición gráfica (no es un mapa) */
.corner {
  position: relative;
  aspect-ratio: 1;
  border-radius: 28px;
  background: var(--crema-2);
  overflow: hidden;
}


@media (max-width: 880px) {
  .find { grid-template-columns: 1fr; }
  .find__corner { order: 2; }
  .corner { border-radius: 22px; }
}

/* =========================================================
   CONTACTO
   ========================================================= */
.contact {
  max-width: var(--max); margin: 0 auto;
  padding: 0 var(--gutter) var(--section);
}
.contact__arch {
  background: var(--verde); color: var(--crema);
  border-radius: 999px 999px 0 0 / 360px 360px 0 0;
  padding: clamp(96px, 12vw, 168px) var(--gutter) clamp(64px, 8vw, 104px);
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.contact__mark { width: clamp(150px, 16vw, 210px); height: auto; margin-bottom: 40px; }
.contact__title { max-width: 16ch; }
.contact__lead { margin-top: 20px; max-width: 32rem; color: var(--crema-suave); font-size: 1.125rem; }
.contact__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }
@media (max-width: 560px) {
  .contact { padding-left: 0; padding-right: 0; }
  .contact__arch { border-radius: 999px 999px 0 0 / 180px 180px 0 0; padding-top: 88px; }
  .contact__actions { width: 100%; }
  .contact__actions .btn { width: 100%; }
}

/* =========================================================
   PIE
   ========================================================= */
.footer { background: var(--verde-3); color: var(--crema); }
.footer__inner {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(56px, 7vw, 96px) var(--gutter) 48px;
  display: grid; grid-template-columns: auto 1fr; gap: clamp(40px, 7vw, 120px);
  align-items: start;
}
.footer__logo { width: clamp(140px, 14vw, 180px); height: auto; }
.footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer__k {
  font: 650 .75rem var(--sans); font-stretch: 80%; letter-spacing: .16em; text-transform: uppercase;
  color: var(--crema-suave); margin-bottom: 14px;
}
.footer__links li + li { margin-top: 6px; }
.footer__links a {
  display: inline-block; padding: 2px 0;
  text-decoration: none;
  background: linear-gradient(var(--ocre), var(--ocre)) left bottom / 0 1.5px no-repeat;
  transition: background-size var(--t-ui) var(--ease-out);
}
.footer__links a:hover, .footer__links a:focus-visible { background-size: 100% 1.5px; }
.footer__base {
  max-width: var(--max); margin: 0 auto;
  padding: 20px var(--gutter) calc(24px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--linea-crema);
  font-size: .875rem; color: var(--crema-suave);
}
@media (max-width: 760px) {
  .footer__inner { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__cols > div:first-child { grid-column: 1 / -1; }
}

/* =========================================================
   WHATSAPP FLOTANTE (móvil)
   ========================================================= */
.float-wa {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 40;
  display: none; align-items: center; gap: 8px;
  min-height: 52px; padding: 0 20px 0 16px;
  border-radius: 999px;
  background: var(--verde); color: var(--crema);
  font-weight: 650; text-decoration: none;
  box-shadow: 0 0 0 1.5px var(--crema), 0 14px 30px -12px rgba(25, 34, 22, .6);
  opacity: 0; transform: translateY(16px) scale(.96); pointer-events: none;
  transition: opacity var(--t-ui) var(--ease-out), transform var(--t-ui) var(--ease-out);
}
.float-wa.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.float-wa:active { transform: scale(.96); }
@media (max-width: 880px) { .float-wa { display: inline-flex; } }

/* =========================================================
   MOVIMIENTO REDUCIDO
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
  .oven__glow, .badge svg { animation: none !important; }
}

/* =========================================================
   CAPA 2: calidez, juego y textura
   ========================================================= */

/* grano suave de papel/harina sobre toda la página */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 90; pointer-events: none;
  opacity: .07; mix-blend-mode: multiply;
  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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .19 0 0 0 0 .25 0 0 0 0 .17 0 0 0 1.1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* la cabecera se funde con la portada verde */
.header { box-shadow: none; }

/* nota de la sección productos */
.section-head { position: relative; }
.section-head__note {
  grid-area: lead; align-self: start; justify-self: end;
  margin-top: -64px; color: var(--ocre-texto);
}
.section-head__note .note__arrow { width: 40px; translate: 0 18px; }
@media (max-width: 880px) {
  .section-head__note { grid-area: auto; justify-self: start; margin: 4px 0 0; }
}

/* destacados con ilustración grande */
.feat__art { align-self: center; justify-self: center; width: min(74%, 340px); transition: transform 1.1s var(--ease-out); }
.feat__art .art { width: 100%; height: auto; overflow: visible; }
.feat:hover .feat__art, .feat:focus-within .feat__art { transform: rotate(-5deg) scale(1.05); }
.feat__note {
  position: absolute; right: clamp(20px, 3vw, 40px); top: clamp(22px, 3vw, 38px);
  font-size: clamp(1.375rem, 1.1rem + .9vw, 1.875rem);
}
.feat--verde .feat__note { color: var(--dorado); }
.feat--crema .feat__note { color: var(--verde); }
.feat--crema { background: var(--dorado); }
.feat--crema .feat__go:hover, .feat--crema .feat__go:focus-visible { background: var(--verde); color: var(--dorado); }

.art__spin, .art__wiggle, .art__bounce { transform-box: fill-box; transform-origin: center; transition: transform 1s var(--ease-out); }
.feat:hover .art__spin, .feat:focus-within .art__spin { transform: rotate(18deg); }
.index__row:hover .art__wiggle, .follower .art__wiggle { animation: wiggle 1.4s var(--ease-in-out) infinite; }
.follower .art__bounce, .follower .art__spin { animation: bounce 1.2s var(--ease-in-out) infinite; }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-4deg) translateY(-2px); } }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* miniatura en filas (táctil y pantallas angostas) */
.index__thumb { display: none; width: 64px; height: 64px; }
.index__thumb .art { width: 100%; height: 100%; }
@media (hover: none), (max-width: 880px) {
  .index__row { grid-template-columns: 40px minmax(0, 1fr) 64px; }
  .index__thumb { display: block; grid-column: 3; grid-row: 1 / span 3; align-self: center; }
  .index__items, .index__go { grid-column: 2; }
}

/* ilustración que sigue al cursor sobre el índice */
.follower {
  position: fixed; left: 0; top: 0; z-index: 30;
  width: 220px; height: 220px; margin: -110px 0 0 -110px;
  border-radius: 50%;
  background: var(--dorado);
  display: grid; place-items: center;
  pointer-events: none;
  opacity: 0; scale: .5;
  transition: opacity .35s var(--ease-out), scale .5s var(--ease-out);
  box-shadow: 0 24px 50px -20px rgba(48, 64, 44, .55);
}
.follower .art { width: 74%; height: auto; overflow: visible; }
.follower.is-on { opacity: 1; scale: 1; }
@media (hover: none), (max-width: 880px), (prefers-reduced-motion: reduce) { .follower { display: none; } }


/* nota en la esquina */
.corner__note {
  position: absolute; left: 6%; top: 82%;
  color: var(--verde); font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.125rem);
  flex-direction: row-reverse;
}
.corner__note .note__arrow { rotate: 70deg; translate: 0 -10px; }
@media (prefers-reduced-motion: no-preference) {
  .js .corner__note { opacity: 0; transition: opacity .6s var(--ease-out) 1s; }
  .js .is-in .corner__note { opacity: 1; }
}

/* cierre: más fuego en el arco final */
.contact__arch { position: relative; overflow: hidden; isolation: isolate; }
.contact__arch::before {
  content: ''; position: absolute; z-index: -1; left: 50%; top: -10%;
  width: 70%; aspect-ratio: 1; translate: -50% 0;
  background: radial-gradient(closest-side, rgba(214, 150, 72, .28), transparent 72%);
}
.contact__title { font-size: clamp(2.75rem, 1.4rem + 5vw, 6rem); }

/* tortita: al pasar, se levanta como recién salida de la bandeja */
.art__lift { transform-box: fill-box; transform-origin: center bottom; transition: transform .8s var(--ease-out); }
.feat:hover .art__lift, .feat:focus-within .art__lift { transform: translateY(-6px) rotate(-2deg); }

/* esquina ilustrada */
.corner__art, .corner__art .esq { position: absolute; inset: 0; width: 100%; height: 100%; }
.esq__smoke {
  opacity: 0; transform-box: fill-box; transform-origin: center;
  animation: humo 4.2s var(--ease-out) infinite; animation-delay: calc(var(--i) * 1.4s);
}
@keyframes humo {
  0%   { opacity: 0;   transform: translate(0, 0) scale(.5); }
  20%  { opacity: .75; }
  100% { opacity: 0;   transform: translate(-14px, -46px) scale(1.8); }
}
@media (prefers-reduced-motion: no-preference) {
  .js .esq__bldg { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease-out) .2s, transform 1.1s var(--ease-out) .2s; }
  .js .esq__tree, .js .esq__house { opacity: 0; transform: scale(.6); transform-box: fill-box; transform-origin: center; transition: opacity .6s var(--ease-out) .6s, transform .8s var(--ease-out) .6s; }
  .js .is-in .esq__bldg, .js .is-in .esq__tree, .js .is-in .esq__house { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .esq__smoke { display: none; } }

/* créditos de Arawyn (estilos en arawyn-credit.css): margen igual al del sitio
   y por encima del grano de papel, para que el amarillo quede exacto */
body .arawyn-credit { --arawyn-credit-gutter: var(--gutter); position: relative; z-index: 91; }

/* =========================================================
   FONDOS: textura sutil de panadería (granos, sésamo, migas
   y harina) y luces cálidas, para que el crema y el verde
   no queden planos. Dos mosaicos de distinto tamaño para que
   no se note la repetición.
   ========================================================= */
body {
  background-color: var(--crema);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cg opacity='0.14'%3E%3Cg transform='translate%2887.7 46.2%29 rotate%2895%29'%3E%3Cellipse rx='2.6' ry='5.4' fill='%23A9793A'/%3E%3Cellipse cx='-.8' rx='1.2' ry='4.2' fill='%23C9A15E'/%3E%3C/g%3E%3Cellipse transform='translate%28166.2 27.4%29 rotate%2826%29' rx='1.6' ry='2.8' fill='%23C9A15E'/%3E%3Ccircle cx='138.6' cy='97.8' r='1.2' fill='%23A9793A'/%3E%3Ccircle cx='23.9' cy='131.8' r='4.0' fill='%23FFFDF6'/%3E%3Cg transform='translate%2826.8 31.8%29 rotate%28155%29'%3E%3Cellipse rx='2.6' ry='5.4' fill='%23A9793A'/%3E%3Cellipse cx='-.8' rx='1.2' ry='4.2' fill='%23C9A15E'/%3E%3C/g%3E%3Cellipse transform='translate%28111.9 208.4%29 rotate%28125%29' rx='1.6' ry='2.8' fill='%23C9A15E'/%3E%3Ccircle cx='160.6' cy='237.5' r='1.5' fill='%23A9793A'/%3E%3Ccircle cx='244.3' cy='21.2' r='3.7' fill='%23FFFDF6'/%3E%3Cg transform='translate%28216.0 79.5%29 rotate%2896%29'%3E%3Cellipse rx='2.6' ry='5.4' fill='%23A9793A'/%3E%3Cellipse cx='-.8' rx='1.2' ry='4.2' fill='%23C9A15E'/%3E%3C/g%3E%3Cellipse transform='translate%2885.4 150.5%29 rotate%28140%29' rx='1.6' ry='2.8' fill='%23C9A15E'/%3E%3Ccircle cx='200.7' cy='177.8' r='1.4' fill='%23A9793A'/%3E%3Ccircle cx='211.6' cy='236.7' r='4.0' fill='%23FFFDF6'/%3E%3Cg transform='translate%2824.6 178.4%29 rotate%28153%29'%3E%3Cellipse rx='2.6' ry='5.4' fill='%23A9793A'/%3E%3Cellipse cx='-.8' rx='1.2' ry='4.2' fill='%23C9A15E'/%3E%3C/g%3E%3Cellipse transform='translate%28133.7 158.2%29 rotate%28145%29' rx='1.6' ry='2.8' fill='%23C9A15E'/%3E%3Ccircle cx='70.5' cy='93.4' r='1.8' fill='%23A9793A'/%3E%3Ccircle cx='15.5' cy='238.2' r='3.3' fill='%23FFFDF6'/%3E%3C/g%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='340' height='340'%3E%3Cg opacity='0.09'%3E%3Cg transform='translate%2813.9 46.0%29 rotate%2868%29'%3E%3Cellipse rx='2.6' ry='5.4' fill='%23A9793A'/%3E%3Cellipse cx='-.8' rx='1.2' ry='4.2' fill='%23C9A15E'/%3E%3C/g%3E%3Cellipse transform='translate%28135.7 228.8%29 rotate%2851%29' rx='1.6' ry='2.8' fill='%23C9A15E'/%3E%3Ccircle cx='57.2' cy='247.0' r='1.2' fill='%23A9793A'/%3E%3Ccircle cx='221.9' cy='53.7' r='3.8' fill='%23FFFDF6'/%3E%3Cg transform='translate%28181.4 153.3%29 rotate%289%29'%3E%3Cellipse rx='2.6' ry='5.4' fill='%23A9793A'/%3E%3Cellipse cx='-.8' rx='1.2' ry='4.2' fill='%23C9A15E'/%3E%3C/g%3E%3Cellipse transform='translate%28142.0 328.8%29 rotate%28111%29' rx='1.6' ry='2.8' fill='%23C9A15E'/%3E%3Ccircle cx='310.7' cy='138.9' r='1.4' fill='%23A9793A'/%3E%3Ccircle cx='73.5' cy='115.7' r='2.9' fill='%23FFFDF6'/%3E%3Cg transform='translate%28315.2 278.4%29 rotate%2833%29'%3E%3Cellipse rx='2.6' ry='5.4' fill='%23A9793A'/%3E%3Cellipse cx='-.8' rx='1.2' ry='4.2' fill='%23C9A15E'/%3E%3C/g%3E%3Cellipse transform='translate%28217.0 277.6%29 rotate%2882%29' rx='1.6' ry='2.8' fill='%23C9A15E'/%3E%3Ccircle cx='41.6' cy='324.6' r='1.6' fill='%23A9793A'/%3E%3Ccircle cx='121.6' cy='13.6' r='3.1' fill='%23FFFDF6'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 260px 260px, 340px 340px;
  background-position: 0 0, 130px 90px;
}
/* luces cálidas detrás de productos y de la esquina */
.products, .find { position: relative; isolation: isolate; }
.products::before, .find::before {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  top: 0; bottom: 0; left: 50%; width: 100vw; translate: -50% 0;
}
.products::before {
  background:
    radial-gradient(42% 38% at 88% 18%, rgba(217, 174, 102, .1), transparent 70%),
    radial-gradient(36% 30% at 6% 78%, rgba(255, 253, 246, .45), transparent 70%);
}
.find::before {
  background:
    radial-gradient(40% 46% at 10% 30%, rgba(217, 174, 102, .09), transparent 70%),
    radial-gradient(34% 34% at 92% 86%, rgba(255, 253, 246, .4), transparent 70%);
}
/* verdes: el mismo motivo, casi invisible */
.footer, .story, .contact__arch {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cg opacity='0.035'%3E%3Cg transform='translate%28118.6 144.3%29 rotate%2825%29'%3E%3Cellipse rx='2.6' ry='5.4' fill='%23D9AE66'/%3E%3Cellipse cx='-.8' rx='1.2' ry='4.2' fill='%23F4EDD7'/%3E%3C/g%3E%3Cellipse transform='translate%28231.8 121.8%29 rotate%286%29' rx='1.6' ry='2.8' fill='%23F4EDD7'/%3E%3Ccircle cx='54.3' cy='132.9' r='1.9' fill='%23D9AE66'/%3E%3Ccircle cx='161.2' cy='200.3' r='3.9' fill='%23F4EDD7'/%3E%3Cg transform='translate%2832.6 82.8%29 rotate%284%29'%3E%3Cellipse rx='2.6' ry='5.4' fill='%23D9AE66'/%3E%3Cellipse cx='-.8' rx='1.2' ry='4.2' fill='%23F4EDD7'/%3E%3C/g%3E%3Cellipse transform='translate%2831.8 204.3%29 rotate%28115%29' rx='1.6' ry='2.8' fill='%23F4EDD7'/%3E%3Ccircle cx='176.4' cy='20.1' r='1.8' fill='%23D9AE66'/%3E%3Ccircle cx='245.7' cy='241.5' r='4.0' fill='%23F4EDD7'/%3E%3Cg transform='translate%2847.8 13.6%29 rotate%2814%29'%3E%3Cellipse rx='2.6' ry='5.4' fill='%23D9AE66'/%3E%3Cellipse cx='-.8' rx='1.2' ry='4.2' fill='%23F4EDD7'/%3E%3C/g%3E%3Cellipse transform='translate%28115.7 212.2%29 rotate%2898%29' rx='1.6' ry='2.8' fill='%23F4EDD7'/%3E%3Ccircle cx='119.8' cy='76.8' r='1.9' fill='%23D9AE66'/%3E%3Ccircle cx='211.7' cy='179.9' r='3.6' fill='%23F4EDD7'/%3E%3Cg transform='translate%28196.8 74.7%29 rotate%28143%29'%3E%3Cellipse rx='2.6' ry='5.4' fill='%23D9AE66'/%3E%3Cellipse cx='-.8' rx='1.2' ry='4.2' fill='%23F4EDD7'/%3E%3C/g%3E%3Cellipse transform='translate%2869.9 55.6%29 rotate%28165%29' rx='1.6' ry='2.8' fill='%23F4EDD7'/%3E%3Ccircle cx='117.0' cy='24.5' r='1.7' fill='%23D9AE66'/%3E%3Ccircle cx='175.9' cy='150.3' r='3.8' fill='%23F4EDD7'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 260px 260px;
}
.footer { background-image: radial-gradient(60% 120% at 50% 0%, rgba(217, 174, 102, .08), transparent 70%), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cg opacity='0.035'%3E%3Cg transform='translate%28118.6 144.3%29 rotate%2825%29'%3E%3Cellipse rx='2.6' ry='5.4' fill='%23D9AE66'/%3E%3Cellipse cx='-.8' rx='1.2' ry='4.2' fill='%23F4EDD7'/%3E%3C/g%3E%3Cellipse transform='translate%28231.8 121.8%29 rotate%286%29' rx='1.6' ry='2.8' fill='%23F4EDD7'/%3E%3Ccircle cx='54.3' cy='132.9' r='1.9' fill='%23D9AE66'/%3E%3Ccircle cx='161.2' cy='200.3' r='3.9' fill='%23F4EDD7'/%3E%3Cg transform='translate%2832.6 82.8%29 rotate%284%29'%3E%3Cellipse rx='2.6' ry='5.4' fill='%23D9AE66'/%3E%3Cellipse cx='-.8' rx='1.2' ry='4.2' fill='%23F4EDD7'/%3E%3C/g%3E%3Cellipse transform='translate%2831.8 204.3%29 rotate%28115%29' rx='1.6' ry='2.8' fill='%23F4EDD7'/%3E%3Ccircle cx='176.4' cy='20.1' r='1.8' fill='%23D9AE66'/%3E%3Ccircle cx='245.7' cy='241.5' r='4.0' fill='%23F4EDD7'/%3E%3Cg transform='translate%2847.8 13.6%29 rotate%2814%29'%3E%3Cellipse rx='2.6' ry='5.4' fill='%23D9AE66'/%3E%3Cellipse cx='-.8' rx='1.2' ry='4.2' fill='%23F4EDD7'/%3E%3C/g%3E%3Cellipse transform='translate%28115.7 212.2%29 rotate%2898%29' rx='1.6' ry='2.8' fill='%23F4EDD7'/%3E%3Ccircle cx='119.8' cy='76.8' r='1.9' fill='%23D9AE66'/%3E%3Ccircle cx='211.7' cy='179.9' r='3.6' fill='%23F4EDD7'/%3E%3Cg transform='translate%28196.8 74.7%29 rotate%28143%29'%3E%3Cellipse rx='2.6' ry='5.4' fill='%23D9AE66'/%3E%3Cellipse cx='-.8' rx='1.2' ry='4.2' fill='%23F4EDD7'/%3E%3C/g%3E%3Cellipse transform='translate%2869.9 55.6%29 rotate%28165%29' rx='1.6' ry='2.8' fill='%23F4EDD7'/%3E%3Ccircle cx='117.0' cy='24.5' r='1.7' fill='%23D9AE66'/%3E%3Ccircle cx='175.9' cy='150.3' r='3.8' fill='%23F4EDD7'/%3E%3C/g%3E%3C/svg%3E"); background-size: auto, 260px 260px; }
