/* ============================================================
   LÁGRIMAS DE YUNUÉN — Design System
   Vibe: Editorial Luxury / Dark Ritual
   Layout: Editorial Split + Z-Axis Cascade
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,600&family=Plus+Jakarta+Sans:wght@300;400;500;600&display=swap');

/* ── Design Tokens ───────────────────────────────────────── */
:root {
  --c-bg:           oklch(7% 0.008 28);
  --c-surface:      oklch(10.5% 0.010 25);
  --c-surface-2:    oklch(14% 0.012 25);
  --c-border:       oklch(22% 0.014 25);
  --c-border-faint: oklch(16% 0.010 25);

  --c-crimson:      oklch(38% 0.14 13);
  --c-crimson-mid:  oklch(48% 0.18 13);
  --c-crimson-hi:   oklch(58% 0.20 13);

  --c-amber:        oklch(70% 0.14 62);
  --c-amber-dim:    oklch(58% 0.11 58);
  --c-amber-deep:   oklch(46% 0.10 52);

  --c-cream:        oklch(91% 0.013 80);
  --c-text:         oklch(88% 0.010 75);
  --c-muted:        oklch(52% 0.010 60);
  --c-faint:        oklch(35% 0.008 50);

  --f-serif: 'Cormorant Garamond', 'Georgia', serif;
  --f-sans:  'Plus Jakarta Sans', system-ui, sans-serif;

  --ease-expo:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-in:     cubic-bezier(0.4, 0, 1, 1);

  --s-section: clamp(80px, 11vw, 130px);
  --s-gap:     clamp(40px, 6vw, 72px);

  --nav-h: 76px;
  --r-card: 1.5rem;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  background-color: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── Film Grain Overlay ──────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ── Typography Scale ────────────────────────────────────── */
.t-eyebrow {
  font-family: var(--f-sans);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-amber);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.t-eyebrow::before {
  content: '';
  display: inline-block;
  width: 1.8em;
  height: 1px;
  background: var(--c-amber);
  opacity: 0.7;
}

.t-display {
  font-family: var(--f-serif);
  font-size: clamp(3.2rem, 8vw, 8rem);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.01em;
  color: var(--c-cream);
}
.t-display em { font-style: italic; font-weight: 300; color: var(--c-amber); }

.t-h1 {
  font-family: var(--f-serif);
  font-size: clamp(2.4rem, 5.5vw, 5.5rem);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: -0.01em;
  color: var(--c-cream);
}
.t-h1 em { font-style: italic; }

.t-h2 {
  font-family: var(--f-serif);
  font-size: clamp(1.8rem, 3.5vw, 3.6rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--c-cream);
}
.t-h2 em { font-style: italic; }

.t-h3 {
  font-family: var(--f-serif);
  font-size: clamp(1.3rem, 2.2vw, 2rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--c-cream);
}

.t-body {
  font-family: var(--f-sans);
  font-size: clamp(0.875rem, 1.2vw, 1rem);
  font-weight: 300;
  line-height: 1.75;
  color: var(--c-muted);
  max-width: 62ch;
}

.t-caption {
  font-family: var(--f-sans);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--c-faint);
}

