/* =========================================================
   SOYGRIGOR — Landing v1.0
   Sistema visual: negro cinematográfico, serif editorial,
   acentos dorados contenidos. Mobile-first.
   ========================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  --black: #050505;
  --graphite: #131313;
  --graphite-2: #1a1a1a;
  --graphite-3: #222222;
  --silver: #989898;
  --silver-soft: #b4b4b4;
  --white: #f5f5f5;
  --gold: #f2d321;
  --gold-2: #c6a43a;
  --gold-light: #f7e26a;

  --line: rgba(245, 245, 245, 0.09);
  --line-strong: rgba(245, 245, 245, 0.16);
  --line-gold: rgba(198, 164, 58, 0.42);

  --gold-gradient: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 46%, var(--gold-2) 100%);
  --glow: 0 0 0 1px rgba(242, 211, 33, 0.45), 0 12px 42px -12px rgba(242, 211, 33, 0.55);
  --glow-strong: 0 0 0 1px rgba(242, 211, 33, 0.7), 0 16px 60px -10px rgba(242, 211, 33, 0.7);

  --font-serif: "Playfair Display", "Times New Roman", Georgia, serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 2px;
  --gutter: 16px;
  --container: 1180px;
  --section-y: clamp(96px, 14vw, 180px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 64px;
  --banner-h: 0px;
}

@media (min-width: 768px) {
  :root { --gutter: 32px; --header-h: 76px; }
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + var(--banner-h) + 16px); }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, iframe, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
::selection { background: var(--gold); color: var(--black); }

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

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 1000;
  background: var(--gold); color: var(--black); padding: 10px 16px; text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 16px; }

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

/* Grano cinematográfico */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 999; opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 860px; }

/* ---------- 3. Tipografía ---------- */
.eyebrow {
  font-family: var(--font-sans); font-size: 0.75rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--silver); display: inline-flex; align-items: center; gap: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold-2); }
.eyebrow--center { justify-content: center; text-align: center; }
@media (max-width: 639px) {
  .eyebrow--center { flex-direction: column; gap: 14px; }
}

.display, .h2, .h3 { font-family: var(--font-serif); letter-spacing: -0.015em; }
.display { font-size: clamp(2.6rem, 9vw, 6.4rem); line-height: 1.02; }
.h2 { font-size: clamp(2.1rem, 6vw, 4.2rem); line-height: 1.08; }
.h3 { font-size: clamp(1.4rem, 3vw, 1.75rem); line-height: 1.2; }

.display em, .h2 em, .h3 em, .italic { font-style: italic; }
.muted { color: var(--silver); }
.gold { color: var(--gold); }
.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--silver-soft); line-height: 1.7; }
.small { font-size: 0.85rem; color: var(--silver); }
.serif-italic { font-family: var(--font-serif); font-style: italic; }

.section { position: relative; padding: var(--section-y) 0; }
.section__head { max-width: 860px; margin-bottom: clamp(48px, 7vw, 88px); }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__head .eyebrow { margin-bottom: 28px; }
.section__head .lead { margin-top: 28px; }

.hairline { height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); border: 0; margin: 0; }

