/* ============ TOKENS ============ */
:root {
  --bg:        #f4f3f0;   /* crudo */
  --bg-2:      #ebe9e3;   /* paneles / cards */
  --ink:       #161513;   /* grafito casi negro */
  --text:      #2c2a26;
  --muted:     #8a8478;   /* piedra */
  --line:      rgba(22,21,19,0.12);

  --accent:      #2f3a2c;  /* verde botella */
  --accent-soft: #4d5b48;

  --on-dark:      #f4f3f0;
  --on-dark-muted:#bdb9ad;
  --dark-bg:      #161513;

  --serif: "Bodoni Moda", "Times New Roman", serif;
  --sans:  "Inter Tight", system-ui, -apple-system, sans-serif;

  /* ---- type scale — modular 1.25 (TAWWD §2.3) ---- */
  --text-xs:   0.75rem;    /* 12px — labels / eyebrows */
  --text-sm:   0.875rem;   /* 14px — secondary, nav, list items */
  --text-base: 1rem;       /* 16px — body */
  --text-lg:   1.125rem;   /* 18px — intro paragraphs */
  --text-xl:   1.375rem;   /* 22px — H4 */
  --text-2xl:  1.75rem;    /* 28px — H3 */
  --text-3xl:  2.25rem;    /* 36px — H2 */
  --text-4xl:  3rem;       /* 48px */
  --text-5xl:  4rem;       /* 64px */
  --text-6xl:  5rem;       /* 80px — hero */
  /* fluid display sizes (mobile → desktop), anchored to the scale above */
  --fluid-display: clamp(2.6rem, 6.5vw, 5.2rem);  /* section-hero headings */
  --fluid-h2:      clamp(2rem, 4.4vw, 3rem);       /* content section H2 (36–48px) */
  --fluid-h3:      clamp(1.5rem, 2.6vw, 1.75rem);  /* card / step titles (24–28px) */

  /* ---- line-height & tracking (TAWWD §2.3) ---- */
  --leading-tight:   1.1;
  --leading-snug:    1.3;
  --leading-normal:  1.5;
  --leading-relaxed: 1.65;
  --tracking-tight:  -0.02em;
  --tracking-wide:   0.05em;
  --tracking-wider:  0.1em;
  --tracking-widest: 0.16em;

  /* ---- spacing system (TAWWD §5.6) ---- */
  --section-py: clamp(6rem, 9vw, 9rem);   /* 96 → 144px vertical rhythm */
  --section-px: 4vw;
  --content-max: 1400px;

  /* motion design tokens — single source of truth (TAWWD §5) */
  --ease:     cubic-bezier(0.16, 1, 0.3, 1);   /* ease-out-expo, large reveals */
  --ease-out: cubic-bezier(0.33, 1, 0.68, 1);  /* micro-interactions */
  --t-fast:   0.2s;   /* hover / press feedback */
  --t-base:   0.4s;   /* default UI transition */
  --t-slow:   0.6s;   /* image zoom */

  /* soft elevation tuned to the warm palette */
  --shadow-hover: 0 12px 30px rgba(22, 21, 19, 0.16);
  --shadow-press: 0 4px 12px rgba(22, 21, 19, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html.no-lenis { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--sans); font-weight: 300; font-size: var(--text-base); line-height: var(--leading-relaxed); overflow-x: hidden; -webkit-font-smoothing: antialiased; transition: background-color 0.8s var(--ease); }

/* ---- theme crossfade (secciones data-theme → body funde crudo ↔ grafito) ---- */
body.theme-dark { background: var(--dark-bg); }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: var(--accent); color: var(--on-dark); }
:focus-visible { outline: 1.5px solid var(--accent); outline-offset: 3px; }
.on-dark:focus-visible, .hero :focus-visible, .invite :focus-visible { outline-color: var(--on-dark); }
.on-dark { color: var(--on-dark); }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--ink); }
.display { font-family: var(--serif); font-weight: 400; font-size: var(--fluid-display); line-height: var(--leading-tight); letter-spacing: var(--tracking-tight); color: var(--ink); }
.display em, .statement__big em, h2 em { font-style: italic; color: var(--accent); }
.on-dark.display em, .on-dark em { color: var(--on-dark); font-style: italic; opacity: 0.85; }

.eyebrow { display: inline-flex; align-items: center; gap: 0.7rem; font-size: var(--text-xs); letter-spacing: var(--tracking-widest); text-transform: uppercase; color: var(--muted); font-weight: 500; }
.eyebrow::before { content: ""; width: 1.4rem; height: 1px; background: var(--accent); }
.eyebrow.on-dark { color: var(--on-dark-muted); }
.eyebrow.on-dark::before { background: var(--on-dark); }

.statement__big { font-family: var(--serif); font-weight: 400; font-size: var(--fluid-h2); line-height: var(--leading-snug); letter-spacing: var(--tracking-tight); color: var(--ink); }
.statement__sub { font-size: var(--text-lg); line-height: var(--leading-normal); color: var(--muted); max-width: 42ch; margin-top: 1.4rem; }

/* Nosotros' opening statement is running copy (a founding story), not a
   headline — softer size and relaxed sans reading rhythm instead of the
   shared display-serif treatment other sections use .statement__big for. */
#nosotros .statement__big { font-family: var(--sans); font-weight: 300; font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: var(--leading-relaxed); letter-spacing: 0; max-width: 48ch; color: var(--text); }
#nosotros .statement__big em { font-style: normal; font-weight: 300; color: var(--accent); }
.display.on-dark, .statement__big.on-dark, h2.on-dark { color: var(--on-dark); }
.sets-intro__sub.on-dark, .zoom__reveal-p.on-dark, .invite__sub.on-dark, .invite__direct.on-dark { color: var(--on-dark-muted); }

