/* ==========================================================
   Monsie · Café de Origen — v2
   ========================================================== */
/* Fuentes autoalojadas (Google Fonts, subconjunto latin) */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/cormorant-garamond-italic-fe99e3.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/cormorant-garamond-italic-fe99e3.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/cormorant-garamond-normal-e99b45.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/cormorant-garamond-normal-e99b45.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/cormorant-garamond-normal-e99b45.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(/fonts/montserrat-normal-2f5adf.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/montserrat-normal-2f5adf.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/montserrat-normal-2f5adf.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/montserrat-normal-2f5adf.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --green-950: #04150f;
  --green-900: #061f1a;
  --green-800: #0a2d26;
  --green-700: #0c3730;
  --green-600: #124a40;
  --gold-200: #f3e3bf;
  --gold-300: #ead3a2;
  --gold-400: #d9b77c;
  --gold-500: #c49a5c;
  --gold-600: #a57d43;
  --cream: #f5eee2;
  --cream-2: #ebe1cf;
  --ink: #1d1a15;
  --ink-2: #5e554a;
  --muted: rgba(245, 238, 226, 0.66);
  --faint: rgba(245, 238, 226, 0.42);
  --line: rgba(217, 183, 124, 0.2);
  --line-strong: rgba(217, 183, 124, 0.42);
  --co-yellow: #fcd116;
  --co-blue: #003893;
  --co-red: #ce1126;

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Montserrat", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --gutter: clamp(20px, 4.5vw, 72px);
  --radius: 18px;
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; touch-action: manipulation; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  color: var(--cream);
  background-color: var(--green-800);
  background-image:
    radial-gradient(1100px 760px at 72% 38%, rgba(196, 154, 92, 0.13), transparent 62%),
    radial-gradient(900px 700px at 8% 100%, rgba(18, 74, 64, 0.85), transparent 70%),
    linear-gradient(180deg, var(--green-700), var(--green-900) 85%);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
p { margin: 0 0 1em; }
em { font-style: italic; color: var(--gold-400); }
button { font: inherit; color: inherit; }
::selection { background: var(--gold-500); color: var(--green-900); }
:focus-visible { outline: 1px solid var(--gold-400); outline-offset: 4px; border-radius: 4px; }

/* ---------- Capas ---------- */
.stage { position: relative; }
.stage__canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; display: block;
  opacity: 0; transition: opacity 1s var(--ease);
}
.stage__canvas.is-ready { opacity: 1; }
main, .footer { position: relative; z-index: 2; }
.section--solid { background: var(--green-800); position: relative; z-index: 3; }
.section--cream { background: var(--cream); color: var(--ink); position: relative; z-index: 3; }

.grain {
  position: fixed; inset: -50%;
  z-index: 70; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
@media (max-width: 899px) { .grain { display: none; } }

.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-600), var(--gold-300)); transform-origin: left; transform: scaleX(0); }

/* ---------- Cursor ---------- */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 80;
  width: 10px; height: 10px; margin: -5px 0 0 -5px;
  border-radius: 50%; background: var(--gold-300);
  pointer-events: none; opacity: 0;
  transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), background .35s, opacity .3s;
}
.cursor.is-active { opacity: 1; }
.cursor.is-hover { width: 56px; height: 56px; margin: -28px 0 0 -28px; background: rgba(217, 183, 124, .18); border: 1px solid var(--gold-400); backdrop-filter: blur(2px); }
@media (hover: none) { .cursor { display: none; } }

/* ---------- Animación de entrada (sin JS, instantánea) ---------- */
@keyframes inUp { from { transform: translateY(110%); } to { transform: none; } }
@keyframes inFade { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.in-up { animation: inUp 1.2s var(--ease) both; animation-delay: var(--d, 0s); }
.in { animation: inFade 1.1s var(--ease) both; animation-delay: var(--d, 0s); }

/* ---------- Tipografía ---------- */
.label {
  font-size: 11px; font-weight: 600;
  letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold-400);
  margin: 0 0 26px;
  display: inline-flex; align-items: center; gap: 14px;
}
.label > span {
  display: inline-grid; place-items: center;
  min-width: 34px; height: 22px; padding: 0 8px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: 10px; letter-spacing: .12em;
}
.label.center { display: flex; justify-content: center; }
.section--cream .label { color: var(--gold-600); }
.section--cream .label > span { border-color: rgba(165, 125, 67, .4); }

.eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold-400); margin: 0 0 28px;
  display: inline-flex; align-items: center; gap: 12px;
}

.h2 {
  font-family: var(--serif);
  font-size: clamp(44px, 6vw, 96px);
  line-height: .95; letter-spacing: -.015em;
  margin-bottom: 28px; font-weight: 500;
}
.h2--xl { font-size: clamp(52px, 8vw, 132px); }
.section--cream .h2 em { color: var(--gold-600); }
.body { color: var(--muted); font-weight: 300; font-size: clamp(15px, 1.1vw, 17px); max-width: 540px; line-height: 1.75; }
.section--cream .body { color: var(--ink-2); }

.flag {
  display: inline-block; width: 20px; height: 13px; border-radius: 2px; flex: none;
  background: linear-gradient(180deg, var(--co-yellow) 0 50%, var(--co-blue) 50% 75%, var(--co-red) 75%);
  box-shadow: 0 0 0 1px rgba(255,255,255,.12);
  vertical-align: -2px;
}

/* ---------- Botones ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 17px 30px;
  border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  transition: color .45s var(--ease), box-shadow .45s var(--ease), border-color .45s;
  isolation: isolate; white-space: nowrap; cursor: pointer; border: 0;
}
.btn::before {
  content: ""; position: absolute; inset: -1px; z-index: -1;
  background: var(--cream); border-radius: inherit;
  transform: translateY(102%); transition: transform .6s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn > * { position: relative; }
.btn--gold {
  background: linear-gradient(120deg, var(--gold-200), var(--gold-400) 40%, var(--gold-500) 70%, var(--gold-600));
  color: var(--green-900);
  box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 16px 40px -14px rgba(196, 154, 92, .75);
}
.btn--gold:hover { box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 22px 50px -12px rgba(196, 154, 92, .9); }
.btn--line { border: 1px solid var(--line-strong); color: var(--cream); background: transparent; }
.btn--line:hover { color: var(--green-900); border-color: var(--cream); }
.btn--sm { padding: 12px 20px; font-size: 10.5px; }
.btn--lg { padding: 21px 38px; font-size: 13px; }
.btn--block { width: 100%; }
.btn .ico { width: 20px; height: 20px; flex: none; }
.btn__arrow { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.magnetic { will-change: transform; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--nav-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  padding: 0 var(--gutter);
  transition: background .5s, backdrop-filter .5s, transform .7s var(--ease), border-color .5s, height .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  height: 64px;
  background: rgba(4, 21, 15, .88);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-color: var(--line);
}
.nav.is-hidden { transform: translateY(-105%); }
.nav__brand { display: flex; align-items: center; gap: 12px; justify-self: start; }
.nav__brand img { width: 40px; height: 40px; border-radius: 50%; }
.nav__brand span { font-family: var(--serif); font-size: 30px; font-weight: 500; color: var(--gold-400); letter-spacing: .01em; line-height: 1; margin-top: -4px; }
.nav__links { display: flex; gap: clamp(16px, 2.2vw, 36px); }
.nav__links a {
  position: relative; font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
  padding: 8px 0; transition: color .3s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%;
  background: var(--gold-400); transform: scale(0); transition: transform .5s var(--ease);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--cream); }
.nav__links a.is-active::after { transform: scale(1); }
.nav__cta { justify-self: end; }
.nav__burger {
  display: none; gap: 6px; width: 46px; height: 46px; place-content: center; justify-self: end;
  background: rgba(4, 21, 15, .35); border: 1px solid var(--line-strong); border-radius: 50%;
  cursor: pointer; padding: 0; position: relative; z-index: 2;
  transition: background .4s, border-color .4s;
}
.nav__burger span { display: block; width: 18px; height: 1.5px; background: var(--gold-300); border-radius: 2px; transition: transform .5s var(--ease), width .5s var(--ease); }
.nav__burger span:last-child { width: 12px; justify-self: end; }
.nav__burger:hover span:last-child { width: 18px; }
.menu-open .nav__burger { background: var(--gold-400); border-color: var(--gold-400); }
.menu-open .nav__burger span { background: var(--green-900); width: 18px; }
.menu-open .nav__burger span:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-open .nav__burger span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
.menu-open .nav { background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; transform: none; }

.menu {
  position: fixed; inset: 0; z-index: 48;
  background: radial-gradient(120% 80% at 100% 0%, #124a40, transparent 70%), var(--green-950);
  visibility: hidden; opacity: 0;
  transition: opacity .5s var(--ease), visibility 0s linear .5s;
  overflow-y: auto; overscroll-behavior: contain;
}
.menu-open .menu { visibility: visible; opacity: 1; transition: opacity .5s var(--ease), visibility 0s; }
.menu__inner {
  min-height: 100%; display: flex; flex-direction: column;
  padding: calc(var(--nav-h) + 28px) var(--gutter) calc(28px + env(safe-area-inset-bottom));
}
.menu__label { font-size: 10px; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: var(--gold-500); margin: 0 0 14px; }
.menu__links { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.menu__links a {
  display: grid; grid-template-columns: 34px 1fr auto; align-items: baseline;
  padding: 16px 0; border-bottom: 1px solid var(--line);
  font-family: var(--serif); font-size: clamp(30px, 8.5vw, 44px); line-height: 1.1; color: var(--cream);
  opacity: 0; transform: translateY(18px);
  transition: opacity .5s var(--ease), transform .6s var(--ease), color .3s;
}
.menu__links a span { font-family: var(--sans); font-size: 10px; letter-spacing: .16em; color: var(--gold-500); align-self: center; }
.menu__links a i { font-style: normal; font-family: var(--sans); font-size: 16px; color: var(--gold-400); opacity: .5; transition: transform .4s var(--ease), opacity .3s; }
.menu__links a:hover, .menu__links a:active { color: var(--gold-300); }
.menu__links a:hover i { transform: translateX(4px); opacity: 1; }
.menu-open .menu__links a { opacity: 1; transform: none; }
.menu-open .menu__links a:nth-child(1) { transition-delay: .06s; }
.menu-open .menu__links a:nth-child(2) { transition-delay: .1s; }
.menu-open .menu__links a:nth-child(3) { transition-delay: .14s; }
.menu-open .menu__links a:nth-child(4) { transition-delay: .18s; }
.menu-open .menu__links a:nth-child(5) { transition-delay: .22s; }
.menu-open .menu__links a:nth-child(6) { transition-delay: .26s; }
.menu__foot { margin-top: auto; padding-top: 36px; display: grid; gap: 18px; opacity: 0; transition: opacity .6s var(--ease) .3s; }
.menu-open .menu__foot { opacity: 1; }
.menu__tag { margin: 0; display: flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--gold-300); }
.menu-open, .menu-open body { overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  padding: calc(var(--nav-h) + 24px) var(--gutter) 140px;
  display: grid; align-items: center;
}
.hero__content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "eyebrow stage" "title stage" "lead stage" "ctas stage";
  grid-template-rows: auto auto auto 1fr;
  column-gap: 40px;
  align-content: center;
}
.hero__content > .eyebrow { grid-area: eyebrow; align-self: end; }
.hero__title { grid-area: title; }
.hero__lead { grid-area: lead; }
.hero__ctas { grid-area: ctas; }
.hero__stage { grid-area: stage; height: min(70vh, 720px); min-height: 420px; }

.hero__title {
  font-family: var(--serif);
  font-size: clamp(58px, 8.6vw, 148px);
  line-height: .88; letter-spacing: -.025em; font-weight: 500;
  margin-bottom: 34px;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .07em; }
.hero__title .line > span { display: inline-block; }
.hero__title em {
  background: linear-gradient(100deg, var(--gold-300), var(--gold-500) 40%, var(--gold-200) 60%, var(--gold-600));
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 8s ease-in-out infinite;
  padding-right: .1em;
}
@keyframes shine { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.hero__lead { font-size: clamp(15px, 1.15vw, 18px); color: var(--muted); max-width: 450px; margin-bottom: 40px; font-weight: 300; line-height: 1.75; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; align-self: start; }

.hero__meta {
  position: absolute; top: 50%; z-index: 2;
  display: flex; align-items: center; gap: 16px;
  font-size: 10px; letter-spacing: .32em; text-transform: uppercase; color: var(--faint);
  writing-mode: vertical-rl; transform: translateY(-50%) rotate(180deg);
}
.hero__meta--left { left: calc(var(--gutter) / 2 - 7px); }
.hero__meta-line { width: 1px; height: 70px; background: var(--line-strong); }

.hero__specs {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 40px;
  display: grid; grid-template-columns: repeat(4, auto) 1fr; gap: clamp(24px, 4.5vw, 72px);
  list-style: none; margin: 0; padding: 24px 0 0;
  border-top: 1px solid var(--line);
  z-index: 2;
}
.hero__specs li { display: grid; gap: 6px; }
.hero__specs span { font-size: 10px; letter-spacing: .28em; text-transform: uppercase; color: var(--faint); }
.hero__specs strong { font-family: var(--serif); font-size: clamp(20px, 1.9vw, 28px); font-weight: 500; color: var(--gold-200); line-height: 1; }

.hero__scroll {
  position: absolute; right: var(--gutter); bottom: 44px; z-index: 2;
  display: flex; align-items: center; gap: 14px;
  font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--faint);
}
.hero__scroll i { position: relative; width: 1px; height: 46px; background: var(--line); overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; left: 0; top: -50%; width: 1px; height: 50%; background: var(--gold-300); animation: drip 2s var(--ease-in-out) infinite; }
@keyframes drip { to { top: 100%; } }

/* ---------- Marquee ---------- */
.marquee {
  position: relative; z-index: 3;
  overflow: hidden;
  background: var(--green-950);
  border-block: 1px solid var(--line);
  padding: 26px 0;
}
.marquee__track { display: flex; width: max-content; gap: 40px; align-items: center; animation: marquee 40s linear infinite; }
.marquee span { font-family: var(--serif); font-size: clamp(30px, 3.6vw, 54px); font-weight: 500; white-space: nowrap; color: var(--gold-300); line-height: 1; }
.marquee span.o { font-style: italic; color: transparent; -webkit-text-stroke: 1px var(--gold-500); }
.marquee i { font-style: normal; font-size: 16px; color: var(--gold-500); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Manifiesto ---------- */
.manifesto { padding: clamp(100px, 12vw, 180px) var(--gutter) clamp(70px, 8vw, 120px); text-align: center; }
.manifesto__text {
  font-family: var(--serif);
  font-size: clamp(30px, 4.3vw, 68px);
  line-height: 1.14; max-width: 1200px; margin: 0 auto 60px;
  font-weight: 400; letter-spacing: -.01em;
}
.js .manifesto__text .w { opacity: .14; }
.manifesto__sign { display: inline-flex; align-items: center; gap: 14px; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-400); }
.manifesto__sign img { width: 44px; height: 44px; }