/* ---------- 4. Botones ---------- */
.btn {
  --pad-y: 18px; --pad-x: 32px;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: var(--pad-y) var(--pad-x); min-height: 52px;
  border: 0; border-radius: var(--radius); cursor: pointer; text-decoration: none;
  font-family: var(--font-sans); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.02em; white-space: nowrap;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background-color 0.3s, color 0.3s, border-color 0.3s;
}
.btn--gold { background: var(--gold-gradient); color: var(--black); box-shadow: var(--glow); }
.btn--gold:hover { transform: translateY(-2px); box-shadow: var(--glow-strong); }
.btn--gold:active { transform: translateY(0); }
.btn--ghost { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--gold-2); color: var(--gold); }
.btn--sm { --pad-y: 10px; --pad-x: 18px; min-height: 40px; font-size: 0.85rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn__arrow { transition: transform 0.4s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.cta-block { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.cta-note { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--silver); }

/* ---------- 5. Banner demo ---------- */
.demo-banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: 120;
  background: #1f1a05; color: var(--gold-light); border-bottom: 1px solid var(--line-gold);
  font-size: 0.78rem; line-height: 1.4; padding: 8px var(--gutter); text-align: center;
}
.demo-banner strong { letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; margin-right: 6px; }
.has-demo-banner { --banner-h: 52px; }
@media (min-width: 640px) { .has-demo-banner { --banner-h: 36px; } }

/* ---------- 6. Header ---------- */
.site-header {
  position: fixed; top: var(--banner-h); left: 0; right: 0; z-index: 100; height: var(--header-h);
  transition: background-color 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { background: rgba(5, 5, 5, 0.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { font-family: var(--font-serif); font-size: 1.2rem; letter-spacing: 0.22em; text-decoration: none; }
.brand span { color: var(--gold); font-style: italic; letter-spacing: 0.1em; }

.nav { display: none; }
.nav ul { list-style: none; display: flex; gap: 32px; }
.nav a { text-decoration: none; font-size: 0.85rem; color: var(--silver-soft); transition: color 0.3s; }
.nav a:hover { color: var(--white); }
.header-cta { display: none; }

.nav-toggle {
  width: 44px; height: 44px; background: transparent; border: 1px solid var(--line-strong); border-radius: var(--radius);
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; cursor: pointer;
}
.nav-toggle span { width: 18px; height: 1px; background: var(--white); transition: transform 0.3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: calc(var(--header-h) + var(--banner-h)) 0 0 0; z-index: 99;
  background: rgba(5, 5, 5, 0.97); backdrop-filter: blur(10px);
  padding: 40px var(--gutter); display: flex; flex-direction: column; gap: 8px;
  opacity: 0; visibility: hidden; transition: opacity 0.35s var(--ease), visibility 0.35s;
}
.mobile-nav.is-open { opacity: 1; visibility: visible; }
.mobile-nav[hidden] { display: none; }
.funnel__wrap { position: relative; }
.mobile-nav a:not(.btn) { font-family: var(--font-serif); font-size: 1.9rem; text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mobile-nav .btn { margin-top: 32px; }

@media (min-width: 1024px) {
  .nav { display: block; }
  .header-cta { display: inline-flex; }
  .nav-toggle, .mobile-nav { display: none; }
}

/* ---------- 7. Ambiente ---------- */
.ambient { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.5; }
.orb--1 { width: 60vw; height: 60vw; max-width: 760px; max-height: 760px; top: -18%; left: 50%; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(242, 211, 33, 0.16) 0%, rgba(198, 164, 58, 0.06) 40%, transparent 70%);
  animation: drift-a 22s ease-in-out infinite alternate; }
.orb--2 { width: 46vw; height: 46vw; max-width: 600px; max-height: 600px; bottom: -10%; left: -12%;
  background: radial-gradient(circle, rgba(245, 245, 245, 0.06) 0%, transparent 70%);
  animation: drift-b 28s ease-in-out infinite alternate; }
.orb--3 { width: 40vw; height: 40vw; max-width: 520px; max-height: 520px; top: 30%; right: -14%;
  background: radial-gradient(circle, rgba(198, 164, 58, 0.1) 0%, transparent 70%);
  animation: drift-b 26s ease-in-out infinite alternate-reverse; }
@keyframes drift-a { from { transform: translate(-50%, 0) scale(1); } to { transform: translate(-44%, 6%) scale(1.12); } }
@keyframes drift-b { from { transform: translate(0, 0) scale(1); } to { transform: translate(8%, -6%) scale(1.15); } }

.beam { position: absolute; top: 0; left: 50%; width: 1px; height: 100%; background: linear-gradient(180deg, transparent, rgba(198, 164, 58, 0.35), transparent); opacity: 0.4; }

.vignette::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.75) 100%);
}

/* ---------- 8. Hero ---------- */
.hero { position: relative; padding: calc(var(--header-h) + var(--banner-h) + clamp(56px, 10vw, 120px)) 0 var(--section-y); text-align: center; overflow: hidden; }
.hero__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.hero .eyebrow { margin-bottom: 32px; }
.hero__title { max-width: 14ch; }
.hero__title .line { display: block; }
.hero__subtitle { font-family: var(--font-serif); font-style: italic; color: var(--silver); font-size: clamp(1.5rem, 4vw, 2.6rem); line-height: 1.2; margin-top: 18px; }
.hero__text { max-width: 640px; margin-top: 32px; }
.hero__video { width: 100%; max-width: 1040px; margin: clamp(48px, 8vw, 80px) auto clamp(40px, 6vw, 64px); }

/* ---------- 9. Vídeo / media slots ---------- */
.frame { position: relative; }
.frame__corners::before, .frame__corners::after,
.frame__corners > i::before, .frame__corners > i::after {
  content: ""; position: absolute; width: 22px; height: 22px; border-color: var(--gold-2); border-style: solid; z-index: 3; pointer-events: none;
}
.frame__corners::before { top: -8px; left: -8px; border-width: 1px 0 0 1px; }
.frame__corners::after { top: -8px; right: -8px; border-width: 1px 1px 0 0; }
.frame__corners > i::before { bottom: -8px; left: -8px; border-width: 0 0 1px 1px; }
.frame__corners > i::after { bottom: -8px; right: -8px; border-width: 0 1px 1px 0; }

.video-slot {
  position: relative; aspect-ratio: 16 / 9; width: 100%; overflow: hidden; border-radius: var(--radius);
  background: radial-gradient(ellipse at 50% 35%, #1d1a10 0%, #0d0d0d 45%, #060606 100%);
  box-shadow: 0 0 0 1px var(--line), 0 50px 120px -40px rgba(242, 211, 33, 0.18);
}
.video-slot iframe, .video-slot video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.video-slot__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.video-slot__ui {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  background: transparent; border: 0; width: 100%; cursor: default; padding: 24px; text-align: center; z-index: 2;
}
button.video-slot__ui { cursor: pointer; }
.video-slot__ui::before { /* letterbox */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.55) 0, transparent 16%, transparent 84%, rgba(0,0,0,.55) 100%);
}
.play {
  position: relative; width: clamp(64px, 10vw, 92px); height: clamp(64px, 10vw, 92px); border-radius: 50%;
  display: grid; place-items: center; border: 1px solid var(--line-gold); background: rgba(5,5,5,0.4);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.4s;
}
.play::after { content: ""; margin-left: 5px; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent var(--gold); }
.play::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 1px solid rgba(242, 211, 33, 0.18); animation: pulse 3.2s var(--ease) infinite; }
@keyframes pulse { 0% { transform: scale(0.9); opacity: 0.9; } 100% { transform: scale(1.35); opacity: 0; } }
button.video-slot__ui:hover .play { transform: scale(1.06); box-shadow: var(--glow); border-color: var(--gold); }
.video-slot--empty .play { opacity: 0.55; }
.video-slot--empty .play::before { animation: none; opacity: 0.4; }
.video-slot__label { position: relative; font-family: var(--font-serif); font-size: clamp(1rem, 2.4vw, 1.4rem); }
.video-slot__meta { position: relative; font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--silver); }

