/* =========================================================
   Damián Izquierdo · Método Integración
   Paleta: grafito, blanco roto, arena, dorado champagne
   ========================================================= */

:root {
  --charcoal: #1c1b19;
  --graphite: #2a2926;
  --graphite-2: #34322e;
  --bone: #f6f2ec;
  --sand: #ece4d8;
  --linen: #ddd1bf;
  --gold: #b8996a;
  --gold-soft: #d2bb92;
  --ink: #2a2723;
  --muted: #6d655b;
  --muted-light: rgba(246, 242, 236, .68);
  --line-dark: rgba(42, 39, 35, .14);
  --line-light: rgba(246, 242, 236, .14);

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --display: "Marcellus", "Cormorant Garamond", serif;
  --sans: "Montserrat", system-ui, sans-serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 84px;
  --gutter: clamp(20px, 5vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 70px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; }
::selection { background: var(--gold); color: var(--charcoal); }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow { max-width: 860px; }
.center { text-align: center; }
.caps,
.about-body strong { font-family: var(--display); font-weight: 400; letter-spacing: .14em; text-transform: uppercase; font-size: .92em; }

/* ---------- Tipografía base ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin: 0 0 22px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; opacity: .7; }
.eyebrow.dark { color: var(--gold); }
.center .eyebrow::after { content: ""; width: 34px; height: 1px; background: currentColor; opacity: .7; }

.section-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.1;
  letter-spacing: -.005em;
  margin: 0 0 24px;
  color: var(--ink);
}
.section-title em { color: var(--gold); font-weight: 300; }
.section-title.light { color: var(--bone); }
.section-title.light em { color: var(--gold-soft); }

.section-head { margin-bottom: clamp(48px, 7vw, 84px); max-width: 760px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-intro { font-size: 17px; color: var(--muted-light); max-width: 600px; margin: 0 auto; }
.section-intro.dark { color: var(--muted); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 38px;
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color .5s var(--ease), border-color .5s var(--ease), background-color .5s var(--ease);
  z-index: 0;
}
.btn::before {
  content: "";
  position: absolute; inset: 0;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .6s var(--ease);
  z-index: -1;
}
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); transform-origin: left; }

.btn-gold { background: var(--gold); color: var(--charcoal); border-color: var(--gold); }
.btn-gold::before { background: var(--bone); }
.btn-ghost { color: var(--bone); border-color: rgba(246,242,236,.4); }
.btn-ghost::before { background: var(--bone); }
.btn-ghost:hover { color: var(--charcoal); border-color: var(--bone); }
.btn-dark { background: var(--charcoal); color: var(--bone); border-color: var(--charcoal); }
.btn-dark::before { background: var(--gold); }
.btn-dark:hover { color: var(--charcoal); border-color: var(--gold); }
.btn-block { width: 100%; }
.btn:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }

/* ---------- Grano sutil ---------- */
.grain {
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background-color .5s var(--ease), box-shadow .5s var(--ease), padding .5s var(--ease);
  padding: 14px 0;
}
.site-header.scrolled {
  background: rgba(28, 27, 25, .86);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  box-shadow: 0 1px 0 var(--line-light);
  padding: 4px 0;
}
.header-inner {
  max-width: 1400px; margin: 0 auto; padding: 0 var(--gutter);
  height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.brand { display: flex; align-items: center; gap: 14px; color: var(--gold-soft); }
.brand-mark { width: 44px; height: 36px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-family: var(--display); font-size: 15px; letter-spacing: .2em; text-transform: uppercase; color: var(--bone); }
.brand-sub { font-size: 9.5px; letter-spacing: .34em; text-transform: uppercase; color: var(--gold-soft); margin-top: 3px; }

.nav { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 34px); }
.nav-link {
  font-size: 11px; font-weight: 400; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(246, 242, 236, .82);
  position: relative; padding: 6px 0;
  transition: color .3s var(--ease);
  white-space: nowrap;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--gold-soft); transform: scaleX(0); transition: transform .45s var(--ease);
}
.nav-link:hover, .nav-link.active { color: var(--bone); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-cta {
  border: 1px solid rgba(210, 187, 146, .6);
  padding: 11px 20px; color: var(--gold-soft);
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--gold); color: var(--charcoal); border-color: var(--gold); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative;
}
.nav-toggle span {
  position: absolute; left: 10px; right: 10px; height: 1px; background: var(--bone);
  transition: transform .4s var(--ease), top .4s var(--ease);
}
.nav-toggle span:first-child { top: 18px; }
.nav-toggle span:last-child { top: 26px; }
.nav-open .nav-toggle span:first-child { top: 22px; transform: rotate(45deg); }
.nav-open .nav-toggle span:last-child { top: 22px; transform: rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; align-items: center;
  color: var(--bone);
  overflow: hidden;
  background: var(--charcoal);
}
.hero-media { position: absolute; inset: 0; }
/* Fondo de respaldo si el video aún no cargó o no existe */
.hero-media::before {
  content: ""; position: absolute; inset: -20%;
  background:
    radial-gradient(ellipse 60% 50% at 70% 40%, rgba(184,153,106,.22), transparent 60%),
    radial-gradient(ellipse 50% 60% at 20% 80%, rgba(221,209,191,.10), transparent 60%),
    linear-gradient(160deg, #2c2a26 0%, #1c1b19 55%, #141311 100%);
  animation: drift 24s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translate3d(-4%, 3%, 0) scale(1.06); } }