/* ============ BUTTONS ============ */
.btn-fill { display: inline-flex; align-items: center; gap: 0.7rem; background: var(--ink); color: var(--bg); border-radius: 2px; padding: 1rem 1.8rem; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; transition: background var(--t-base) var(--ease-out), color var(--t-base) var(--ease-out), transform var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out); }
.btn-fill:hover { background: var(--accent); color: var(--on-dark); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn-fill:active { transform: translateY(0); box-shadow: var(--shadow-press); }
.btn-line { display: inline-flex; align-items: center; gap: 0.7rem; border: 1px solid var(--line); border-radius: 2px; padding: 0.9rem 1.7rem; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); transition: background var(--t-base) var(--ease-out), color var(--t-base) var(--ease-out), border-color var(--t-base) var(--ease-out), transform var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out); }
.btn-line:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn-line:active { transform: translateY(0); box-shadow: var(--shadow-press); }
.btn-line.on-dark { color: var(--on-dark); border-color: rgba(244,243,240,0.3); }
.btn-line.on-dark:hover { background: var(--on-dark); color: var(--ink); }
.btn-fill.on-dark, .invite .btn-fill { background: var(--on-dark); color: var(--ink); }
.btn-fill.on-dark:hover, .invite .btn-fill:hover { background: var(--accent); color: var(--on-dark); }
.link-text { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; border-bottom: 1px solid var(--line); padding-bottom: 0.3rem; transition: border-color var(--t-base) var(--ease-out), color var(--t-base) var(--ease-out); }
.link-text:hover { border-color: var(--accent); color: var(--accent); }

/* ============ NAV ============ */
/* Transparent only while the hero is still on screen (through its whole
   scroll-expand, since the hero stays pinned full-bleed for that span) — a
   barely-there gradient keeps the logo/links legible over the video there.
   From "Nosotros" onward (.nav--solid, set once the hero has fully left the
   viewport) it gets a real background so nav text never blends with page
   copy scrolling underneath. Logo/text color follows the section's theme
   (body.theme-dark) independently of either state. */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 90; display: flex; align-items: center; justify-content: space-between; padding: calc(1.15rem + env(safe-area-inset-top)) 4vw; background: transparent; transition: background 0.4s var(--ease), padding 0.4s var(--ease); }
.nav::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 56px; background: linear-gradient(180deg, rgba(13,13,13,0.10) 0%, rgba(13,13,13,0) 100%); pointer-events: none; z-index: -1; transition: opacity 0.4s var(--ease), background 0.6s var(--ease); }
body.theme-dark .nav::before { background: linear-gradient(180deg, rgba(0,0,0,0.20) 0%, rgba(0,0,0,0) 100%); }
.nav.nav--solid::before { opacity: 0; }
.nav.scrolled { padding-top: calc(0.8rem + env(safe-area-inset-top)); padding-bottom: 0.8rem; }
.nav.nav--solid { background: rgba(244,243,240,0.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
body.theme-dark .nav.nav--solid { background: rgba(22,21,19,0.92); border-bottom-color: rgba(244,243,240,0.08); }
.nav__brand { position: relative; display: block; height: 34px; width: 140px; }
.nav__logo { position: absolute; top: 0; left: 0; height: 34px; width: auto; transition: opacity 0.4s var(--ease); }
.nav__logo--white { opacity: 1; }
.nav__logo--dark { opacity: 0; }
body:not(.theme-dark) .nav__logo--white { opacity: 0; }
body:not(.theme-dark) .nav__logo--dark { opacity: 1; }
.nav__links { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 2.1rem; }
.nav__links a { font-size: 0.76rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--on-dark); position: relative; padding-bottom: 3px; transition: opacity var(--t-fast) var(--ease-out), color 0.4s var(--ease); }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px; background: currentColor; transition: width var(--t-base) var(--ease-out); }
.nav__links a:hover { opacity: 0.75; }
.nav__links a:hover::after { width: 100%; }
body:not(.theme-dark) .nav__links a { color: var(--ink); }
.nav__right { display: flex; align-items: center; gap: 1.4rem; }
.lang { display: flex; align-items: center; gap: 0.4rem; font-size: 0.74rem; letter-spacing: 0.08em; color: var(--on-dark-muted); transition: color 0.4s; }
body:not(.theme-dark) .lang { color: var(--muted); }
.lang button { opacity: 0.6; transition: opacity var(--t-fast) var(--ease-out); }
.lang button:hover { opacity: 1; }
.lang button.active { opacity: 1; }
.nav .btn-line { color: var(--on-dark); border-color: rgba(244,243,240,0.3); }
body:not(.theme-dark) .nav .btn-line { color: var(--ink); border-color: var(--line); }
body:not(.theme-dark) .nav .btn-line:hover { color: var(--bg); }
.nav__burger { display: flex; flex-direction: column; gap: 5px; width: 24px; }
.nav__burger span { display: block; height: 1px; background: var(--on-dark); transition: background 0.4s; }
body:not(.theme-dark) .nav__burger span { background: var(--ink); }

