/* ==========================================================================
   CasaPiano — sistema de diseño
   1. Tokens
   2. Reset y base
   3. Utilidades
   4. Header y navegación
   5. Hero
   6. Marquee
   7. Secciones editoriales
   8. Componentes (botones, tarjetas, specs, proceso, galería, FAQ)
   9. CTA final
   10. Footer
   11. Formularios
   12. Movimiento y accesibilidad
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --ink: #0b0b0c;
  --coal: #141416;
  --coal-2: #1c1c20;
  --ivory: #f7f1e6;
  --ivory-2: #efe6d6;
  --sand: #e7d9c2;
  --gold: #c9a44c;
  --gold-l: #e9d39a;
  --gold-d: #96742e;
  --velvet: #5c1b27;
  --muted: #8d8779;
  --muted-ink: #6c675c;
  --line: rgba(201, 164, 76, 0.22);
  --line-strong: rgba(201, 164, 76, 0.45);
  --line-dark: rgba(11, 11, 12, 0.12);

  --font-display: "Bodoni Moda", "Didot", "Times New Roman", serif;
  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: clamp(0.8rem, 0.78rem + 0.1vw, 0.86rem);
  --step-0: clamp(0.95rem, 0.92rem + 0.16vw, 1.05rem);
  --step-1: clamp(1.15rem, 1.08rem + 0.36vw, 1.35rem);
  --step-2: clamp(1.45rem, 1.3rem + 0.75vw, 1.85rem);
  --step-3: clamp(1.9rem, 1.55rem + 1.6vw, 2.9rem);
  --step-4: clamp(2.5rem, 1.8rem + 3vw, 4.4rem);
  --step-5: clamp(3.1rem, 2rem + 5vw, 6.2rem);

  --space-xs: 0.5rem;
  --space-s: 0.9rem;
  --space-m: 1.5rem;
  --space-l: 2.5rem;
  --space-xl: clamp(3.5rem, 6vw, 6rem);
  --space-2xl: clamp(5rem, 9vw, 9rem);

  --wrap: 1240px;
  --gutter: clamp(1.1rem, 4vw, 3.2rem);
  --radius: 2px;
  --radius-lg: 4px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 0.6s;
  --header-h: 78px;
}

/* 2. Reset y base ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-light { background: var(--ivory); color: var(--ink); }

img, svg, video, canvas { display: block; max-width: 100%; height: auto; }
img { border-style: none; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
}

h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); line-height: 1.15; }
h4 { font-size: var(--step-1); line-height: 1.25; letter-spacing: -0.01em; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

strong { font-weight: 700; }
em { font-style: italic; }

::selection { background: var(--gold); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--gold);
  color: var(--ink);
  padding: 0.8rem 1.2rem;
  font-weight: 600;
}
.skip-link:focus { left: 1rem; top: 1rem; }

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

.wrap--wide { max-width: 1480px; }
.wrap--narrow { max-width: 820px; }

.section { padding-block: var(--space-2xl); position: relative; }
.section--tight { padding-block: var(--space-xl); }
.section--dark { background: var(--ink); color: var(--ivory); }
.section--coal { background: var(--coal); color: var(--ivory); }
.section--light { background: var(--ivory); color: var(--ink); }
.section--sand { background: var(--ivory-2); color: var(--ink); }

.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap { display: flex; flex-wrap: wrap; }
.gap-s { gap: var(--space-s); }
.gap-m { gap: var(--space-m); }
.gap-l { gap: var(--space-l); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 var(--space-m);
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
  flex: 0 0 auto;
  opacity: 0.8;
}
.eyebrow--center { justify-content: center; }
.eyebrow--muted { color: var(--muted); }

.lead {
  font-size: var(--step-1);
  line-height: 1.55;
  font-weight: 300;
  color: rgba(247, 241, 230, 0.78);
  max-width: 46ch;
}
.section--light .lead,
.section--sand .lead { color: var(--muted-ink); }

.text-gold { color: var(--gold); }
.text-muted { color: var(--muted); }
.italic { font-style: italic; }
.serif { font-family: var(--font-display); }

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-m);
  margin-bottom: var(--space-l);
}
.section-head > div { flex: 1 1 420px; }
.section-head h2 { max-width: 20ch; }

.num {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  font-weight: 600;
}

/* 4. Header ---------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(11, 11, 12, 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(201, 164, 76, 0.18);
  transition: height 0.4s var(--ease-soft), background 0.4s var(--ease-soft), border-color 0.4s var(--ease-soft);
}
.site-header.is-stuck {
  height: 64px;
  background: rgba(11, 11, 12, 0.94);
  border-bottom-color: rgba(201, 164, 76, 0.3);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-m);
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.brand { display: flex; align-items: center; gap: 0.7rem; flex: 0 0 auto; }
.brand__mark { width: auto; height: 44px; object-fit: contain; transition: height 0.4s var(--ease-soft); }
.site-header.is-stuck .brand__mark { height: 36px; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.16rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-l);
}
.brand__tag {
  font-size: 0.52rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: rgba(247, 241, 230, 0.55);
  margin-top: 4px;
}

.nav { display: flex; align-items: center; gap: 1.7rem; }
.nav a {
  position: relative;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(247, 241, 230, 0.82);
  padding-block: 0.35rem;
  transition: color 0.3s var(--ease-soft);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}
.nav a:hover, .nav a.is-active { color: var(--gold-l); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }

.header-actions { display: flex; align-items: center; gap: 0.9rem; flex: 0 0 auto; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 1px;
  background: var(--ivory);
  transition: transform 0.4s var(--ease-out), opacity 0.3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--ink);
  padding: calc(var(--header-h) + 2rem) var(--gutter) 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.4s var(--ease-soft), transform 0.5s var(--ease-out), visibility 0.4s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; }
.mobile-menu__nav { display: flex; flex-direction: column; }
.mobile-menu__nav a {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 7vw, 2.7rem);
  padding-block: 0.55rem;
  border-bottom: 1px solid rgba(201, 164, 76, 0.16);
  color: var(--ivory);
}
.mobile-menu__nav a:last-child { border-bottom: 0; }
.mobile-menu__foot { display: flex; flex-direction: column; gap: 0.9rem; padding-top: 2rem; }

/* 5. Hero ------------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: 0;
  overflow: hidden;
  background: var(--ink);
  isolation: isolate;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 34%;
  filter: grayscale(1) contrast(1.06) brightness(0.62);
  transform: scale(1.06);
  animation: hero-media-in 2.2s var(--ease-out) both;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 11, 12, 0.92) 0%, rgba(11, 11, 12, 0.35) 32%, rgba(11, 11, 12, 0.72) 72%, var(--ink) 100%),
    radial-gradient(120% 80% at 78% 18%, rgba(201, 164, 76, 0.22) 0%, rgba(11, 11, 12, 0) 55%);
}
.hero__staff {
  position: absolute;
  inset: 12% -10% auto -10%;
  height: 42vh;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background: repeating-linear-gradient(
    180deg,
    rgba(201, 164, 76, 0.24) 0px,
    rgba(201, 164, 76, 0.24) 1px,
    transparent 1px,
    transparent 15vh
  );
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 62%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 62%, transparent);
  transform: rotate(-6deg);
}
.hero__grain {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.16;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/></filter><rect width='140' height='140' filter='url(%23n)' opacity='0.6'/></svg>");
}
.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-bottom: clamp(2.5rem, 6vh, 4.5rem);
}
.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-l);
  margin-bottom: 1.6rem;
}
.hero__eyebrow::before { content: ""; width: 46px; height: 1px; background: var(--gold); }
.hero h1 {
  max-width: 17ch;
  font-size: clamp(2.9rem, 7.4vw, 6.6rem);
  line-height: 0.94;
  letter-spacing: -0.035em;
  margin-bottom: 1.5rem;
  text-wrap: balance;
}
.hero h1 em { color: var(--gold-l); font-style: italic; }
.hero__sub {
  max-width: 48ch;
  font-size: clamp(0.98rem, 1.6vw, 1.16rem);
  font-weight: 300;
  line-height: 1.6;
  color: rgba(247, 241, 230, 0.82);
  margin-bottom: 2rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }

.hero__foot {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(201, 164, 76, 0.24);
  background: rgba(11, 11, 12, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.hero__foot-inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 1.05rem var(--gutter);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.6rem;
  align-items: center;
  justify-content: space-between;
}
.hero__fact { display: flex; align-items: baseline; gap: 0.55rem; font-size: 0.78rem; letter-spacing: 0.04em; color: rgba(247, 241, 230, 0.72); }
.hero__fact b { font-family: var(--font-display); font-size: 1.05rem; color: var(--gold-l); font-weight: 500; }

.scroll-cue {
  position: absolute;
  right: var(--gutter);
  bottom: 7.5rem;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(247, 241, 230, 0.6);
  writing-mode: vertical-rl;
}
.scroll-cue::after {
  content: "";
  width: 1px;
  height: 58px;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: cue 2.4s var(--ease-soft) infinite;
}

/* 6. Marquee --------------------------------------------------------------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid rgba(201, 164, 76, 0.22);
  background: var(--ink);
  padding-block: 1.05rem;
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 42s linear infinite;
}
.marquee__track span {
  display: flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247, 241, 230, 0.72);
  padding-inline: 1.6rem;
  white-space: nowrap;
}
.marquee__track span::after {
  content: "◆";
  font-size: 0.5em;
  color: var(--gold);
  margin-left: 1.6rem;
  transform: translateY(-2px);
}

/* 7. Secciones editoriales ------------------------------------------------- */
.split {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: flex-start;
}
.split__text { flex: 1 1 380px; }
.split__media { flex: 1 1 460px; position: relative; }
.split--reverse { flex-direction: row-reverse; }