/* ── Layout Utilities ────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 80px);
}

.section {
  padding-block: var(--s-section);
  position: relative;
}

.section--tight {
  padding-block: clamp(48px, 7vw, 90px);
}

/* ── Scroll Reveal ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease-expo), transform 0.9s var(--ease-expo);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.35s; }
.reveal--delay-4 { transition-delay: 0.5s; }
.reveal--delay-5 { transition-delay: 0.65s; }

/* ── Navigation ──────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px clamp(20px, 4vw, 60px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to bottom, oklch(4% 0.006 28 / 0.72) 0%, transparent 100%);
  transition: background 0.5s var(--ease-expo), backdrop-filter 0.5s var(--ease-expo),
              border-color 0.5s var(--ease-expo), padding 0.5s var(--ease-expo);
}

.nav.scrolled {
  background: oklch(7% 0.008 28 / 0.90);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--c-border-faint);
  padding-block: 14px;
}

.nav__logo img {
  height: 96px;
  width: auto;
  transition: opacity 0.3s var(--ease-expo);
}
.nav__logo img:hover { opacity: 0.8; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav__item {
  position: relative;
}

.nav__link {
  font-family: var(--f-sans);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-muted);
  padding: 0.5rem 0.9rem;
  border-radius: 100px;
  transition: color 0.3s var(--ease-expo), background 0.3s var(--ease-expo);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.nav__link:hover, .nav__link.active {
  color: var(--c-cream);
  background: oklch(100% 0 0 / 0.05);
}

.nav__link svg {
  width: 10px;
  height: 10px;
  transition: transform 0.3s var(--ease-expo);
}
.nav__item:hover .nav__link svg,
.nav__item.open .nav__link svg {
  transform: rotate(180deg);
}

/* Dropdown */
.nav__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: var(--c-surface);
  border: 1px solid var(--c-border-faint);
  border-radius: 1rem;
  padding: 0.5rem;
  min-width: 140px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-expo), transform 0.3s var(--ease-expo);
}
.nav__item:hover .nav__dropdown,
.nav__item.open .nav__dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
.nav__dropdown a {
  display: block;
  font-family: var(--f-sans);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-muted);
  padding: 0.55rem 1rem;
  border-radius: 0.6rem;
  transition: color 0.2s, background 0.2s;
}
.nav__dropdown a:hover {
  color: var(--c-cream);
  background: oklch(100% 0 0 / 0.06);
}

/* Hamburger */
.nav__hamburger {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 100px;
  background: oklch(100% 0 0 / 0.06);
  border: 1px solid var(--c-border-faint);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: background 0.3s var(--ease-expo);
  position: relative;
  overflow: hidden;
}
.nav__hamburger:hover { background: oklch(100% 0 0 / 0.10); }

.nav__hamburger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--c-cream);
  border-radius: 2px;
  position: absolute;
  transition: transform 0.4s var(--ease-expo), opacity 0.3s var(--ease-expo);
}
.nav__hamburger span:nth-child(1) { transform: translateY(-4px); }
.nav__hamburger span:nth-child(2) { transform: translateY(4px); }

.nav__hamburger.open span:nth-child(1) {
  transform: translateY(0) rotate(45deg);
}
.nav__hamburger.open span:nth-child(2) {
  transform: translateY(0) rotate(-45deg);
}

/* Mobile Menu Overlay */
.nav__mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: oklch(5% 0.006 28 / 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s var(--ease-expo);
}
.nav__mobile-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.nav__mobile-link {
  font-family: var(--f-serif);
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 300;
  color: var(--c-cream);
  letter-spacing: -0.01em;
  padding: 0.4rem 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease-expo), transform 0.5s var(--ease-expo),
              color 0.3s var(--ease-expo);
}
.nav__mobile-overlay.open .nav__mobile-link {
  opacity: 1;
  transform: translateY(0);
}
.nav__mobile-link:hover { color: var(--c-amber); }

.nav__mobile-sub {
  display: flex;
  gap: 1.5rem;
  padding: 0.5rem 0;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.4s var(--ease-expo), transform 0.4s var(--ease-expo);
}
.nav__mobile-overlay.open .nav__mobile-sub {
  opacity: 1;
  transform: translateY(0);
}
.nav__mobile-sub a {
  font-family: var(--f-sans);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-muted);
  transition: color 0.3s;
}
.nav__mobile-sub a:hover { color: var(--c-amber); }

