/* =============================================================
   Musgo — Café de especialidad
   Hoja de estilos única, ordenada por secciones.
   Paleta cálida: beige, marrones de café y verde bosque.
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  /* Paleta */
  --espresso: #221A15;
  --espresso-2: #2E231C;
  --roast: #3B2A20;
  --coffee: #6B4A34;
  --coffee-dark: #4E3526;
  --caramel: #C08B5C;
  --caramel-light: #D9AE80;
  --latte: #D8C3AD;
  --sand: #E6D6C4;
  --beige: #F3E8DC;
  --beige-2: #EBDDCD;
  --milk: #FBF6F0;
  --forest: #1F4332;
  --forest-2: #163024;
  --moss: #4D6B55;
  --sage: #AFC3AE;
  --sage-pale: #DCE6DA;

  /* Tema claro (por defecto) */
  --fg: var(--espresso);
  --fg-2: #5A4537;
  --fg-3: #6F5A4B;
  --line: rgba(34, 26, 21, .14);
  --line-2: rgba(34, 26, 21, .26);
  --em: var(--coffee);
  --eyebrow: var(--forest);
  --focus: var(--forest);

  /* Botones (tema claro) */
  --btn-bg: var(--forest);
  --btn-fg: var(--beige);
  --btn-fill: var(--coffee);
  --btn-arrow-bg: var(--beige);
  --btn-arrow-fg: var(--forest);

  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --max: 1380px;
  --nav-h: 72px;
  --radius: clamp(20px, 2.4vw, 32px);
  --sheet: clamp(28px, 4vw, 56px);
}

/* Tema oscuro: superficies marrón espresso y verde bosque */
.splash, .today, .portal-copy, .marquee, .stack-card, .visit, .footer {
  --fg: var(--beige);
  --fg-2: #DDCFBF;
  --fg-3: #BFAE9C;
  --line: rgba(243, 232, 220, .13);
  --line-2: rgba(243, 232, 220, .26);
  --em: var(--caramel-light);
  --eyebrow: var(--sage);
  --focus: var(--sage);
  --btn-bg: var(--beige);
  --btn-fg: var(--espresso);
  --btn-fill: var(--sage);
  --btn-arrow-bg: var(--espresso);
  --btn-arrow-fg: var(--beige);
}
.splash, .marquee, .footer, .stack-card--green { --em: var(--sage); }

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  overflow-x: clip;
}
body {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--fg);
  background: var(--beige);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { font-weight: 400; text-wrap: balance; }