/* ============ DRAWER ============ */
.scrim { position: fixed; inset: 0; background: rgba(22,21,19,0.5); z-index: 95; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 88vw); background: rgba(244,243,240,0.62); backdrop-filter: blur(22px) saturate(140%); -webkit-backdrop-filter: blur(22px) saturate(140%); border-left: 1px solid rgba(22,21,19,0.08); z-index: 96; padding: 6rem 3rem 3rem; display: flex; flex-direction: column; transform: translateX(100%); transition: transform 0.5s var(--ease); }
.drawer.open { transform: translateX(0); }
.drawer__close { position: absolute; top: calc(2rem + env(safe-area-inset-top)); right: 2rem; font-size: 1.8rem; color: var(--ink); }
.drawer__nav { display: flex; flex-direction: column; gap: 1.1rem; }
.drawer__nav a { font-family: var(--serif); font-style: italic; font-size: clamp(1.6rem, 5vw, 2.2rem); color: var(--ink); transition: color var(--t-fast) var(--ease-out), padding-left var(--t-base) var(--ease-out); }
.drawer__nav a:hover { color: var(--accent); padding-left: 0.5rem; }
.drawer__cta { text-align: left; font-family: var(--serif); font-style: italic; font-size: clamp(1.6rem,5vw,2.2rem); color: var(--accent); padding-top: 0.4rem; }
.drawer__divider { height: 1px; background: var(--line); margin: 2rem 0; }
.drawer__private { align-self: flex-start; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 0.3rem; }
.drawer__foot { margin-top: auto; display: flex; gap: 1.2rem; font-size: 0.78rem; color: var(--muted); }

/* ============ HERO ============ */
.hero { position: relative; height: 100vh; min-height: 640px; display: flex; align-items: flex-start; justify-content: center; overflow: hidden; background: var(--dark-bg); }
.hero__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 42%; transform: scale(1.06); }
/* .hero__frame grows on scroll (JS-driven, desktop only — see initHeroExpand),
   interpolating top/left/width/height directly rather than scaling from center,
   so the box can start low in the frame (clear of the text block above) and
   expand outward into a full-bleed screen. Default size below is the pre-JS /
   no-scroll starting box so nothing jumps once GSAP takes over at progress 0. */
.hero__frame { position: absolute; top: 56vh; left: 50%; width: min(36vw, 400px); height: min(30vh, 300px); transform: translateX(-50%); z-index: 1; overflow: hidden; border-radius: 20px; box-shadow: 0 30px 90px rgba(0,0,0,0.45); background: var(--dark-bg); }
/* object-fit:cover on a portrait (720x1280) source forces an upscale to fill a
   landscape frame — unavoidable without losing full-bleed coverage. A light
   contrast/saturate lift perceptually sharpens softened footage without blur. */
.hero__video { width: 100%; height: 100%; object-fit: cover; filter: contrast(1.06) saturate(1.08); }
.hero__scrim { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(180deg, rgba(22,21,19,0.4) 0%, rgba(22,21,19,0.2) 45%, rgba(22,21,19,0.55) 100%); }
.hero__inner { position: relative; z-index: 3; padding: 10vh 4vw 0; max-width: 1100px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero h1 { color: var(--on-dark); font-weight: 300; font-size: var(--fluid-display); line-height: var(--leading-tight); letter-spacing: 0.01em; }
.hero__line { display: block; }
.hero__eyebrow { margin-bottom: 1.1rem; justify-content: center; }
.hero__sub { margin-top: 1.1rem; font-size: var(--text-lg); line-height: var(--leading-normal); color: var(--on-dark-muted); max-width: 46ch; }
.hero__cta { margin-top: 1.7rem; display: flex; align-items: center; gap: 1rem; }
.hero__scroll { position: absolute; left: 50%; bottom: 2.8rem; z-index: 3; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 0.7rem; color: var(--on-dark-muted); font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; }
.hero__scroll .ln { width: 1px; height: 34px; background: rgba(244,243,240,0.45); }

/* Fallback: mobile + prefers-reduced-motion skip the scroll-expand entirely —
   frame is fullscreen immediately, background photo hidden. Same end-state as
   the pre-existing single-video hero, just reached without a scroll-driven tween. */
.hero--static .hero__bg { display: none; }
.hero--static .hero__frame { top: 0; left: 0; transform: none; width: 100%; height: 100%; border-radius: 0; box-shadow: none; }

/* ============ SECTIONS ============ */
.section { padding: var(--section-py) var(--section-px); max-width: var(--content-max); margin: 0 auto; }

/* "Nosotros" as a raised panel: the hero stays pinned full-bleed underneath
   while this section rides up over it in normal scroll flow (see the hero's
   extended pin in initHeroExpand). Rounded top + a shadow cast upward onto
   the hero read as a deliberate sliding cover instead of a flat scrim cut.
   Shadow blur is kept ≤ (offset + |spread|) = 100px so it never bleeds *below*
   the panel — otherwise, since this sits at z-index 2, that grey haze would
   paint over the top of Method and read as a "different white" seam. That shadow
   fix alone removes the seam; Method itself stays transparent (no explicit bg)
   so it keeps participating in the body's light→dark theme crossfade — the whole
   Method section darkens on the way into Montajes, not just its margins. */
#nosotros { position: relative; z-index: 2; background: var(--bg); border-radius: 32px 32px 0 0; box-shadow: 0 -60px 90px -40px rgba(13,13,13,0.42); }

.statement { display: grid; grid-template-columns: 1fr 1.6fr; gap: 3rem; margin-bottom: 4.5rem; }
.statement__label { padding-top: 0.4rem; }

/* about feature — asymmetric editorial: large offset photo + stats side-rail */
.about-feature { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: end; margin-bottom: 4rem; }
.about-feature__frame { overflow: hidden; aspect-ratio: 3/2; }
.about-feature__frame img { width: 100%; height: 100%; object-fit: cover; will-change: transform; filter: grayscale(1); }

/* stats — vertical caption rail with hairline dividers */
.stats { display: flex; flex-direction: column; gap: 1.9rem; }
.stat { padding-bottom: 1.9rem; border-bottom: 1px solid var(--line); }
.stat:last-child { padding-bottom: 0; border-bottom: none; }
.stat__num, .stat__num--text { font-family: var(--serif); font-style: italic; font-size: clamp(2.6rem, 4.4vw, 3.6rem); color: var(--accent); line-height: 1; }
.stat__label { font-size: var(--text-sm); color: var(--muted); margin-top: 0.6rem; letter-spacing: 0.02em; }

/* method */
/* Nosotros lifts itself a full viewport via transform (the slide-over-hero
   reveal), and its JS sets a matching negative margin-bottom so everything
   after it rides up too — otherwise a viewport-height hole opens at the seam.
   Method drops its top padding so Nosotros' own bottom padding is the only gap. */
#metodo { padding-top: 0; }
/* method — two columns: editorial text left, horizontal image accordion right.
   Panels are collapsed vertical strips (rotated label) that grow to reveal a
   photo + title + description on hover / click / focus; one active at a time. */
.method__layout { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: clamp(2.5rem, 5vw, 5rem); align-items: center; }
.method__intro .statement__big { margin-top: 1.4rem; }
.method__intro .statement__sub { max-width: 34ch; }

.method__acccap { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; font-size: var(--text-xs); letter-spacing: var(--tracking-widest); text-transform: uppercase; color: var(--muted); }
.method__acccap-hint { display: inline-flex; align-items: center; gap: 0.6rem; }
.method__pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: methodPulse 1.8s ease-in-out infinite; }
@keyframes methodPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }

.method__panels { display: flex; gap: 0.8rem; height: clamp(360px, 52vh, 560px); }
.method__panel { position: relative; flex: 1 1 0%; min-width: 0; border-radius: 16px; overflow: hidden; cursor: pointer; background: var(--dark-bg); transition: flex-grow 0.7s cubic-bezier(.22,.61,.36,1); }
.method__panel:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.method__panel.is-active { flex-grow: 5.4; }
.method__panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.22,.61,.36,1); }
.method__panel.is-active img { transform: scale(1.05); }
.method__panel-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,13,13,0.15) 0%, rgba(13,13,13,0.05) 40%, rgba(13,13,13,0.82) 100%); }
.method__panel-num { position: absolute; top: 1.1rem; left: 1.1rem; z-index: 2; font-size: var(--text-xs); letter-spacing: 0.1em; color: var(--on-dark); background: rgba(244,243,240,0.14); border: 1px solid rgba(244,243,240,0.28); backdrop-filter: blur(6px); border-radius: 999px; padding: 0.3rem 0.7rem; }

/* active state: horizontal title + description at the bottom */
.method__panel-body { position: absolute; inset-inline: 0; bottom: 0; z-index: 2; padding: clamp(1.1rem, 2vw, 1.8rem); opacity: 0; transform: translateY(14px); transition: opacity 0.4s ease 0.15s, transform 0.5s cubic-bezier(.22,.61,.36,1) 0.12s; }
.method__panel.is-active .method__panel-body { opacity: 1; transform: none; }
.method__panel-title { display: block; font-family: var(--serif); font-style: italic; font-size: var(--fluid-h3); line-height: 1.1; color: var(--on-dark); }
.method__panel-desc { display: block; margin-top: 0.6rem; max-width: 34ch; font-size: var(--text-sm); line-height: var(--leading-normal); color: rgba(244,243,240,0.75); }

/* collapsed state: title rotated up the strip */
.method__panel-vlabel { position: absolute; left: 50%; bottom: 2.6rem; z-index: 2; white-space: nowrap; transform-origin: center; transform: translateX(-50%) rotate(90deg) translateX(0); font-size: var(--text-sm); letter-spacing: 0.04em; color: var(--on-dark); opacity: 1; transition: opacity 0.35s ease; }
.method__panel.is-active .method__panel-vlabel { opacity: 0; }

.method__index { display: flex; align-items: center; justify-content: space-between; margin-top: 1.4rem; }
.method__index-num { display: flex; align-items: baseline; gap: 0.5rem; font-family: var(--serif); font-style: italic; }
.method__index-num #methodIdx { font-size: var(--text-xl); color: var(--ink); }
.method__index-tot { font-size: var(--text-sm); color: var(--muted); }
.method__dots { display: flex; align-items: center; gap: 0.4rem; }
.method__dot { width: 12px; height: 3px; border-radius: 999px; background: var(--line); transition: width 0.4s var(--ease-out), background 0.4s var(--ease-out); }
.method__dot.is-on { width: 30px; background: var(--accent); }

/* sets intro full-bleed */
.sets-intro { position: relative; min-height: 86vh; display: flex; align-items: center; overflow: hidden; }
.sets-intro__bg { position: absolute; inset: 0; }
.sets-intro__bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(35%); }
.sets-intro__bg::after { content: ""; position: absolute; inset: 0; background: rgba(22,21,19,0.62); }
.sets-intro__inner { position: relative; z-index: 1; padding: 0 4vw; max-width: 900px; }
.sets-intro__sub { font-size: var(--text-lg); line-height: var(--leading-normal); max-width: 44ch; margin-top: 1.4rem; }