.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.8s var(--ease);
  transform: scale(1.04);
}
.hero-video.ready { opacity: 1; }
.hero-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20,19,17,.55) 0%, rgba(20,19,17,.25) 35%, rgba(20,19,17,.55) 75%, rgba(20,19,17,.92) 100%),
    linear-gradient(90deg, rgba(20,19,17,.78) 0%, rgba(20,19,17,.45) 45%, rgba(20,19,17,.12) 75%);
}

.hero-content {
  position: relative; z-index: 2;
  width: 100%; max-width: 1240px; margin: 0 auto;
  padding: calc(var(--header-h) + 60px) var(--gutter) 140px;
}
.hero-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(40px, 5.4vw, 78px);
  line-height: 1.04;
  letter-spacing: -.012em;
  max-width: 19ch;
  margin: 0 0 34px;
}
.hero-title em { color: var(--gold-soft); }
.hero-sub {
  max-width: 600px;
  font-size: clamp(15px, 1.25vw, 17.5px);
  line-height: 1.85;
  color: rgba(246, 242, 236, .8);
  margin: 0 0 48px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 34px; z-index: 2;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  font-size: 10px; letter-spacing: .4em; text-transform: uppercase; color: rgba(246,242,236,.6);
}
.scroll-cue i { width: 1px; height: 56px; background: rgba(246,242,236,.25); position: relative; overflow: hidden; }
.scroll-cue i::after {
  content: ""; position: absolute; left: 0; top: -100%; width: 100%; height: 100%;
  background: var(--gold-soft); animation: cue 2.4s var(--ease) infinite;
}
@keyframes cue { to { top: 100%; } }

/* =========================================================
   IDENTIFICACIÓN
   ========================================================= */
.identify {
  background: var(--sand);
  padding: clamp(100px, 14vw, 180px) 0;
  text-align: center;
}
.ornament {
  display: block; width: 1px; height: 70px; margin: 0 auto 50px;
  background: linear-gradient(var(--gold), transparent);
}
.identify-text {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(23px, 2.6vw, 33px);
  line-height: 1.5;
  color: var(--ink);
  margin: 0 0 28px;
}
.identify-close {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(26px, 3vw, 38px);
  color: var(--gold);
  margin: 52px 0 0;
  position: relative;
}

/* =========================================================
   MODALIDADES
   ========================================================= */
.modes { padding: clamp(100px, 12vw, 160px) 0; background: var(--bone); }
.mode-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.mode-card {
  position: relative;
  padding: 56px 40px 44px;
  background: #fff;
  border: 1px solid var(--line-dark);
  display: flex; flex-direction: column;
  transition: transform .7s var(--ease), box-shadow .7s var(--ease), border-color .7s var(--ease);
}
.mode-card::before {
  content: ""; position: absolute; top: -1px; left: -1px; right: -1px; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease);
}
.mode-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(42,39,35,.28); border-color: transparent; }
.mode-card:hover::before { transform: scaleX(1); }
.mode-num { font-family: var(--display); font-size: 15px; letter-spacing: .2em; color: var(--gold); margin-bottom: 36px; }
.mode-card h3 { font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1.1; margin: 0; }
.rule { display: block; width: 40px; height: 1px; background: var(--gold); margin: 26px 0; }
.mode-card p { margin: 0 0 36px; color: var(--muted); flex: 1; }
.mode-tag { font-size: 10.5px; letter-spacing: .28em; text-transform: uppercase; color: var(--ink); opacity: .7; padding-top: 22px; border-top: 1px solid var(--line-dark); }