/* ---------- Origen ---------- */
.origin {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 120px);
  align-items: center;
  padding: clamp(60px, 7vw, 110px) var(--gutter) clamp(80px, 9vw, 140px);
}
.origin__media { position: relative; }
.origin__img { margin: 0 auto; width: min(100%, 62vh, 560px); border-radius: 400px 400px var(--radius) var(--radius); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: 0 60px 120px -50px rgba(0,0,0,.8); }
.origin__img img, .parallax-wrap img { width: 100%; height: 118%; object-fit: cover; will-change: transform; }
.origin__ring {
  position: absolute; right: -36px; bottom: 64px;
  width: 150px; height: 150px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--green-900);
  box-shadow: 0 24px 60px rgba(0,0,0,.5), 0 0 0 1px var(--line);
}
.origin__ring svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spinSlow 22s linear infinite; }
.origin__ring text { font-family: var(--sans); font-size: 11.5px; font-weight: 600; letter-spacing: 3.2px; fill: var(--gold-400); }
.origin__ring img { width: 64px; height: 64px; }
@keyframes spinSlow { to { transform: rotate(360deg); } }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 50px; padding-top: 36px; border-top: 1px solid var(--line); }
.stat strong { display: flex; align-items: flex-start; font-family: var(--serif); font-size: clamp(40px, 4.2vw, 64px); font-weight: 500; color: var(--gold-200); line-height: 1; margin-bottom: 10px; }
.stat sup { font-size: .42em; margin: .2em 0 0 .12em; color: var(--gold-400); }
.stat > span { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--faint); line-height: 1.6; display: block; }