em { font-style: italic; }
[hidden] { display: none !important; }
::selection { background: var(--forest); color: var(--beige); }
.visit ::selection, .footer ::selection, .stack-card ::selection, .portal-copy ::selection { background: var(--sage); color: var(--espresso); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.menu-open body { overflow: hidden; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 200;
  padding: .7rem 1.1rem; border-radius: 10px;
  background: var(--forest); color: var(--beige); font-weight: 500;
  transition: top .3s var(--ease-out);
}
.skip-link:focus { top: 1rem; }
.icon {
  width: 1em; height: 1em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}

/* =============================================================
   4. Typography
   ============================================================= */
.eyebrow {
  display: inline-flex; align-items: center; gap: .75rem;
  font-family: var(--mono); font-size: .72rem; font-weight: 400;
  letter-spacing: .16em; text-transform: uppercase; line-height: 1.4;
  color: var(--eyebrow);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; flex: none; }
.h2 {
  font-family: var(--serif);
  font-size: clamp(2.7rem, 6.2vw, 5.8rem);
  line-height: .94;
  letter-spacing: -.015em;
  color: var(--fg);
}
.h2 em { color: var(--em); }
.lead { font-size: clamp(1.05rem, 1.3vw, 1.2rem); color: var(--fg-2); max-width: 46ch; line-height: 1.6; }
.label {
  font-family: var(--mono); font-size: .7rem; font-weight: 400;
  letter-spacing: .14em; text-transform: uppercase; color: var(--eyebrow);
}

/* =============================================================
   5. Components
   ============================================================= */

/* --- Buttons --- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .9rem;
  height: 56px; padding: 0 .5rem 0 1.6rem; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-size: .95rem; font-weight: 500; letter-spacing: -.005em; white-space: nowrap;
  transition: transform .6s var(--ease-out), color .4s var(--ease-out), border-color .4s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--btn-fill); transform: translateY(101%);
  transition: transform .65s var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn-label { position: relative; display: inline-block; overflow: hidden; line-height: 1.35; }
.btn-label > span { display: inline-block; transition: transform .6s var(--ease-out); }
.btn-label > span + span { position: absolute; left: 0; top: 100%; }
.btn:hover .btn-label > span, .btn:focus-visible .btn-label > span { transform: translateY(-100%); }
.btn-arrow {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--btn-arrow-bg); color: var(--btn-arrow-fg); font-size: 1.05rem;
  transition: transform .6s var(--ease-out);
}
.btn:hover .btn-arrow { transform: rotate(-45deg); }
.btn-ghost {
  --btn-bg: transparent; --btn-fg: var(--fg); --btn-fill: rgba(34, 26, 21, .07);
  border: 1px solid var(--line-2); padding: 0 1.6rem;
}
.btn-ghost:hover { border-color: var(--fg); }
.btn-sm { height: 42px; padding: 0 1.15rem; font-size: .86rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .45rem; width: fit-content;
  font-size: .92rem; color: var(--fg-2);
  border-bottom: 1px solid var(--line-2); padding-bottom: 3px;
  transition: color .3s, border-color .3s;
}
.link-arrow:hover { color: var(--fg); border-color: var(--fg); }
.link-arrow .icon { transition: transform .45s var(--ease-out); }
.link-arrow:hover .icon { transform: translate(2px, -2px); }

/* --- Status dot ("Abierto ahora") --- */
.status-dot {
  position: relative; display: inline-block; flex: none;
  width: 7px; height: 7px; border-radius: 50%; background: var(--fg-3);
}
.status-dot.is-open { background: #3FA866; animation: pulse 2.6s infinite; }
.status-dot.is-closed { background: var(--caramel); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(63, 168, 102, .5); }
  70% { box-shadow: 0 0 0 8px rgba(63, 168, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(63, 168, 102, 0); }
}

/* --- Image placeholders (se reemplazan por fotos reales) --- */
.ph {
  --a: #8C6A50; --b: #4A3527;
  position: relative; display: block; width: 100%; height: 100%; overflow: hidden;
  color: rgba(243, 232, 220, .74);
  background:
    repeating-linear-gradient(-45deg, rgba(243, 232, 220, .05) 0 1px, transparent 1px 12px),
    radial-gradient(120% 100% at 25% 15%, var(--a) 0%, var(--b) 78%);
}
.ph::before {
  content: ""; position: absolute; inset: 14px; pointer-events: none; opacity: .55;
  background:
    linear-gradient(currentColor, currentColor) top left / 14px 1px no-repeat,
    linear-gradient(currentColor, currentColor) top left / 1px 14px no-repeat,
    linear-gradient(currentColor, currentColor) top right / 14px 1px no-repeat,
    linear-gradient(currentColor, currentColor) top right / 1px 14px no-repeat,
    linear-gradient(currentColor, currentColor) bottom left / 14px 1px no-repeat,
    linear-gradient(currentColor, currentColor) bottom left / 1px 14px no-repeat,
    linear-gradient(currentColor, currentColor) bottom right / 14px 1px no-repeat,
    linear-gradient(currentColor, currentColor) bottom right / 1px 14px no-repeat;
}
.ph-icon { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; opacity: .45; stroke-width: 1.2; }
.ph-label {
  position: absolute; left: 24px; right: 24px; bottom: 22px; z-index: 1;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .6rem;
  font-family: var(--mono); font-size: .64rem; letter-spacing: .12em; line-height: 1.5;
  text-transform: uppercase; color: inherit;
}
.ph-label b { font-weight: 500; opacity: 1; filter: brightness(1.15); }
.ph--green { --a: #4C7560; --b: #1D3A2B; }
.ph--roast { --a: #5C4535; --b: #241A14; }
.ph--latte { --a: #E3D0BB; --b: #B8997D; color: rgba(34, 26, 21, .66); }
.ph--mini::before { display: none; }
/* Cuando se pone una foto real dentro de un contenedor */
.arch-inner > img, .portal-media > img, .stack-media > img, .pill > img, .avatar > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  background: var(--roast);
}

/* --- Splash --- */
.splash { display: none; }
.js .splash {
  position: fixed; inset: 0; z-index: 150;
  display: grid; place-items: center;
  background: var(--forest); color: var(--fg);
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.1s var(--ease-io);
  animation: splashSafety .01s 4.5s forwards;
}
.js .splash.is-out { clip-path: inset(0 0 100% 0); pointer-events: none; }
@keyframes splashSafety { to { clip-path: inset(0 0 100% 0); visibility: hidden; pointer-events: none; } }
.splash-inner { display: grid; justify-items: center; gap: 1rem; }
.splash-mark { width: 54px; height: 54px; color: var(--sage); stroke-width: 1.4; }
.splash-mark path { stroke-dasharray: 100; stroke-dashoffset: 100; animation: draw 1.3s var(--ease-out) forwards; }
.splash-mark path:nth-child(2) { animation-delay: .35s; }
.splash-mark path:nth-child(3) { animation-delay: .5s; }
.splash-mark path:nth-child(4) { animation-delay: .6s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.splash-word { font-family: var(--serif); font-size: clamp(3rem, 8vw, 5.5rem); line-height: 1; letter-spacing: -.02em; }
.splash-meta {
  display: flex; gap: 1.5rem;
  font-family: var(--mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-3);
}
.splash-bar { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 2.5rem; height: 1px; background: var(--line); }
.splash-bar i { display: block; height: 100%; background: var(--sage); transform-origin: left; transform: scaleX(0); }

/* Carga corta cuando se llega desde otra página del sitio */
.splash.is-quick .splash-meta, .splash.is-quick .splash-bar { opacity: 0; }
.splash.is-quick .splash-mark path { animation: none; stroke-dashoffset: 0; }

/* --- Transición entre páginas (cortina) --- */
.pt { display: none; }
.js .pt {
  position: fixed; inset: 0; z-index: 160;
  display: grid; place-items: center;
  background: var(--forest); color: var(--beige);
  clip-path: inset(100% 0 0 0);            /* escondida abajo */
  pointer-events: none;
}
.js .pt.is-covered { clip-path: inset(0 0 0 0); animation: ptSafety .01s 2.5s forwards; }
.js .pt.is-covering { clip-path: inset(0 0 0 0); pointer-events: auto; transition: clip-path .72s var(--ease-io); }
.js .pt.is-revealing { clip-path: inset(0 0 100% 0); transition: clip-path 1s var(--ease-io); }
@keyframes ptSafety { to { clip-path: inset(0 0 100% 0); visibility: hidden; } }
.pt-inner { display: grid; justify-items: center; gap: .9rem; opacity: 0; transform: translateY(18px); }
.pt-mark { width: 48px; height: 48px; color: var(--sage); fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.pt-word { font-family: var(--serif); font-size: clamp(2.6rem, 7vw, 4.6rem); line-height: 1; letter-spacing: -.02em; }
.pt.is-covered .pt-inner { opacity: 1; transform: none; }
.pt.is-covering .pt-inner { opacity: 1; transform: none; transition: opacity .45s var(--ease-out) .28s, transform .7s var(--ease-out) .22s; }
.pt.is-revealing .pt-inner { opacity: 0; transform: translateY(-22px); transition: opacity .35s var(--ease-out), transform .6s var(--ease-out); }
/* La página que se va se achica apenas mientras la cortina sube */
.pt-leaving main, .pt-leaving footer { transform: translateY(-2.5vh); opacity: .6; transition: transform .72s var(--ease-io), opacity .72s var(--ease-io); }

/* --- Cursor & grain --- */
.cursor { position: fixed; top: 0; left: 0; z-index: 140; pointer-events: none; opacity: 0; transition: opacity .3s; mix-blend-mode: difference; }
.cursor.is-ready { opacity: 1; }
.cursor-pos { position: absolute; top: 0; left: 0; will-change: transform; }
.cursor-ring {
  position: absolute; top: -20px; left: -20px; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid #F3E8DC; background: rgba(243, 232, 220, 0);
  transition: transform .5s var(--ease-out), background .35s var(--ease-out);
}
.cursor.is-hover .cursor-ring { transform: scale(1.6); background: rgba(243, 232, 220, 1); }
.cursor.is-text .cursor-ring { transform: scale(.35); background: rgba(243, 232, 220, 1); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

.grain {
  position: fixed; inset: -100px; z-index: 130; pointer-events: none; opacity: .08;
  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 .13 0 0 0 0 .1 0 0 0 0 .08 0 0 0 .7 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  animation: grain 1.2s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-40px, 25px); }
  50% { transform: translate(30px, -45px); }
  75% { transform: translate(-25px, -15px); }
  100% { transform: translate(0, 0); }
}

/* --- Navigation --- */
.nav { position: fixed; inset: 0 0 auto; z-index: 60; height: var(--nav-h); color: var(--fg); transition: transform .7s var(--ease-out); }
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(243, 232, 220, .96); border-bottom: 1px solid var(--line);
  opacity: 0; transition: opacity .5s var(--ease-out);
}
@supports ((backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px))) {
  .nav::before { background: rgba(243, 232, 220, .78); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); }
}
.nav.is-scrolled::before, .menu-open .nav::before { opacity: 1; }
.nav.is-hidden { transform: translateY(-100%); }
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-inline: var(--gutter); }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--serif); font-size: 1.7rem; line-height: 1; letter-spacing: -.01em; }
.brand-mark { width: 30px; height: 30px; color: var(--forest); stroke-width: 1.7; }
.nav-links { display: none; gap: 2.2rem; font-size: .92rem; }
.nav-links a { position: relative; padding-block: .3rem; color: var(--fg-2); transition: color .3s; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-out);
}
.nav-links a:hover { color: var(--fg); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-right { display: flex; align-items: center; gap: 1.1rem; }
.status {
  display: none; align-items: center; gap: .55rem;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-2);
}
.nav-cta { display: none; }
.burger {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2);
  display: grid; place-content: center; gap: 6px;
}
.burger span:not(.sr-only) { display: block; width: 18px; height: 1.5px; background: var(--fg); transition: transform .5s var(--ease-out); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }
.no-js .burger { display: none; }