.sets__list { max-width: 1400px; margin: 0 auto; }
.set-row { display: flex; align-items: baseline; justify-content: space-between; padding: 1.7rem 0; border-bottom: 1px solid var(--line); cursor: default; }
.set-row__left { display: flex; align-items: baseline; gap: 1.4rem; }
.set-row__n { font-size: var(--text-xs); color: var(--muted); letter-spacing: var(--tracking-wider); }
.set-row__name { font-family: var(--serif); font-style: italic; font-size: clamp(1.6rem, 3.4vw, 2.6rem); color: var(--ink); transition: color 0.4s; }
.set-row:hover .set-row__name { color: var(--accent); }
.set-row__level { font-size: var(--text-sm); color: var(--muted); letter-spacing: 0.04em; }

/* ============ MONTAJES — rotating drum carousel (infinite cylinder wall) ============ */
.stage { position: relative; min-height: 100vh; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(1.2rem, 2.8vh, 2.2rem); padding: 6.5rem 4vw 3rem; text-align: center; }

/* blurred echo of the active render, for depth behind the drum */
.stage__backdrop { position: absolute; inset: 0; z-index: 0; }
.stage__backdrop img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.25); filter: blur(48px) brightness(0.38) saturate(0.85); }
.stage__backdrop::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 100% at 50% 42%, rgba(13,13,13,0.3), rgba(13,13,13,0.85) 100%); }

/* the drum: slides sit on the inner wall of a cylinder; JS rotates the ring */
.stage__ringwrap { position: relative; z-index: 1; width: 100%; display: flex; justify-content: center; perspective: 1900px; }
.stage__ring { position: relative; width: min(52vw, 660px); aspect-ratio: 16 / 9; transform-style: preserve-3d; will-change: transform; }
.stage__slide { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.stage__slide-inner { position: relative; width: 100%; height: 100%; border-radius: 10px; overflow: hidden; box-shadow: 0 42px 90px -32px rgba(0,0,0,0.85); filter: blur(6px) brightness(0.52) saturate(0.85); opacity: 1; transform: scale(0.97); transition: filter 0.65s var(--ease-out), transform 0.65s var(--ease-out), opacity 0.45s var(--ease-out); }
.stage__slide-inner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.stage__slide.is-active .stage__slide-inner { filter: none; transform: scale(1.05); }
.stage__slide.is-hidden .stage__slide-inner { opacity: 0; }
.stage__slide-num { position: absolute; top: 0.9rem; left: 0.9rem; z-index: 1; font-size: var(--text-xs); letter-spacing: 0.1em; color: var(--on-dark); background: rgba(244,243,240,0.14); border: 1px solid rgba(244,243,240,0.28); backdrop-filter: blur(6px); border-radius: 999px; padding: 0.3rem 0.7rem; }

/* side arrows */
.stage__arrow { position: absolute; top: 50%; z-index: 3; transform: translateY(-50%); width: 52px; height: 52px; display: grid; place-items: center; font-size: 1.5rem; color: var(--on-dark); background: rgba(13,13,13,0.35); border: 1px solid rgba(244,243,240,0.28); border-radius: 50%; backdrop-filter: blur(6px); transition: background 0.3s var(--ease-out), color 0.3s var(--ease-out), border-color 0.3s var(--ease-out); }
.stage__arrow:hover { background: var(--on-dark); color: var(--ink); border-color: var(--on-dark); }
.stage__arrow--prev { left: clamp(0.6rem, 3vw, 2.4rem); }
.stage__arrow--next { right: clamp(0.6rem, 3vw, 2.4rem); }

/* info block under the drum */
.stage__info { position: relative; z-index: 2; color: var(--on-dark); max-width: 52ch; }
.stage__count { font-family: var(--serif); font-style: italic; color: var(--on-dark-muted); display: inline-flex; align-items: center; gap: 0.7rem; }
.stage__count #stageIdx { color: var(--on-dark); font-size: var(--text-xl); }
.stage__count-sep { width: 2.2rem; height: 1px; background: rgba(244,243,240,0.3); }
.stage__name { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(2rem, 4.4vw, 3.1rem); color: var(--on-dark); line-height: 1.04; margin-top: 0.4rem; }
.stage__level { font-size: var(--text-xs); letter-spacing: var(--tracking-widest); text-transform: uppercase; color: var(--accent); margin-top: 0.55rem; }
.stage__tag { color: var(--on-dark-muted); margin: 0.7rem auto 0; max-width: 42ch; font-size: var(--text-base); line-height: var(--leading-normal); }
.stage__toggle { display: inline-flex; align-items: center; gap: 0.6rem; margin-top: 1.1rem; font-size: var(--text-xs); letter-spacing: var(--tracking-widest); text-transform: uppercase; color: var(--on-dark); }
.stage__toggle-ic { position: relative; width: 12px; height: 12px; }
.stage__toggle-ic::before, .stage__toggle-ic::after { content: ""; position: absolute; left: 50%; top: 50%; background: var(--on-dark-muted); transition: transform 0.3s var(--ease-out); }
.stage__toggle-ic::before { width: 12px; height: 1px; transform: translate(-50%,-50%); }
.stage__toggle-ic::after { width: 1px; height: 12px; transform: translate(-50%,-50%); }
.stage__toggle[aria-expanded="true"] .stage__toggle-ic::after { transform: translate(-50%,-50%) scaleY(0); }
.stage__inc-wrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.45s var(--ease-out); }
.stage__inc-wrap.is-open { grid-template-rows: 1fr; }
.stage__inc { list-style: none; overflow: hidden; display: inline-flex; flex-direction: column; gap: 0.5rem; margin-top: 0.9rem; text-align: left; }
.stage__inc li { font-size: var(--text-sm); color: var(--on-dark-muted); position: relative; padding-left: 1.1rem; }
.stage__inc li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 6px; height: 1px; background: var(--accent); }

