/* ═══════════════════════════════════════════════════
   EL MAPA — Editorial Minimal / Naturaleza y crecimiento
   Palette: Linen (base) · Forest (paradigma) · Terracotta (deseo)
   ═══════════════════════════════════════════════════ */

:root {
  /* Repurposed tokens (names kept for structural continuity, values remapped to the light palette) */
  --black: #FAFAF7;        /* page background — blanco cálido */
  --black-soft: #F0F2EC;   /* alternate section background — salvia + blanco */
  --black-card: #E2DBC9;   /* tinted surface */
  --white: #2E3527;        /* primary text ink — verde bosque oscurecido */
  --white-pure: #1E2318;   /* highest-contrast ink */
  --gold: #4B6B4E;         /* verde bosque — primary accent */
  --gold-bright: #3B5A3E;  /* deeper forest — hover / emphasis */
  --gold-soft: rgba(75, 107, 78, 0.09);
  --gold-glow: rgba(75, 107, 78, 0.22);
  --gray: #6E5E4A;         /* secondary/body text — taupe from marrón tierra */
  --gray-dark: #B7AC93;    /* tertiary / faint elements */
  --line: rgba(58, 46, 30, 0.14);
  --line-gold: rgba(75, 107, 78, 0.3);

  /* Palette proper */
  --sage: #C5D1C3;
  --earth: #8A6F55;
  --terracotta: #C78E6B;
  --terracotta-glow: rgba(199, 142, 107, 0.28);
  --paper: #FFFFFF;

  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
}

/* ── Reset ────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--white);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-synthesis: none;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; }
strong { font-weight: 600; color: var(--white-pure); }
em { font-style: italic; color: var(--terracotta); }
[hidden] { display: none !important; }

.brand-name {
  color: var(--gold-bright);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

/* ── Grain Overlay ────────────────────────── */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.025;
  background-image:
    repeating-conic-gradient(var(--white) 0% 25%, transparent 0% 50%) 0 0 / 2px 2px;
  mix-blend-mode: multiply;
}

/* ── Container ────────────────────────────── */
.container {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ═══════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
}

.header.scrolled {
  background: rgba(250, 250, 247, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.15em;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.logo-symbol {
  width: 2rem;
  height: 2rem;
  margin-right: 0.45rem;
  padding: 0.32rem;
  background: #B8A391;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.header .logo-symbol img {
  width: 78%;
  height: auto;
  object-fit: contain;
}

.header .logo-symbol {
  width: 2.6rem;
  height: 2.6rem;
}

.footer .logo-symbol {
  display: block;
  object-fit: contain;
  overflow: visible;
}


.logo-accent {
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1em;
}

.nav {
  display: flex;
  gap: 2.5rem;
}

.nav a {
  position: relative;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray);
  transition: color 0.3s;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  width: 4px;
  height: 4px;
  background: var(--terracotta);
  opacity: 0;
  transform: translate(-50%, 5px);
  transition: opacity 0.25s, transform 0.25s;
}

.nav a:hover,
.nav a.active {
  color: var(--white);
}

.nav a:hover::after,
.nav a.active::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.open span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.nav-toggle.open span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

/* ═══════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem 4rem;
  overflow: hidden;
  background: radial-gradient(ellipse 60% 50% at 50% 45%, rgba(75, 107, 78, 0.06), transparent);
}

/* Geometric symbol */
.hero-symbol {
  width: clamp(285px, 48vw, 500px);
  margin-bottom: 2.5rem;
  color: var(--gold);
  filter: none;
}

.hero-symbol svg {
  width: 100%;
  height: auto;
}

.hero-mark {
  filter: none;
}

/* SVG draw animation */
.svg-draw {
  stroke-dashoffset: var(--len);
  stroke-dasharray: var(--len);
  animation: svgDraw var(--dur) var(--ease-out) var(--del) forwards;
}

.svg-diamond { --len: 540; --dur: 1.8s; --del: 0.2s; }
.svg-circle  { --len: 340; --dur: 1.4s; --del: 0.6s; }

@keyframes svgDraw {
  to { stroke-dashoffset: 0; }
}

/* Hero text */
.hero-content {
  text-align: center;
  max-width: 40rem;
}

.hero-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.8rem, 9vw, 5.5rem);
  line-height: 1.2;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
  color: var(--white-pure);
  text-transform: uppercase;
}