.split__sticky { position: sticky; top: calc(var(--header-h) + 2rem); }

.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--coal-2);
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.media-frame:hover img { transform: scale(1.04); }
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-frame--wide { aspect-ratio: 16 / 10; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--duotone img { filter: grayscale(1) contrast(1.1); }
.media-frame--duotone::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(201, 164, 76, 0.18), rgba(11, 11, 12, 0.42));
  mix-blend-mode: multiply;
  pointer-events: none;
}

.media-caption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.8rem;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.statement {
  font-family: var(--font-display);
  font-size: var(--step-3);
  line-height: 1.16;
  letter-spacing: -0.02em;
  max-width: 24ch;
}
.statement em { color: var(--gold); font-style: italic; }

/* Specs */
.specs {
  display: flex;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
}
.spec {
  flex: 1 1 190px;
  padding: 1.6rem 1.4rem 1.6rem 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.spec b {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 500;
  color: var(--gold-l);
  line-height: 1;
}
.spec span { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }

/* Cards */
.cards { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.card {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  background: var(--coal);
  border: 1px solid rgba(201, 164, 76, 0.16);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.5s var(--ease-out), border-color 0.4s, box-shadow 0.5s var(--ease-out);
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 164, 76, 0.45);
  box-shadow: 0 22px 60px -30px rgba(0, 0, 0, 0.9);
}
.card__media { aspect-ratio: 16 / 11; overflow: hidden; background: var(--coal-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: 1.5rem 1.4rem 1.6rem; display: flex; flex-direction: column; gap: 0.7rem; flex: 1 1 auto; }
.card__body h3 { font-size: 1.32rem; }
.card__body p { font-size: 0.92rem; color: rgba(247, 241, 230, 0.7); margin: 0; }
.card__list { display: flex; flex-wrap: wrap; gap: 0.4rem 0.9rem; margin-top: auto; padding-top: 0.9rem; border-top: 1px solid rgba(201, 164, 76, 0.14); }
.card__list span { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }

.card--light { background: #fff; border-color: rgba(11, 11, 12, 0.08); }
.card--light .card__body p { color: var(--muted-ink); }
.card--light .card__list { border-top-color: rgba(11, 11, 12, 0.08); }

/* Lista editorial (producción) */
.editorial-list { display: flex; flex-wrap: wrap; gap: 0 3rem; }
.editorial-list__item {
  flex: 1 1 320px;
  display: flex;
  gap: 1.1rem;
  padding-block: 1.15rem;
  border-bottom: 1px solid rgba(201, 164, 76, 0.16);
  align-items: flex-start;
}
.editorial-list__num { font-size: 0.66rem; letter-spacing: 0.2em; color: var(--gold); padding-top: 0.42rem; flex: 0 0 26px; }
.editorial-list__body { flex: 1 1 auto; }
.editorial-list__body h3 { font-family: var(--font-sans); font-size: 1rem; font-weight: 600; letter-spacing: 0; margin-bottom: 0.25rem; }
.editorial-list__body p { font-size: 0.88rem; color: rgba(247, 241, 230, 0.62); margin: 0; line-height: 1.55; }
.section--light .editorial-list__body p, .section--sand .editorial-list__body p { color: var(--muted-ink); }
.section--light .editorial-list__item, .section--sand .editorial-list__item { border-bottom-color: rgba(11, 11, 12, 0.1); }

/* Proceso */
.steps { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.step {
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  position: relative;
}
.step::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}
.step__num { font-family: var(--font-display); font-size: 2.1rem; color: var(--gold); line-height: 1; }
.step h3 { font-family: var(--font-sans); font-size: 0.98rem; font-weight: 700; letter-spacing: 0; }
.step p { font-size: 0.88rem; color: rgba(247, 241, 230, 0.66); margin: 0; }

/* Galería */
.gallery { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.gallery__item {
  flex: 1 1 300px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  background: var(--coal-2);
  cursor: zoom-in;
  padding: 0;
  border: 0;
}
.gallery__item--wide { flex-grow: 2; aspect-ratio: 16 / 9; }
.gallery__item--tall { aspect-ratio: 3 / 4; flex-basis: 260px; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out), filter 0.6s; filter: saturate(0.85); }
.gallery__item:hover img, .gallery__item:focus-visible img { transform: scale(1.05); filter: saturate(1); }
.gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(11, 11, 12, 0.55));
  opacity: 0.9;
  transition: opacity 0.4s;
}
.gallery__item span {
  position: absolute;
  left: 1rem;
  bottom: 0.85rem;
  z-index: 2;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(247, 241, 230, 0.9);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(6, 6, 7, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease-soft), visibility 0.35s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: min(1200px, 92vw); max-height: 86vh; object-fit: contain; border-radius: 2px; }
.lightbox__close {
  position: absolute;
  top: 1.4rem;
  right: 1.4rem;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ivory);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox__close:hover { background: var(--gold); color: var(--ink); }

/* FAQ */
.faq { border-top: 1px solid rgba(201, 164, 76, 0.22); }
.faq details { border-bottom: 1px solid rgba(201, 164, 76, 0.22); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: var(--ivory);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-sans);
  font-size: 1.25rem;
  color: var(--gold);
  flex: 0 0 auto;
  transition: transform 0.35s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq__answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.5s var(--ease-soft);
}
.faq details[open] .faq__answer { max-height: 420px; }
.faq__answer p { padding-bottom: 1.4rem; font-size: 0.94rem; color: rgba(247, 241, 230, 0.7); max-width: 68ch; margin: 0; }
.section--light .faq { border-top-color: rgba(11, 11, 12, 0.14); }
.section--light .faq details { border-bottom-color: rgba(11, 11, 12, 0.14); }
.section--light .faq summary { color: var(--ink); }
.section--light .faq__answer p { color: var(--muted-ink); }