/* dots */
.stage__dots { position: relative; z-index: 2; display: flex; align-items: center; gap: 0.5rem; }
.stage__dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(244,243,240,0.28); transition: width 0.4s var(--ease-out), background 0.4s var(--ease-out); cursor: pointer; }
.stage__dot.is-on { width: 26px; border-radius: 999px; background: var(--accent); }

@media (max-width: 900px) {
  .stage { padding: 5.5rem 0 2.2rem; gap: 1.3rem; }
  .stage__ring { width: min(78vw, 440px); }
  .stage__arrow { width: 42px; height: 42px; font-size: 1.2rem; }
  .stage__info { padding: 0 6vw; }
  .stage__inc { max-height: 30vh; overflow-y: auto; }
}

/* ============ GALERÍA — zoom parallax → transición a Bodas ============ */
/* Tall track drives the scroll; the pinned viewport holds 7 photos that scale
   up on scroll (JS). The centre photo (bride + father) grows to full-bleed;
   the others zoom out past the edges. Once it fills, the Bodas copy fades in
   over it — that reveal IS the section-to-section transition. */
/* transparent so the body tone (crudo/grafito) shows through — the Montajes→
   Galería hand-off is then the body's temporal colour crossfade (dark→light),
   with a clear section edge, rather than a spatial gradient band. */
.zoom { position: relative; background: transparent; }
/* title lives ABOVE the photos in its own band (not overlaid on the collage) */
.zoom__intro { display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center; padding: clamp(5rem, 12vh, 9rem) 4vw clamp(2.5rem, 6vh, 4rem); }
.zoom__intro .eyebrow { justify-content: center; }
.zoom__intro-h { max-width: 16ch; }
/* extra runway holds the full-bleed bride photo + Bodas copy so the moment
   doesn't fly past — the zoom itself finishes early (JS ZOOM_DONE) and the
   rest of this track is the "held" pause, same idea as the hero's scroll-expand.
   Kept short (well under one extra screen) rather than the multi-screen hold
   this used to have — that read as the scroll going dead/stuck rather than
   a deliberate pause. */
.zoom__track { position: relative; height: 300vh; }
.zoom__pin { position: sticky; top: 0; height: 100vh; overflow: hidden; }

.zoom__stage { position: absolute; inset: 0; z-index: 1; }
.zoom__item { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; transform-origin: center center; will-change: transform; }
.zoom__frame { position: relative; height: 25vh; width: 25vw; overflow: hidden; }
.zoom__frame picture { display: block; width: 100%; height: 100%; }
.zoom__frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* The centre photo is sized at its FINAL full-bleed dimensions and merely
   scaled DOWN for the collage (JS scales it 0.25→1). Scaling a small raster UP
   is what made it pixelate; rendering at full size keeps it crisp all the way. */
.zoom__item[data-z="0"] .zoom__frame { height: 100vh; width: 100vw; }
/* per-photo cluster positions (mirror of the reference layout) */
.zoom__item[data-z="1"] .zoom__frame { top: -30vh; left: 5vw; height: 30vh; width: 35vw; }
.zoom__item[data-z="2"] .zoom__frame { top: -10vh; left: -25vw; height: 45vh; width: 20vw; }
.zoom__item[data-z="3"] .zoom__frame { left: 27.5vw; height: 25vh; width: 25vw; }
.zoom__item[data-z="4"] .zoom__frame { top: 27.5vh; left: 5vw; height: 25vh; width: 20vw; }
.zoom__item[data-z="5"] .zoom__frame { top: 27.5vh; left: -22.5vw; height: 25vh; width: 30vw; }
.zoom__item[data-z="6"] .zoom__frame { top: 22.5vh; left: 25vw; height: 15vh; width: 15vw; }

/* dark veil that fades in under the Bodas copy for legibility */
.zoom__veil { position: absolute; inset: 0; z-index: 2; opacity: 0; pointer-events: none; background: linear-gradient(180deg, rgba(13,13,13,0.15) 0%, rgba(13,13,13,0.1) 40%, rgba(13,13,13,0.72) 100%); }

.zoom__reveal { position: absolute; z-index: 3; left: clamp(1.6rem, 6vw, 6rem); right: clamp(1.4rem, 6vw, 3rem); bottom: clamp(3rem, 10vh, 7rem); max-width: 40ch; opacity: 0; will-change: opacity, transform; }
.zoom__reveal-p { margin: 1.4rem 0 2rem; max-width: 42ch; }

/* Desktop end-state: the centre photo is vertical, so instead of cropping it to
   full-bleed (too tight + copy hard to read) it fits the viewport HEIGHT as a
   portrait poster on the white section, and the Bodas copy sits in dark ink in
   the LEFT margin where it reads cleanly. (Mobile keeps the full-bleed look.)
   The heading gets its own (smaller) size here instead of inheriting .display's
   huge fluid clamp — at the shared display size it wrapped ugly inside this
   narrower column. */