.hero-title em {
  font-style: normal;
  color: var(--terracotta);
}

.hero-sub {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--gray);
  margin-bottom: 2.5rem;
}

.hero-sub strong {
  font-weight: 500;
  color: var(--white);
}

/* Hero entry animation */
.anim-hero {
  opacity: 0;
  transform: translateY(18px);
  animation: heroIn 0.9s var(--ease) var(--d) forwards;
}

@keyframes heroIn {
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
}

.hero-scroll-line {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
  50%      { opacity: 0.8; transform: scaleY(1); }
}

/* ═══════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════ */
.btn {
  position: relative;
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 1rem 2.4rem;
  border: 1px solid var(--terracotta);
  color: var(--gold-bright);
  background: transparent;
  overflow: hidden;
  transition: color 0.4s var(--ease);
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--terracotta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
  z-index: -1;
}

.btn:hover {
  color: var(--white-pure);
}

.btn:hover::before {
  transform: scaleX(1);
}

/* ═══════════════════════════════════════════════════
   SECTIONS (shared)
   ═══════════════════════════════════════════════════ */
.section {
  padding: 6rem 0;
}

.section-tag {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  line-height: 1.15;
  letter-spacing: 0.01em;
  margin-bottom: 2rem;
  color: var(--white-pure);
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════
   BRIDGE
   ═══════════════════════════════════════════════════ */
.bridge {
  padding: 5rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.bridge-text {
  font-family: var(--font-body);
  font-size: clamp(1.15rem, 3vw, 1.5rem);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.01em;
  color: var(--gray);
  max-width: 36rem;
  margin: 0 auto 1rem;
}

.bridge-text em {
  font-style: italic;
  color: var(--terracotta);
}

.bridge-accent {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ═══════════════════════════════════════════════════
   MÉTODO
   ═══════════════════════════════════════════════════ */
.section-metodo {
  background: var(--black-soft);
}

.metodo-body {
  max-width: 38rem;
  margin-bottom: 3rem;
}

.metodo-body p {
  font-size: 1.05rem;
  color: var(--gray);
  line-height: 1.8;
}

.metodo-body p + p {
  margin-top: 1rem;
}

/* Diagram */
.diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 3rem 2rem;
  margin-bottom: 2.5rem;
  background: rgba(75, 107, 78, 0.05);
  border: 1px solid rgba(75, 107, 78, 0.14);
  border-radius: 4px;
}

.diagram-pole {
  text-align: center;
  flex-shrink: 0;
}

.diagram-label {
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--gold-bright);
  margin-bottom: 0.5rem;
}

.diagram-desc {
  display: block;
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.5;
}

.diagram-bridge {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 1.5rem;
  flex: 1;
  max-width: 16rem;
}

.diagram-line {
  flex: 1;
  height: 1px;
  background: rgba(75, 107, 78, 0.5);
}

.diagram-q {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white-pure);
  background: rgba(199, 142, 107, 0.35);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.metodo-question {
  text-align: center;
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 2.5vw, 1.2rem);
  color: var(--gray);
  line-height: 1.6;
}

.metodo-question strong {
  display: block;
  margin-top: 0.25rem;
  color: var(--gold);
}

/* ═══════════════════════════════════════════════════
   CÓMO FUNCIONA — Epic minimal + SVG + stars
   ═══════════════════════════════════════════════════ */