/* =========================================================
   CIERRE
   ========================================================= */
.closing {
  background: var(--charcoal);
  color: var(--bone);
  min-height: clamp(460px, 72vh, 720px);
  display: flex; align-items: center;
  padding: clamp(90px, 11vw, 140px) 0;
  position: relative;
  overflow: hidden;
}
.closing-media { position: absolute; inset: 0; }
.closing-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
}
.closing-veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(20,19,17,.55), rgba(20,19,17,.25) 100%),
    linear-gradient(180deg, rgba(20,19,17,.45) 0%, rgba(20,19,17,.2) 50%, rgba(20,19,17,.55) 100%);
}
.closing .container { position: relative; z-index: 1; }
.closing-quote {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(30px, 4vw, 50px); line-height: 1.22;
  margin: 0 0 48px;
  text-shadow: 0 2px 30px rgba(20,19,17,.45);
}
.closing-quote em { color: var(--gold-soft); }

/* =========================================================
   SOBRE MÍ
   ========================================================= */
.about { padding: clamp(110px, 13vw, 180px) 0; background: var(--bone); }
.about-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(48px, 8vw, 120px); align-items: start; }
.about-sticky { position: sticky; top: 120px; }
.about-aside .section-title { font-size: clamp(32px, 3.6vw, 48px); }

.portrait { margin: 44px 0 0; }
.portrait img, .portrait-placeholder { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.portrait-placeholder {
  background:
    radial-gradient(ellipse at 30% 20%, rgba(184,153,106,.25), transparent 60%),
    linear-gradient(160deg, var(--graphite-2), var(--charcoal));
  display: grid; place-items: center;
  color: var(--gold-soft);
  position: relative;
}
.portrait-placeholder::after { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(210,187,146,.25); }
.portrait-placeholder svg { width: 38%; height: auto; aspect-ratio: 130 / 104; opacity: .9; }
.portrait figcaption {
  margin-top: 20px; font-family: var(--display); letter-spacing: .18em; text-transform: uppercase; font-size: 13px;
  display: flex; flex-direction: column; gap: 4px;
}
.portrait figcaption span { font-family: var(--sans); font-size: 10.5px; letter-spacing: .24em; color: var(--muted); }

.about-body { padding-top: 8px; }
.chapter { padding-bottom: 56px; margin-bottom: 56px; border-bottom: 1px solid var(--line-dark); }
.chapter:last-child { border-bottom: 0; margin-bottom: 0; }
.chapter p { margin: 0 0 20px; color: #4b453e; font-size: 16.5px; }
.chapter .lead {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(25px, 2.4vw, 31px); line-height: 1.42; color: var(--ink);
  margin-bottom: 30px;
}
.chapter-num { display: block; font-family: var(--display); color: var(--gold); letter-spacing: .2em; font-size: 13px; margin-bottom: 14px; }
.chapter h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(26px, 2.5vw, 34px); line-height: 1.2;
  margin: 0 0 26px; color: var(--ink);
}
.pull {
  margin: 40px 0 10px; padding: 6px 0 6px 32px;
  border-left: 1px solid var(--gold);
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(22px, 2.1vw, 27px); line-height: 1.45; color: var(--ink);
}
.signature-line { font-family: var(--serif); font-size: 22px !important; line-height: 1.5; color: var(--ink) !important; margin-top: 32px !important; }
.signature { font-family: var(--serif); font-style: italic; font-size: 30px !important; color: var(--gold) !important; margin-top: 28px !important; }

/* =========================================================
   EL MÉTODO — dos rieles paralelos
   ========================================================= */
.method {
  position: relative;
  background: var(--charcoal);
  color: var(--bone);
  padding: clamp(110px, 13vw, 180px) 0;
  overflow: hidden;
}
.method::before {
  content: ""; position: absolute; width: 900px; height: 900px; left: 50%; top: 10%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(184,153,106,.12), transparent 60%);
  pointer-events: none;
}
.method .container { position: relative; }