/* ---------- 10. Problema ---------- */
.problem { background: linear-gradient(180deg, var(--black) 0%, #080808 50%, var(--black) 100%); overflow: hidden; }
.problem__grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); list-style: none; }
.problem__item { background: var(--black); padding: 32px 28px; position: relative; transition: background-color 0.5s var(--ease); }
.problem__item:hover { background: var(--graphite); }
.problem__num { font-family: var(--font-serif); font-style: italic; color: var(--gold-2); font-size: 1rem; display: block; margin-bottom: 18px; }
.problem__text { font-family: var(--font-serif); font-size: clamp(1.2rem, 2.4vw, 1.45rem); line-height: 1.3; }
.problem__foot { margin-top: 40px; text-align: center; }
@media (min-width: 640px) { .problem__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .problem__grid { grid-template-columns: repeat(3, 1fr); } .problem__item { padding: 48px 40px; min-height: 220px; } }

/* ---------- 11. Sistema ---------- */
.system__layout { display: grid; gap: 64px; }
.cards { display: grid; gap: 16px; }
.card {
  position: relative; padding: 36px 30px; background: linear-gradient(180deg, var(--graphite) 0%, #0c0c0c 100%);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform 0.6s var(--ease), border-color 0.5s var(--ease);
}
.card::before { content: ""; position: absolute; top: 0; left: 0; height: 1px; width: 100%; background: var(--gold-gradient); transform: scaleX(0.18); transform-origin: left; transition: transform 0.8s var(--ease); }
.card::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(242, 211, 33, 0.08), transparent 55%); opacity: 0; transition: opacity 0.5s; pointer-events: none; }
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.card:hover::before { transform: scaleX(1); }
.card:hover::after { opacity: 1; }
.card__num { font-family: var(--font-serif); font-style: italic; color: var(--gold-2); font-size: 0.95rem; margin-bottom: 28px; display: block; }
.card__title { font-family: var(--font-serif); font-size: 1.55rem; line-height: 1.2; margin-bottom: 14px; }
.card__text { color: var(--silver-soft); font-size: 0.97rem; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .system__layout { grid-template-columns: 1.25fr 1fr; align-items: center; gap: 72px; } }

