/* =========================================================================
   CYGRA Exportaciones Joyería — hoja de estilos principal
   Paleta: negro profundo · marfil · champán · grafito
   Tipografía: Bodoni Moda (editorial) · Jost (interfaz)
   ========================================================================= */

@font-face {
  font-family: 'Bodoni Moda';
  src: url('../assets/fonts/bodoni-moda.woff2') format('woff2-variations');
  font-weight: 400 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Bodoni Moda';
  src: url('../assets/fonts/bodoni-moda-italic.woff2') format('woff2-variations');
  font-weight: 400 900; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Jost';
  src: url('../assets/fonts/jost.woff2') format('woff2-variations');
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --ink: #0b0a09;
  --ink-1: #100f0d;
  --ink-2: #171614;
  --text: #ece6db;
  --muted: #a69f93;
  --line: rgba(236, 230, 219, 0.13);
  --line-strong: rgba(236, 230, 219, 0.26);
  --ivory: #f3eee5;
  --ivory-2: #e8e1d3;
  --paper-ink: #1a1712;
  --paper-muted: #5f584d;
  --paper-line: rgba(26, 23, 18, 0.14);
  --champagne: #cdb78e;
  --champagne-2: #e4d5b5;
  --champagne-deep: #8a7148;
  --gold-line: 172, 137, 93;
  --live: #e5484d;

  --serif: 'Bodoni Moda', 'Didot', 'Bodoni 72', Georgia, serif;
  --sans: 'Jost', 'Futura', 'Avenir Next', system-ui, sans-serif;

  --wrap: 1360px;
  --gutter: clamp(20px, 5vw, 64px);
  --nav-h: 76px;
  --sp: clamp(5.5rem, 3.5rem + 6vw, 10rem);

  --fs-hero: clamp(2.7rem, 0.9rem + 5.6vw, 7.4rem);
  --fs-h2: clamp(2.15rem, 1.2rem + 3.1vw, 4.5rem);
  --fs-h3: clamp(1.55rem, 1.25rem + 0.9vw, 2.2rem);
  --fs-body: clamp(1rem, 0.97rem + 0.16vw, 1.1rem);
  --fs-lead: clamp(1.08rem, 1rem + 0.35vw, 1.3rem);
  --fs-label: 0.75rem;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-cine: cubic-bezier(0.7, 0, 0.16, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) - 1px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--ink); color: var(--text);
  font-family: var(--sans); font-size: var(--fs-body); font-weight: 400; line-height: 1.65;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, picture, svg, video, canvas, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p, h1, h2, h3, dl, dd, figure, ul, ol, address { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
em { font-style: italic; }
[hidden] { display: none !important; }

::selection { background: var(--champagne); color: var(--ink); }
:focus { outline: none; }
:focus-visible { outline: 1.5px solid var(--champagne); outline-offset: 4px; border-radius: 2px; }
.surface-ivory :focus-visible { outline-color: var(--paper-ink); }
html { scrollbar-color: #3a3631 var(--ink); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: #34312c; border-radius: 10px; border: 2px solid var(--ink); }

.skip-link {
  position: fixed; left: 16px; top: 12px; z-index: 200; padding: 12px 18px;
  background: var(--champagne); color: var(--ink); font-size: 0.875rem; letter-spacing: 0.04em;
  transform: translateY(-160%); transition: transform 0.25s var(--ease-out);
}
.skip-link:focus-visible { transform: translateY(0); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.icon { width: 1.1em; height: 1.1em; flex: none; }
.icon--xs { width: 0.85rem; height: 0.85rem; }
.icon--sm { width: 1rem; height: 1rem; }
.icon--lg { width: 2.2rem; height: 2.2rem; }

/* ---------- tipografía ---------- */
.h2 {
  font-family: var(--serif); font-weight: 400; font-size: var(--fs-h2);
  line-height: 1.02; letter-spacing: -0.02em; text-wrap: balance; font-optical-sizing: auto;
}
.h2 em, .h3 em { color: var(--champagne); }
.surface-ivory .h2 em { color: var(--champagne-deep); }
.h3 {
  font-family: var(--serif); font-weight: 400; font-size: var(--fs-h3);
  line-height: 1.12; letter-spacing: -0.01em; text-wrap: balance;
}
.label {
  font-family: var(--sans); font-size: var(--fs-label); font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
}

/* superficies claras */
.surface-ivory { background: var(--ivory); color: var(--paper-ink); color-scheme: light; }
.surface-ivory p { color: var(--paper-muted); }

/* ---------- botones ---------- */
.btn {
  --btn-bg: transparent; --btn-fg: var(--text); --btn-bd: var(--line-strong);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.7em;
  min-height: 52px; padding: 0 1.75rem; border: 1px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--sans); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.17em; text-transform: uppercase;
  line-height: 1.2; text-align: center; white-space: nowrap; overflow: hidden; isolation: isolate;
  transition: background-color 0.35s var(--ease-out), color 0.35s var(--ease-out), border-color 0.35s var(--ease-out), transform 0.16s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.btn > * { position: relative; z-index: 1; }
.btn::after { /* barrido de luz sutil */
  content: ''; position: absolute; inset: -1px; z-index: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.28) 50%, transparent 65%);
  transform: translateX(-120%); transition: transform 0.9s var(--ease-out);
}
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: scale(0.97); }
.btn .icon { width: 1.05rem; height: 1.05rem; }
.btn--sm { min-height: 44px; padding: 0 1.15rem; font-size: 0.72rem; }
.btn--lg { min-height: 58px; padding: 0 2.1rem; }
@media (max-width: 420px) { .btn { white-space: normal; padding-inline: 1.25rem; letter-spacing: 0.14em; } }
.btn--primary { --btn-bg: var(--champagne); --btn-fg: #15120d; --btn-bd: var(--champagne); }
.btn--primary:hover { --btn-bg: var(--champagne-2); --btn-bd: var(--champagne-2); }
.btn--ghost { --btn-bg: rgba(11, 10, 9, 0.25); --btn-fg: var(--text); --btn-bd: rgba(205, 183, 142, 0.5); backdrop-filter: blur(6px); }
.btn--ghost:hover { --btn-bd: var(--champagne); --btn-bg: rgba(205, 183, 142, 0.1); }
.btn--dark { --btn-bg: var(--paper-ink); --btn-fg: var(--ivory); --btn-bd: var(--paper-ink); }
.btn--dark:hover { --btn-bg: #2c2820; --btn-bd: #2c2820; }
.btn--line { --btn-bg: transparent; --btn-fg: var(--paper-ink); --btn-bd: rgba(26, 23, 18, 0.35); }
.btn--line:hover { --btn-bd: var(--paper-ink); --btn-bg: rgba(26, 23, 18, 0.04); }
.btn--dark::after, .btn--line::after { background: linear-gradient(105deg, transparent 35%, rgba(205, 183, 142, 0.25) 50%, transparent 65%); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.65rem; min-height: 44px;
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text);
  background-image: linear-gradient(currentColor, currentColor); background-size: 0% 1px; background-repeat: no-repeat; background-position: 0 calc(100% - 10px);
  transition: background-size 0.45s var(--ease-out), color 0.3s;
}
.link-arrow:hover { background-size: 100% 1px; color: var(--champagne); }
.link-arrow .icon:last-child { transition: transform 0.35s var(--ease-out); }
.link-arrow:hover .icon:last-child { transform: translate(3px, -1px); }
.link-arrow--dark { color: var(--paper-ink); }
.link-arrow--dark:hover { color: var(--champagne-deep); }

/* =========================================================================
   INTRO
   ========================================================================= */
.intro { display: none; }
.js.intro-run .intro {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 120; background: var(--ink);
  transition: background-color 0.9s var(--ease-in-out), opacity 0.5s ease;
}
.intro__mark { position: relative; height: clamp(120px, 20vh, 190px); aspect-ratio: 288 / 560; will-change: transform; transition: transform 0.95s var(--ease-in-out); }
.intro__mono { width: 100%; height: 100%; }
.intro__mark picture { width: 100%; height: 100%; }
.js.intro-run .intro__mark picture { animation: monoIn 1.25s var(--ease-out) both; }
@keyframes monoIn {
  from { opacity: 0; filter: blur(10px); transform: scale(0.94); }
  to { opacity: 1; filter: blur(0); transform: scale(1); }
}
.intro__glint { /* reflejo metálico que recorre el monograma */
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.85) 50%, transparent 70%) no-repeat;
  background-size: 250% 100%; background-position: 160% 0;
  -webkit-mask: url('../assets/brand/monograma-400.png') center / contain no-repeat; mask: url('../assets/brand/monograma-400.png') center / contain no-repeat;
  mix-blend-mode: soft-light; opacity: 0.9;
}
.js.intro-run .intro__glint { animation: glint 1.4s 0.55s var(--ease-in-out) both; }
@keyframes glint { to { background-position: -60% 0; } }
.js.intro-out .intro { background-color: rgba(11, 10, 9, 0); pointer-events: none; }
.js.intro-done .intro { display: none; }