/* --- Mobile menu --- */
.menu {
  position: fixed; inset: 0; z-index: 55;
  display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
  padding: calc(var(--nav-h) + 2.5rem) var(--gutter) 2rem;
  background: var(--beige-2); color: var(--fg);
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .8s var(--ease-io), visibility 0s linear .8s;
}
.menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .8s var(--ease-io), visibility 0s; }
.menu-links { display: grid; gap: .3rem; }
.menu-links a {
  display: flex; align-items: baseline; gap: 1rem;
  font-family: var(--serif); font-size: clamp(2.6rem, 11vw, 4.6rem); line-height: 1.08;
  opacity: 0; transform: translateY(40px);
  transition: transform .8s var(--ease-out), opacity .8s var(--ease-out);
}
.menu-links a span { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; color: var(--forest); }
.menu.is-open .menu-links a { opacity: 1; transform: none; transition-delay: calc(.25s + var(--i) * .07s); }
.menu-foot { display: grid; gap: .35rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: .92rem; color: var(--fg-2); }

/* =============================================================
   6. Sections
   ============================================================= */

/* --- HERO --- */
.hero {
  position: relative; overflow: clip;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
  padding-top: calc(var(--nav-h) + clamp(1.5rem, 4vh, 3rem));
  background:
    radial-gradient(60% 55% at 92% 6%, rgba(216, 195, 173, .8) 0%, transparent 65%),
    radial-gradient(50% 50% at 0% 100%, rgba(175, 195, 174, .38) 0%, transparent 70%),
    var(--beige);
}
.hero-beam {
  position: absolute; top: -30%; right: 6%; width: 38vw; height: 160%; pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 252, 247, .55) 45%, rgba(255, 252, 247, .18) 62%, transparent 100%);
  transform: rotate(22deg); filter: blur(26px);
  animation: beam 16s var(--ease-soft) infinite alternate;
}
.hero-beam--2 { right: 34%; width: 12vw; opacity: .7; animation-duration: 23s; animation-delay: -7s; }
@keyframes beam { from { opacity: .55; translate: 0 0; } to { opacity: 1; translate: -4vw 0; } }
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(520px circle at var(--mx, 72%) var(--my, 30%), rgba(255, 251, 245, .55), transparent 65%);
}
.hero-grid { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; gap: 3rem; padding-bottom: 3.5rem; }
.hero-copy { display: flex; flex-direction: column; gap: clamp(1.5rem, 3.4vh, 2.5rem); }
.hero-title {
  font-family: var(--serif);
  font-size: clamp(3.9rem, min(9.6vw, 15vh), 9.8rem);
  line-height: .88; letter-spacing: -.025em;
}
.hero-title .line { display: block; overflow: hidden; padding: .03em .1em .1em 0; margin-bottom: -.07em; }
.hero-title .line-in { display: inline-block; }
.hero-title .line--indent { padding-left: .55em; }
.hero-title em { color: var(--em); }
.pill {
  position: relative; display: inline-block; overflow: hidden;
  width: 1.45em; height: .72em; border-radius: 999px;
  margin-right: .14em; vertical-align: .05em;
  box-shadow: inset 0 0 0 1px rgba(34, 26, 21, .12);
  transition: width .9s var(--ease-out);
}
.pill:hover { width: 2em; }
.pill .ph { position: absolute; inset: 0; }
.hero-foot { display: flex; flex-direction: column; gap: 1.6rem; }
.hero-sub { max-width: 42ch; color: var(--fg-2); font-size: clamp(1rem, 1.2vw, 1.12rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.hero-aside { position: relative; width: 100%; max-width: 440px; align-self: center; margin-top: .5rem; }
/* Marco fino desplazado arriba a la derecha (detalle editorial a propósito) */
.hero-aside::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  border: 1px solid var(--line-2); border-radius: 50% 50% 0 0 / 40% 40% 0 0;
  transform: translate(14px, -14px);
}
.arch {
  --ar: 4 / 5; --ry: 40%;
  position: relative; overflow: hidden; isolation: isolate;
  aspect-ratio: var(--ar);
  border-radius: 50% 50% 0 0 / var(--ry) var(--ry) 0 0;
  background: var(--latte);
  box-shadow: 0 40px 80px -40px rgba(34, 26, 21, .45);
}
.arch-inner { position: absolute; inset: -12% 0; will-change: transform; }
.arch .ph-label { left: 16%; right: 16%; top: auto; bottom: calc(50% + 34px); justify-content: center; text-align: center; }
.badge {
  position: absolute; left: -18px; top: 38%; z-index: 2;
  width: 124px; height: 124px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--forest); color: var(--sage);
  box-shadow: 0 20px 50px -14px rgba(31, 67, 50, .55);
}
.badge-text {
  position: absolute; inset: 0; width: 100%; height: 100%;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase;
  fill: var(--beige); animation: spin 28s linear infinite;
}
.badge-icon { width: 30px; height: 30px; stroke-width: 1.4; }
@keyframes spin { to { transform: rotate(360deg); } }
.today {
  position: absolute; right: -10px; bottom: -26px; z-index: 2;
  width: min(250px, 74%);
  display: grid; gap: .35rem; padding: 1rem 1.15rem 1.05rem;
  border-radius: 18px; border: 1px solid rgba(243, 232, 220, .12);
  background: rgba(34, 26, 21, .95); color: var(--fg);
  box-shadow: 0 30px 60px -16px rgba(34, 26, 21, .5);
}
@supports ((backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px))) {
  .today { background: rgba(34, 26, 21, .82); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); }
}
.today-label { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sage); }
.today-label i { width: 6px; height: 6px; border-radius: 50%; background: var(--caramel); }
.today-title { font-family: var(--serif); font-weight: 400; font-size: 1.45rem; line-height: 1.1; }
.today-notes { display: flex; flex-wrap: wrap; gap: .3rem; }
.today-notes span { font-size: .72rem; padding: .18rem .55rem; border-radius: 999px; border: 1px solid var(--line-2); color: var(--fg-2); }
.today-method { font-family: var(--mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); margin-top: .15rem; }