/* Embudo */
.funnel { position: relative; padding: 32px 0; }
.funnel__title { text-align: center; margin-bottom: 28px; }
.funnel__stages { list-style: none; display: flex; flex-direction: column; align-items: center; gap: 10px; position: relative; }
.funnel__stage {
  --w: 100%; position: relative; width: var(--w); height: 74px; display: flex; align-items: center; justify-content: center;
  clip-path: polygon(0 0, 100% 0, 94% 100%, 6% 100%);
  background: linear-gradient(180deg, rgba(242, 211, 33, 0.14), rgba(198, 164, 58, 0.04));
  overflow: hidden;
  opacity: 0; transform: translateY(14px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.funnel__stage:nth-child(1) { --w: 100%; }
.funnel__stage:nth-child(2) { --w: 82%; transition-delay: 0.15s; }
.funnel__stage:nth-child(3) { --w: 64%; transition-delay: 0.3s; }
.funnel__stage:nth-child(4) { --w: 46%; transition-delay: 0.45s; background: var(--gold-gradient); }
.funnel__stage:nth-child(4) .funnel__label { color: var(--black); }
.funnel__stage::before { /* borde superior */
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: rgba(242, 211, 33, 0.55);
}
.funnel__stage::after { /* brillo que recorre */
  content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -40%;
  background: linear-gradient(90deg, transparent, rgba(255, 240, 160, 0.16), transparent);
  animation: sweep 5s var(--ease) infinite;
}
.funnel__stage:nth-child(2)::after { animation-delay: 0.5s; }
.funnel__stage:nth-child(3)::after { animation-delay: 1s; }
.funnel__stage:nth-child(4)::after { animation-delay: 1.5s; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent); }
@keyframes sweep { 0% { left: -40%; } 60%, 100% { left: 110%; } }
.funnel__label { position: relative; z-index: 1; font-family: var(--font-serif); font-size: clamp(1.05rem, 2.4vw, 1.3rem); }
.funnel__label small { display: block; font-family: var(--font-sans); font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--silver); text-align: center; }
.funnel__stage:nth-child(4) .funnel__label small { color: rgba(5,5,5,.7); }
.funnel__flow { position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; transform: translateX(-50%); pointer-events: none; z-index: 0; }
.funnel__stages { z-index: 1; }
.funnel__flow i { position: absolute; left: -2px; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); top: 0; opacity: 0; animation: drop 4s linear infinite; }
.funnel__flow i:nth-child(2) { animation-delay: 1.3s; left: -26px; }
.funnel__flow i:nth-child(3) { animation-delay: 2.6s; left: 22px; }
@keyframes drop { 0% { top: 0; opacity: 0; } 10% { opacity: 1; } 85% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
.funnel.is-visible .funnel__stage { opacity: 1; transform: none; }
.funnel__note { text-align: center; margin-top: 22px; }

/* ---------- 12. Calculadora ---------- */
.calc { background: radial-gradient(ellipse at 80% 0%, rgba(198, 164, 58, 0.08), transparent 55%), var(--black); }
.calc__layout { display: grid; gap: 24px; }
.panel { background: var(--graphite); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 22px; }
@media (min-width: 640px) { .panel { padding: 40px; } }
.panel__title { font-family: var(--font-serif); font-size: 1.35rem; margin-bottom: 26px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.panel__title small { font-family: var(--font-sans); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--silver); }
@media (min-width: 1024px) { .calc__layout { grid-template-columns: 1fr 1fr; gap: 28px; } }

.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
.field:last-child { margin-bottom: 0; }
.field__label { font-size: 0.86rem; color: var(--silver-soft); display: flex; justify-content: space-between; gap: 12px; }
.field__label .opt { color: var(--silver); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }
.field__hint { font-size: 0.78rem; color: var(--silver); }
.field__error { font-size: 0.8rem; color: #ff9b8a; min-height: 0; }
.field__error:empty { display: none; }

.input, .select, .textarea {
  width: 100%; background: var(--black); border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 14px 16px; min-height: 52px; font-size: 1rem; color: var(--white);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.input::placeholder, .textarea::placeholder { color: #6f6f6f; }
.input:hover, .select:hover, .textarea:hover { border-color: rgba(245,245,245,.28); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--gold-2); box-shadow: 0 0 0 3px rgba(242, 211, 33, 0.12); }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: #c96b5c; }
.textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.select { appearance: none; -webkit-appearance: none; padding-right: 44px; background-image: linear-gradient(45deg, transparent 50%, var(--gold-2) 50%), linear-gradient(135deg, var(--gold-2) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.select option { background: var(--graphite); }

.input-group { display: flex; align-items: stretch; }
.input-group .input { border-right: 0; }
.input-group__suffix { display: grid; place-items: center; padding: 0 16px; border: 1px solid var(--line-strong); border-left: 0; color: var(--silver); background: #0b0b0b; font-size: 0.9rem; min-width: 52px; }
.input-group .select { width: auto; min-width: 76px; border-left: 0; }

.range { width: 100%; accent-color: var(--gold); margin-top: 4px; height: 28px; background: transparent; }

.result { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.result:first-of-type { padding-top: 0; }
.result__label { color: var(--silver-soft); font-size: 0.9rem; }
.result__value { font-family: var(--font-serif); font-size: clamp(1.2rem, 3vw, 1.5rem); white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }
.price__amount { font-variant-numeric: lining-nums; }
.result--hero { flex-direction: column; align-items: flex-start; gap: 6px; padding: 26px 0; border-bottom: 1px solid var(--line-gold); }
.result--hero .result__value { font-size: clamp(2.2rem, 7vw, 3.4rem); background: var(--gold-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.1; }
.result--hero .result__value.is-negative { background: none; color: var(--silver-soft); }
.result--muted .result__value { color: var(--silver); font-size: 1.1rem; }
.result-group__title { font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--silver); margin: 28px 0 6px; }
.disclaimer { margin-top: 28px; padding: 18px 20px; border-left: 2px solid var(--gold-2); background: rgba(198, 164, 58, 0.06); font-size: 0.82rem; color: var(--silver-soft); line-height: 1.6; }
.calc__cta { margin-top: 32px; }

/* ---------- 13. Sobre mí ---------- */
.about { overflow: hidden; }
.about__layout { display: grid; gap: 56px; align-items: center; }
.portrait { position: relative; aspect-ratio: 4 / 5; width: 100%; max-width: 520px; background: radial-gradient(ellipse at 50% 30%, #1c1a12, #0a0a0a 70%); border: 1px solid var(--line); overflow: hidden; }
.portrait img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.25) contrast(1.05); }
.portrait::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(5,5,5,.85) 100%); pointer-events: none; }
.portrait__placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 24px; color: var(--silver); z-index: 1; }
.portrait__monogram { font-family: var(--font-serif); font-style: italic; font-size: 6rem; line-height: 1; color: rgba(198, 164, 58, 0.5); }
.portrait__caption { position: absolute; left: 24px; bottom: 22px; z-index: 2; font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--silver-soft); }
.about__text p + p { margin-top: 22px; }
.about__text p { color: var(--silver-soft); font-size: 1.05rem; }
.about__text .about__first { font-family: var(--font-serif); font-size: clamp(1.4rem, 3vw, 1.85rem); line-height: 1.35; color: var(--white); }
.signature { margin-top: 40px; display: flex; align-items: center; gap: 18px; }
.signature__name { font-family: var(--font-serif); font-style: italic; font-size: 1.6rem; color: var(--gold); }
.signature a { font-size: 0.85rem; color: var(--silver); text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.signature a:hover { color: var(--white); }
@media (min-width: 960px) { .about__layout { grid-template-columns: 0.9fr 1.1fr; gap: 96px; } }

/* ---------- 14. Proceso ---------- */
.steps { list-style: none; display: grid; gap: 0; counter-reset: step; position: relative; }
.step { position: relative; padding: 0 0 48px 64px; }
.step:last-child { padding-bottom: 0; }
.step::before { /* línea */
  content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 1px; background: var(--line-strong);
}
.step:last-child::before { display: none; }
.step__dot { position: absolute; left: 0; top: 0; width: 44px; height: 44px; border: 1px solid var(--line-gold); border-radius: 50%; display: grid; place-items: center; font-family: var(--font-serif); font-style: italic; color: var(--gold); background: var(--black); transition: background-color .5s, color .5s, box-shadow .5s; }
.step:hover .step__dot { background: var(--gold); color: var(--black); box-shadow: var(--glow); }
.step__title { font-family: var(--font-serif); font-size: 1.6rem; margin-bottom: 10px; padding-top: 4px; }
.step__text { color: var(--silver-soft); }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 32px; }
  .step { padding: 72px 0 0 0; }
  .step::before { left: 56px; right: -32px; top: 22px; bottom: auto; width: auto; height: 1px; }
  .step:last-child::before { display: none; }
}

/* ---------- 15. Encaje ---------- */
.fit__layout { display: grid; gap: 16px; }
.fit__col { padding: 36px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--graphite); }
.fit__col--yes { border-color: var(--line-gold); background: linear-gradient(180deg, rgba(198,164,58,.08), var(--graphite) 60%); }
.fit__title { font-family: var(--font-serif); font-size: 1.5rem; margin-bottom: 24px; }
.fit__list { list-style: none; }
.fit__list li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--silver-soft); }
.fit__list li:last-child { border-bottom: 0; }
.fit__mark { font-family: var(--font-serif); color: var(--gold); line-height: 1.5; }
.fit__col--no .fit__mark { color: var(--silver); }
.fit__note { margin-top: 32px; text-align: center; color: var(--silver); max-width: 720px; margin-left: auto; margin-right: auto; }
@media (min-width: 860px) { .fit__layout { grid-template-columns: 1fr 1fr; gap: 24px; } .fit__col { padding: 48px 44px; } }