/* =========================================================================
   NAVEGACIÓN
   ========================================================================= */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--nav-h); }
.nav::before {
  content: ''; position: absolute; inset: 0 0 -40px 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(5, 5, 4, 0.6), rgba(5, 5, 4, 0));
  transition: opacity 0.5s ease;
}
.nav::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: rgba(11, 10, 9, 0.8); backdrop-filter: blur(16px) saturate(1.15); -webkit-backdrop-filter: blur(16px) saturate(1.15);
  border-bottom: 1px solid var(--line); opacity: 0; transition: opacity 0.5s ease;
}
.nav.is-solid::after { opacity: 1; }
.nav.is-solid::before { opacity: 0; }
.nav__inner {
  position: relative; height: 100%; max-width: 1560px; margin-inline: auto; padding-inline: var(--gutter);
  display: flex; align-items: center; gap: 2rem;
}
.nav__brand { display: flex; align-items: center; gap: 0.85rem; min-height: 44px; margin-right: auto; }
.nav__brand picture { flex: none; }
.nav__mono { height: 42px; width: auto; }
.nav__word { height: 14px; width: auto; }
.nav__links ul { display: flex; gap: clamp(1.1rem, 1.8vw, 2.1rem); }
.nav__links a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px;
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(236, 230, 219, 0.78);
  transition: color 0.3s ease;
}
.nav__links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 9px; height: 1px; background: var(--champagne);
  transform: scaleX(0); transform-origin: right; transition: transform 0.45s var(--ease-out);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__links a.is-active { color: var(--champagne); }
.nav__toggle { display: none; align-items: center; gap: 0.7rem; min-height: 44px; min-width: 44px; padding: 0 0.25rem; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500; }
.nav__toggle-lines { position: relative; width: 26px; height: 10px; }
.nav__toggle-lines span { position: absolute; left: 0; right: 0; height: 1px; background: currentColor; transition: transform 0.45s var(--ease-in-out), top 0.45s var(--ease-in-out); }
.nav__toggle-lines span:first-child { top: 0; }
.nav__toggle-lines span:last-child { top: 9px; }
.nav__toggle[aria-expanded='true'] .nav__toggle-lines span:first-child { top: 4.5px; transform: rotate(45deg); }
.nav__toggle[aria-expanded='true'] .nav__toggle-lines span:last-child { top: 4.5px; transform: rotate(-45deg); }

/* entrada de la navegación tras la intro */
.js .nav__inner > * { transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.js:not(.hero-in) .nav__inner > :not(.nav__brand) { opacity: 0; transform: translateY(-8px); }
.js:not(.hero-in) .nav__word { opacity: 0; }
.js.intro-run:not(.intro-done) .nav__mono { opacity: 0; }
.nav__word { transition: opacity 0.9s 0.25s var(--ease-out); }

@media (max-width: 1199px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: inline-flex; }
}
@media (max-width: 760px) {
  :root { --nav-h: 64px; }
  .nav__mono { height: 36px; }
  .nav__word { height: 12px; }
  .nav__toggle-label { display: none; }
}

/* menú móvil */
.menu {
  position: fixed; inset: 0; z-index: 55; background: var(--ink); display: flex; flex-direction: column;
  padding: calc(var(--nav-h) + 3vh) var(--gutter) max(28px, env(safe-area-inset-bottom));
  clip-path: inset(0 0 100% 0); transition: clip-path 0.7s var(--ease-in-out); overflow-y: auto;
}
.menu.is-open { clip-path: inset(0 0 0 0); }
.menu__nav { flex: 1; display: flex; align-items: center; }
.menu__nav ol { display: grid; gap: 0.35rem; width: 100%; }
.menu__nav a {
  display: flex; align-items: baseline; gap: 1rem; min-height: 48px; padding: 0.2rem 0;
  font-family: var(--serif); font-size: clamp(2rem, 7.5vw, 3.2rem); line-height: 1.1; letter-spacing: -0.01em;
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out), transform 0.7s var(--ease-out), color 0.3s;
  transition-delay: calc(0.18s + var(--i) * 0.05s);
}
.menu.is-open .menu__nav a { opacity: 1; transform: none; }
.menu__nav a:hover, .menu__nav a:focus-visible { color: var(--champagne); }
.menu__foot { display: grid; gap: 1.25rem; padding-top: 2rem; border-top: 1px solid var(--line); opacity: 0; transition: opacity 0.6s 0.5s ease; }
.menu.is-open .menu__foot { opacity: 1; }
.menu__foot .btn { width: 100%; }
.menu__social { display: flex; gap: 0.5rem; }
.menu__social a { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--line-strong); border-radius: 50%; transition: border-color 0.3s, color 0.3s; }
.menu__social a:hover { border-color: var(--champagne); color: var(--champagne); }
.menu__social .icon { width: 18px; height: 18px; }
.menu__addr { font-size: 0.85rem; color: var(--muted); }
html.menu-open { overflow: hidden; }

/* =========================================================================
   1 · PORTADA
   ========================================================================= */