.rails { display: grid; grid-template-columns: 1fr 120px 1fr; align-items: stretch; }
.rail {
  border-top: 1px solid rgba(210,187,146,.55);
  border-bottom: 1px solid rgba(210,187,146,.55);
  padding: 56px 0 52px;
  display: flex; flex-direction: column;
}
.rail-head { margin-bottom: 30px; }
.rail-letter { font-family: var(--display); font-size: 13px; letter-spacing: .3em; color: var(--gold-soft); display: block; margin-bottom: 30px; }
.rail-letter::before { content: "Riel "; }
.rail-icon { width: 58px; height: 58px; color: var(--gold-soft); margin-bottom: 28px; }
.rail-kicker { font-size: 10.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted-light); margin: 0 0 14px; }
.rail h3 { font-family: var(--serif); font-weight: 300; font-size: clamp(28px, 2.8vw, 38px); line-height: 1.15; margin: 0; }
.rail-body { flex: 1; display: flex; flex-direction: column; }
.rail-body > p { color: rgba(246,242,236,.78); margin: 0 0 30px; }
.rail-note { background: rgba(246,242,236,.04); border: 1px solid var(--line-light); padding: 26px 28px; margin-bottom: 26px; }
.rail-note h4 { font-family: var(--display); font-weight: 400; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-soft); margin: 0 0 10px; }
.rail-note p { margin: 0; color: rgba(246,242,236,.78); font-size: 15.5px; }
.legal { font-size: 12.5px; line-height: 1.7; color: rgba(246,242,236,.55); margin: auto 0 0; padding-top: 18px; border-top: 1px dashed var(--line-light); }
.legal strong { color: var(--gold-soft); font-weight: 500; letter-spacing: .06em; }

.rail-list { list-style: none; padding: 0; margin: 0; }
.rail-list li {
  padding: 17px 0 17px 30px; border-bottom: 1px solid var(--line-light);
  position: relative; font-family: var(--serif); font-size: 21px; color: var(--bone);
}
.rail-list li:first-child { border-top: 1px solid var(--line-light); }
.rail-list li::before { content: ""; position: absolute; left: 0; top: 50%; width: 14px; height: 1px; background: var(--gold); }

.rail-divider { display: flex; flex-direction: column; align-items: center; color: var(--gold-soft); }
.rail-divider span { flex: 1; width: 1px; background: linear-gradient(transparent, rgba(210,187,146,.5) 20%, rgba(210,187,146,.5) 80%, transparent); }
.rail-divider svg { width: 46px; height: 38px; margin: 22px 0; opacity: .85; }

/* =========================================================
   EL VIAJE — línea de tiempo
   ========================================================= */
.journey { background: var(--sand); padding: clamp(110px, 13vw, 180px) 0; }
.timeline { position: relative; max-width: 980px; margin: 0 auto; padding-left: 120px; }

/* Soporte transversal: banda continua que envuelve todo el recorrido */
.support-band {
  position: absolute; left: 0; top: 0; bottom: 0; width: 64px;
  border: 1px solid rgba(184,153,106,.5);
  border-radius: 32px;
  overflow: hidden;
  background: rgba(255,255,255,.3);
}
.support-fill {
  position: absolute; left: 0; right: 0; top: 0; height: 0;
  background: linear-gradient(180deg, rgba(184,153,106,.35), rgba(184,153,106,.12));
  transition: height .2s linear;
}
.support-label {
  position: absolute; left: 32px; top: 50%;
  transform: translate(-50%, -50%) rotate(-90deg);
  white-space: nowrap; margin: 0;
  font-size: 10.5px; letter-spacing: .32em; text-transform: uppercase; color: #8c7449;
}
.support-label span { font-weight: 500; }
.support-label { font-size: 0; }
.support-label span { font-size: 10.5px; }