.section-sesiones {
  position: relative;
  overflow: hidden;
  background: var(--black-soft);
  border-top: 1px solid var(--line);
}

/* Subtle starfield background */
.sesiones-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  color: var(--gold);
  opacity: 0.18;
}

.sesiones-stars svg {
  position: absolute;
  top: 50%;
  right: 5%;
  width: 42%;
  max-width: 320px;
  height: auto;
  transform: translateY(-50%);
}

.sesiones-stars .star {
  opacity: 0.3;
  animation: starTwinkle 5s ease-in-out infinite;
}

.sesiones-stars .star:nth-child(1) { animation-delay: 0s; }
.sesiones-stars .star:nth-child(2) { animation-delay: 0.6s; }
.sesiones-stars .star:nth-child(3) { animation-delay: 1.2s; }
.sesiones-stars .star:nth-child(4) { animation-delay: 1.8s; }
.sesiones-stars .star:nth-child(5) { animation-delay: 2.4s; }
.sesiones-stars .star:nth-child(6) { animation-delay: 3s; }
.sesiones-stars .star:nth-child(7) { animation-delay: 3.6s; }
.sesiones-stars .star:nth-child(8) { animation-delay: 4.2s; }
.sesiones-stars .star:nth-child(9) { animation-delay: 0.8s; }
.sesiones-stars .star:nth-child(10) { animation-delay: 1.6s; }
.sesiones-stars .star:nth-child(11) { animation-delay: 2.4s; }
.sesiones-stars .star:nth-child(12) { animation-delay: 3.2s; }

@keyframes starTwinkle {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.08); }
}

/* Grid: text left, SVG right */
.sesiones-container {
  position: relative;
  z-index: 1;
}

.sesiones-grid {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 0.5fr);
  gap: 4rem;
  align-items: center;
}

.sesiones-text {
  max-width: 40rem;
}

.sesiones-content {
  max-width: 36rem;
}

.sesiones-lead {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--white-pure);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.sesiones-content p {
  font-size: 1rem;
  color: var(--gray);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.sesiones-content p:last-child {
  margin-bottom: 0;
}

/* SVG visual: diamond + circle + rays, draw on scroll */
.sesiones-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
}

.sesiones-svg-wrap {
  position: relative;
  width: 100%;
  max-width: 280px;
  color: var(--gold);
  filter: drop-shadow(0 0 50px rgba(75, 107, 78, 0.14));
}

.sesiones-svg-wrap::before {
  content: '';
  position: absolute;
  inset: -30%;
  z-index: 0;
  background: radial-gradient(ellipse 70% 70% at 50% 50%, rgba(75, 107, 78, 0.08), rgba(75, 107, 78, 0.03) 50%, transparent 75%);
  pointer-events: none;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 1.2s ease-out 0.3s;
}

.section-sesiones.in-view .sesiones-svg-wrap::before {
  opacity: 1;
}

.sesiones-svg-wrap .sesiones-svg {
  position: relative;
  z-index: 1;
}

.sesiones-svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Circle divisions: the diagonal rays remain shorter than the axes */
.sesiones-rays {
  filter: drop-shadow(0 0 8px rgba(75, 107, 78, 0.18));
}