.hero {
  --hero-h: max(100svh, 640px);
  --line-y: 65.9%; /* altura exacta de la línea dorada en la fotografía original */
  position: relative; height: var(--hero-h); overflow: hidden; isolation: isolate; background: #090908;
}
.hero__media {
  position: absolute; top: 0; height: 100%;
  right: max(0px, calc((100vw - 1720px) / 2));
  width: min(calc(var(--hero-h) * 0.75), 60vw);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 24%, #000 93%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 24%, #000 93%, transparent 100%);
}
.hero__parallax, .hero__pic { position: absolute; inset: 0; }
.hero__pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.hero__glint {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light; opacity: 0;
  background: linear-gradient(112deg, transparent 38%, rgba(255, 244, 222, 0.55) 50%, transparent 62%) no-repeat;
  background-size: 300% 100%; background-position: 130% 0;
}
.hero__horizon { /* prolonga la línea dorada de la fotografía a lo ancho de la escena */
  position: absolute; left: 0; top: var(--line-y); height: 1.7%; transform: translateY(-50%);
  right: calc(max(0px, (100vw - 1720px) / 2) + min(calc(var(--hero-h) * 0.75), 60vw) * 0.78);
  background:
    linear-gradient(to bottom, transparent, rgba(var(--gold-line), 0.55) 46%, rgba(var(--gold-line), 0.8) 50%, rgba(var(--gold-line), 0.55) 54%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.35) 30%, #000 100%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.35) 30%, #000 100%);
  pointer-events: none;
}
.hero__content { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hero__content > * { pointer-events: auto; }
.hero__title {
  position: absolute; left: var(--gutter); bottom: calc(100% - var(--line-y) + clamp(1.1rem, 2.6vh, 2.2rem));
  font-family: var(--serif); font-weight: 400; font-size: var(--fs-hero); line-height: 0.98; letter-spacing: -0.025em;
  color: var(--text); font-optical-sizing: auto; margin: 0;
}
.hero__title .line { display: block; overflow: hidden; padding: 0.04em 0 0.1em; margin-bottom: -0.1em; }
.hero__title .line > span { display: block; }
.hero__title em { color: var(--champagne); font-style: italic; }
.hero__below { position: absolute; left: var(--gutter); top: calc(var(--line-y) + clamp(1.4rem, 3.4vh, 2.6rem)); max-width: 31rem; }
.hero__lead { font-size: var(--fs-lead); line-height: 1.6; color: rgba(236, 230, 219, 0.82); font-weight: 300; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: clamp(1.5rem, 3.2vh, 2.3rem); }
@media (min-width: 1280px) { .hero__below { max-width: 42rem; } .hero__lead { max-width: 31rem; } }
.hero__coord { /* anotación de encuadre, vertical sobre el borde izquierdo */
  position: absolute; z-index: 2; left: max(14px, calc(var(--gutter) / 2 - 6px)); bottom: 32px; display: flex; gap: 1.2rem;
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-size: 0.62rem; letter-spacing: 0.26em; text-transform: uppercase; color: rgba(236, 230, 219, 0.42);
  font-variant-numeric: tabular-nums;
}
.hero__scroll {
  position: absolute; z-index: 2; right: max(10px, calc(var(--gutter) / 2 - 10px)); bottom: 26px;
  display: flex; flex-direction: column; align-items: center; gap: 0.9rem; min-width: 44px; padding: 8px 0;
  font-size: 0.62rem; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(236, 230, 219, 0.6);
  transition: color 0.3s;
}
.hero__scroll > span:last-child { writing-mode: vertical-rl; }
.hero__scroll:hover { color: var(--champagne); }
.hero__scroll-line { position: relative; width: 1px; height: 64px; background: rgba(236, 230, 219, 0.16); overflow: hidden; order: 2; }
.hero__scroll-line::after {
  content: ''; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--champagne);
  animation: scrollCue 2.6s var(--ease-in-out) infinite;
}
@media (max-width: 1100px) { .hero__coord { display: none; } }
@keyframes scrollCue { 0% { top: -40%; } 60%, 100% { top: 100%; } }

/* — secuencia cinematográfica — */
.js .hero__media { clip-path: inset(49.5% 0 49.5% 0); transition: clip-path 1.7s var(--ease-cine); }
.js .hero__pic { transform: scale(1.16); filter: brightness(0.45); transition: transform 3.2s var(--ease-out), filter 2.6s var(--ease-out); }
.js .hero__horizon { transform: translateY(-50%) scaleX(0); transform-origin: right center; transition: transform 1.8s 0.55s var(--ease-cine); }
.js .hero__title .line > span { transform: translateY(108%); transition: transform 1.25s var(--ease-out); }
.js .hero__title .line:nth-child(1) > span { transition-delay: 0.55s; }
.js .hero__title .line:nth-child(2) > span { transition-delay: 0.67s; }
.js .hero__title .line:nth-child(3) > span { transition-delay: 0.79s; }
.js .hero__lead, .js .hero__actions, .js .hero__coord, .js .hero__scroll {
  opacity: 0; filter: blur(6px); translate: 0 14px;
  transition: opacity 1s var(--ease-out), filter 1s var(--ease-out), translate 1.1s var(--ease-out);
}
.js .hero__lead { transition-delay: 1.05s; }
.js .hero__actions { transition-delay: 1.2s; }
.js .hero__coord, .js .hero__scroll { transition-delay: 1.6s; }

.js.hero-in .hero__media { clip-path: inset(0 0 0 0); }
.js.hero-in .hero__pic { transform: scale(1); filter: brightness(1); }
.js.hero-in .hero__horizon { transform: translateY(-50%) scaleX(1); }
.js.hero-in .hero__title .line > span { transform: translateY(0); }
.js.hero-in .hero__lead, .js.hero-in .hero__actions, .js.hero-in .hero__coord, .js.hero-in .hero__scroll { opacity: 1; filter: blur(0); translate: 0 0; }
.js.hero-in .hero__glint { animation: heroGlint 2.6s 1.5s var(--ease-in-out) both; }
@keyframes heroGlint { 0% { opacity: 0; background-position: 130% 0; } 20% { opacity: 0.85; } 100% { opacity: 0; background-position: -30% 0; } }
/* respiración muy lenta de la fotografía después de la revelación */
.js.hero-settled .hero__pic img { animation: breathe 26s ease-in-out infinite alternate; }
@keyframes breathe { from { transform: scale(1); } to { transform: scale(1.055); } }

/* — portada en móvil y pantallas verticales — */
@media (max-width: 760px), (max-aspect-ratio: 1/1) {
  .hero { --mh: min(78svh, 1060px); --line-y: calc(var(--mh) * 0.659); height: auto; min-height: 100svh; display: flex; flex-direction: column; }
  .hero__media {
    left: 50%; right: auto; translate: -50% 0; height: var(--mh); width: min(100vw, calc(var(--mh) * 0.75));
    -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%), linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-composite: source-in; mask-image: linear-gradient(to bottom, #000 70%, transparent 100%), linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
    mask-composite: intersect;
  }
  .hero__horizon { display: none; }
  .hero__media::after { /* velo bajo la línea dorada para que el titular se lea sobre la base del busto */
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(to bottom, transparent 63%, rgba(9, 9, 8, 0.66) 76%, rgba(9, 9, 8, 0.9) 92%);
  }
  .hero__title { text-shadow: 0 2px 28px rgba(0, 0, 0, 0.55); }
  .hero__content { position: relative; inset: auto; flex: 1; display: flex; flex-direction: column; padding-top: calc(var(--line-y) + 1.4rem); padding-bottom: 2.2rem; max-width: 640px; margin-inline: auto; }
  .hero__title { position: relative; left: auto; bottom: auto; padding-inline: var(--gutter); }
  .hero__below { position: relative; left: auto; top: auto; padding-inline: var(--gutter); margin-top: 1rem; max-width: none; }
  .hero__lead { font-size: 1.02rem; }
  .hero__actions { flex-direction: column; margin-top: 1.5rem; }
  .hero__actions .btn { width: 100%; }
  .hero__coord, .hero__scroll { display: none; }
  .hero__title { font-size: clamp(2.5rem, 10.6vw, 4.2rem); }
}
@media (max-width: 760px) and (min-height: 760px) { .hero { --mh: 74svh; } }
@media (min-width: 761px) and (max-aspect-ratio: 1/1) {
  .hero__lead { font-size: var(--fs-lead); max-width: 34rem; }
  .hero__actions { flex-direction: row; }
  .hero__actions .btn { width: auto; }
  .hero__content { max-width: 760px; }
}