.hero-meta { position: relative; z-index: 1; display: none; border-top: 1px solid var(--line); }
.hero-meta-inner {
  display: flex; justify-content: space-between; align-items: center; padding-block: 1.1rem;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3);
}
.cue { display: inline-flex; align-items: center; gap: .8rem; }
.cue-line { position: relative; width: 44px; height: 1px; overflow: hidden; background: var(--line-2); }
.cue-line::after { content: ""; position: absolute; inset: 0; background: var(--forest); animation: cue 2.6s var(--ease-io) infinite; }
@keyframes cue { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }

/* Hero intro (solo cuando el JS está activo) */
.js .hero [data-intro] {
  opacity: 0; transform: translateY(26px);
  transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms + 200ms);
}
.js .hero .line-in {
  transform: translateY(112%);
  transition: transform 1.35s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 100ms + 120ms);
}
/* El recorte deja margen alrededor para que no se corte la sombra del arco */
.js .hero .arch { opacity: 1; transform: none; clip-path: inset(100% -80px 0 -80px); transition: clip-path 1.6s var(--ease-io) .3s; }
.js .hero .arch-inner > * { transform: scale(1.3); transition: transform 2.2s var(--ease-out) .3s; }
.js.is-loaded .hero [data-intro] { opacity: 1; transform: none; }
.js.is-loaded .hero .line-in { transform: none; }
.js.is-loaded .hero .arch { clip-path: inset(-80px -80px -120px -80px); }
.js.is-loaded .hero .arch-inner > * { transform: none; }
/* Red de seguridad: si algo falla, todo aparece igual a los 5 s */
.js .hero [data-intro], .js .hero .line-in, .js .hero .arch-inner > * { animation: introSafety 0s 5s forwards; }
.js .hero .arch { animation: archSafety 0s 5s forwards; }
/* Sin recorte (clip-path) acá: si no, se cortan las sombras del sello y de la tarjeta */
@keyframes introSafety { to { opacity: 1; transform: none; } }
@keyframes archSafety { to { opacity: 1; transform: none; clip-path: inset(-80px -80px -120px -80px); } }

/* --- PORTAL (el arco que se abre) --- */
.portal { position: relative; background: var(--beige); }
.portal-sticky { position: relative; height: 100vh; height: 100svh; overflow: clip; }
.portal-window {
  position: absolute; inset: 0; overflow: hidden;
  clip-path: inset(var(--py, 0px) var(--px, 0px) var(--py, 0px) var(--px, 0px) round var(--pr, 0px) var(--pr, 0px) 0px 0px);
}
.portal-media { position: absolute; inset: 0; will-change: transform; }
.portal-media .ph { position: absolute; inset: 0; }
.ph--full .ph-label { right: auto; max-width: 30rem; }
.portal-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(34, 26, 21, .5) 0%, rgba(34, 26, 21, .72) 55%, rgba(34, 26, 21, .88) 100%);
}
.portal-copy {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.6rem;
  padding: var(--nav-h) var(--gutter) 3rem; text-align: center; color: var(--fg);
}
.manifesto { font-family: var(--serif); font-size: clamp(2rem, 4.4vw, 4.3rem); line-height: 1.07; letter-spacing: -.01em; max-width: 21ch; }
.manifesto em { color: var(--em); }
.manifesto-sign { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-2); }
.portal-words { display: none; }

.portal.is-live { height: 290vh; }
.portal.is-live .portal-sticky { position: sticky; top: 0; }
.portal.is-live .portal-window { --px: 32vw; --py: 13vh; --pr: 18vw; }
.portal.is-live .portal-shade { opacity: .15; }
.portal.is-live .portal-copy { opacity: 0; }
.portal.is-live .portal-words {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  display: flex; align-items: center; justify-content: space-between;
  padding-inline: 3vw;
  font-family: var(--serif); font-size: clamp(2.4rem, 6vw, 7.2rem); line-height: 1; letter-spacing: -.02em;
  color: var(--fg);
}
.pw { display: block; will-change: transform, opacity; white-space: nowrap; }
.pw em { color: var(--em); }