.sesiones-axis,
.sesiones-diagonal {
  transition: stroke-width 0.4s ease, stroke-dashoffset 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.sesiones-svg:hover .sesiones-axis,
.sesiones-svg:hover .sesiones-diagonal {
  stroke-width: 0.9;
}

/* Draw animation when section is in view (JS adds .in-view) */
.sesiones-draw {
  stroke-dasharray: var(--seg-len, 400);
  stroke-dashoffset: var(--seg-len, 400);
  transition: stroke-dashoffset 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.section-sesiones.in-view .sesiones-draw {
  stroke-dashoffset: 0;
}

/* Staggered reveal for each element */
.sesiones-diamond { transition-delay: 0.1s; }
.sesiones-axis:nth-child(1) { transition-delay: 0.25s; }
.sesiones-axis:nth-child(2) { transition-delay: 0.4s; }
.sesiones-diagonal:nth-child(3) { transition-delay: 0.55s; }
.sesiones-diagonal:nth-child(4) { transition-delay: 0.65s; }
.sesiones-diagonal:nth-child(5) { transition-delay: 0.75s; }
.sesiones-diagonal:nth-child(6) { transition-delay: 0.85s; }
.sesiones-circle { transition-delay: 1.15s; }

/* Center dot pulse when in view */
.sesiones-svg circle[r="2"] {
  opacity: 0;
  transform: scale(0.8);
  transform-origin: 100px 100px;
  transition: opacity 0.8s ease 1.3s, transform 0.8s ease 1.3s;
}

.section-sesiones.in-view .sesiones-svg circle[r="2"] {
  opacity: 0.7;
  transform: scale(1);
  animation: centerPulse 3s ease-in-out 1.5s infinite;
}

@keyframes centerPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.4); }
}

/* ═══════════════════════════════════════════════════
   EL RECORRIDO
   ═══════════════════════════════════════════════════ */
.section-recorrido {
  position: relative;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(circle at 90% 8%, rgba(255, 255, 255, 0.72), transparent 28%),
    var(--black);
}

.recorrido-intro {
  max-width: 43rem;
  margin: -0.5rem 0 3rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  line-height: 1.6;
  color: var(--gray);
}

.recorrido-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.recorrido-weeks {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.recorrido-card {
  position: relative;
  min-height: 15rem;
  padding: 2rem;
  border: 1px solid var(--line);
  background: rgba(230, 230, 218, 0.52);
  transition: transform 0.35s var(--ease), border-color 0.35s, background 0.35s;
}

.recorrido-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-gold);
  background: rgba(230, 230, 218, 0.78);
}

.recorrido-card-white {
  background: var(--paper);
  box-shadow: 0 18px 45px rgba(58, 46, 30, 0.07);
}

.recorrido-card-white:hover {
  background: var(--paper);
}

.recorrido-kicker {
  display: block;
  margin-bottom: 1.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--terracotta);
}

.recorrido-card h3,
.recorrido-after h3 {
  margin-bottom: 0.85rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.25;
  color: var(--white-pure);
}

.recorrido-card p,
.recorrido-after p {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.75;
}

.recorrido-card-wide {
  grid-column: 1 / -1;
  min-height: 0;
}

.recorrido-signals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.recorrido-signals p {
  padding: 1rem 1.15rem;
  background: var(--paper);
  border-left: 3px solid var(--terracotta);
}

.recorrido-after {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 3rem;
  margin-top: 1rem;
  padding: 2.5rem;
  color: var(--white);
  background: var(--gold);
}

.recorrido-after .recorrido-kicker,
.recorrido-after h3,
.recorrido-after p,
.recorrido-after strong,
.recorrido-after .brand-name {
  color: var(--paper);
}

.recorrido-after p + p {
  margin-top: 0.65rem;
}

.recorrido-modalidad {
  display: inline-block;
  margin-top: 1rem !important;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.32);
}

/* ═══════════════════════════════════════════════════
   LAS 7 ETAPAS (STEPS)
   ═══════════════════════════════════════════════════ */
.section-etapas {
  border-top: 1px solid var(--line);
  background: var(--black);
}

.section-etapas .etapas-list {
  max-width: 52rem;
}

.section-claves {
  border-top: 1px solid var(--line);
}

/* Layout: steps left, diamond right (sticky) */
.claves-wrap {
  display: grid;
  grid-template-columns: 1fr minmax(140px, 200px);
  gap: 3rem;
  align-items: start;
}

.claves-content {
  min-width: 0;
}

.steps {
  margin-top: 1rem;
}