/* ---------- 16. Precio ---------- */
.pricing { overflow: hidden; }
.price-card { position: relative; max-width: 780px; margin: 0 auto; padding: 48px 24px; text-align: center; background: linear-gradient(180deg, #151515, #0a0a0a); border: 1px solid var(--line-gold); border-radius: var(--radius); }
.price-card::before { content: ""; position: absolute; top: -1px; left: 20%; right: 20%; height: 1px; background: var(--gold-gradient); box-shadow: 0 0 24px rgba(242, 211, 33, 0.6); }
.price { margin: 18px 0 8px; font-family: var(--font-serif); }
.price__from { display: block; font-style: italic; color: var(--silver); font-size: 1.3rem; }
.price__amount { display: block; font-size: clamp(3.6rem, 13vw, 6.8rem); line-height: 1; background: var(--gold-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: -0.02em; }
.price__period { display: block; margin-top: 10px; font-family: var(--font-sans); color: var(--silver-soft); font-size: 1rem; letter-spacing: 0.06em; }
.conditions { list-style: none; display: grid; gap: 0; margin: 36px 0; text-align: left; border-top: 1px solid var(--line); }
.conditions li { padding: 14px 4px; border-bottom: 1px solid var(--line); display: flex; gap: 14px; align-items: baseline; }
.conditions li::before { content: ""; width: 6px; height: 6px; transform: rotate(45deg) translateY(-2px); background: var(--gold); flex: none; }
.price-card__note { color: var(--silver); font-size: 0.92rem; max-width: 560px; margin: 0 auto 36px; }
@media (min-width: 640px) { .price-card { padding: 72px 64px; } .conditions { grid-template-columns: 1fr 1fr; column-gap: 32px; } }

/* ---------- 17. FAQ ---------- */
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { margin: 0; }
.faq__btn {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px; text-align: left;
  background: transparent; border: 0; padding: 26px 0; cursor: pointer; font-family: var(--font-serif); font-size: clamp(1.15rem, 2.6vw, 1.45rem); color: var(--white);
  transition: color 0.3s;
}
.faq__btn:hover { color: var(--gold); }
.faq__icon { position: relative; flex: none; width: 18px; height: 18px; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; top: 50%; left: 0; width: 100%; height: 1px; background: var(--gold-2); transition: transform 0.4s var(--ease); }
.faq__icon::after { transform: rotate(90deg); }
.faq__btn[aria-expanded="true"] .faq__icon::after { transform: rotate(0deg); }
.faq__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.5s var(--ease); }
.faq__panel > div { overflow: hidden; }
.faq__panel p { color: var(--silver-soft); padding: 0 0 28px; max-width: 720px; }
.faq__item.is-open .faq__panel { grid-template-rows: 1fr; }

/* ---------- 18. Formulario ---------- */
.apply { background: radial-gradient(ellipse at 50% 0%, rgba(242, 211, 33, 0.07), transparent 60%), var(--black); overflow: hidden; }
.form-shell { position: relative; max-width: 760px; margin: 0 auto; background: var(--graphite); border: 1px solid var(--line); border-radius: var(--radius); }
.form-shell__top { padding: 24px 22px 0; }
@media (min-width: 640px) { .form-shell__top { padding: 36px 48px 0; } }
.progress { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--silver); margin-bottom: 14px; }
.progress__bar { height: 2px; background: var(--line-strong); position: relative; overflow: hidden; }
.progress__fill { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--gold-gradient); box-shadow: 0 0 12px rgba(242, 211, 33, 0.7); transition: width 0.6s var(--ease); }
.form { padding: 32px 22px 28px; }
@media (min-width: 640px) { .form { padding: 44px 48px 40px; } }
.form-step { display: none; }
.form-step.is-active { display: block; animation: step-in 0.6s var(--ease); }
@keyframes step-in { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
.form-step__title { font-family: var(--font-serif); font-size: clamp(1.5rem, 3.6vw, 2rem); line-height: 1.2; margin-bottom: 8px; }
.form-step__lead { color: var(--silver); margin-bottom: 30px; font-size: 0.95rem; }
.form-step__title:focus { outline: none; }

.choices { display: grid; gap: 10px; border: 0; padding: 0; margin: 0; }
.choices legend { padding: 0; margin-bottom: 12px; font-size: 0.86rem; color: var(--silver-soft); }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice label { display: flex; align-items: center; gap: 14px; padding: 15px 18px; min-height: 52px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--black); cursor: pointer; transition: border-color 0.3s, background-color 0.3s; }
.choice label::before { content: ""; width: 14px; height: 14px; border: 1px solid var(--silver); border-radius: 50%; flex: none; transition: all 0.3s; }
.choice input:checked + label { border-color: var(--gold-2); background: rgba(198, 164, 58, 0.08); }
.choice input:checked + label::before { border-color: var(--gold); background: var(--gold); box-shadow: inset 0 0 0 3px var(--black); }
.choice input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: 2px; }
.choice label:hover { border-color: rgba(245,245,245,.3); }
.choices[aria-invalid="true"] .choice label { border-color: #6e3a32; }
@media (min-width: 640px) { .choices--2 { grid-template-columns: 1fr 1fr; } }

.check { display: grid; grid-template-columns: 22px 1fr; gap: 14px; align-items: start; margin-bottom: 16px; font-size: 0.88rem; color: var(--silver-soft); line-height: 1.55; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--gold); cursor: pointer; }
.check a { color: var(--white); }
.privacy-box { margin: 24px 0 22px; padding: 18px 20px; background: var(--black); border: 1px solid var(--line); font-size: 0.8rem; color: var(--silver); line-height: 1.6; }
.privacy-box strong { color: var(--silver-soft); font-weight: 600; }