@media (min-width: 721px) {
  .zoom__item[data-z="0"] .zoom__frame { width: 66.7vh; height: 100vh; } /* 2:3 portrait poster, final size */
  .zoom__veil { display: none; }
  /* max-width is derived from the photo's own geometry, not guessed: the poster
     is centred and sized in vh (66.7vh wide), so its left edge sits at
     (100vw - 66.7vh)/2 — the text box's width is that gap minus its own left
     offset and a breathing margin, so it can never reach the photo regardless
     of viewport aspect ratio. (A fixed ch/vw width earlier didn't know where
     the photo actually was and overlapped it at this size.) */
  .zoom__reveal { --zr-left: clamp(1.4rem, 4vw, 5rem); left: var(--zr-left); right: auto; top: 0; bottom: 0;
                  max-width: max(240px, calc((100vw - 66.7vh) / 2 - var(--zr-left) - 2rem));
                  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
  .zoom__reveal .eyebrow.on-dark { color: var(--muted); }
  .zoom__reveal .eyebrow.on-dark::before { background: var(--accent); }
  .zoom__reveal .display.on-dark { color: var(--ink); font-size: clamp(1.7rem, 2.4vw, 2.3rem); line-height: 1.15; white-space: nowrap; }
  .zoom__reveal .on-dark em { color: var(--accent); opacity: 1; }
  .zoom__reveal-p.on-dark { color: var(--muted); }
  .zoom__reveal .btn-line.on-dark { color: var(--ink); border-color: var(--line); }
  .zoom__reveal .btn-line.on-dark:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
}

/* fallback: no GSAP / reduced motion → simple grid + copy, no pin/zoom */
.zoom--static .zoom__track { height: auto; }
.zoom--static .zoom__pin { position: static; height: auto; padding: var(--section-py) var(--section-px); }
.zoom--static .zoom__stage { position: static; display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 200px; gap: 0.6rem; }
.zoom--static .zoom__item { position: static; transform: none !important; }
.zoom--static .zoom__item[data-z="0"] { grid-column: span 2; grid-row: span 2; }
.zoom--static .zoom__frame { position: static; width: 100% !important; height: 100% !important; top: auto !important; left: auto !important; }
.zoom--static .zoom__veil { display: none; }
.zoom--static .zoom__reveal { position: static; opacity: 1 !important; max-width: none; margin-top: 2.5rem; }

/* motion */

/* invite — full-bleed photo backdrop; vertical crop on phones, horizontal on
   desktop (art-directed via <picture>), same idiom as the Galería/Método swaps. */
.invite { position: relative; min-height: 92vh; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; padding-bottom: clamp(4.5rem, 11vh, 6.5rem); }
.invite__bg { position: absolute; inset: 0; z-index: 0; }
.invite__bg img { width: 100%; height: 100%; object-fit: cover; }
.invite__scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(13,13,13,0.6) 0%, rgba(13,13,13,0.4) 45%, rgba(13,13,13,0.66) 100%); }
.invite__inner { position: relative; z-index: 2; max-width: 640px; padding: 0 4vw; }
/* "Beatwave" is part of the sentence itself, but NOT at the full display size —
   that read as shouty/aggressive. Its own smaller, relaxed serif size invites
   reading. Three deliberate lines (explicit <br/> in the copy, not auto-wrap —
   ch-unit widths measured unreliably narrow earlier in this file, so this uses
   a generous px-based width instead) with roomy line-height for elegant
   breathing space (mobile). On desktop there's room to read it as one single
   confident line instead — the .invite__break <br>s are hidden there and the
   column widens to fit; font shrinks a touch so it still fits on one line
   rather than auto-wrapping. Keeps the .on-dark em (crema italic) legible
   over the photo. */
.invite__h2 { margin: 0 auto; max-width: min(90vw, 620px); font-size: clamp(1.4rem, 3vw, 2.4rem); line-height: 1.55; letter-spacing: 0.005em; }
.invite__sub { font-size: var(--text-base); line-height: var(--leading-normal); color: var(--on-dark-muted); max-width: 40ch; margin: 1.3rem auto 2.2rem; }
@media (min-width: 721px) {
  .invite__inner { max-width: 1040px; }
  .invite__h2 { max-width: 96vw; white-space: nowrap; font-size: clamp(1.7rem, 2.8vw, 2.7rem); }
  .invite__break { display: none; }
}
.invite__direct { margin-top: 1.6rem; font-size: var(--text-sm); }
.invite__direct a { border-bottom: 1px solid rgba(244,243,240,0.3); }

/* footer — lives inside the invite photo (not a separate section), so the
   photo itself is the true end of the page. */
.invite__foot { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.5rem 4vw; border-top: 1px solid rgba(244,243,240,0.16); }
.invite__foot-logo { height: 26px; width: auto; opacity: 0.9; }
.invite__foot-legal { display: flex; gap: 1.2rem; font-size: 0.74rem; color: var(--on-dark-muted); text-align: right; }
.drawer__foot a { transition: color var(--t-fast) var(--ease-out); }
.drawer__foot a:hover { color: var(--ink); }
.invite__direct a, .direct a { transition: opacity var(--t-fast) var(--ease-out); }
.invite__direct a:hover, .direct a:hover { opacity: 0.65; }
.drawer__private { transition: color var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out); }
.drawer__private:hover { color: var(--ink); border-color: var(--accent); }