/* =========================================================================
   REVELADOS (fotografías y títulos)
   ========================================================================= */
/* el recorte va en la <picture> interior: IntersectionObserver ignora elementos recortados por completo */
.reveal-img > picture { display: block; height: 100%; }
.js .reveal-img > picture { clip-path: inset(0 0 100% 0); transition: clip-path 1.5s var(--ease-cine); }
.js .reveal-img > picture img { transform: scale(1.14); transition: transform 2.2s var(--ease-out), filter 0.8s ease; }
.js .reveal-img.is-in > picture { clip-path: inset(0 0 0 0); }
.js .reveal-img.is-in > picture img { transform: scale(1); }
.reveal-head { overflow: hidden; padding-bottom: 0.08em; }
.reveal-head > span { display: block; }
.js .reveal-head > span { transform: translateY(102%); transition: transform 1.2s var(--ease-out); }
.js .reveal-head.is-in > span { transform: translateY(0); }

/* parallax suave en fotografías (el desplazamiento lo controla JS mediante --py) */
[data-parallax] picture { display: block; height: 100%; }
[data-parallax] img { translate: 0 var(--py, 0px); }

/* =========================================================================
   2 · NOSOTROS
   ========================================================================= */
.about { padding-block: var(--sp); position: relative; }
.about__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 28px); align-items: start; }
.about__text { grid-column: 1 / span 5; padding-top: clamp(0px, 3vw, 40px); }
.about__lead { margin-top: clamp(1.75rem, 3vw, 2.5rem); font-size: var(--fs-lead); line-height: 1.7; color: var(--paper-muted); max-width: 34rem; }
.specs { margin-top: clamp(2.5rem, 4vw, 3.5rem); border-top: 1px solid var(--paper-line); }
.specs > div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; padding: 1.05rem 0; border-bottom: 1px solid var(--paper-line); }
.specs dt { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500; color: var(--champagne-deep); padding-top: 0.22rem; }
.specs dd { font-family: var(--serif); font-size: 1.15rem; line-height: 1.35; color: var(--paper-ink); }
.about__sign { margin-top: clamp(2.5rem, 4vw, 3.5rem); }
.about__logo { width: clamp(120px, 11vw, 150px); height: auto; }
.about__media { grid-column: 7 / span 6; position: relative; padding-bottom: clamp(60px, 9vw, 140px); }
.about__main { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #c9c2b4; }
.about__main img, .about__inset img { width: 100%; height: 100%; object-fit: cover; }
.about__main picture { height: 100%; }
.about__main img { height: calc(100% + 80px); position: relative; top: -40px; }
.about__inset {
  position: absolute; left: clamp(-120px, -8vw, -40px); bottom: 0; width: 42%; aspect-ratio: 3 / 4; overflow: hidden;
  outline: clamp(8px, 0.9vw, 14px) solid var(--ivory); background: #c9c2b4;
}
.about__inset picture { height: 100%; }

@media (max-width: 960px) {
  .about__grid { display: flex; flex-direction: column; }
  .about__text { display: contents; }
  .about__text > .h2 { order: 1; }
  .about__lead { order: 2; }
  .about__media { order: 3; }
  .specs { order: 4; }
  .about__sign { order: 5; }
  .about__media { width: 100%; margin-top: 2.75rem; padding-bottom: 0; margin-bottom: 1rem; }
  .about__main { width: 86%; margin-left: auto; }
  .about__inset { left: 0; bottom: -2.5rem; width: 44%; }
  .about__sign { margin-top: 2.5rem; }
  .about { padding-bottom: calc(var(--sp) + 2.5rem); }
}
@media (max-width: 560px) {
  .specs > div { grid-template-columns: 1fr; gap: 0.2rem; }
}

/* =========================================================================
   3 · MAYOREO Y MENUDEO
   ========================================================================= */
.trade { position: relative; background: var(--ink-1); isolation: isolate; }
.trade__title {
  position: absolute; z-index: 3; left: 0; right: 0; top: clamp(4.5rem, 8vw, 7.5rem);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline; gap: clamp(0.8rem, 1.6vw, 1.6rem);
  font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 1rem + 4.6vw, 6.6rem); line-height: 1; letter-spacing: -0.025em;
  color: #f3eee5; mix-blend-mode: difference; pointer-events: none; margin: 0;
}
.trade__title span:first-child { text-align: right; }
.trade__title em { font-style: italic; }
.trade__grid { display: grid; grid-template-columns: 1fr 1fr; }
.trade__col {
  --top: calc(clamp(4.5rem, 8vw, 7.5rem) + clamp(5rem, 8vw, 8.5rem));
  display: flex; flex-direction: column; gap: clamp(2rem, 3.5vw, 3rem);
  padding: var(--top) clamp(24px, 5vw, 88px) var(--sp);
}
.trade__col--wholesale { background: var(--ink-1); align-items: flex-end; }
.trade__col--retail { padding-top: calc(var(--top) + clamp(4rem, 10vw, 10rem)); }
.trade__col--wholesale > * { width: min(100%, 30rem); }
.trade__col--retail > * { width: min(100%, 34rem); }
.trade__media { overflow: hidden; aspect-ratio: 4 / 5; background: #0d0c0b; }
.trade__media picture, .trade__media img { width: 100%; height: 100%; object-fit: cover; }
.trade__col--retail .trade__media { aspect-ratio: 5 / 4; background: #d9d2c4; }
.trade__body { display: grid; gap: 1.1rem; justify-items: start; }
.trade__body p:not(.trade__tag) { color: var(--muted); }
.trade__col--retail .trade__body p:not(.trade__tag) { color: var(--paper-muted); }
.trade__body .btn { margin-top: 0.6rem; }
.trade__tag { display: none; font-size: var(--fs-label); letter-spacing: 0.22em; text-transform: uppercase; font-weight: 500; color: var(--champagne); }
.trade__col--retail .trade__tag { color: var(--champagne-deep); }

@media (max-width: 900px) {
  .trade__title { position: relative; top: auto; display: block; text-align: left; mix-blend-mode: normal; color: var(--text); padding: var(--sp) var(--gutter) 0; font-size: clamp(2.4rem, 9vw, 4rem); }
  .trade__title em { color: var(--champagne); }
  .trade__grid { grid-template-columns: 1fr; min-height: 0; }
  .trade__col { padding: 2.5rem var(--gutter) var(--sp); gap: 2.25rem; align-items: stretch; }
  .trade__col--retail { padding-top: var(--sp); }
  .trade__col > * { width: 100%; }
  .trade__tag { display: block; }
}

/* =========================================================================
   4 · LIVES Y CANASTA
   ========================================================================= */
.lives { padding-block: var(--sp); background: var(--ink); position: relative; overflow: hidden; }
.lives::before { /* halo cálido muy discreto */
  content: ''; position: absolute; width: 70vw; height: 70vw; right: -25vw; top: -20vw; pointer-events: none;
  background: radial-gradient(closest-side, rgba(205, 183, 142, 0.07), transparent);
}
.lives__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 28px); row-gap: clamp(3rem, 6vw, 5rem); position: relative; }
.lives__text { grid-column: 1 / span 6; align-self: center; }
.lives__lead { margin-top: 1.75rem; font-size: var(--fs-lead); color: var(--muted); max-width: 32rem; font-weight: 300; }
.days { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; margin-top: clamp(2.25rem, 4vw, 3rem); }
.day {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 1.6rem; height: 100%;
  min-height: 9.5rem; padding: 1.2rem 1.2rem 1.1rem; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(236, 230, 219, 0.035), rgba(236, 230, 219, 0));
  transition: border-color 0.4s var(--ease-out), transform 0.4s var(--ease-out), background-color 0.4s;
}
.day:hover { border-color: rgba(205, 183, 142, 0.55); transform: translateY(-2px); }
.day__name { font-family: var(--serif); font-size: clamp(1.45rem, 1.1rem + 1vw, 2.05rem); line-height: 1; letter-spacing: -0.01em; }
.day__meta { display: flex; align-items: center; gap: 0.45rem; font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.day__badge {
  position: absolute; top: 0.9rem; right: 0.9rem; display: none; align-items: center; gap: 0.4rem;
  font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 500; color: var(--text);
}
.day__badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 rgba(229, 72, 77, 0.6); animation: livePulse 2.2s ease-out infinite; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(229, 72, 77, 0.55); } 70%, 100% { box-shadow: 0 0 0 8px rgba(229, 72, 77, 0); } }
.day.is-today { border-color: var(--champagne); background: linear-gradient(180deg, rgba(205, 183, 142, 0.12), rgba(205, 183, 142, 0.02)); }
.day.is-today .day__badge { display: inline-flex; }
.day.is-next { border-color: rgba(205, 183, 142, 0.42); }
.day.is-next .day__meta { color: var(--champagne); }
.lives__today { min-height: 1.6em; margin-top: 1rem; font-size: 0.9rem; color: var(--muted); }
.lives__today strong { color: var(--text); font-weight: 500; }
.lives__text .link-arrow { margin-top: 0.75rem; }
.lives__media { grid-column: 8 / span 5; position: relative; aspect-ratio: 2 / 3; overflow: hidden; background: #0b0b14; align-self: center; }
.lives__media picture { height: 100%; }
.lives__media img { width: 100%; height: calc(100% + 70px); position: relative; top: -35px; object-fit: cover; }
.viewfinder { position: absolute; inset: clamp(12px, 1.6vw, 22px); pointer-events: none; }
.viewfinder i { position: absolute; width: 22px; height: 22px; border-color: rgba(236, 230, 219, 0.7); border-style: solid; border-width: 0; }
.viewfinder i:nth-child(1) { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.viewfinder i:nth-child(2) { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.viewfinder i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.viewfinder i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }
.rec {
  position: absolute; top: clamp(26px, 3vw, 40px); left: clamp(26px, 3vw, 40px); display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.38rem 0.7rem; background: rgba(11, 10, 9, 0.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: 0.64rem; letter-spacing: 0.26em; text-transform: uppercase; font-weight: 500;
}
.rec i { width: 6px; height: 6px; border-radius: 50%; background: var(--live); animation: livePulse 2.2s ease-out infinite; }

.basket {
  grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(1.5rem, 3.5vw, 3.5rem);
  padding: clamp(1.75rem, 3.5vw, 3.25rem) clamp(1.5rem, 3.5vw, 3.5rem);
  border: 1px solid rgba(205, 183, 142, 0.38);
  background: linear-gradient(120deg, rgba(205, 183, 142, 0.09), rgba(205, 183, 142, 0.015) 55%, rgba(205, 183, 142, 0.06));
  position: relative;
}
.basket__icon { display: grid; place-items: center; width: 5rem; height: 5rem; border-radius: 50%; border: 1px solid rgba(205, 183, 142, 0.45); color: var(--champagne); }
.basket__copy { display: grid; gap: 0.75rem; }
.basket__copy p { color: var(--muted); max-width: 36rem; }
.steps { display: flex; flex-wrap: wrap; gap: 0.5rem 1.6rem; margin-top: 0.5rem; counter-reset: st; }
.steps li { counter-increment: st; display: flex; align-items: center; gap: 0.55rem; font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text); }
.steps li::before { content: counter(st); display: grid; place-items: center; width: 1.45rem; height: 1.45rem; border-radius: 50%; border: 1px solid var(--line-strong); font-size: 0.66rem; letter-spacing: 0; color: var(--champagne); }

@media (max-width: 1100px) {
  .basket { grid-template-columns: auto 1fr; }
  .basket__cta { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 900px) {
  .lives__text, .lives__media { grid-column: 1 / -1; }
  .lives__media { aspect-ratio: 4 / 5; max-height: 80svh; width: 100%; }
}
@media (max-width: 560px) {
  .days { grid-template-columns: 1fr; gap: 0.5rem; }
  .day { flex-direction: row; align-items: center; min-height: 68px; padding: 0.9rem 1.1rem; gap: 1rem; }
  .day__name { font-size: 1.6rem; flex: 1; }
  .day__badge { position: static; order: 2; }
  .day__meta { order: 3; }
  .basket { grid-template-columns: 1fr; }
  .basket__icon { width: 3.75rem; height: 3.75rem; }
  .basket__cta { width: 100%; white-space: normal; }
}

/* =========================================================================
   5 · COLECCIÓN
   ========================================================================= */
.collection { padding-block: var(--sp); position: relative; }
.collection__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 2rem; align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.collection__head p { max-width: 24rem; justify-self: end; }
.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: minmax(0, auto); gap: clamp(12px, 1.6vw, 24px); }
.gallery__item { position: relative; }
.g-a { grid-column: 1 / span 5; grid-row: 1 / span 2; }
.g-b { grid-column: 6 / span 3; grid-row: 1; }
.g-c { grid-column: 9 / span 4; grid-row: 1; }
.g-d { grid-column: 6 / span 7; grid-row: 2; }
.g-e { grid-column: 1 / -1; }
.gallery__btn { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; background: #111; text-align: left; cursor: zoom-in; }
.g-a .gallery__btn { aspect-ratio: auto; min-height: 100%; }
.g-b .gallery__btn { aspect-ratio: 3 / 4.4; }
.g-c .gallery__btn { aspect-ratio: 1 / 1.1; }
.g-d .gallery__btn { aspect-ratio: 16 / 9; }
.gallery__btn picture, .gallery__btn img { width: 100%; height: 100%; object-fit: cover; }
.gallery__btn img { transition: transform 1.2s var(--ease-out), filter 0.8s ease; }
.gallery__btn:hover img, .js .gallery__btn.is-in:hover > picture img { transform: scale(1.035); }
.gallery__cap {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: 2.4rem 1.2rem 1rem; color: var(--text);
  background: linear-gradient(to top, rgba(5, 5, 4, 0.72), rgba(5, 5, 4, 0));
}
.gallery__name { font-family: var(--serif); font-size: clamp(1.1rem, 0.95rem + 0.5vw, 1.45rem); line-height: 1.15; }
.gallery__note { font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(236, 230, 219, 0.75); white-space: nowrap; }
@media (hover: hover) and (pointer: fine) {
  .gallery__cap { opacity: 0; transform: translateY(8px); transition: opacity 0.5s var(--ease-out), transform 0.6s var(--ease-out); }
  .gallery__btn:hover .gallery__cap, .gallery__btn:focus-visible .gallery__cap { opacity: 1; transform: none; }
  .gallery[data-cursor-on] .gallery__btn { cursor: none; }
}
.gallery__ask {
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 1rem 2rem;
  padding: clamp(1.5rem, 3vw, 2.25rem) 0 0; border-top: 1px solid var(--paper-line); margin-top: clamp(0.5rem, 1.5vw, 1.25rem);
}
.gallery__ask-title { font-family: var(--serif); font-size: var(--fs-h3); color: var(--paper-ink) !important; line-height: 1.1; }
.gallery__ask > p:nth-child(2) { grid-column: 1; grid-row: 2; }
.gallery__ask .btn { grid-column: 2; grid-row: 1 / span 2; }
.gallery__ask .link-arrow { grid-column: 3; grid-row: 1 / span 2; }
.cursor {
  position: fixed; left: 0; top: 0; z-index: 70; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%;
  display: grid; place-items: center; pointer-events: none;
  background: rgba(243, 238, 229, 0.92); color: var(--paper-ink); backdrop-filter: blur(4px);
  font-size: 0.66rem; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 500; padding-left: 0.24em;
  opacity: 0; scale: 0.6; transition: opacity 0.3s ease, scale 0.45s var(--ease-out);
}
.cursor.is-on { opacity: 1; scale: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

@media (max-width: 900px) {
  .collection__head { grid-template-columns: 1fr; }
  .collection__head p { justify-self: start; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-a { grid-column: 1 / -1; grid-row: auto; }
  .g-a .gallery__btn { aspect-ratio: 4 / 5; }
  .g-b { grid-column: 1; grid-row: auto; }
  .g-c { grid-column: 2; grid-row: auto; }
  .g-b .gallery__btn, .g-c .gallery__btn { aspect-ratio: 3 / 4; }
  .g-d { grid-column: 1 / -1; grid-row: auto; }
  .g-d .gallery__btn { aspect-ratio: 4 / 3; }
  .gallery__ask { grid-template-columns: 1fr; }
  .gallery__ask > *, .gallery__ask > p:nth-child(2), .gallery__ask .btn, .gallery__ask .link-arrow { grid-column: 1; grid-row: auto; }
  .gallery__ask .btn { justify-self: start; }
}
@media (max-width: 560px) {
  .gallery__cap { padding: 2rem 0.8rem 0.7rem; flex-direction: column; gap: 0.1rem; }
  .gallery__note { font-size: 0.58rem; }
  .gallery__ask .btn { width: 100%; }
}

/* =========================================================================
   6 · DESDE TAXCO HACIA EL MUNDO — planeta
   ========================================================================= */
.world { position: relative; padding-block: var(--sp); background: #050505; overflow: hidden; isolation: isolate; }
.world::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 70% at 72% 50%, rgba(205, 183, 142, 0.06), transparent 70%);
}
.world__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; min-height: min(100svh - var(--sp), 900px); }
.world__lead { margin-top: 1.75rem; font-size: var(--fs-lead); color: var(--muted); font-weight: 300; max-width: 30rem; }
.modes { display: grid; gap: 0.6rem; margin-top: clamp(2rem, 4vw, 3rem); max-width: 26rem; }
.mode {
  position: relative; display: flex; align-items: center; gap: 0.95rem; min-height: 60px; padding: 0 1.25rem;
  border: 1px solid var(--line-strong); text-align: left;
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.17em; text-transform: uppercase;
  transition: border-color 0.35s var(--ease-out), background-color 0.35s var(--ease-out), color 0.35s, transform 0.16s var(--ease-out);
}
.mode .icon { width: 1.5rem; height: 1.5rem; color: var(--champagne); }
.mode .icon--mx { width: 2rem; height: 1.4rem; }
.mode::after { content: ''; position: absolute; right: 1.25rem; width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--line-strong); transition: background-color 0.3s, border-color 0.3s; }
.mode:hover { border-color: rgba(205, 183, 142, 0.6); }
.mode:active { transform: scale(0.985); }
.mode[aria-pressed='true'] { border-color: var(--champagne); background: rgba(205, 183, 142, 0.1); color: var(--text); }
.mode[aria-pressed='true']::after { background: var(--champagne); border-color: var(--champagne); box-shadow: 0 0 12px rgba(205, 183, 142, 0.6); }
.world__msg { margin-top: 1.5rem; min-height: 3.4em; font-family: var(--serif); font-size: clamp(1.15rem, 1rem + 0.5vw, 1.45rem); line-height: 1.35; color: var(--text); max-width: 28rem; transition: opacity 0.35s ease, filter 0.35s ease; }
.world__msg.is-swap { opacity: 0; filter: blur(4px); }
.world__note { margin-top: 1rem; font-size: 0.8rem; line-height: 1.55; color: rgba(166, 159, 147, 0.85); max-width: 28rem; }

.globe { position: relative; width: 100%; }
.globe__stage {
  position: relative; width: min(100%, 84svh, 820px); aspect-ratio: 1; margin-inline: auto;
  touch-action: pan-y; cursor: grab; user-select: none; overflow: hidden; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
}
.globe__stage.is-dragging { cursor: grabbing; }
.globe__stage:focus-visible { outline-offset: -6px; border-radius: 50%; }
.globe__stage canvas {
  position: absolute; inset: 0; width: 100% !important; height: 100% !important; opacity: 0; transition: opacity 1.4s var(--ease-out);
  /* lente circular: al acercar, el planeta se recorta en un círculo suave, nunca en un rectángulo */
  -webkit-mask-image: radial-gradient(closest-side, #000 86%, transparent 99.5%); mask-image: radial-gradient(closest-side, #000 86%, transparent 99.5%);
}
.globe__stage canvas.is-ready { opacity: 1; }
.globe__placeholder { /* se muestra mientras carga el 3D */
  position: absolute; left: 50%; top: 50%; width: 62%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(circle at 36% 32%, #23211d, #0b0b0a 62%);
  box-shadow: inset -20px -30px 60px rgba(0,0,0,0.7), 0 0 80px rgba(205, 183, 142, 0.08);
  transition: opacity 0.9s ease;
}
.globe__placeholder::after { content: ''; position: absolute; inset: -2px; border-radius: 50%; border: 1px solid rgba(205, 183, 142, 0.18); }
.globe.is-ready .globe__placeholder { opacity: 0; }
.globe__bezel { position: absolute; left: 50%; top: 50%; width: calc(var(--globe-r, 280px) * 2 * 1.16); aspect-ratio: 1; translate: -50% -50%; pointer-events: none; opacity: 0; transition: opacity 1.2s ease; }
.globe.is-ready .globe__bezel { opacity: 1; }
.globe__bezel svg { width: 100%; height: 100%; overflow: visible; }
.globe__pin {
  position: absolute; left: 0; top: 0; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%;
  display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; z-index: 2;
}
.globe__pin span { width: 10px; height: 10px; border-radius: 50%; background: transparent; }
.globe__pin.is-visible { opacity: 1; pointer-events: auto; }
.globe__pin:focus-visible { outline: 1px solid var(--champagne); outline-offset: 0; }
.pin-card {
  position: absolute; left: 0; top: 0; z-index: 3; width: max-content; max-width: 15rem; padding: 0.85rem 1rem 0.9rem;
  background: rgba(11, 10, 9, 0.86); border: 1px solid rgba(205, 183, 142, 0.5); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  pointer-events: none; opacity: 0; scale: 0.96; transform-origin: 0 100%;
  transition: opacity 0.25s var(--ease-out), scale 0.3s var(--ease-out);
}
.pin-card.is-open { opacity: 1; scale: 1; }
.pin-card__place { font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500; color: var(--champagne); line-height: 1.5; }
.pin-card__line { margin-top: 0.3rem; font-family: var(--serif); font-size: 1.15rem; line-height: 1.2; }
.globe__ui { display: flex; align-items: center; justify-content: center; gap: 0.6rem 1.5rem; margin-top: 0.25rem; flex-wrap: wrap; }
.globe__coord { font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(236, 230, 219, 0.55); font-variant-numeric: tabular-nums; min-width: 13.5rem; text-align: center; }
.globe__zoom { position: absolute; z-index: 3; right: 0; top: 50%; translate: 0 -50%; display: flex; flex-direction: column; gap: 0.4rem; }
.globe__zoom button { background: rgba(5, 5, 5, 0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.globe__zoom button { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 50%; transition: border-color 0.3s, color 0.3s, transform 0.16s var(--ease-out); }
.globe__zoom button:hover { border-color: var(--champagne); color: var(--champagne); }
.globe__zoom button:active { transform: scale(0.94); }
.globe__zoom .icon { width: 18px; height: 18px; }
.globe__hint { width: 100%; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(166, 159, 147, 0.7); text-align: center; transition: opacity 0.6s; }
.globe__hint.is-hidden { opacity: 0; }
.hint-touch { display: none; }
@media (pointer: coarse) { .hint-touch { display: inline; } .hint-fine { display: none; } }

@media (max-width: 900px) {
  .world__grid { grid-template-columns: 1fr; min-height: 0; row-gap: 0; }
  .world__lead { margin-top: 1.25rem; }
  .globe { margin-top: 0.5rem; margin-inline: calc(var(--gutter) * -1); width: auto; }
  .globe__stage { max-height: none; }
  .globe__ui { padding-inline: var(--gutter); }
  .world__text { display: contents; }
  .world__text > .h2 { order: 1; }
  .world__text > .world__lead { order: 2; }
  .globe { order: 3; }
  .world__text > .modes { order: 4; max-width: none; grid-template-columns: 1fr 1fr; margin-top: 1.25rem; }
  .world__text > .world__msg { order: 5; }
  .world__text > .world__note { order: 6; }
  .mode { padding: 0.8rem 0.9rem; flex-direction: column; align-items: flex-start; justify-content: center; gap: 0.6rem; min-height: 92px; font-size: 0.68rem; letter-spacing: 0.12em; line-height: 1.35; }
  .mode::after { top: 0.9rem; right: 0.9rem; }
  .globe__coord { min-width: 0; }
  .globe__zoom { position: static; translate: none; flex-direction: row; }
  .globe__ui { justify-content: center; }
  .globe__coord { display: none; }
}

/* =========================================================================
   7 · ENVÍOS
   ========================================================================= */
.ship { padding-block: var(--sp); background: var(--ink-1); border-top: 1px solid var(--line); }
.ship__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2rem 4rem; align-items: end; }
.ship__head p { color: var(--muted); }
.ship__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--line); }
.ship__card, .ship__cta { display: grid; align-content: start; gap: 1.1rem; padding: clamp(2rem, 3.5vw, 3rem) clamp(1.25rem, 2.5vw, 2.5rem) 0 0; }
.ship__card + .ship__card, .ship__cta { padding-left: clamp(1.25rem, 2.5vw, 2.5rem); border-left: 1px solid var(--line); }
.ship__card p, .ship__cta p { color: var(--muted); }
.ship__icon { width: 3.4rem; height: 3.4rem; color: var(--champagne); }
.ship__icon--mx { width: 5.2rem; height: 3.5rem; }
.ship__card .link-arrow { justify-self: start; }
.ship__cta { align-content: end; }
.ship__cta .btn { justify-self: start; }
@media (max-width: 900px) {
  .ship__head { grid-template-columns: 1fr; }
  .ship__grid { grid-template-columns: 1fr; }
  .ship__card, .ship__cta, .ship__card + .ship__card { padding: 2.25rem 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .ship__cta { border-bottom: 0; padding-bottom: 0; }
  .ship__cta .btn { width: 100%; }
}

/* =========================================================================
   8 · UBICACIÓN
   ========================================================================= */
.visit { padding-block: var(--sp); }
.visit__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); align-items: stretch; }
.visit__text { grid-column: 1 / span 5; display: flex; flex-direction: column; }
.addr { margin-top: clamp(2rem, 4vw, 3rem); display: grid; gap: 0.5rem; padding: 1.6rem 0; border-block: 1px solid var(--paper-line); }
.addr__name { font-size: var(--fs-label); letter-spacing: 0.22em; text-transform: uppercase; font-weight: 500; color: var(--champagne-deep); }
.addr__line { font-family: var(--serif); font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.9rem); line-height: 1.25; color: var(--paper-ink); }
.visit__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.visit__photo { grid-column: 1 / span 5; grid-row: 2; aspect-ratio: 4 / 3; overflow: hidden; margin-top: clamp(2rem, 4vw, 3rem); background: #c9c2b4; }
.visit__photo picture { height: 100%; }
.visit__photo img { width: 100%; height: calc(100% + 60px); position: relative; top: -30px; object-fit: cover; }
.visit__map { grid-column: 7 / span 6; grid-row: 1 / span 2; position: relative; min-height: 520px; background: var(--ivory-2); border: 1px solid var(--paper-line); }
.visit__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) sepia(0.12) contrast(1.02) brightness(1.02); }
@media (max-width: 900px) {
  .visit__text, .visit__photo, .visit__map { grid-column: 1 / -1; grid-row: auto; }
  .visit__map { min-height: 380px; margin-top: 2rem; }
  .visit__photo { margin-top: 1rem; }
  .visit__actions .btn { flex: 1 1 100%; }
}