/* Stagger delays for mobile links */
.nav__mobile-link:nth-child(1)  { transition-delay: 0.05s; }
.nav__mobile-link:nth-child(2)  { transition-delay: 0.10s; }
.nav__mobile-sub:nth-of-type(1) { transition-delay: 0.13s; }
.nav__mobile-link:nth-child(4)  { transition-delay: 0.18s; }
.nav__mobile-sub:nth-of-type(2) { transition-delay: 0.21s; }
.nav__mobile-link:nth-child(6)  { transition-delay: 0.26s; }
.nav__mobile-link:nth-child(7)  { transition-delay: 0.31s; }
.nav__mobile-link:nth-child(8)  { transition-delay: 0.36s; }
.nav__mobile-link:nth-child(9)  { transition-delay: 0.41s; }
.nav__mobile-link:nth-child(10) { transition-delay: 0.46s; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--f-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.85rem 1.6rem;
  border-radius: 100px;
  transition: all 0.45s var(--ease-expo);
  position: relative;
  overflow: hidden;
}

.btn__icon {
  width: 28px;
  height: 28px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.4s var(--ease-expo);
}

.btn:hover .btn__icon {
  transform: translate(2px, -2px) scale(1.08);
}
.btn:active { transform: scale(0.97); }

.btn--primary {
  background: var(--c-crimson-mid);
  color: var(--c-cream);
  border: 1px solid var(--c-crimson-hi);
}
.btn--primary:hover {
  background: var(--c-crimson-hi);
}
.btn--primary .btn__icon {
  background: oklch(100% 0 0 / 0.12);
}

.btn--ghost {
  background: transparent;
  color: var(--c-cream);
  border: 1px solid var(--c-border);
}
.btn--ghost:hover {
  background: oklch(100% 0 0 / 0.05);
  border-color: var(--c-muted);
}
.btn--ghost .btn__icon {
  background: oklch(100% 0 0 / 0.06);
}

.btn--amber {
  background: transparent;
  color: var(--c-amber);
  border: 1px solid var(--c-amber-deep);
}
.btn--amber:hover {
  background: oklch(100% 0 0 / 0.04);
  border-color: var(--c-amber-dim);
}
.btn--amber .btn__icon {
  background: var(--c-amber-deep);
}

/* ── Divider ─────────────────────────────────────────────── */
.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-border), transparent);
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.04);
  transition: transform 8s var(--ease-expo);
}
.hero.loaded .hero__bg img { transform: scale(1); }

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to bottom, oklch(4% 0.006 28 / 0.60) 0%, transparent 30%),
    linear-gradient(to top,    oklch(5% 0.006 28 / 0.92) 0%, oklch(5% 0.006 28 / 0.40) 45%, transparent 100%);
}
.hero__overlay--center {
  background: linear-gradient(
    160deg,
    oklch(5% 0.006 28 / 0.70) 0%,
    oklch(5% 0.006 28 / 0.50) 50%,
    oklch(5% 0.006 28 / 0.80) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: clamp(48px, 8vw, 100px) clamp(24px, 5vw, 80px);
  padding-bottom: clamp(64px, 10vw, 120px);
}

.hero__content--center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__event-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: oklch(100% 0 0 / 0.06);
  border: 1px solid oklch(100% 0 0 / 0.12);
  border-radius: 100px;
  padding: 0.5rem 1.1rem 0.5rem 0.7rem;
  margin-bottom: 2.5rem;
}
.hero__event-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-amber);
  animation: pulse 2.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.6); }
}
.hero__event-badge span {
  font-family: var(--f-sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-cream);
}

.hero__meta {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.hero__meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.hero__meta-item .label {
  font-family: var(--f-sans);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-amber);
}
.hero__meta-item .value {
  font-family: var(--f-serif);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 300;
  color: var(--c-cream);
}