/* 8. Botones --------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.95rem 1.6rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), background 0.35s, color 0.35s, border-color 0.35s, box-shadow 0.4s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--gold); color: var(--ink); }
.btn--primary:hover { background: var(--gold-l); box-shadow: 0 16px 34px -18px rgba(201, 164, 76, 0.9); }

.btn--ghost { border-color: rgba(247, 241, 230, 0.32); color: var(--ivory); background: transparent; }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-l); }

.btn--dark { background: var(--ink); color: var(--ivory); }
.btn--dark:hover { background: var(--coal-2); }

.btn--outline-dark { border-color: rgba(11, 11, 12, 0.25); color: var(--ink); }
.btn--outline-dark:hover { border-color: var(--ink); background: var(--ink); color: var(--ivory); }

.btn--sm { padding: 0.65rem 1.1rem; font-size: 0.68rem; }
.btn--block { width: 100%; }

.btn__arrow { transition: transform 0.4s var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* 9. CTA final ------------------------------------------------------------- */
.cta {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  padding-block: var(--space-2xl);
  text-align: center;
  isolation: isolate;
}
.cta::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto -10%;
  height: 120%;
  z-index: -1;
  background: radial-gradient(50% 55% at 50% 40%, rgba(201, 164, 76, 0.22), rgba(11, 11, 12, 0) 70%);
}
.cta h2 { font-size: clamp(2.3rem, 5.4vw, 4.2rem); max-width: 18ch; margin: 0 auto 1.2rem; text-wrap: balance; }
.cta h2 em { color: var(--gold-l); }
.cta p { max-width: 54ch; margin: 0 auto 2rem; color: rgba(247, 241, 230, 0.7); font-weight: 300; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; }
.cta__meta { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: 0.6rem 1.8rem; justify-content: center; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* 10. Footer --------------------------------------------------------------- */
.site-footer { background: #08080a; border-top: 1px solid rgba(201, 164, 76, 0.2); padding-top: var(--space-xl); }
.footer__grid { display: flex; flex-wrap: wrap; gap: 2.2rem 3rem; padding-bottom: var(--space-l); }
.footer__col { flex: 1 1 200px; display: flex; flex-direction: column; gap: 0.6rem; }
.footer__col--brand { flex: 1 1 320px; }
.footer__title { font-size: 0.64rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.4rem; }
.footer__col a, .footer__col p { font-size: 0.9rem; color: rgba(247, 241, 230, 0.68); line-height: 1.7; margin: 0; }
.footer__col a:hover { color: var(--gold-l); }
.footer__brand-text { max-width: 34ch; font-size: 0.88rem !important; }

.footer__wordmark {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 14vw, 13rem);
  line-height: 0.82;
  letter-spacing: 0.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(201, 164, 76, 0.35);
  text-align: center;
  padding-block: 1.5rem 0;
  user-select: none;
}
.footer__bottom {
  border-top: 1px solid rgba(247, 241, 230, 0.08);
  margin-top: 1rem;
  padding-block: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  color: rgba(247, 241, 230, 0.42);
}
.footer__bottom a { color: rgba(247, 241, 230, 0.62); }
.footer__bottom a:hover { color: var(--gold); }

.socials { display: flex; gap: 0.6rem; }
.socials a {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(201, 164, 76, 0.24);
  border-radius: 50%;
  color: rgba(247, 241, 230, 0.8);
  transition: background 0.35s, color 0.35s, border-color 0.35s, transform 0.35s var(--ease-out);
}
.socials a:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); transform: translateY(-2px); }
.socials svg { width: 16px; height: 16px; }