/* ---------- Ficha ---------- */
.spec {
  position: relative;
  min-height: 115vh;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px;
  align-items: center;
  padding: 120px var(--gutter);
}
.spec__stage { height: min(78vh, 760px); min-height: 460px; }
.spec__card { max-width: 600px; }
.tag {
  margin-top: 34px;
  background: #0a1512;
  border: 1px solid rgba(239, 230, 212, .14);
  border-radius: 14px;
  padding: clamp(24px, 3vw, 38px);
  box-shadow: 0 50px 100px -40px rgba(0,0,0,.9), 0 0 0 6px rgba(10,21,18,.4);
  position: relative;
}
.tag::before { content: ""; position: absolute; inset: 8px; border: 1px dashed rgba(239,230,212,.12); border-radius: 9px; pointer-events: none; }
.tag__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid rgba(239,230,212,.2); flex-wrap: wrap; }
.tag__title { font-family: var(--serif); font-style: italic; font-size: clamp(26px, 2.4vw, 34px); color: #efe6d4; }
.tag__roast { font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: #efe6d4; display: inline-flex; gap: 10px; align-items: center; }
.roast { display: inline-flex; gap: 5px; }
.roast i { width: 9px; height: 9px; border-radius: 50%; border: 1px solid #efe6d4; }
.roast i.on { background: #efe6d4; }
.tag__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; margin: 0; }
.tag__grid > div { padding: 16px 0; border-bottom: 1px solid rgba(239,230,212,.14); }
.tag dt { font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: rgba(239,230,212,.5); margin-bottom: 6px; }
.tag dd { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #efe6d4; }
.tag__notes { padding-top: 18px; }
.tag__notes ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 6px 0 0; }
.tag__notes li { font-family: var(--serif); font-style: italic; font-size: 19px; padding: 4px 16px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--gold-300); }

/* ---------- Proceso ---------- */
.process { overflow: hidden; }
.process__pin { height: 100vh; height: 100svh; display: grid; grid-template-rows: auto 1fr auto; padding: calc(var(--nav-h) + 24px) 0 44px; gap: 20px; }
.process__head { padding: 0 var(--gutter); display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.process__head .h2 { margin-bottom: 0; }
.process__count { font-family: var(--serif); font-size: 22px; color: var(--faint); margin: 0; }
.process__count span { color: var(--gold-300); font-size: 40px; }
.process__track { display: flex; gap: 22px; padding: 0 var(--gutter); align-items: stretch; align-self: center; will-change: transform; width: max-content; }
.step {
  width: clamp(290px, 28vw, 410px);
  min-height: clamp(360px, 50vh, 500px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px;
  background: linear-gradient(165deg, rgba(18,74,64,.55), rgba(4,21,15,.55));
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
  transition: border-color .5s, background .5s;
}
.step::after {
  content: ""; position: absolute; inset: auto -30% -60% -30%; height: 80%;
  background: radial-gradient(closest-side, rgba(217,183,124,.16), transparent);
  opacity: 0; transition: opacity .6s;
}
.step:hover { border-color: var(--line-strong); }
.step:hover::after { opacity: 1; }
.step__n { font-family: var(--serif); font-size: 120px; line-height: .8; color: transparent; -webkit-text-stroke: 1px rgba(217,183,124,.32); position: absolute; right: 22px; top: 24px; }
.step__icon { width: 58px; height: 58px; fill: none; stroke: var(--gold-400); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; margin-bottom: auto; }
.step h3 { font-family: var(--serif); font-size: clamp(30px, 2.6vw, 40px); margin: 70px 0 12px; color: var(--cream); line-height: 1.05; }
.step p { color: var(--muted); font-weight: 300; font-size: 15px; margin: 0; line-height: 1.7; }
.process__progress { margin: 0 var(--gutter); height: 1px; background: var(--line); overflow: hidden; }
.process__progress span { display: block; height: 100%; width: 100%; background: var(--gold-300); transform: scaleX(0); transform-origin: left; }

/* ---------- Section head ---------- */
.section-head { display: grid; grid-template-columns: 1.2fr 1fr; align-items: end; gap: 40px; margin-bottom: clamp(50px, 7vw, 90px); }
.section-head .h2 { margin-bottom: 0; }
.section-head .body { margin: 0; justify-self: end; }

/* ---------- Molienda ---------- */
.grind { padding: clamp(100px, 12vw, 180px) var(--gutter); background: radial-gradient(1200px 600px at 50% 0%, #fbf6ec, var(--cream) 60%); }
.grind__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.8vw, 28px); }
.grind__card { position: relative; display: flex; flex-direction: column; }
.grind__img {
  position: relative; aspect-ratio: 1 / .82;
  display: grid; place-items: center;
  border-radius: var(--radius);
  background: radial-gradient(circle at 50% 42%, #fffaf1, var(--cream-2) 75%);
  border: 1px solid rgba(165, 125, 67, .14);
  overflow: hidden;
  transition: background .6s, border-color .6s;
}
.grind__img img { width: 100%; height: auto; transition: transform 1.1s var(--ease); filter: drop-shadow(0 18px 18px rgba(60, 35, 15, .14)); }
.grind__card:hover .grind__img { border-color: rgba(165, 125, 67, .35); }
.grind__card:hover .grind__img img { transform: translateY(-10px) scale(1.06); }
.grind__info { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "n title" "n desc" "n scale"; column-gap: 16px; padding: 22px 4px 0; }
.grind__n { grid-area: n; font-family: var(--serif); font-size: 15px; color: var(--gold-600); padding-top: 9px; }
.grind__info h3 { grid-area: title; font-family: var(--serif); font-size: clamp(28px, 2.4vw, 36px); color: var(--green-700); line-height: 1.1; }
.grind__info p { grid-area: desc; margin: 4px 0 14px; font-size: 13px; color: var(--ink-2); }
.grind__scale { grid-area: scale; display: flex; gap: 5px; }
.grind__scale i { width: 22px; height: 3px; border-radius: 2px; background: rgba(165, 125, 67, .22); }
.grind__scale i.on { background: var(--gold-600); }

/* ---------- Preparación ---------- */
.brew { padding: clamp(100px, 12vw, 180px) var(--gutter); }
.brew__wrap { display: grid; grid-template-columns: minmax(240px, .8fr) 2fr; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: linear-gradient(160deg, rgba(18,74,64,.4), rgba(4,21,15,.6)); }
.brew__tabs { display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.brew__tabs button {
  text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line);
  padding: 30px 32px; cursor: pointer;
  font-family: var(--serif); font-size: clamp(22px, 2vw, 30px); color: var(--faint);
  display: flex; gap: 16px; align-items: baseline;
  transition: color .4s, background .4s;
  position: relative;
}
.brew__tabs button:last-child { border-bottom: 0; }
.brew__tabs button span { font-family: var(--sans); font-size: 11px; letter-spacing: .2em; color: var(--gold-600); }
.brew__tabs button::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--gold-400); transform: scaleY(0); transition: transform .5s var(--ease); }
.brew__tabs button:hover { color: var(--cream); }
.brew__tabs button.is-active { color: var(--cream); background: rgba(217,183,124,.06); }
.brew__tabs button.is-active::before { transform: scaleY(1); }
.brew__panels { padding: clamp(30px, 4vw, 56px); position: relative; }
.brew__panel { animation: inFade .7s var(--ease) both; }
.brew__stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 40px; }
.brew__stats > div { background: var(--green-900); padding: 22px 18px; display: grid; gap: 8px; }
.brew__stats span { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--faint); }
.brew__stats strong { font-family: var(--serif); font-size: clamp(24px, 2.2vw, 34px); font-weight: 500; color: var(--gold-200); line-height: 1; }
.brew__steps { list-style: none; padding: 0; margin: 0; counter-reset: s; display: grid; gap: 18px; }
.brew__steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: baseline; color: var(--muted); font-weight: 300; font-size: 16px; }
.brew__steps li::before { content: "0" counter(s); font-family: var(--serif); font-size: 22px; color: var(--gold-400); }