/* --- MARQUEE --- */
.marquee { position: relative; z-index: 1; overflow: clip; background: var(--forest); color: var(--fg); padding-block: 1.35rem; }
.marquee-track { display: flex; width: max-content; animation: marquee 50s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; gap: 2rem; padding-right: 2rem; }
.marquee li { font-family: var(--serif); font-size: clamp(1.8rem, 3.4vw, 3rem); line-height: 1.1; white-space: nowrap; }
.marquee li em { color: var(--em); }
.marquee .m-sep { font-size: 1.4rem; color: var(--caramel-light); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* --- BENEFITS --- */
.benefits {
  position: relative; background: var(--beige-2);
  padding-block: clamp(6rem, 12vw, 10rem) calc(clamp(5rem, 10vw, 8rem) + var(--sheet));
}
.benefits::before {
  content: ""; position: absolute; top: 0; left: -10%; width: 70%; height: 50%; pointer-events: none;
  background: radial-gradient(50% 50% at 30% 30%, rgba(255, 251, 245, .7), transparent 70%); filter: blur(40px);
}
.benefits-head { position: relative; display: grid; gap: 1.5rem; margin-bottom: clamp(3rem, 7vw, 6rem); }
.stack { position: relative; display: grid; gap: 1.25rem; }
.stack-card {
  --tone: var(--forest);
  position: relative; display: grid; gap: 1.5rem;
  padding: clamp(1.25rem, 2.6vw, 2.5rem);
  border-radius: var(--radius); background: var(--tone); color: var(--fg);
  border: 1px solid rgba(243, 232, 220, .07);
  box-shadow: 0 -20px 50px -24px rgba(34, 26, 21, .5);
  transform-origin: 50% 0;
}
.stack-card--blend { background: linear-gradient(135deg, var(--forest) 0%, var(--roast) 100%); }
.stack-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(80% 60% at 0% 0%, rgba(243, 232, 220, .08), transparent 60%);
}
.stack-card::after {
  content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none;
  background: #120D0A; opacity: var(--dim, 0);
}
.stack-copy { position: relative; display: flex; flex-direction: column; gap: 2rem; }
.stack-top { display: flex; justify-content: space-between; align-items: center; }
.stack-num { font-family: var(--mono); font-size: .8rem; letter-spacing: .1em; color: var(--eyebrow); }
.stack-num span { color: var(--fg-3); }
.stack-icon {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--line-2); color: var(--eyebrow); font-size: 1.4rem;
}
.stack-title { font-family: var(--serif); font-size: clamp(2.2rem, 3.8vw, 3.6rem); line-height: .98; letter-spacing: -.01em; margin-bottom: 1rem; }
.stack-title em { color: var(--em); }
.stack-body p { color: var(--fg-2); max-width: 46ch; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: auto; padding-top: 1.3rem; border-top: 1px solid var(--line); }
.facts dt { font-family: var(--serif); font-size: clamp(2.1rem, 3.3vw, 3.2rem); line-height: 1; letter-spacing: -.01em; margin-bottom: .45rem; white-space: nowrap; }
.facts dd { font-size: .85rem; line-height: 1.45; color: var(--fg-3); max-width: 24ch; }
.stack-media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; border-radius: calc(var(--radius) - 8px); }
.stack-media .ph { position: absolute; inset: 0; transition: transform 1.2s var(--ease-out); }
.stack-media > img { transition: transform 1.2s var(--ease-out); }
.stack-card:hover .stack-media .ph, .stack-card:hover .stack-media > img { transform: scale(1.04); }