.steps { list-style: none; margin: 0; padding: 0; position: relative; }
.steps::before {
  content: ""; position: absolute; left: 28px; top: 30px; bottom: 30px; width: 1px; background: rgba(184,153,106,.55);
}
.step { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 36px; padding-bottom: 34px; }
.step:last-child { padding-bottom: 0; }
.step-marker {
  width: 56px; height: 56px; border-radius: 50%;
  border: 1px solid var(--gold); background: var(--sand);
  display: grid; place-items: center; position: relative; z-index: 1;
  font-family: var(--display); font-size: 14px; letter-spacing: .08em; color: var(--gold);
  transition: background-color .6s var(--ease), color .6s var(--ease);
}
.step.in .step-marker { background: var(--gold); color: var(--charcoal); }
.step-card {
  background: var(--bone); border: 1px solid var(--line-dark);
  padding: 34px 40px 30px;
}
.step-when { font-size: 10.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin: 0 0 10px; font-weight: 500; }
.step-card h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.4vw, 32px); line-height: 1.15; margin: 0 0 22px; }
.step-card dl { margin: 0; }
.step-card dl > div { display: grid; grid-template-columns: 130px 1fr; gap: 20px; padding: 14px 0; border-top: 1px solid var(--line-dark); }
.step-card dt { font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--ink); font-weight: 500; padding-top: 5px; }
.step-card dd { margin: 0; color: #4b453e; }

.support-note {
  margin-top: 40px; padding: 26px 32px; border: 1px dashed rgba(184,153,106,.7);
}

/* =========================================================
   APLICAR
   ========================================================= */
.apply {
  background: var(--graphite);
  color: var(--bone);
  padding: clamp(110px, 13vw, 170px) 0;
  position: relative;
}
.apply-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(48px, 7vw, 110px); align-items: start; }
.apply-intro { position: sticky; top: 120px; }
.apply-intro > p { color: rgba(246,242,236,.75); margin: 0 0 36px; }
.apply-points { list-style: none; padding: 0; margin: 0; }
.apply-points li { padding: 16px 0 16px 30px; border-top: 1px solid var(--line-light); position: relative; font-size: 15px; color: rgba(246,242,236,.8); }
.apply-points li::before { content: ""; position: absolute; left: 0; top: 50%; width: 14px; height: 1px; background: var(--gold-soft); }