/* ---------- Tienda ---------- */
.shop { padding: clamp(40px, 5vw, 80px) var(--gutter) clamp(100px, 12vw, 180px); }
.shop__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 2.4vw, 34px); }
.product {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(180deg, rgba(18,74,64,.4), rgba(4,21,15,.75));
  display: flex; flex-direction: column;
  transition: border-color .5s;
}
.product:hover { border-color: var(--line-strong); }
.product__img { position: relative; aspect-ratio: 16 / 11; overflow: hidden; }
.product__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.product:hover .product__img img { transform: scale(1.05); }
.product__tag {
  position: absolute; left: 18px; top: 18px;
  background: rgba(4,21,15,.75); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line); color: var(--gold-300);
  font-size: 10px; letter-spacing: .22em; text-transform: uppercase; padding: 8px 14px; border-radius: 999px;
}
.product__body { padding: clamp(24px, 2.6vw, 38px); display: flex; flex-direction: column; gap: 4px; flex: 1; }
.product__title { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.product__title h3 { font-family: var(--serif); font-size: clamp(30px, 2.6vw, 42px); line-height: 1.05; }
.product__size { font-family: var(--serif); font-size: clamp(26px, 2.2vw, 34px); font-style: italic; color: var(--gold-300); }
.product__body > p { color: var(--muted); font-weight: 300; margin: 10px 0 24px; }
.picker { border: 0; padding: 0; margin: 0 0 26px; display: flex; flex-wrap: wrap; gap: 8px; }
.picker legend { font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--faint); margin-bottom: 12px; padding: 0; }
.picker label { cursor: pointer; }
.picker input { position: absolute; opacity: 0; pointer-events: none; }
.picker span {
  display: inline-block; font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  border: 1px solid var(--line); padding: 10px 16px; border-radius: 999px; color: var(--muted);
  transition: all .35s var(--ease);
}
.picker label:hover span { border-color: var(--line-strong); color: var(--cream); }
.picker input:checked + span { background: var(--gold-400); border-color: var(--gold-400); color: var(--green-900); }
.picker input:focus-visible + span { outline: 1px solid var(--gold-300); outline-offset: 3px; }
.product .btn { margin-top: auto; }