.hero__scroll-hint {
  position: absolute;
  bottom: 36px;
  right: clamp(24px, 5vw, 80px);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.hero__scroll-hint span {
  font-family: var(--f-sans);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-faint);
  writing-mode: vertical-rl;
}
.hero__scroll-hint .line {
  width: 1px;
  height: 40px;
  background: var(--c-faint);
  animation: scrollLine 1.8s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Page Hero (non-index) */
.page-hero {
  position: relative;
  height: clamp(380px, 55vw, 600px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.page-hero__bg {
  position: absolute;
  inset: 0;
}
.page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.page-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, oklch(4% 0.006 28 / 0.65) 0%, transparent 35%),
    linear-gradient(to top,    oklch(5% 0.006 28 / 0.95) 0%, oklch(5% 0.006 28 / 0.30) 60%, transparent 100%);
}
.page-hero__content {
  position: relative;
  z-index: 2;
  padding: 0 clamp(24px, 5vw, 80px) clamp(48px, 7vw, 80px);
  width: 100%;
}

/* ── Split Layout (Historia, Proceso stages) ─────────────── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-gap);
  align-items: center;
}
.split--reverse { direction: rtl; }
.split--reverse > * { direction: ltr; }

.split--60-40 { grid-template-columns: 1.4fr 1fr; }
.split--40-60 { grid-template-columns: 1fr 1.4fr; }

.split__image {
  position: relative;
  border-radius: var(--r-card);
  overflow: hidden;
  aspect-ratio: 4/5;
}
.split__image--wide { aspect-ratio: 16/10; }
.split__image--square { aspect-ratio: 1; }

.split__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-expo);
}
.split__image:hover img { transform: scale(1.04); }

.split__image-frame {
  position: relative;
  padding: 6px;
  background: var(--c-surface);
  border: 1px solid var(--c-border-faint);
  border-radius: calc(var(--r-card) + 6px);
}

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border-faint);
  border-radius: var(--r-card);
  overflow: hidden;
  transition: border-color 0.4s var(--ease-expo), transform 0.4s var(--ease-expo);
}
.card:hover {
  border-color: var(--c-border);
  transform: translateY(-4px);
}

.card__img {
  aspect-ratio: 4/3;
  overflow: hidden;
}
.card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-expo);
}
.card:hover .card__img img { transform: scale(1.06); }

.card__body {
  padding: 1.5rem;
}

/* ── Process Steps ───────────────────────────────────────── */
.process-step {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  gap: 3rem;
  align-items: start;
  padding-block: clamp(40px, 6vw, 72px);
  border-bottom: 1px solid var(--c-border-faint);
}
.process-step:last-child { border-bottom: none; }

.process-step__num {
  font-family: var(--f-serif);
  font-size: 5rem;
  font-weight: 300;
  line-height: 1;
  color: var(--c-border);
  padding-top: 0.15em;
}

.process-step__image {
  border-radius: var(--r-card);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.process-step__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-expo);
}
.process-step:hover .process-step__image img { transform: scale(1.04); }

/* ── Gallery Grid ────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 0.75rem;
  cursor: pointer;
  background: var(--c-surface);
  border: 1px solid var(--c-border-faint);
  transition: border-color 0.3s var(--ease-expo), transform 0.4s var(--ease-expo);
}
.gallery-item:hover {
  border-color: var(--c-border);
  transform: scale(1.02);
  z-index: 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-expo), opacity 0.4s var(--ease-expo);
}
.gallery-item:hover img { transform: scale(1.08); }

.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: oklch(5% 0.006 28 / 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s var(--ease-expo);
}
.gallery-item:hover .gallery-item__overlay { opacity: 1; }

.gallery-item__overlay svg {
  width: 28px;
  height: 28px;
  color: var(--c-cream);
}

/* Gallery placeholder */
.gallery-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  cursor: default;
}
.gallery-placeholder:hover {
  transform: none;
  border-color: var(--c-border-faint);
}
.gallery-placeholder .ph-icon {
  width: 32px;
  height: 32px;
  opacity: 0.15;
  color: var(--c-muted);
}
.gallery-placeholder .ph-num {
  font-family: var(--f-serif);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--c-border);
  line-height: 1;
}

/* Gallery large items */
.gallery-item--large {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: unset;
}