/* --- REVIEWS --- */
.reviews {
  position: relative; z-index: 1;
  margin-top: calc(var(--sheet) * -1);
  border-radius: var(--sheet) var(--sheet) 0 0;
  background: var(--milk); color: var(--fg);
  box-shadow: 0 -30px 60px -40px rgba(34, 26, 21, .3);
  padding-block: clamp(5.5rem, 10vw, 9rem) calc(clamp(5rem, 9vw, 8rem) + var(--sheet));
}
.reviews-grid { display: grid; gap: 3.5rem; }
.reviews-head { display: grid; gap: 2rem; align-content: start; }
.score { display: flex; align-items: center; gap: 1.4rem; padding-top: 1.75rem; border-top: 1px solid var(--line); }
.score-num { font-family: var(--serif); font-size: clamp(4.4rem, 7vw, 6.2rem); line-height: .8; letter-spacing: -.03em; }
.score-meta {
  display: grid; gap: .5rem;
  font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; line-height: 1.55; text-transform: uppercase; color: var(--fg-2);
}
.stars { display: flex; gap: 3px; color: var(--caramel); font-size: 1rem; }
.stars .icon { fill: currentColor; stroke: none; }
.faces { display: flex; align-items: center; gap: 1rem; font-size: .93rem; color: var(--fg-2); max-width: 40ch; }
.faces-stack { display: flex; flex: none; }
.faces-stack > * {
  width: 40px; height: 40px; border-radius: 50%; margin-left: -10px;
  border: 2px solid var(--milk);
}
.faces-stack > *:first-child { margin-left: 0; }
.faces-stack .ph, .faces-stack img { display: block; object-fit: cover; }
.faces-more {
  display: grid; place-items: center; background: var(--forest); color: var(--beige);
  font-family: var(--mono); font-size: .6rem; letter-spacing: .02em;
}
.reviews-stage { position: relative; padding-top: clamp(3.5rem, 6vw, 5rem); touch-action: pan-y; }
.quote-mark {
  position: absolute; top: -.2em; left: -.08em; pointer-events: none; user-select: none;
  font-family: var(--serif); font-size: clamp(10rem, 20vw, 18rem); line-height: 1; color: rgba(107, 74, 52, .14);
}
.reviews-slides { position: relative; display: grid; gap: 3.5rem; }
.review { display: grid; gap: 2rem; align-content: start; }
.review-quote p { font-family: var(--serif); font-size: clamp(1.7rem, 2.8vw, 2.7rem); line-height: 1.14; letter-spacing: -.01em; }
.review-by { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.avatar {
  position: relative; display: grid; place-items: center; flex: none;
  width: 56px; height: 56px; border-radius: 50%; overflow: hidden;
}
.avatar > span { position: relative; font-family: var(--serif); font-size: 1.25rem; color: var(--beige); }
.ph--latte.avatar > span { color: var(--espresso); }
.review-who { display: grid; line-height: 1.4; }
.review-who strong { font-weight: 500; }
.review-who span { font-size: .9rem; color: var(--fg-2); }
.review-src {
  margin-left: auto; padding: .4rem .8rem; border-radius: 999px; border: 1px solid var(--line);
  font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--forest);
}
.reviews-ui { display: none; }
.is-enhanced .reviews-ui { display: flex; align-items: center; gap: 1.25rem; margin-top: 2.75rem; }
.is-enhanced .reviews-slides { gap: 0; }
.is-enhanced .review { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .55s var(--ease-out), visibility 0s .55s; }
.is-enhanced .review.is-active { opacity: 1; visibility: visible; transition: opacity .6s var(--ease-out) .12s, visibility 0s; }
.is-enhanced .review .review-quote p { transform: translateY(18px); filter: blur(6px); transition: transform .9s var(--ease-out), filter .9s var(--ease-out); }
.is-enhanced .review.is-active .review-quote p { transform: none; filter: blur(0); transition-delay: .12s; }
.is-enhanced .review .review-by { opacity: 0; transform: translateY(10px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.is-enhanced .review.is-active .review-by { opacity: 1; transform: none; transition-delay: .32s; }
.reviews-count { font-family: var(--mono); font-size: .78rem; letter-spacing: .1em; color: var(--fg-2); white-space: nowrap; }
.reviews-progress { flex: 1; height: 1px; overflow: hidden; background: var(--line); }
.reviews-progress i { display: block; height: 100%; background: var(--forest); transform-origin: left; transform: scaleX(0); }
.reviews-btns { display: flex; gap: .5rem; }
.round-btn {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--line-2); color: var(--fg); font-size: 1.1rem;
  transition: background .35s, color .35s, border-color .35s;
}
.round-btn:hover { background: var(--forest); color: var(--beige); border-color: var(--forest); }
.round-btn--prev .icon { transform: scaleX(-1); }

/* --- VISIT / CONTACT --- */
.visit {
  position: relative; z-index: 2;
  margin-top: calc(var(--sheet) * -1);
  border-radius: var(--sheet) var(--sheet) 0 0;
  padding-block: clamp(6rem, 11vw, 9.5rem);
  color: var(--fg);
  background:
    radial-gradient(60% 45% at 100% 0%, rgba(31, 67, 50, .6), transparent 70%),
    radial-gradient(55% 55% at 0% 100%, rgba(192, 139, 92, .16), transparent 70%),
    var(--espresso);
}
.visit-head { display: grid; gap: 1.5rem; margin-bottom: clamp(3rem, 6vw, 5rem); }
.visit-grid { display: grid; gap: 3rem; }
.info { display: grid; gap: 2.25rem; align-content: start; }
.info-row { display: grid; gap: 2.25rem; }
.info-block { display: grid; gap: .75rem; align-content: start; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.info-big { font-family: var(--serif); font-size: clamp(1.75rem, 2.4vw, 2.2rem); line-height: 1.1; }
.contact-links { display: grid; gap: .35rem; font-size: 1.02rem; }
.contact-links a { width: fit-content; transition: color .3s; }
.contact-links a:hover { color: var(--em); }
.hours li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding-block: .6rem; border-bottom: 1px dashed var(--line);
  font-size: .96rem; color: var(--fg-2);
}
.hours li.is-today { color: var(--fg); }
.hours li.is-today span:first-child::after {
  content: "Hoy"; margin-left: .6rem; padding: .15rem .5rem; border-radius: 999px; vertical-align: .15em;
  font-family: var(--mono); font-size: .6rem; letter-spacing: .12em; text-transform: uppercase;
  background: var(--sage); color: var(--espresso);
}
.open-now { display: inline-flex; align-items: center; gap: .6rem; margin-top: .35rem; font-size: .9rem; color: var(--fg-2); }
.map {
  position: relative; overflow: hidden; aspect-ratio: 16 / 10;
  border-radius: 22px; border: 1px solid var(--line); background: var(--espresso-2);
  color: rgba(243, 232, 220, .7);
}
.map-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-pin { position: absolute; left: 54%; top: 50%; display: grid; justify-items: center; gap: .5rem; transform: translate(-50%, -100%); }
.map-pin-tag {
  padding: .35rem .7rem; border-radius: 999px; white-space: nowrap;
  font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase;
  background: var(--beige); color: var(--espresso);
}
.map-pin-dot { position: relative; width: 14px; height: 14px; border-radius: 50%; background: var(--caramel); }
.map-pin-dot::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--caramel);
  animation: ping 2.6s var(--ease-out) infinite;
}
@keyframes ping { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.4); opacity: 0; } }
.map .ph-label { left: 18px; bottom: 16px; }