/* Diamond evolution: piedra → diamante brillante (7-stage scroll-driven) */
.claves-diamond-wrap {
  position: sticky;
  top: 6rem;
  color: var(--gold);
  padding-top: 0.5rem;
}

.claves-diamond-svg {
  width: 100%;
  max-width: 140px;
  height: auto;
  display: block;
  margin-left: auto;
  transform: scale(calc(0.92 + 0.08 * var(--claves-progress, 0)));
  filter: drop-shadow(0 0 calc(2px + 18px * var(--claves-progress, 0)) rgba(75, 107, 78, calc(0.05 + 0.32 * var(--claves-progress, 0))));
  transition: transform 0.3s ease-out, filter 0.3s ease-out;
}

/* Stage 1: Rough stone — fades out as diamond forms */
.diamond-rough {
  opacity: clamp(0, calc((0.3 - var(--claves-progress, 0)) * 3.33), 1);
  transform: rotate(calc(3deg * (1 - var(--claves-progress, 0))));
  transform-origin: 60px 70px;
  transition: opacity 0.2s ease-out;
}

/* Stage 2: Diamond outline — emerges early */
.diamond-outline {
  opacity: clamp(0, calc((var(--claves-progress, 0) - 0.05) * 4), 1);
  fill-opacity: calc(0.02 + 0.06 * var(--claves-progress, 0));
  transition: opacity 0.2s ease-out;
}

/* Stage 3: Table + Girdle structural lines */
.diamond-structure {
  opacity: clamp(0, calc((var(--claves-progress, 0) - 0.2) * 5), 1);
  transition: opacity 0.2s ease-out;
}

/* Stage 4: Crown facets */
.diamond-crown {
  opacity: clamp(0, calc((var(--claves-progress, 0) - 0.3) * 5), 1);
  transition: opacity 0.2s ease-out;
}

/* Stage 5: Pavilion facets */
.diamond-pavilion {
  opacity: clamp(0, calc((var(--claves-progress, 0) - 0.4) * 5), 1);
  transition: opacity 0.2s ease-out;
}

/* Stage 6: Inner fire / light refractions */
.diamond-fire {
  opacity: clamp(0, calc((var(--claves-progress, 0) - 0.55) * 5), 1);
  transition: opacity 0.2s ease-out;
}

/* Stage 7: Sparkles / brilliance */
.diamond-sparkles {
  opacity: clamp(0, calc((var(--claves-progress, 0) - 0.7) * 5), 1);
  transition: opacity 0.2s ease-out;
}

.diamond-sparkles line {
  animation: diamondSparkle 2.5s ease-in-out infinite;
}
.diamond-sparkles line:nth-child(1) { animation-delay: 0s; }
.diamond-sparkles line:nth-child(2) { animation-delay: 0.2s; }
.diamond-sparkles line:nth-child(3) { animation-delay: 0.7s; }
.diamond-sparkles line:nth-child(4) { animation-delay: 0.9s; }
.diamond-sparkles line:nth-child(5) { animation-delay: 1.3s; }
.diamond-sparkles line:nth-child(6) { animation-delay: 1.5s; }
.diamond-sparkles line:nth-child(7) { animation-delay: 1.9s; }
.diamond-sparkles line:nth-child(8) { animation-delay: 2.1s; }

@keyframes diamondSparkle {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

.step {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 1.5rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.4s;
}

.step-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding-top: 0.15rem;
}

.step-icon {
  display: inline-flex;
  flex-shrink: 0;
  width: 1.6rem;
  height: 1.6rem;
  color: var(--gold);
  opacity: 0.75;
  transition: opacity 0.3s, color 0.3s;
}

.step-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.step:hover .step-icon {
  opacity: 1;
  color: var(--terracotta);
}

.step:first-child {
  border-top: 1px solid var(--line);
}

.step:hover {
  border-bottom-color: var(--line-gold);
}

.step:hover .step-num {
  color: var(--gold-bright);
  text-shadow: 0 0 24px var(--gold-glow);
}