/* ── Lightbox ────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: oklch(3% 0.004 28 / 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-expo);
}
.lightbox.open {
  opacity: 1;
  pointer-events: all;
}
.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--r-card);
  object-fit: contain;
  transform: scale(0.94);
  transition: transform 0.5s var(--ease-expo);
}
.lightbox.open .lightbox__img { transform: scale(1); }

.lightbox__close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 100px;
  background: oklch(100% 0 0 / 0.08);
  border: 1px solid var(--c-border-faint);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-cream);
  transition: background 0.3s var(--ease-expo);
}
.lightbox__close:hover { background: oklch(100% 0 0 / 0.15); }

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 100px;
  background: oklch(100% 0 0 / 0.08);
  border: 1px solid var(--c-border-faint);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-cream);
  transition: background 0.3s var(--ease-expo);
}
.lightbox__nav:hover { background: oklch(100% 0 0 / 0.15); }
.lightbox__prev { left: 20px; }
.lightbox__next { right: 20px; }

/* ── Year Selector ───────────────────────────────────────── */
.year-selector {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.year-btn {
  font-family: var(--f-sans);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.55rem 1.25rem;
  border-radius: 100px;
  border: 1px solid var(--c-border-faint);
  color: var(--c-muted);
  transition: all 0.35s var(--ease-expo);
}
.year-btn:hover, .year-btn.active {
  background: var(--c-surface-2);
  border-color: var(--c-border);
  color: var(--c-cream);
}

/* ── Stat Row ────────────────────────────────────────────── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--c-border-faint);
  border: 1px solid var(--c-border-faint);
  border-radius: var(--r-card);
  overflow: hidden;
}
.stat-item {
  background: var(--c-surface);
  padding: clamp(24px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.stat-item__num {
  font-family: var(--f-serif);
  font-size: clamp(2.4rem, 4vw, 4rem);
  font-weight: 300;
  line-height: 1;
  color: var(--c-cream);
}
.stat-item__num span { color: var(--c-amber); }
.stat-item__label {
  font-family: var(--f-sans);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-muted);
}

/* ── Contact Form ────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.form-label {
  font-family: var(--f-sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.form-input, .form-textarea {
  background: var(--c-surface);
  border: 1px solid var(--c-border-faint);
  border-radius: 0.75rem;
  padding: 0.9rem 1.1rem;
  font-family: var(--f-sans);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--c-cream);
  transition: border-color 0.3s var(--ease-expo), background 0.3s var(--ease-expo);
  width: 100%;
  outline: none;
}
.form-input:focus, .form-textarea:focus {
  border-color: var(--c-amber-dim);
  background: var(--c-surface-2);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--c-faint); }
.form-textarea { resize: vertical; min-height: 130px; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* ── Contact Info ────────────────────────────────────────── */
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  padding: 1.25rem;
  background: var(--c-surface);
  border: 1px solid var(--c-border-faint);
  border-radius: var(--r-card);
  transition: border-color 0.3s var(--ease-expo);
}
.contact-item:hover { border-color: var(--c-border); }
.contact-item__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border-faint);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--c-amber);
}
.contact-item__label {
  font-family: var(--f-sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 0.25rem;
}
.contact-item__value {
  font-family: var(--f-sans);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--c-cream);
}

/* ── Social Links ────────────────────────────────────────── */
.socials {
  display: flex;
  gap: 0.75rem;
}
.social-link {
  width: 40px;
  height: 40px;
  border-radius: 100px;
  background: var(--c-surface);
  border: 1px solid var(--c-border-faint);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-muted);
  transition: all 0.35s var(--ease-expo);
}
.social-link:hover {
  background: var(--c-surface-2);
  border-color: var(--c-border);
  color: var(--c-cream);
  transform: translateY(-3px);
}

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  padding-block: clamp(48px, 7vw, 80px);
  border-top: 1px solid var(--c-border-faint);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 3rem;
}
.footer__logo img {
  height: 68px;
  margin-bottom: 1.25rem;
}
.footer__tagline {
  font-family: var(--f-serif);
  font-size: 1.1rem;
  font-style: italic;
  font-weight: 300;
  color: var(--c-muted);
  line-height: 1.5;
  max-width: 30ch;
  margin-bottom: 1.5rem;
}
.footer__col-title {
  font-family: var(--f-sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-amber);
  margin-bottom: 1.25rem;
}
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer__links a {
  font-family: var(--f-sans);
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--c-muted);
  transition: color 0.3s var(--ease-expo);
}
.footer__links a:hover { color: var(--c-cream); }