/* =========================================================================
   9 · REDES
   ========================================================================= */
.social { padding-block: var(--sp); background: var(--ink); }
.social__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 2rem; align-items: end; }
.social__head p { color: var(--muted); justify-self: end; max-width: 24rem; }
.social__list { margin-top: clamp(2.5rem, 5vw, 4.5rem); border-top: 1px solid var(--line); }
.social__item {
  display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.4fr) auto; align-items: center; gap: clamp(1rem, 3vw, 3rem);
  padding: clamp(1.4rem, 2.6vw, 2.2rem) 0; border-bottom: 1px solid var(--line); position: relative;
  transition: color 0.35s var(--ease-out), padding 0.5s var(--ease-out);
}
.social__item::before { content: ''; position: absolute; inset: -1px 0; background: linear-gradient(90deg, rgba(205, 183, 142, 0.08), transparent 70%); opacity: 0; transition: opacity 0.5s ease; pointer-events: none; }
.social__item:hover::before { opacity: 1; }
.social__item:hover { padding-left: 1rem; }
.social__icon { width: 1.6rem; height: 1.6rem; color: var(--champagne); }
.social__net { font-family: var(--serif); font-size: clamp(1.8rem, 1.2rem + 2.2vw, 3.4rem); line-height: 1; letter-spacing: -0.015em; }
.social__handle { font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); overflow-wrap: anywhere; }
.social__go { width: 1.6rem; height: 1.6rem; transition: transform 0.4s var(--ease-out), color 0.3s; }
.social__item:hover .social__go { transform: translate(4px, -4px); color: var(--champagne); }
@media (max-width: 760px) {
  .social__head { grid-template-columns: 1fr; }
  .social__head p { justify-self: start; }
  .social__item { grid-template-columns: auto 1fr auto; row-gap: 0.4rem; }
  .social__handle { grid-column: 2; grid-row: 2; font-size: 0.66rem; letter-spacing: 0.1em; }
  .social__go { grid-row: 1 / span 2; grid-column: 3; }
  .social__icon { grid-row: 1 / span 2; }
}