.step:hover .step-line {
  background: var(--terracotta);
  transform: scaleX(1);
}

.step-num {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--gray-dark);
  transition: color 0.4s, text-shadow 0.4s;
}

.step-body {
  max-width: 36rem;
}

.step-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: -0.01em;
  color: var(--white-pure);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.step-line {
  width: 2rem;
  height: 1px;
  background: var(--gray-dark);
  margin-bottom: 0.75rem;
  transform: scaleX(0.5);
  transform-origin: left;
  transition: background 0.4s, transform 0.4s var(--ease);
}

.step p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--gray);
}

/* ═══════════════════════════════════════════════════
   QUOTE
   ═══════════════════════════════════════════════════ */
.section-quote {
  padding: 5rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--black-soft);
}

.quote {
  text-align: center;
  max-width: 38rem;
  margin: 0 auto;
}

.quote p {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3.5vw, 1.8rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.5;
  color: var(--white-pure);
  margin-bottom: 1.25rem;
}

.quote em {
  color: var(--terracotta);
  font-style: italic;
}

.quote footer {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray);
}

/* ═══════════════════════════════════════════════════
   PARA QUIÉN
   ═══════════════════════════════════════════════════ */
.section-quien {
  border-bottom: 1px solid var(--line);
}

.quien-grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 4rem;
  align-items: start;
  margin-top: 1rem;
}

.quien-lead {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--gold);
  line-height: 1.45;
  margin-bottom: 1.25rem;
}

.quien-text p {
  font-size: 0.95rem;
  color: var(--gray);
  margin-bottom: 1rem;
}

.quien-sesiones {
  margin: 2rem 0 1.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.quien-sesiones-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.03em;
  color: var(--white-pure);
  margin-bottom: 0.75rem;
}

.quien-sesiones-desc {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.quien-sesiones-list {
  list-style: none;
  margin-bottom: 1rem;
}

.quien-sesiones-list li {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.6;
  padding: 0.25rem 0;
  padding-left: 1rem;
  position: relative;
}

.quien-sesiones-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 4px;
  height: 4px;
  background: var(--terracotta);
  border-radius: 50%;
}

.quien-sesiones-precio {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.6;
}

.quien-sesiones-precio strong {
  color: var(--gold);
}

.quien-areas {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  margin: 1.5rem 0 2rem;
}

.quien-areas span {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  border: 1px solid var(--line);
  color: var(--gray);
  transition: border-color 0.3s, color 0.3s;
}

.quien-areas span:hover {
  border-color: var(--terracotta);
  color: var(--gold-bright);
}

.quien-visual {
  position: relative;
  overflow: hidden;
}

.quien-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--line);
  pointer-events: none;
  transition: border-color 0.4s;
}

.quien-visual:hover::after {
  border-color: var(--line-gold);
}

.quien-visual img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: grayscale(15%) sepia(6%) brightness(1);
  transition: filter 0.6s, transform 0.6s var(--ease);
}

.quien-visual:hover img {
  filter: grayscale(0%) sepia(0%) brightness(1.02);
  transform: scale(1.03);
}

.quien-visual-symbol {
  min-height: 31rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: clamp(3rem, 7vw, 5rem);
  background: var(--gold);
}

.quien-visual-symbol img,
.quien-visual-symbol:hover img {
  width: min(100%, 22rem);
  aspect-ratio: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 22px rgba(30, 35, 24, 0.2));
  transform: none;
}

.quien-visual-symbol .map-words {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
  width: min(100%, 22rem);
  text-align: center;
}

.quien-visual-symbol .map-words span {
  font-size: clamp(0.52rem, 1.5vw, 0.72rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper);
  white-space: nowrap;
}

/* ═══════════════════════════════════════════════════
   BIOGRAFÍA
   ═══════════════════════════════════════════════════ */