/* 11. Formularios ---------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 0.45rem; margin-bottom: 1.1rem; }
.field label {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--ivory);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(201, 164, 76, 0.26);
  border-radius: var(--radius);
  padding: 0.85rem 0.95rem;
  transition: border-color 0.3s, background 0.3s;
  -webkit-appearance: none;
  appearance: none;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.07);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(247, 241, 230, 0.32); }
.field textarea { min-height: 130px; resize: vertical; }
.field--error input, .field--error select, .field--error textarea { border-color: #d86565; }
.field__error { font-size: 0.74rem; color: #e08a8a; min-height: 1em; }
.field--half { flex: 1 1 220px; }
.field-row { display: flex; flex-wrap: wrap; gap: 0 1rem; }

.section--light .field input,
.section--light .field select,
.section--light .field textarea { color: var(--ink); background: #fff; border-color: rgba(11, 11, 12, 0.18); }
.section--light .field label { color: var(--muted-ink); }

.form-note { font-size: 0.74rem; color: var(--muted); line-height: 1.6; }

/* 12. Movimiento y accesibilidad ------------------------------------------ */
.reveal { transform: translateY(26px); transition: opacity 0.85s var(--ease-out), transform 0.9s var(--ease-out); transition-delay: var(--d, 0ms); }
.js .reveal { opacity: 0; }
.reveal.is-in { opacity: 1; transform: none; }