.form-nav { display: flex; gap: 12px; justify-content: space-between; align-items: center; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.form-nav .btn--gold { margin-left: auto; }
.form-status { margin-top: 18px; font-size: 0.9rem; }
.form-status:empty { display: none; }
.form-status--error { color: #ff9b8a; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice { padding: 16px 18px; border: 1px solid var(--line-gold); background: rgba(198, 164, 58, 0.07); font-size: 0.85rem; color: var(--gold-light); line-height: 1.55; margin-bottom: 26px; }
.notice strong { letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.75rem; display: block; margin-bottom: 4px; }

.result-screen { padding: 44px 22px; text-align: center; }
@media (min-width: 640px) { .result-screen { padding: 64px 56px; } }
.result-screen__mark { width: 64px; height: 64px; margin: 0 auto 28px; border: 1px solid var(--line-gold); border-radius: 50%; display: grid; place-items: center; font-family: var(--font-serif); font-style: italic; color: var(--gold); font-size: 1.6rem; }
.result-screen h3 { font-family: var(--font-serif); font-size: clamp(1.7rem, 4vw, 2.3rem); line-height: 1.2; margin-bottom: 16px; }
.result-screen h3:focus { outline: none; }
.result-screen p { color: var(--silver-soft); max-width: 560px; margin: 0 auto 16px; }
.result-screen ul { list-style: none; max-width: 520px; margin: 24px auto; text-align: left; border-top: 1px solid var(--line); }
.result-screen li { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--silver-soft); font-size: 0.95rem; }
.result-screen .notice { text-align: left; }
.result-screen__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }

.calendar { margin-top: 32px; text-align: left; }
.calendar iframe { width: 100%; height: 720px; border: 1px solid var(--line); background: var(--black); }
.calendar__pending { border: 1px dashed var(--line-gold); padding: 28px 24px; text-align: center; color: var(--silver-soft); }
.calendar__pending strong { display: block; font-family: var(--font-serif); font-weight: 400; font-size: 1.3rem; color: var(--white); margin-bottom: 8px; }
.calendar__fallback { margin-top: 12px; font-size: 0.85rem; text-align: center; color: var(--silver); }

/* ---------- 19. Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 40px; position: relative; }
.footer__top { display: grid; gap: 32px; align-items: start; }
.footer__brand { font-family: var(--font-serif); font-size: clamp(2.2rem, 7vw, 3.6rem); letter-spacing: 0.08em; line-height: 1; }
.footer__brand span { color: var(--gold); font-style: italic; }
.footer__tag { color: var(--silver); margin-top: 14px; max-width: 360px; }
.footer__links { list-style: none; display: grid; gap: 10px; }
.footer__links a { color: var(--silver-soft); text-decoration: none; font-size: 0.9rem; }
.footer__links a:hover { color: var(--gold); }
.footer__bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.78rem; color: var(--silver); }
@media (min-width: 860px) { .footer__top { grid-template-columns: 2fr 1fr 1fr; } }

/* ---------- 20. Cookies ---------- */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 130; max-width: 520px; background: var(--graphite); border: 1px solid var(--line-strong); padding: 22px; font-size: 0.86rem; color: var(--silver-soft); box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.consent p { margin-bottom: 16px; }
.consent__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.consent__actions .btn { flex: 1; }