/* ============ MODALS ============ */
.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity 0.4s var(--ease); }
.modal.open { opacity: 1; visibility: visible; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(22,21,19,0.6); }
.modal__panel { position: relative; z-index: 1; background: var(--bg); width: min(680px, 92vw); max-height: 88vh; overflow-y: auto; padding: 3rem; border-radius: 2px; }
.modal--sm .modal__panel { width: min(420px, 92vw); }
.modal__close { position: absolute; top: 1.6rem; right: 1.8rem; font-size: 1.6rem; }
.modal__title { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0.6rem 0 1rem; }
.modal__text { color: var(--muted); margin-bottom: 1.8rem; max-width: 50ch; }
.modal__help { font-size: 0.8rem; color: var(--muted); margin-top: 1rem; }

.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.field label { font-size: 0.74rem; letter-spacing: 0.04em; color: var(--muted); }
.field input, .field textarea, .field select { font-family: inherit; font-size: 0.92rem; padding: 0.7rem 0; border: none; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); }
.check { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.78rem; color: var(--muted); margin: 0.6rem 0 1.6rem; }
.check input { margin-top: 0.2rem; }
.contact__foot { display: flex; flex-direction: column; gap: 1.2rem; align-items: flex-start; }
.direct { font-size: 0.8rem; color: var(--muted); }
.direct a { border-bottom: 1px solid var(--line); }

/* honeypot — off-screen (not display:none) so bots that skip hidden fields still fill it */
.field--hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.form__status { font-size: 0.85rem; margin: -0.4rem 0 0.2rem; min-height: 1.2em; }
.form__status[data-state="sending"] { color: var(--muted); }
.form__status[data-state="ok"] { color: #3a7d4f; }
.form__status[data-state="error"] { color: #b5423a; }
.btn-fill:disabled { opacity: 0.55; cursor: not-allowed; }

/* ============ REVEAL (JS-driven via GSAP, CSS fallback) ============ */
.reveal { opacity: 0; transform: translateY(28px); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .statement { grid-template-columns: 1fr; gap: 1.6rem; }
  .about-feature { grid-template-columns: 1fr; gap: 2.4rem; align-items: stretch; }
  .method__layout { grid-template-columns: 1fr; gap: 2.6rem; align-items: start; }
  .zoom--static .zoom__stage { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  /* Below this width there isn't room for logo + 5 links + lang + CTA + burger
     without crowding — the same section links already live in the drawer. */
  .nav__links { display: none; }
}
@media (max-width: 720px) {
  :root { --section-px: 6vw; }
  .nav__right .btn-line.js-contact { display: none; }
  /* declutter the zoom collage on phones — drop one photo (5973), and stretch
     5998 (bottom-left) all the way to the right edge to close the leftover
     whitespace gap instead of just widening it a bit. */
  .zoom__item[data-z="4"] { display: none; }
  .zoom__item[data-z="5"] .zoom__frame { width: 97vw; left: 1vw; }
  /* also drop the DJ shot (6108) on phones — one fewer photo in an already
     dense collage; z5 already spans nearly the full width at a similar height
     so no gap opens up where it was. */
  .zoom__item[data-z="6"] { display: none; }
  /* lighter scrim on phones: keep the text band readable but let the lower
     part of the photo — the dance floor — breathe through, softly. */
  .invite__scrim { background: linear-gradient(180deg, rgba(13,13,13,0.55) 0%, rgba(13,13,13,0.42) 46%, rgba(13,13,13,0.24) 100%); }
  /* shift the whole text block up so the dancing crowd in the photo's lower
     half gets more room to actually be seen, instead of sitting fully behind
     dead-centre copy. */
  .invite { align-items: flex-start; padding-bottom: 6.5rem; }
  .invite__inner { padding-top: 13vh; }
  .invite__foot { flex-direction: column; align-items: flex-start; gap: 0.7rem; }
  .invite__foot-legal { flex-direction: column; gap: 0.3rem; text-align: left; }
  .set-row { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
  .form .row { grid-template-columns: 1fr; }
  .hero__cta { flex-direction: column; width: 100%; max-width: 340px; }
  .hero__cta .btn-fill, .hero__cta .btn-line { width: 100%; justify-content: center; }
  .hero__sub { font-size: var(--text-base); }

  /* Method accordion on phones: stack the panels as full-width horizontal bars
     that expand in HEIGHT — side-by-side vertical strips get too narrow to read
     on a phone. Height animates here instead of flex-grow, and the label lies
     flat on the collapsed bar rather than rotated up a strip. */
  .method__panels { flex-direction: column; height: auto; gap: 0.6rem; }
  .method__panel { flex: 0 0 auto; height: 74px; transition: height 0.7s cubic-bezier(.22,.61,.36,1); }
  .method__panel.is-active { flex-grow: 0; height: clamp(300px, 46vh, 400px); }
  .method__panel-num { top: 0.9rem; left: 0.9rem; padding: 0.2rem 0.5rem; }
  .method__panel-vlabel { left: 1.2rem; bottom: auto; top: 50%; transform: translateY(-50%); font-size: var(--text-base); text-shadow: 0 1px 10px rgba(0,0,0,0.55); }

  /* Nosotros stats: horizontal row under the photo instead of a stacked rail —
     dividers move from bottom to right, number size trimmed so all three fit. */
  .stats { flex-direction: row; gap: 0.9rem; }
  .stat { flex: 1; min-width: 0; padding-bottom: 0; padding-right: 0.9rem; border-bottom: none; border-right: 1px solid var(--line); }
  .stat:last-child { padding-right: 0; border-right: none; }
  .stat__num, .stat__num--text { font-size: clamp(1.7rem, 6.5vw, 2.1rem); }
  .stat__label { font-size: var(--text-xs); line-height: 1.35; }
}

/* ============ REDUCED MOTION (TAWWD §9) ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero__media video { transform: none !important; }
}