.apply-form {
  background: var(--charcoal);
  border: 1px solid var(--line-light);
  padding: clamp(30px, 4.5vw, 60px);
}
.field { display: block; margin: 0 0 30px; border: 0; padding: 0; min-width: 0; }
.field > span, .field legend {
  display: block; font-size: 12px; letter-spacing: .06em; line-height: 1.6;
  color: rgba(246,242,236,.88); margin-bottom: 12px; padding: 0; font-weight: 400;
}
.field small { font-size: inherit; color: rgba(246,242,236,.5); }
.field input[type="text"], .field input[type="tel"], .field input[type="number"], .field textarea {
  width: 100%;
  background: transparent;
  border: 0; border-bottom: 1px solid rgba(246,242,236,.25);
  color: var(--bone);
  font-family: var(--sans); font-weight: 300; font-size: 16px;
  padding: 10px 0 12px;
  border-radius: 0;
  transition: border-color .4s var(--ease);
  resize: vertical;
  -moz-appearance: textfield;
}
.field textarea { border: 1px solid rgba(246,242,236,.18); padding: 14px 16px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(246,242,236,.3); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold-soft); }
.field input::-webkit-outer-spin-button, .field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.field.invalid input, .field.invalid textarea { border-color: #c98a74; }
.field.invalid > span, .field.invalid legend { color: #e0a891; }

.hint { display: block; margin-top: 10px; font-size: 12px !important; line-height: 1.6; color: rgba(246,242,236,.5); }
.hint.notice { color: var(--gold-soft) !important; padding-left: 22px; position: relative; }
.hint.notice::before {
  content: "i"; position: absolute; left: 0; top: 2px; width: 14px; height: 14px; border-radius: 50%;
  border: 1px solid currentColor; font-size: 9px; line-height: 12px; text-align: center; font-style: italic; font-family: var(--serif);
}

.field-row { display: grid; gap: 0 28px; align-items: end; }
.field-row.three { grid-template-columns: 1.6fr .6fr 1.4fr; }

.pills { display: flex; gap: 12px; }
.pills label { cursor: pointer; }
.pills input { position: absolute; opacity: 0; pointer-events: none; }
.pills span {
  display: inline-block; min-width: 92px; text-align: center;
  padding: 12px 24px; border: 1px solid rgba(246,242,236,.25);
  font-size: 11.5px; letter-spacing: .24em; text-transform: uppercase;
  transition: all .35s var(--ease);
}
.pills label:hover span { border-color: var(--gold-soft); }
.pills input:checked + span { background: var(--gold); border-color: var(--gold); color: var(--charcoal); }
.pills input:focus-visible + span { outline: 1px solid var(--gold-soft); outline-offset: 3px; }

.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.apply-form .btn { margin-top: 10px; padding: 21px 24px; }
.form-status { margin: 18px 0 0; font-size: 14px; color: var(--gold-soft); min-height: 1em; }
.form-status.error { color: #e0a891; }

.form-success { text-align: center; padding: 40px 10px; }
.form-success svg { width: 64px; height: 52px; color: var(--gold-soft); margin: 0 auto 28px; }
.form-success h3 { font-family: var(--serif); font-weight: 300; font-size: 38px; line-height: 1.15; margin: 0 0 16px; }
.form-success p { color: rgba(246,242,236,.75); margin: 0 auto; max-width: 440px; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: #151412; color: rgba(246,242,236,.6); padding: 90px 0 40px; text-align: center; }
.footer-inner { display: flex; flex-direction: column; align-items: center; }
.footer-mark { width: 76px; height: 62px; color: var(--gold-soft); margin: 0 auto 26px; }
.footer-name { font-family: var(--display); font-size: 20px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-soft); margin: 0; }
.footer-by { font-size: 10.5px; letter-spacing: .4em; text-transform: uppercase; color: var(--gold-soft); opacity: .75; margin: 8px 0 0; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 34px; margin: 56px 0 44px; }
.footer-nav a { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; transition: color .3s; }
.footer-nav a:hover { color: var(--gold-soft); }
.footer-legal { font-size: 13px; line-height: 1.8; margin: 0 0 34px; }
.footer-copy { font-size: 11px; letter-spacing: .1em; margin: 0; padding-top: 30px; border-top: 1px solid var(--line-light); width: 100%; opacity: .7; }

/* =========================================================
   ANIMACIONES DE ENTRADA
   ========================================================= */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .hero .reveal { transition-duration: 1.4s; }
.js .hero .reveal:nth-child(2) { transition-delay: .15s; }
.js .hero .reveal:nth-child(3) { transition-delay: .35s; }
.js .hero .reveal:nth-child(4) { transition-delay: .55s; }
.js .mode-grid .reveal:nth-child(2), .js .rails .reveal:nth-child(3) { transition-delay: .15s; }
.js .mode-grid .reveal:nth-child(3) { transition-delay: .3s; }

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

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .nav {
    position: fixed; inset: 0; z-index: -1;
    flex-direction: column; justify-content: center; gap: 30px;
    background: var(--charcoal);
    opacity: 0; visibility: hidden;
    transition: opacity .5s var(--ease), visibility .5s;
  }
  .nav-open .nav { opacity: 1; visibility: visible; }
  .nav-link { font-size: 13px; }
  .nav-cta { margin-top: 12px; padding: 16px 28px; }
  .nav-toggle { display: block; }
  .nav-open .site-header { background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
}

@media (max-width: 900px) {
  .mode-grid { grid-template-columns: 1fr; }
  .about-grid, .apply-grid { grid-template-columns: 1fr; }
  .about-sticky, .apply-intro { position: static; }
  .portrait { max-width: 420px; }
  .rails { grid-template-columns: 1fr; }
  .rail-divider { flex-direction: row; padding: 34px 0; }
  .rail-divider span { height: 1px; width: auto; background: linear-gradient(90deg, transparent, rgba(210,187,146,.5) 20%, rgba(210,187,146,.5) 80%, transparent); }
  .rail-divider svg { margin: 0 22px; }
  .field-row.three { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --header-h: 72px; }
  .brand-mark { width: 38px; height: 31px; }
  .brand-name { font-size: 12.5px; letter-spacing: .16em; }
  .brand-sub { font-size: 8.5px; }
  .hero-content { padding-bottom: 120px; }
  .hero-actions .btn { width: 100%; }
  .mode-card { padding: 44px 28px 34px; }
  .timeline { padding-left: 52px; }
  .support-band { width: 30px; border-radius: 15px; }
  .support-label { left: 15px; }
  .support-label span { font-size: 9px; letter-spacing: .26em; }
  .steps::before { left: 20px; }
  .step { grid-template-columns: 40px 1fr; gap: 16px; }
  .step-marker { width: 40px; height: 40px; font-size: 12px; }
  .step-card { padding: 26px 22px 20px; }
  .step-card dl > div { grid-template-columns: 1fr; gap: 6px; }
  .pills span { min-width: 0; flex: 1; }
  .pills label { flex: 1; }
  .pills label span { width: 100%; }
}