/* ---------- 21. Páginas internas ---------- */
.page-hero { position: relative; padding: calc(var(--header-h) + var(--banner-h) + 80px) 0 64px; text-align: center; overflow: hidden; }
.page-hero .eyebrow { margin-bottom: 26px; }
.page-hero .lead { margin: 24px auto 0; max-width: 620px; }
.state { display: none; }
.state.is-active { display: block; }
.videos-grid { display: grid; gap: 40px; }
.video-card__title { font-family: var(--font-serif); font-size: 1.35rem; margin-top: 22px; }
.video-card__text { color: var(--silver); font-size: 0.92rem; margin-top: 6px; }
@media (min-width: 900px) { .videos-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; } }

.checklist { list-style: none; border-top: 1px solid var(--line); max-width: 680px; margin: 0 auto; }
.checklist li { border-bottom: 1px solid var(--line); }
.checklist label { display: grid; grid-template-columns: 22px 1fr; gap: 18px; align-items: center; padding: 20px 4px; cursor: pointer; font-family: var(--font-serif); font-size: 1.25rem; }
.checklist input { width: 20px; height: 20px; accent-color: var(--gold); cursor: pointer; }
.checklist input:checked + span { color: var(--silver); text-decoration: line-through; text-decoration-color: var(--gold-2); }

.legal { padding-bottom: var(--section-y); }
.legal h2 { font-family: var(--font-serif); font-size: 1.6rem; margin: 48px 0 16px; }
.legal p, .legal li { color: var(--silver-soft); margin-bottom: 12px; }
.legal ul { padding-left: 20px; }
.pending { display: inline; background: rgba(242, 211, 33, 0.12); color: var(--gold-light); padding: 1px 6px; font-size: 0.92em; }

/* ---------- 22. Revelado al hacer scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal-lines .line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.js .reveal-lines .line > span { display: inline-block; transform: translateY(105%); transition: transform 1.2s var(--ease); }
.js .reveal-lines .line:nth-child(2) > span { transition-delay: 0.12s; }
.js .reveal-lines .line:nth-child(3) > span { transition-delay: 0.24s; }
.js .reveal-lines.is-visible .line > span { transform: none; }

/* ---------- 23. Movimiento reducido ---------- */
@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; transition-delay: 0s !important; }
  .js .reveal, .js .reveal-lines .line > span, .funnel__stage { opacity: 1 !important; transform: none !important; }
  .funnel__flow, .funnel__stage::after, .play::before { display: none; }
}