/* ---------- CTA ---------- */
.showcase { position: relative; z-index: 3; min-height: 100vh; display: grid; place-items: center; overflow: hidden; text-align: center; padding: 140px var(--gutter); background: var(--green-950); }
.showcase__bg { position: absolute; inset: 0; }
.showcase__bg img { filter: saturate(1.05) brightness(.6); }
.showcase__bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(4,21,15,.5), rgba(4,21,15,.96) 72%); }
.showcase__content { position: relative; max-width: 940px; display: grid; justify-items: center; }
.showcase__content .body { margin: 0 auto 44px; font-size: 18px; }

/* ---------- Footer ---------- */
.footer { background: var(--green-950); border-top: 1px solid var(--line); padding: 80px var(--gutter) 30px; z-index: 3; overflow: hidden; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer__logo { width: 84px; height: 84px; margin-bottom: 18px; }
.footer__tag { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--gold-300); margin: 0; }
.footer__col { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.footer__col h4 { font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-500); font-weight: 600; margin-bottom: 8px; }
.footer__col a, .footer__col > span { font-size: 14px; color: var(--muted); transition: color .3s; display: inline-flex; align-items: center; gap: 10px; }
.footer__col a:hover { color: var(--gold-300); }
.footer__word {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(120px, 27vw, 460px); line-height: .78; letter-spacing: -.04em;
  text-align: center; margin: 10px 0 -0.06em;
  background: linear-gradient(180deg, rgba(217,183,124,.32), rgba(217,183,124,.02) 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  user-select: none;
}
.footer__bottom { padding-right: 70px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line); font-size: 12px; letter-spacing: .08em; color: var(--faint); }
.footer__bottom p { margin: 0; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 45;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366; color: #fff;
  box-shadow: 0 14px 34px -8px rgba(37, 211, 102, .55);
  transition: transform .6s var(--ease);
  transform: scale(0);
}
.wa-float.is-in { transform: scale(1); }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: pulse 2.6s var(--ease) infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.7); opacity: 0; } }