.footer__bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--c-border-faint);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer__copy {
  font-family: var(--f-sans);
  font-size: 0.72rem;
  font-weight: 300;
  color: var(--c-faint);
  letter-spacing: 0.06em;
}

/* ── Product Cards (Tienda) ──────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.product-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border-faint);
  border-radius: var(--r-card);
  overflow: hidden;
  transition: border-color 0.4s var(--ease-expo), transform 0.4s var(--ease-expo);
}
.product-card:hover {
  border-color: var(--c-border);
  transform: translateY(-5px);
}
.product-card__img {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--c-surface-2);
  position: relative;
}
.product-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-expo);
}
.product-card:hover .product-card__img img { transform: scale(1.06); }
.product-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 0.3rem 0.75rem;
  background: var(--c-crimson);
  border-radius: 100px;
  font-family: var(--f-sans);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-cream);
}
.product-card__body { padding: 1.25rem 1.5rem 1.5rem; }
.product-card__edition {
  font-family: var(--f-sans);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-amber);
  margin-bottom: 0.4rem;
}
.product-card__name {
  font-family: var(--f-serif);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--c-cream);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}
.product-card__desc {
  font-family: var(--f-sans);
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--c-muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}
.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.product-card__price {
  font-family: var(--f-serif);
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--c-cream);
}

/* ── Ribbon text ─────────────────────────────────────────── */
.ribbon {
  overflow: hidden;
  border-block: 1px solid var(--c-border-faint);
  padding-block: 1rem;
  background: var(--c-surface);
}
.ribbon__track {
  display: flex;
  gap: 4rem;
  white-space: nowrap;
  animation: ribbonScroll 22s linear infinite;
}
.ribbon__track span {
  font-family: var(--f-serif);
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-style: italic;
  font-weight: 300;
  color: var(--c-muted);
  flex-shrink: 0;
}
.ribbon__track span em {
  font-style: normal;
  color: var(--c-amber);
  margin-inline: 0.5rem;
}
@keyframes ribbonScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Quote Block ─────────────────────────────────────────── */
.quote-block {
  padding: clamp(40px, 6vw, 72px);
  background: var(--c-surface);
  border: 1px solid var(--c-border-faint);
  border-radius: var(--r-card);
  position: relative;
}
.quote-block::before {
  content: '"';
  position: absolute;
  top: -0.2em;
  left: 0.3em;
  font-family: var(--f-serif);
  font-size: 12rem;
  font-weight: 300;
  line-height: 1;
  color: var(--c-border-faint);
  pointer-events: none;
  z-index: 0;
}
.quote-block p {
  font-family: var(--f-serif);
  font-size: clamp(1.4rem, 3vw, 2.5rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.35;
  color: var(--c-cream);
  position: relative;
  z-index: 1;
}
.quote-block cite {
  display: block;
  margin-top: 1.5rem;
  font-family: var(--f-sans);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-muted);
  font-style: normal;
  position: relative;
  z-index: 1;
}

/* ── Intro strip ─────────────────────────────────────────── */
.intro-strip {
  display: flex;
  align-items: flex-start;
  gap: clamp(2rem, 6vw, 6rem);
}
.intro-strip__title {
  flex: 0 0 auto;
  max-width: 40%;
}
.intro-strip__body { flex: 1; }

/* ── Page Loader ─────────────────────────────────────────── */
#page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: oklch(5% 0.006 28);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.9s var(--ease-expo);
}
#page-loader.hide {
  opacity: 0;
  pointer-events: none;
}
#page-loader.gone { display: none; }