.reveal-media { transition: clip-path 1.2s var(--ease-out); transition-delay: var(--d, 0ms); }
.js .reveal-media { clip-path: inset(0 0 100% 0); }
.reveal-media.is-in { clip-path: inset(0 0 0 0); }

@keyframes hero-media-in {
  from { transform: scale(1.14); opacity: 0.4; }
  to { transform: scale(1.06); opacity: 1; }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes cue {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  40% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  60% { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* Responsive */
@media (max-width: 1080px) {
  .nav { gap: 1.1rem; }
  .nav a { font-size: 0.76rem; }
}

@media (max-width: 900px) {
  :root { --header-h: 66px; }
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .header-actions .btn--header { display: none; }
  .split, .split--reverse { flex-direction: column; }
  .split__sticky { position: static; }
  .split__media { width: 100%; }
  .scroll-cue { display: none; }
  .hero { min-height: 92svh; }
  .hero__foot-inner { gap: 0.5rem 1.4rem; justify-content: flex-start; }
}

@media (max-width: 640px) {
  .hero h1 { font-size: clamp(2.5rem, 11vw, 3.6rem); }
  .hero__actions .btn { flex: 1 1 100%; }
  .section { padding-block: var(--space-xl); }
  .spec { flex-basis: 50%; padding-right: 1rem; }
  .footer__wordmark { -webkit-text-stroke-width: 1px; }
  .gallery__item, .gallery__item--wide, .gallery__item--tall { flex-basis: 100%; aspect-ratio: 4 / 3; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .reveal-media { clip-path: none; }
  .marquee__track { animation: none; }
}