/* =========================================================================
   10 · PIE DE PÁGINA
   ========================================================================= */
.footer { background: #070706; border-top: 1px solid var(--line); padding: clamp(4rem, 8vw, 7rem) 0 calc(2rem + env(safe-area-inset-bottom)); font-size: 0.92rem; }
.footer__top { display: grid; grid-template-columns: auto 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; padding-bottom: clamp(3rem, 6vw, 4.5rem); border-bottom: 1px solid var(--line); }
.footer__logo { width: clamp(130px, 13vw, 180px); height: auto; }
.footer__name { font-size: var(--fs-label); letter-spacing: 0.26em; text-transform: uppercase; font-weight: 500; color: var(--champagne); }
.footer .footer__quote { margin: 0.9rem 0 1.8rem; color: var(--text); font-family: var(--serif); font-size: clamp(2rem, 1.2rem + 3vw, 4.2rem); line-height: 1.02; letter-spacing: -0.02em; }
.footer__cols { display: grid; grid-template-columns: 1fr 1.2fr 1fr 1.3fr; gap: 2rem clamp(1.5rem, 3vw, 3rem); padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.footer__h { font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 500; color: var(--text); margin-bottom: 1rem; }
.footer p, .footer address { color: var(--muted); line-height: 1.7; }
.footer__cols ul { display: grid; gap: 0.1rem; }
.footer__cols a { display: inline-flex; align-items: center; gap: 0.6rem; min-height: 36px; color: var(--muted); transition: color 0.25s; }
.footer__cols a:hover { color: var(--champagne); }
.footer__links { margin-top: 0.75rem; }
.footer__base { display: flex; justify-content: space-between; align-items: center; gap: 1rem 2rem; flex-wrap: wrap; padding-top: 1.75rem; border-top: 1px solid var(--line); font-size: 0.78rem; }
.footer__base p { color: rgba(166, 159, 147, 0.75); }
.footer__top-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); transition: color 0.25s; }
.footer__top-link:hover { color: var(--champagne); }
@media (max-width: 900px) {
  .footer__top { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer__cols { grid-template-columns: 1fr; }
  .footer__motto .btn { width: 100%; }
}

/* =========================================================================
   BOTÓN FLOTANTE DE WHATSAPP
   ========================================================================= */
.wa-float {
  position: fixed; z-index: 58; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 0; height: 54px; padding: 0 17px; border-radius: 999px;
  background: rgba(16, 15, 13, 0.82); color: var(--text); border: 1px solid rgba(205, 183, 142, 0.55);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  opacity: 0; transform: translateY(14px) scale(0.96); pointer-events: none;
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out), border-color 0.3s, background-color 0.3s, gap 0.45s var(--ease-out);
}
.wa-float .icon { width: 20px; height: 20px; color: var(--champagne); }
.wa-float__label { max-width: 0; overflow: hidden; white-space: nowrap; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500; transition: max-width 0.5s var(--ease-out); }
.wa-float.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.wa-float:hover { border-color: var(--champagne); background: rgba(24, 22, 19, 0.92); gap: 0.65rem; }
.wa-float:hover .wa-float__label, .wa-float:focus-visible .wa-float__label { max-width: 9rem; }
.wa-float:focus-visible { gap: 0.65rem; }
.wa-float:active { transform: scale(0.96); }
@media (max-width: 760px) { .wa-float { height: 50px; padding: 0 15px; right: 14px; bottom: max(14px, env(safe-area-inset-bottom)); } }