/* ---------- Reveal (mejora progresiva) ---------- */
.js .reveal { opacity: 0; transform: translateY(36px); }
.split .word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .word > span { display: inline-block; }
.js .clip-reveal { opacity: 0; transform: translateY(30px) scale(.97); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav { grid-template-columns: auto 1fr auto; }
  .nav__links { justify-self: center; gap: 18px; }
  .nav__links a { letter-spacing: .14em; }
  .grind__grid { grid-template-columns: repeat(2, 1fr); row-gap: 50px; }
  .brew__stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  :root { --nav-h: 64px; }
  .nav { grid-template-columns: 1fr auto; }
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: grid; }

  .hero { padding-top: calc(var(--nav-h) + 26px); padding-bottom: 40px; align-items: start; min-height: 0; }
  .hero__content { grid-template-columns: 1fr; grid-template-areas: "eyebrow" "title" "stage" "lead" "ctas"; grid-template-rows: none; }
  .hero__content > .eyebrow { margin-bottom: 20px; }
  .hero__title { font-size: clamp(54px, 15.5vw, 100px); margin-bottom: 0; }
  .hero__stage { height: 80vw; min-height: 300px; max-height: 460px; margin: 6px 0 12px; }
  .hero__lead { margin-bottom: 28px; }
  .hero__ctas .btn { flex: 1 1 auto; }
  .hero__meta, .hero__scroll { display: none; }
  .hero__specs { position: static; margin-top: 44px; grid-template-columns: 1fr 1fr; gap: 22px; }

  .marquee { padding: 18px 0; }
  .origin { grid-template-columns: 1fr; }
  .origin__img { width: 100%; }
  .origin__ring { right: 8px; bottom: 30px; width: 120px; height: 120px; }
  .origin__ring img { width: 50px; height: 50px; }
  .origin__ring text { font-size: 12.5px; }

  .spec { grid-template-columns: 1fr; min-height: auto; padding-top: 40px; gap: 0; }
  .spec__stage { height: 92vw; min-height: 0; max-height: 540px; }

  .section-head { grid-template-columns: 1fr; gap: 20px; }
  .section-head .body { justify-self: start; }
  .process__count { display: none; }

  .brew__wrap { grid-template-columns: 1fr; }
  .brew__tabs { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); scrollbar-width: none; }
  .brew__tabs button { border-bottom: 0; border-right: 1px solid var(--line); padding: 20px 22px; font-size: 20px; white-space: nowrap; flex: 1 0 auto; }
  .brew__tabs button::before { top: auto; right: 0; height: 2px; width: auto; transform: scaleX(0); }
  .brew__tabs button.is-active::before { transform: scaleX(1); }

  .shop__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > .footer__col:first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .hero__ctas { flex-direction: column; }
  .hero__ctas .btn { width: 100%; }
  .stats { grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
  .stat strong { font-size: 34px; }
  .stat > span { font-size: 9px; letter-spacing: .14em; }
  .grind__grid { grid-template-columns: 1fr 1fr; gap: 14px; row-gap: 34px; }
  .grind__info { grid-template-columns: 1fr; grid-template-areas: "n" "title" "desc" "scale"; padding-top: 14px; }
  .grind__n { padding: 0 0 4px; font-size: 13px; }
  .grind__info h3 { font-size: 24px; }
  .grind__info p { font-size: 12px; }
  .step { width: 80vw; padding: 30px 26px; }
  .step h3 { margin-top: 50px; }
  .brew__stats { grid-template-columns: 1fr 1fr; }
  .brew__stats > div:first-child { grid-column: 1 / -1; }
  .tag__grid { gap: 0 16px; }
  .tag dd { font-size: 13px; }
  .wa-float { right: 16px; bottom: 16px; width: 54px; height: 54px; }
  .footer__word { margin-top: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .clip-reveal { opacity: 1; transform: none; }
  .js .manifesto__text .w { opacity: 1 !important; }
}