/* Form */
.form-card {
  position: relative; padding: clamp(1.5rem, 3vw, 2.75rem);
  border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(243, 232, 220, .065), rgba(243, 232, 220, .025));
}
.form-head { display: grid; gap: .6rem; margin-bottom: 2rem; }
.form-title { font-family: var(--serif); font-size: clamp(2.3rem, 3.4vw, 3rem); line-height: 1; }
.form-head p { max-width: 44ch; font-size: .95rem; color: var(--fg-2); }
.chips { border: 0; display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.chips legend { margin-bottom: .9rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex; align-items: center; height: 40px; padding: 0 1rem; border-radius: 999px;
  border: 1px solid var(--line-2); font-size: .88rem; color: var(--fg-2); cursor: pointer;
  transition: background .3s, color .3s, border-color .3s;
}
.chip span:hover { border-color: var(--fg-2); color: var(--fg); }
.chip input:checked + span { background: var(--beige); border-color: var(--beige); color: var(--espresso); }
.chip input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 3px; }
.field { position: relative; margin-top: .35rem; }
.field-control { position: relative; }
.field input, .field select, .field textarea {
  display: block; width: 100%;
  padding: 1.6rem 0 .6rem; border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0;
  background: transparent; color: var(--fg); font-size: 1.02rem; outline: none;
  -webkit-appearance: none; appearance: none;
  transition: border-color .3s;
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; }
.field textarea { min-height: 6.5rem; resize: vertical; line-height: 1.5; }
.field label {
  position: absolute; left: 0; top: 1.55rem; pointer-events: none; transform-origin: 0 0;
  font-size: 1rem; color: var(--fg-3);
  transition: transform .45s var(--ease-out), color .3s;
}
.field input:focus ~ label, .field input:not(:placeholder-shown) ~ label,
.field textarea:focus ~ label, .field textarea:not(:placeholder-shown) ~ label,
.field--static label { transform: translateY(-1.2rem) scale(.76); color: var(--eyebrow); }
.field-line {
  position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--eyebrow);
  transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out);
}
.field-control:focus-within .field-line { transform: scaleX(1); }
.field select {
  cursor: pointer; padding-right: 1.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23AFC3AE' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 2px bottom .8rem; background-size: 16px;
}
.field select option { background: var(--espresso-2); color: var(--beige); }
.field input[type="date"] { color-scheme: dark; min-height: 3.6rem; }
.field-row { display: grid; gap: 0 1.5rem; }
.field-error { display: none; margin-top: .45rem; font-size: .8rem; color: #F2A48F; }
.field.is-invalid .field-error { display: block; }
.field.is-invalid input { border-bottom-color: #F2A48F; }
.form-foot { display: grid; gap: 1rem; margin-top: 2rem; }
.btn-submit { width: 100%; height: 60px; justify-content: space-between; padding: 0 .5rem 0 1.6rem; }
.is-sending .btn-submit { pointer-events: none; }
.is-sending .btn-arrow .icon { display: none; }
.is-sending .btn-arrow::after {
  content: ""; width: 16px; height: 16px; border-radius: 50%;
  border: 1.5px solid currentColor; border-top-color: transparent;
  animation: spin .8s linear infinite;
}
.form-legal { font-size: .78rem; color: var(--fg-3); }
.form-success { display: grid; justify-items: start; gap: 1.1rem; padding-block: 2rem 1rem; }
.success-check { width: 76px; height: 76px; color: var(--sage); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.success-check use { stroke-dasharray: 100; stroke-dashoffset: 100; animation: draw 1.2s var(--ease-out) .1s forwards; }
.success-title { font-family: var(--serif); font-size: clamp(2.3rem, 3.6vw, 3.2rem); line-height: 1; outline: none; }
.form-success p { color: var(--fg-2); max-width: 40ch; }

/* --- FOOTER --- */
.footer { position: relative; overflow: clip; background: var(--forest-2); color: var(--fg); padding-top: clamp(5rem, 9vw, 8rem); }
.footer-top { display: grid; gap: 3.5rem; padding-bottom: clamp(3rem, 6vw, 5rem); }
.footer-cta { display: grid; gap: 1.8rem; align-content: start; justify-items: start; }
.footer-cta .h2 { font-size: clamp(2.6rem, 5vw, 4.6rem); }
.footer-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem 2rem; }
.footer-col { display: grid; gap: .55rem; align-content: start; font-size: .95rem; color: var(--fg-2); }
.footer-col .label { margin-bottom: .3rem; }
.footer-col a { width: fit-content; transition: color .3s; }
.footer-col a:hover { color: var(--sage); }
.newsletter { grid-column: 1 / -1; display: grid; gap: .7rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.newsletter p { font-size: .95rem; color: var(--fg-2); }
.newsletter-row { display: flex; align-items: center; gap: 1rem; border-bottom: 1px solid var(--line-2); transition: border-color .3s; }
.newsletter-row:focus-within { border-color: var(--sage); }
.newsletter input { flex: 1; min-width: 0; padding: .95rem 0; border: 0; background: transparent; color: var(--fg); font-size: 1rem; outline: none; }
.newsletter input::placeholder { color: var(--fg-3); }
.newsletter button {
  display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%;
  background: var(--beige); color: var(--forest-2); font-size: 1rem;
  transition: transform .5s var(--ease-out), background .3s;
}
.newsletter button:hover { transform: rotate(-45deg); background: var(--sage); }
.newsletter-msg { min-height: 1.4em; font-size: .85rem; color: var(--sage) !important; }
.newsletter-msg.is-error { color: #F2A48F !important; }
.footer-bottom {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem;
  padding-block: 1.5rem; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3);
}
.footer-bottom a:hover { color: var(--fg); }
.footer-bottom a { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.footer-word {
  display: flex; justify-content: center;
  margin-top: clamp(1rem, 3vw, 2.5rem); margin-bottom: -.2em;
  font-family: var(--serif); font-size: 30vw; line-height: .9; letter-spacing: -.045em;
  user-select: none; pointer-events: none;
}
.fw {
  display: inline-block; padding-inline: .01em;
  background: linear-gradient(180deg, rgba(217, 174, 128, .55) 0%, rgba(175, 195, 174, .06) 74%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* =============================================================
   7. Effects (scroll reveals, split text)
   ============================================================= */
.reveals-on [data-reveal] {
  opacity: 0; transform: translateY(30px);
  transition: opacity 1.1s var(--ease-out), transform 1.2s var(--ease-out);
  transition-delay: calc(var(--rd, 0) * 1ms);
}
.reveals-on [data-reveal].is-in { opacity: 1; transform: none; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .08em .13em 0; margin: 0 -.08em -.13em 0; }
.wi { display: inline-block; }
.reveals-on [data-split] .wi { transform: translateY(115%); transition: transform 1.15s var(--ease-out); transition-delay: calc(var(--wd, 0) * 1ms); }
.reveals-on [data-split].is-in .wi { transform: none; }
.reveals-on [data-reveal-group] .fw { opacity: 0; transform: translateY(45%); transition: transform 1.4s var(--ease-out), opacity 1.2s var(--ease-out); transition-delay: calc(var(--i) * 90ms); }
.reveals-on [data-reveal-group].is-in .fw { opacity: 1; transform: none; }

/* =============================================================
   8. Responsive (mobile first)
   ============================================================= */
@media (max-width: 719px) {
  .portal.is-live .portal-window { --px: 7vw; --py: 18vh; --pr: 43vw; }
  .portal.is-live .portal-words {
    flex-direction: column; justify-content: space-between; align-items: center;
    padding: calc(var(--nav-h) + 1vh) 0 5vh; font-size: 11vw;
  }
  .badge { width: 104px; height: 104px; left: -10px; top: 50%; }
  .badge-text { font-size: 13.5px; }
  .review-src { margin-left: calc(56px + 1rem); }
  .no-js .nav-links { display: none; }
}

@media (min-width: 540px) {
  .nav-cta { display: inline-flex; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .info-row { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 720px) {
  .footer-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-title .line--indent { padding-left: .9em; }
}

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .burger { display: none; }
  .menu { display: none; }

  .hero-grid {
    display: grid; grid-template-columns: minmax(0, 1fr) clamp(320px, 30vw, 460px);
    grid-template-columns: minmax(0, 1fr) clamp(300px, min(30vw, calc((100svh - 260px) * .75)), 460px);
    align-items: end; gap: clamp(2rem, 5vw, 5rem); padding-bottom: clamp(2.5rem, 5vh, 4rem);
  }
  .hero-copy { align-self: stretch; }
  .hero-title { margin-top: auto; }
  .hero-aside { max-width: none; margin-top: 0; }
  .hero-aside::before { border-radius: 50% 50% 0 0 / 37.5% 37.5% 0 0; }
  .arch { --ar: 3 / 4; --ry: 37.5%; }
  .badge { left: -62px; top: 44%; }
  .today { right: -28px; bottom: -30px; }

  .benefits-head { grid-template-columns: 1.5fr 1fr; align-items: end; column-gap: 6vw; }
  .benefits-head .eyebrow { grid-column: 1 / -1; }
  .stack-card { grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 4vw, 4rem); }
  .stack-media { aspect-ratio: auto; min-height: 340px; }

  .reviews-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 6vw; align-items: start; }
  .reviews-head { position: sticky; top: calc(var(--nav-h) + 2rem); }

  .visit-head { grid-template-columns: 1fr; }
  .visit-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 5vw; align-items: start; }

  .footer-top { grid-template-columns: 1fr 1.35fr; gap: 6vw; }
}

@media (min-width: 960px) and (min-height: 760px) {
  .hero-meta { display: block; }
}

/* Tarjetas apiladas: solo en pantallas grandes y altas */
@media (min-width: 960px) and (min-height: 700px) {
  .stack { gap: 0; }
  .stack-card {
    position: sticky;
    top: calc(var(--nav-h) + 1rem + var(--i) * 1.1rem);
    min-height: min(70vh, 640px);
    margin-bottom: 12vh;
  }
  .stack-card:last-child { margin-bottom: 0; }
}

@media (min-width: 1280px) {
  .status { display: inline-flex; }
  .hero-sub { font-size: 1.12rem; }
}

/* =============================================================
   9. Reduced motion — solo lo intrusivo
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain { animation: none; }
  .status-dot.is-open { animation: none; }
  .map-pin-dot::after { animation: none; opacity: 0; }
  .cue-line::after { animation: none; transform: none; }
}

/* =============================================================
   10. Pantallas táctiles (celulares y tablets)
   Solo aplica cuando el aparato no tiene mouse:
   la versión de computadora queda exactamente igual.
   ============================================================= */

/* Sin el recuadro azul/gris que pinta el navegador al tocar algo */
html { -webkit-tap-highlight-color: transparent; }

@media (hover: none), (pointer: coarse) {
  html { touch-action: manipulation; }   /* toques instantáneos, sin espera por doble toque */
  body { text-rendering: auto; }         /* texto más liviano de dibujar en el celular */

  /* --- Efectos de mouse que en el celular quedaban "pegados" después de tocar --- */
  .btn:hover::before { transform: translateY(101%); }
  .btn:hover .btn-label > span { transform: none; }
  .btn:hover .btn-arrow { transform: none; }
  .btn-ghost:hover { border-color: var(--line-2); }
  .link-arrow:hover { color: var(--fg-2); border-color: var(--line-2); }
  .link-arrow:hover .icon { transform: none; }
  .nav-links a:hover { color: var(--fg-2); }
  .nav-links a:hover::after { transform: scaleX(0); }
  .pill:hover { width: 1.45em; }
  .marquee:hover .marquee-track { animation-play-state: running; }
  .stack-card:hover .stack-media .ph, .stack-card:hover .stack-media > img { transform: none; }
  .round-btn:hover { background: transparent; color: var(--fg); border-color: var(--line-2); }
  .contact-links a:hover, .footer-col a:hover, .footer-bottom a:hover { color: inherit; }
  .chip span:hover { border-color: var(--line-2); color: var(--fg-2); }
  .newsletter button:hover { transform: none; background: var(--beige); }

  /* --- Respuesta al tocar: un leve "apretón", como en una app --- */
  .btn, .round-btn, .burger, .newsletter button, .chip span {
    transition: transform .35s var(--ease-out), background .25s, color .25s, border-color .25s, opacity .25s;
  }
  .btn:active, .round-btn:active, .burger:active, .newsletter button:active, .chip span:active {
    transform: scale(.96);
    transition-duration: .12s;
  }
  .round-btn:active { background: var(--forest); color: var(--beige); border-color: var(--forest); }
  .link-arrow:active, .contact-links a:active, .footer-col a:active, .menu-links a:active { opacity: .6; }

  /* --- Scroll más fluido: sin capas pesadas que se recalculan al moverse --- */
  .grain { display: none; }
  .hero-beam { animation: none; }
  .nav::before { background: rgba(243, 232, 220, .97); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .today { background: rgba(34, 26, 21, .95); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .is-enhanced .review .review-quote p, .is-enhanced .review.is-active .review-quote p { filter: none; }
}