.loader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}
.loader__logo {
  height: 110px;
  width: auto;
  opacity: 0;
  transform: scale(0.82) translateY(16px);
  transition: opacity 0.9s var(--ease-expo), transform 0.9s var(--ease-expo);
}
.loader__logo.show {
  opacity: 1;
  transform: scale(1) translateY(0);
}
.loader__bar {
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-amber), transparent);
  transition: width 1s var(--ease-expo) 0.3s;
}
.loader__bar.show { width: 140px; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .process-step { grid-template-columns: 60px 1fr; }
  .process-step__image { display: none; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root {
    --s-section: clamp(56px, 9vw, 80px);
    --nav-h: 64px;
  }

  /* Nav */
  .nav {
    padding: 10px clamp(16px, 5vw, 28px);
  }
  .nav__logo img { height: 108px; }
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }

  /* Hero — stretch content full height, center text within it */
  .hero {
    align-items: stretch;
  }
  .hero__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: clamp(120px, 28vw, 160px);
    padding-bottom: clamp(56px, 12vw, 80px);
    padding-inline: 22px;
    min-height: 100%;
  }

  /* Badge — only as wide as its text */
  .hero__event-badge {
    align-self: flex-start;
  }

  /* Display heading — ~100% bigger on mobile */
  .t-display {
    font-size: clamp(5.5rem, 15vw, 6.5rem);
  }
  .hero__event-badge {
    margin-bottom: 1.5rem;
  }
  .hero__meta { gap: 1.25rem; margin-top: 1.75rem; }
  .hero__scroll-hint { display: none; }

  /* Page hero */
  .page-hero {
    height: clamp(300px, 65vw, 460px);
    padding-top: var(--nav-h);
  }
  .page-hero__content {
    padding: 0 20px clamp(32px, 6vw, 56px);
  }

  /* Sections */
  .section { padding-block: var(--s-section); }

  /* Split layout */
  .split { grid-template-columns: 1fr; }
  .split--reverse { direction: ltr; }
  .split__image { aspect-ratio: 4/3; }

  /* Intro strip */
  .intro-strip { flex-direction: column; gap: 1.25rem; }
  .intro-strip__title { max-width: 100%; }

  /* Stats row */
  .stats-row { grid-template-columns: 1fr; }

  /* Process steps */
  .process-step {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding-block: clamp(32px, 6vw, 48px);
  }
  .process-step__num { font-size: 3rem; }

  /* Gallery */
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .gallery-item--large { grid-column: span 1; grid-row: span 1; }

  /* Year selector */
  .year-selector { gap: 0.4rem; }
  .year-btn { padding: 0.5rem 1rem; font-size: 0.7rem; }

  /* Quote block */
  .quote-block { padding: clamp(24px, 5vw, 40px); }
  .quote-block::before { font-size: 8rem; }

  /* Contact */
  .form-grid { grid-template-columns: 1fr; }

  /* Product grid */
  .product-grid { grid-template-columns: 1fr; }

  /* Footer */
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer__logo img { height: 60px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 0.5rem; }

  /* Buttons — ensure adequate touch targets */
  .btn {
    min-height: 44px;
  }
}

@media (max-width: 480px) {
  :root { --s-section: 52px; }

  /* Nav */
  .nav { padding: 8px 16px; }
  .nav__logo img { height: 93px; }

  /* Hero typography */
  .hero__meta { gap: 1rem; }
  .hero__meta-item .value { font-size: 0.95rem; }

  /* Gallery — tighter on very small screens */
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .gallery-placeholder .ph-num { font-size: 1.2rem; }
  .gallery-placeholder .ph-icon { width: 22px; height: 22px; }

  /* Process */
  .process-step__num { font-size: 2.5rem; }

  /* Stats */
  .stat-item { padding: 20px; }
  .stat-item__num { font-size: 2.2rem; }

  /* Ribbon */
  .ribbon { padding-block: 0.75rem; }

  /* Contact info */
  .contact-item { padding: 1rem; }

  /* Footer */
  .footer__logo img { height: 52px; }
  .footer__grid { gap: 1.5rem; }
  .footer__links { gap: 0.5rem; }

  /* Loader */
  .loader__logo { height: 80px; }
}