/* =========================================================================
   VISOR DE GALERÍA
   ========================================================================= */
.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(7, 7, 6, 0.96); color: var(--text); overflow: hidden;
}
.lightbox::backdrop { background: rgba(0, 0, 0, 0.6); }
.lightbox[open] { animation: lbIn 0.45s var(--ease-out); }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox__frame { position: relative; width: 100%; height: 100%; display: grid; grid-template-rows: 1fr auto; }
.lightbox__fig { display: grid; place-items: center; min-height: 0; overflow: hidden; padding: clamp(56px, 7vh, 80px) clamp(16px, 8vw, 120px) 1rem; }
.lightbox__fig img { max-width: 100%; max-height: calc(100dvh - clamp(56px, 7vh, 80px) - 8.5rem); width: auto; height: auto; object-fit: contain; transition: opacity 0.35s ease, transform 0.5s var(--ease-out); touch-action: pinch-zoom; }
.lightbox__fig img.is-swapping { opacity: 0; transform: scale(0.985); }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem clamp(16px, 4vw, 48px) calc(1.25rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); flex-wrap: wrap; }
.lightbox__title { display: flex; align-items: baseline; gap: 1rem; font-family: var(--serif); font-size: clamp(1.3rem, 1rem + 1vw, 1.8rem); }
.lightbox__count { font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.2em; color: var(--muted); font-variant-numeric: tabular-nums; }
.lightbox__close, .lightbox__nav { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(11, 10, 9, 0.6); transition: border-color 0.3s, color 0.3s, transform 0.16s var(--ease-out); }
.lightbox__close:hover, .lightbox__nav:hover { border-color: var(--champagne); color: var(--champagne); }
.lightbox__close:active, .lightbox__nav:active { transform: scale(0.94); }
.lightbox__close { top: 14px; right: 14px; }
.lightbox__nav { top: 50%; margin-top: -60px; }
.lightbox__nav--prev { left: clamp(10px, 2vw, 32px); }
.lightbox__nav--next { right: clamp(10px, 2vw, 32px); }
.lightbox .icon { width: 20px; height: 20px; }
@media (max-width: 760px) {
  .lightbox__nav { top: auto; bottom: 92px; margin: 0; }
  .lightbox__bar .btn { width: 100%; }
}
html.lb-open { overflow: hidden; }

/* =========================================================================
   MOVIMIENTO REDUCIDO
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
  .js .hero__media, .js .reveal-img > picture { clip-path: none !important; }
  .js .hero__pic, .js .reveal-img img { transform: none !important; filter: none !important; }
  .js .reveal-head > span, .js .hero__title .line > span { transform: none !important; }
  .js .hero__lead, .js .hero__actions, .js .hero__coord, .js .hero__scroll { opacity: 1 !important; filter: none !important; translate: none !important; }
  .js .nav__inner > * { opacity: 1 !important; transform: none !important; }
  [data-parallax] img { translate: none !important; }
  .hero__glint, .intro__glint { display: none; }
}