.section-bio {
  border-bottom: 1px solid var(--line);
  background: var(--black-soft);
}

.bio-grid {
  display: grid;
  grid-template-columns: minmax(17rem, 0.72fr) 1.28fr;
  gap: 4.5rem;
  align-items: start;
}

.bio-visual {
  position: sticky;
  top: 7rem;
}

.bio-photo-placeholder {
  min-height: 35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(3rem, 7vw, 5.5rem);
  background: var(--gold);
  border: none;
  box-shadow: none;
}

.bio-photo-placeholder img {
  width: min(100%, 21rem);
  filter: drop-shadow(0 14px 26px rgba(30, 35, 24, 0.22));
}

.bio-photo-placeholder.bio-photo {
  padding: 0;
  overflow: hidden;
}

.bio-photo-placeholder .bio-portrait {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: 58% 40%;
  filter: none;
}

.bio-copy {
  max-width: 40rem;
}

.bio-copy p {
  margin-bottom: 1.1rem;
  color: var(--gray);
  line-height: 1.8;
}

.bio-lead {
  font-family: var(--font-display);
  font-size: 1.28rem;
  color: var(--white-pure) !important;
}

.bio-statement {
  margin: 1.8rem 0 !important;
  padding: 1.25rem 1.4rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--white-pure) !important;
  background: var(--paper);
  border-left: 3px solid var(--terracotta);
}

/* ═══════════════════════════════════════════════════
   CONTACTO
   ═══════════════════════════════════════════════════ */
.section-contacto {
  background: var(--black-soft);
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contacto-desc {
  font-size: 1rem;
  color: var(--gray);
  margin-bottom: 2.5rem;
  max-width: 22rem;
  line-height: 1.7;
}

.contacto-data {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contacto-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.contacto-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
}

.contacto-item a {
  font-size: 0.95rem;
  color: var(--white-pure);
  transition: color 0.3s;
}

.contacto-item a:hover {
  color: var(--gold);
}

/* Form */
.form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-field label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
}

.form-field .optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--gray-dark);
}

.form-field input,
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--white-pure);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--earth);
  padding: 0.75rem 0;
  transition: border-color 0.3s;
  outline: none;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--gray-dark);
}

.form-field input:focus,
.form-field textarea:focus {
  border-bottom-color: var(--gold);
}

.form-field textarea {
  resize: vertical;
  min-height: 80px;
}

.btn-submit {
  align-self: flex-start;
  margin-top: 0.5rem;
  min-width: 10.6rem;
  min-height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-submit:disabled {
  cursor: wait;
  opacity: 0.72;
}

.btn-loader {
  display: none;
  width: 1rem;
  height: 1rem;
  border: 1.5px solid rgba(255, 255, 255, 0.42);
  border-top-color: var(--paper);
  border-radius: 50%;
  animation: formSpin 0.7s linear infinite;
}

.btn-submit.is-loading .btn-label {
  display: none;
}

.btn-submit.is-loading .btn-loader {
  display: block;
}

.form-trap {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.form-feedback {
  display: grid;
  grid-template-columns: 2.8rem 1fr;
  gap: 0.85rem;
  align-items: center;
  max-height: 0;
  padding: 0 1rem;
  overflow: hidden;
  opacity: 0;
  transform: translateY(8px);
  border: 1px solid transparent;
  outline: none;
  transition:
    max-height 0.5s var(--ease),
    padding 0.5s var(--ease),
    opacity 0.35s ease,
    transform 0.5s var(--ease),
    border-color 0.35s ease;
}

.form-feedback.is-success,
.form-feedback.is-error {
  max-height: 9rem;
  padding: 1rem;
  opacity: 1;
  transform: translateY(0);
}

.form-feedback.is-success {
  color: var(--gold-bright);
  background: rgba(75, 107, 78, 0.08);
  border-color: rgba(75, 107, 78, 0.24);
}

.form-feedback.is-error {
  color: #8a4336;
  background: rgba(199, 142, 107, 0.1);
  border-color: rgba(199, 142, 107, 0.32);
}

.form-feedback-icon {
  width: 2.8rem;
  height: 2.8rem;
}

.form-feedback-icon svg {
  width: 100%;
  height: 100%;
}

.feedback-envelope,
.feedback-check {
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feedback-check {
  opacity: 0;
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
}

.form-feedback.is-success .feedback-envelope {
  animation: feedbackEnvelope 0.55s var(--ease) both;
}

.form-feedback.is-success .feedback-check {
  animation: feedbackCheck 0.5s var(--ease-out) 0.4s forwards;
}

.form-feedback-title {
  display: block;
  margin-bottom: 0.1rem;
  color: currentColor;
  font-family: var(--font-display);
  font-size: 1rem;
}

.form-feedback-text {
  color: var(--gray);
  font-size: 0.87rem;
  line-height: 1.45;
}

@keyframes formSpin {
  to { transform: rotate(360deg); }
}

@keyframes feedbackEnvelope {
  from { opacity: 0; transform: translateY(6px) scale(0.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes feedbackCheck {
  0% { opacity: 1; stroke-dashoffset: 24; }
  100% { opacity: 1; stroke-dashoffset: 0; }
}

/* ═══════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════ */
.footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--gray);
}

/* ═══════════════════════════════════════════════════
   SCROLL REVEAL
   ═══════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: rgba(250, 250, 247, 0.97);
    backdrop-filter: blur(16px);
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 999;
  }
  .nav.open a {
    font-size: 1.1rem;
    color: var(--white-pure);
  }
  .nav-toggle { display: flex; z-index: 1001; }

  .quien-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .quien-visual { order: -1; }
  .quien-visual img { aspect-ratio: 16 / 10; }

  .contacto-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .bio-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .bio-visual {
    position: relative;
    top: 0;
  }
  .bio-photo-placeholder {
    min-height: 24rem;
  }

  .step {
    grid-template-columns: 3.5rem 1fr;
    gap: 1rem;
  }
  .step-num { font-size: 1.8rem; }

  .quien-areas { flex-wrap: wrap; }
  .diagram { flex-direction: column; gap: 1.5rem; }
  .diagram-bridge {
    flex-direction: column;
    padding: 0;
    max-width: none;
    gap: 0;
  }
  .diagram-line { width: 1px; height: 1.5rem; flex: none; }

  .sesiones-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .sesiones-visual { order: -1; padding: 1.5rem 0; }
  .sesiones-svg-wrap { max-width: 200px; margin: 0 auto; }
  .sesiones-stars svg {
    top: 12%;
    right: 50%;
    transform: translate(50%, 0);
    width: 70%;
    max-width: 240px;
  }

  .claves-wrap {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .claves-diamond-wrap {
    order: -1;
    position: relative;
    top: 0;
    padding: 0 0 0.5rem;
  }
  .claves-diamond-svg {
    max-width: 110px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 600px) {
  .header { padding: 1rem 1.25rem; }
  .section { padding: 4rem 0; }
  .container { padding: 0 1.25rem; }
  .hero { padding: 5rem 1.25rem 3rem; }
  .hero-title { font-size: 2.4rem; }
  .recorrido-grid,
  .recorrido-weeks,
  .recorrido-signals,
  .recorrido-after {
    grid-template-columns: 1fr;
  }
  .recorrido-card {
    min-height: 0;
    padding: 1.5rem;
  }
  .recorrido-after {
    gap: 1.25rem;
    padding: 1.75rem;
  }
  .quien-visual-symbol {
    min-height: 24rem;
    padding: 2.75rem;
  }
  .bio-photo-placeholder {
    min-height: 20rem;
    padding: 2.75rem;
  }
  .footer-inner { flex-direction: column; gap: 0.5rem; text-align: center; }
}
