/* =============================================================
   LA HIPOTECA FÁCIL — styles.css
   Premium navy + gold · dark/light · ES/EN
   1 Tokens · 2 Reset · 3 Utilities · 4 Typography · 5 Buttons
   6 Chrome (cursor/preloader/header/atmos) · 7 Sections
   8 Components · 9 Form · 10 Footer · 11 Responsive · 12 Reduced-motion
   ============================================================= */

/* =============================================================
   1. TOKENS
   ============================================================= */
:root {
  /* fonts */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* easings */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* metrics */
  --container: 1240px;
  --gutter: clamp(1.2rem, 4.5vw, 3rem);
  --radius: 14px;
  --radius-lg: 22px;
  --header-h: 78px;

  /* brand constants */
  --gold: #cba56b;
  --gold-soft: #e2c895;
  --gold-deep: #a07f45;
  --navy: #0b1f2a;
}

/* DARK (default) */
:root,
[data-theme="dark"] {
  --bg: #0b1f2a;
  --bg-2: #071118;
  --panel: #0e2532;
  --panel-2: #123040;
  --panel-glass: rgba(9, 22, 31, 0.94);
  --text: #eaf1f4;
  --text-soft: #aec2cb;
  --text-mute: #7b919c;
  --accent: #cba56b;
  --accent-soft: #e2c895;
  --accent-deep: #a07f45;
  --line: rgba(234, 241, 244, 0.12);
  --line-strong: rgba(234, 241, 244, 0.22);
  --cta-bg: linear-gradient(135deg, #e7cf9e 0%, #cba56b 100%);
  --cta-fg: #0b1f2a;
  --atmos-line: rgba(160, 196, 214, 0.5);
  --atmos-accent: rgba(203, 165, 107, 0.55);
  --grain-opacity: 0.05;
  --shadow-card: 0 30px 70px -30px rgba(0, 0, 0, 0.7);
  --hero-glow: rgba(203, 165, 107, 0.16);
  --danger: #e89a92;
  --focus-ring: rgba(203, 165, 107, 0.32);
  color-scheme: dark;
}

/* LIGHT */
[data-theme="light"] {
  --bg: #f4f0e8;
  --bg-2: #ece5d7;
  --panel: #fbf8f2;
  --panel-2: #f1ebdf;
  --panel-glass: rgba(248, 244, 237, 0.95);
  --text: #0b1f2a;
  --text-soft: #44565f;
  --text-mute: #5a6a73;
  --accent: #7c5d27;
  --accent-soft: #b6904a;
  --accent-deep: #6a4f22;
  --line: rgba(11, 31, 42, 0.14);
  --line-strong: rgba(11, 31, 42, 0.26);
  --cta-bg: #0b1f2a;
  --cta-fg: #f6f2ea;
  --atmos-line: rgba(11, 31, 42, 0.4);
  --atmos-accent: rgba(124, 93, 39, 0.5);
  --grain-opacity: 0.035;
  --shadow-card: 0 30px 60px -32px rgba(11, 31, 42, 0.28);
  --hero-glow: rgba(124, 93, 39, 0.14);
  --danger: #b23b30;
  --focus-ring: rgba(124, 93, 39, 0.3);
  color-scheme: light;
}

/* Theme transition (View Transitions API handles the cross-fade) */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) { animation-duration: 0.5s; animation-timing-function: var(--ease-out); }

/* =============================================================
   2. RESET & BASE
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
}
body {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.62;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
  transition: background-color 0.6s var(--ease-out), color 0.6s var(--ease-out);
}
img, svg, canvas, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.04; letter-spacing: -0.01em; font-weight: 400; }
strong { font-weight: 600; }
sup { font-size: 0.6em; }
::selection { background: var(--accent); color: var(--bg); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =============================================================
   3. UTILITIES
   ============================================================= */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.skip-link {
  position: fixed; top: -120px; left: 1rem; z-index: 10001;
  padding: 0.7rem 1.1rem; background: var(--accent); color: var(--bg);
  border-radius: 8px; font-weight: 600;
  transition: top 0.3s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.kicker {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}

/* split-text — visible by default; JS only enriches (gotcha A.4.5) */
[data-split] { opacity: 1; }
.split-word { display: inline-block; }

/* reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
[data-reveal].is-revealed { opacity: 1; transform: none; }

/* =============================================================
   4. TYPOGRAPHY SCALE
   ============================================================= */
.hero-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.9rem, 9vw, 6.6rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  max-width: 16ch;
}
.hero-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  background: linear-gradient(180deg, var(--accent-soft), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 60px var(--hero-glow);
}
.section-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 20ch;
  margin-inline: auto;
}
.section-title em { font-style: italic; font-weight: 400; color: var(--accent); }

/* =============================================================
   5. BUTTONS
   ============================================================= */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.95rem 1.7rem;
  font-family: var(--sans); font-size: 0.92rem; font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 100px;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out),
              background-color 0.4s var(--ease-out), color 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
}
.btn--sm { padding: 0.6rem 1.1rem; font-size: 0.82rem; }
.btn--primary {
  background: var(--cta-bg); color: var(--cta-fg);
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.5);
}
.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 48px -18px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--accent);
}
.btn--primary:active { transform: translateY(-1px); transition-duration: 0.12s; }
.btn--ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--line-strong);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-3px); }
.btn--text {
  padding: 0.7rem 0.2rem; background: none; color: var(--text-soft);
  border-radius: 0; position: relative;
}
.btn--text::after {
  content: ""; position: absolute; left: 0.2rem; right: 0.2rem; bottom: 0.45rem; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--ease-out);
}
.btn--text:hover { color: var(--text); }
.btn--text:hover::after { transform: scaleX(1); transform-origin: left; }

/* =============================================================
   6. CHROME
   ============================================================= */

/* --- Atmospheric blueprint canvas --- */
.atmos {
  position: fixed; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  pointer-events: none;
  opacity: 0.9;
}
.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
}
/* deep vignette so text always wins over the atmosphere */
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(120% 80% at 50% 0%, transparent 40%, var(--bg) 100%);
  opacity: 0.85;
}

/* --- Custom cursor --- */
.cursor { position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none; display: none; opacity: 0; transition: opacity 0.3s var(--ease-out); }
.cursor.is-ready { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .cursor { display: block; } }
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; will-change: transform; }
.cursor-dot { width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: var(--accent); }
.cursor-ring {
  width: 36px; height: 36px; margin: -18px; border-radius: 50%;
  border: 1px solid var(--accent);
  transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out), margin 0.35s var(--ease-out), background-color 0.35s var(--ease-out), opacity 0.35s;
  opacity: 0.55;
}
.cursor.is-interactive .cursor-ring { width: 56px; height: 56px; margin: -28px; opacity: 1; background: rgba(203, 165, 107, 0.08); }
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor [data-cursor] { cursor: none; }

/* --- Preloader --- */
.preloader {
  position: fixed; inset: 0; z-index: 10000;
  display: grid; place-items: center;
  background: var(--bg-2);
  transition: opacity 0.8s var(--ease-out), clip-path 1s var(--ease-in);
  animation: splashSafety 0.01s 4.5s forwards; /* safety net if JS fails */
}
.preloader.is-out { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); }
@keyframes splashSafety { to { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); } }
.preloader-inner { display: flex; flex-direction: column; align-items: center; gap: 1.1rem; }
.preloader .mark { width: 76px; height: 76px; color: var(--text); opacity: 0; transform: scale(0.82); animation: preMark 0.85s var(--ease-out) 0.1s forwards; }
@keyframes preMark { to { opacity: 1; transform: scale(1); } }
.preloader-word {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--text-mute); opacity: 0; transform: translateY(8px);
  animation: preWord 0.7s var(--ease-out) 0.5s forwards;
}
@keyframes preWord { to { opacity: 1; transform: none; } }
/* The frame is always a perfect square (no stroke-draw); the two bars wipe in. */
.mark--draw .mark-bar { transform-box: fill-box; transform-origin: left center; transform: scaleX(0); animation: drawBar 0.5s var(--ease-out) forwards; }
.mark--draw .mark-bar:nth-of-type(2) { animation-delay: 0.5s; }
.mark--draw .mark-bar:nth-of-type(3) { animation-delay: 0.64s; }
@keyframes drawBar { to { transform: scaleX(1); } }

/* --- Scroll progress --- */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 200; background: var(--line); pointer-events: none; }
.scroll-progress span { display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: 0 0; background: linear-gradient(90deg, var(--accent-deep), var(--accent-soft)); }

/* --- Header --- */
.site-header {
  position: fixed; top: 0; inset-inline: 0; z-index: 300;
  transition: background-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), transform 0.45s var(--ease-out);
}
.site-header.is-scrolled {
  background: var(--panel-glass);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -20px rgba(0, 0, 0, 0.5);
}
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; }
.brand .mark { width: 34px; height: 34px; color: var(--text); transition: color 0.4s; }
.brand-word { font-family: var(--sans); font-size: 1.02rem; letter-spacing: 0.005em; color: var(--text); white-space: nowrap; }
.brand-word strong { font-weight: 700; }
.nav-links { display: none; gap: clamp(1rem, 2.4vw, 2.2rem); }
@media (min-width: 1040px) { .nav-links { display: flex; } }
.nav-link { position: relative; font-size: 0.92rem; color: var(--text-soft); padding: 0.3rem 0; transition: color 0.3s; }
.nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--ease-out); }
.nav-link:hover { color: var(--text); }
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-actions { display: flex; align-items: center; gap: 0.55rem; }

.lang-toggle { display: inline-flex; align-items: center; gap: 0.25rem; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.1em; color: var(--text-mute); padding: 0.4rem 0.5rem; border-radius: 100px; border: 1px solid var(--line); }
.lang-toggle:hover { border-color: var(--line-strong); }
.lang-opt { transition: color 0.3s; }
.lang-opt.is-active { color: var(--accent); font-weight: 500; }
.lang-sep { opacity: 0.4; }

.theme-toggle { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); color: var(--text-soft); transition: border-color 0.3s, color 0.3s, transform 0.5s var(--ease-out); }
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); transform: rotate(18deg); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .ico-sun { display: none; }
.theme-toggle .ico-moon { display: block; }
[data-theme="light"] .theme-toggle .ico-sun { display: block; }
[data-theme="light"] .theme-toggle .ico-moon { display: none; }

.nav-cta { display: none; }
@media (min-width: 720px) { .nav-cta { display: inline-flex; } }

.nav-burger { display: inline-grid; place-items: center; gap: 5px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); }
.nav-burger span { display: block; width: 17px; height: 1.5px; background: var(--text); transition: transform 0.4s var(--ease-out), opacity 0.3s; }
.nav-burger span + span { margin-top: 5px; }
@media (min-width: 1040px) { .nav-burger { display: none; } }
body.menu-open .nav-burger span:first-child { transform: translateY(3.25px) rotate(45deg); }
body.menu-open .nav-burger span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
body.menu-open { overflow: hidden; }

/* --- Mobile nav --- */
.mobile-nav {
  position: fixed; inset: 0; z-index: 280;
  background: var(--bg-2);
  display: flex; flex-direction: column; justify-content: center; gap: 0.4rem;
  padding: 6rem var(--gutter) 3rem;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.65s var(--ease-out);
  visibility: hidden;
}
.mobile-nav[aria-hidden="false"] { clip-path: inset(0); visibility: visible; }
.mobile-nav nav { display: flex; flex-direction: column; }
.mobile-nav nav a { font-family: var(--serif); font-size: clamp(1.7rem, 7vw, 2.4rem); font-weight: 300; padding: 0.5rem 0; color: var(--text); border-bottom: 1px solid var(--line); }
.mobile-nav nav a:hover { color: var(--accent); }
.mobile-nav .btn { margin-top: 1.6rem; align-self: flex-start; }

/* =============================================================
   7. SECTIONS
   ============================================================= */
.section { position: relative; padding-block: clamp(4.5rem, 10vw, 9rem); }
.section-head { max-width: 760px; margin: 0 auto clamp(2.5rem, 5vw, 4rem); text-align: center; }
.section-head--left { margin-inline: 0; text-align: left; }
.section-index { display: inline-block; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.2em; color: var(--accent); margin-bottom: 1rem; opacity: 0.8; }
.section-head .kicker { display: block; margin-bottom: 1rem; }
.section-title { margin-bottom: 1.2rem; }
.section-lead { color: var(--text-soft); font-size: clamp(1.02rem, 2vw, 1.18rem); max-width: 56ch; margin-inline: auto; }
.section-head--left .section-lead, .section-head--left .section-title { margin-inline: 0; }

/* --- HERO --- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding-top: calc(var(--header-h) + 4vh); padding-bottom: 12vh;
}
/* Hero aurora — slow drifting glow + subtle mouse parallax */
.hero-aurora { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; transform: translate3d(calc(var(--hx, 0) * 1px), calc(var(--hy, 0) * 1px), 0); }
.hero-aurora::before, .hero-aurora::after { content: ""; position: absolute; border-radius: 50%; filter: blur(64px); will-change: transform; }
.hero-aurora::before { width: 46vw; height: 46vw; left: -6vw; top: -12vw; background: radial-gradient(circle, var(--accent-soft), transparent 68%); opacity: 0.16; animation: auroraA 26s ease-in-out infinite; }
.hero-aurora::after { width: 38vw; height: 38vw; right: -5vw; top: 2vw; background: radial-gradient(circle, var(--accent), transparent 70%); opacity: 0.12; animation: auroraB 32s ease-in-out infinite; }
@keyframes auroraA { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(7vw, 5vw, 0) scale(1.18); } }
@keyframes auroraB { 0%, 100% { transform: translate3d(0, 0, 0) scale(1.06); } 50% { transform: translate3d(-6vw, -4vw, 0) scale(0.96); } }
.hero-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; }
.hero-kicker { margin-bottom: 0.2rem; }
.hero-title { margin-bottom: 0.4rem; }
.hero-sub { color: var(--text-soft); font-size: clamp(1.05rem, 2.2vw, 1.32rem); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 0.5rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; margin-top: 1.2rem; }
.hero-trust li { position: relative; font-size: 0.84rem; color: var(--text-mute); padding-left: 1.1rem; }
.hero-trust li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.scroll-cue { position: absolute; left: 50%; bottom: 2.2rem; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 0.7rem; color: var(--text-mute); }
.scroll-cue-line { width: 1px; height: 46px; background: linear-gradient(var(--accent), transparent); position: relative; overflow: hidden; }
.scroll-cue-line::after { content: ""; position: absolute; top: -50%; left: 0; width: 100%; height: 50%; background: var(--accent); animation: cueDrop 2s var(--ease-soft) infinite; }
@keyframes cueDrop { 0% { top: -50%; } 60%, 100% { top: 100%; } }
.scroll-cue-text { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; }
@media (max-width: 600px) { .scroll-cue { display: none; } }

/* --- Marquee --- */
.marquee { position: relative; overflow: hidden; padding-block: 1.4rem; border-block: 1px solid var(--line); white-space: nowrap; }
.marquee-track { display: inline-flex; align-items: center; gap: 2.4rem; padding-right: 2.4rem; white-space: nowrap; will-change: transform; }
.marquee-track span { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(1.3rem, 3vw, 2.1rem); color: var(--text-soft); }
.marquee-track .mq-dot { font-style: normal; font-size: 0.7rem; color: var(--accent); }
.marquee::before, .marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: 12%; z-index: 2; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }
/* CSS fallback when GSAP is unavailable */
@keyframes marqueeScroll { from { transform: translateX(0); } to { transform: translateX(-100%); } }
.marquee--css .marquee-track { animation: marqueeScroll 32s linear infinite; }

/* --- Pillars --- */
.pillars { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .pillars { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar {
  position: relative; padding: 2rem 1.7rem 2.1rem; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--line);
  transition: transform 0.5s var(--ease-soft), border-color 0.4s, box-shadow 0.5s var(--ease-out);
  transform-style: preserve-3d;
}
.pillar:hover { border-color: var(--line-strong); box-shadow: var(--shadow-card); }
.pillar-num { font-family: var(--mono); font-size: 0.78rem; color: var(--accent); letter-spacing: 0.12em; }
.pillar-title { font-size: 1.18rem; font-weight: 600; font-family: var(--sans); margin: 0.9rem 0 0.6rem; letter-spacing: -0.01em; }
.pillar p { color: var(--text-soft); font-size: 0.96rem; }

/* --- Stats --- */
.stats-band { position: relative; padding-block: clamp(3rem, 6vw, 5rem); background: var(--panel-2); border-block: 1px solid var(--line); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 1rem; text-align: center; }
@media (min-width: 860px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat-num { display: block; font-family: var(--serif); font-weight: 300; font-size: clamp(2.6rem, 6vw, 4rem); line-height: 1; color: var(--accent); letter-spacing: -0.02em; }
.stat-label { display: block; margin-top: 0.7rem; font-size: 0.86rem; color: var(--text-soft); }

/* --- Steps --- */
.steps { display: grid; gap: 1.2rem; grid-template-columns: 1fr; counter-reset: s; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 1.4rem; } }
.step { position: relative; padding: 2.2rem 1.8rem; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(160deg, var(--panel), transparent); }
.step-num { font-family: var(--serif); font-style: italic; font-size: 2.4rem; color: var(--accent); opacity: 0.85; }
.step-title { font-family: var(--sans); font-weight: 600; font-size: 1.2rem; margin: 0.6rem 0 0.6rem; }
.step p { color: var(--text-soft); font-size: 0.96rem; }
@media (min-width: 860px) { .step:not(:last-child)::after { content: ""; position: absolute; top: 3.2rem; right: -0.85rem; width: 1.7rem; height: 1px; background: var(--line-strong); } }

/* --- Services --- */
.services { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .services { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .services { grid-template-columns: repeat(3, 1fr); } }
.service-card {
  position: relative; padding: 2rem 1.7rem; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--panel);
  overflow: hidden; transition: transform 0.5s var(--ease-out), border-color 0.4s;
}
.service-card::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 2px; background: var(--cta-bg); transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease-out); }
.service-card:hover { transform: translateY(-5px); border-color: var(--line-strong); }
.service-card:hover::before { transform: scaleX(1); }
.service-card h3 { font-family: var(--sans); font-weight: 600; font-size: 1.12rem; margin-bottom: 0.55rem; }
.service-card p { color: var(--text-soft); font-size: 0.94rem; }

/* --- Timeline (proceso) --- */
.timeline { position: relative; max-width: 760px; margin: 0 auto; padding-left: 2.4rem; }
.timeline::before { content: ""; position: absolute; left: 0.55rem; top: 0.4rem; bottom: 0.4rem; width: 1px; background: var(--line-strong); }
.timeline::after { content: ""; position: absolute; left: 0.55rem; top: 0.4rem; width: 1px; height: var(--tl-progress, 0%); background: var(--accent); box-shadow: 0 0 12px var(--accent); transition: height 0.1s linear; }
.tl-item { position: relative; padding: 0 0 2.4rem 0; }
.tl-item:last-child { padding-bottom: 0; }
.tl-step { position: absolute; left: -2.4rem; top: -0.1rem; display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-strong); font-family: var(--mono); font-size: 0.66rem; color: var(--accent); }
.tl-body h3 { font-family: var(--sans); font-weight: 600; font-size: 1.16rem; margin-bottom: 0.4rem; }
.tl-body p { color: var(--text-soft); font-size: 0.96rem; }

/* --- Internacional --- */
.intl { background: var(--panel-2); border-block: 1px solid var(--line); overflow: hidden; }
.intl-inner { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 960px) { .intl-inner { grid-template-columns: 0.85fr 1fr; } }
.intl-figure { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.intl-figure img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 4; filter: grayscale(0.25) contrast(1.02); transition: transform 1.2s var(--ease-out); }
.intl-figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(150deg, rgba(11, 31, 42, 0.15), rgba(11, 31, 42, 0.78)); mix-blend-mode: multiply; }
.intl:hover .intl-figure img { transform: scale(1.05); }
.intl-text .section-index { margin-bottom: 1rem; }
.intl-text .kicker { display: block; margin-bottom: 1rem; }
.intl-text .section-title { text-align: left; margin-inline: 0; margin-bottom: 1.1rem; max-width: 18ch; }
.intl-text .section-lead { text-align: left; margin-inline: 0; }
.intl-list { display: grid; gap: 1rem; margin: 1.6rem 0; }
.intl-list li { position: relative; padding-left: 1.5rem; color: var(--text-soft); font-size: 0.97rem; }
.intl-list li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 8px; height: 8px; border: 1px solid var(--accent); }
.intl-list strong { color: var(--text); font-weight: 600; }
.intl-note { margin-top: 1.2rem; font-size: 0.8rem; color: var(--text-mute); font-style: italic; }

/* --- FAQ --- */
.faq-wrap { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 1fr; }
@media (min-width: 960px) { .faq-wrap { grid-template-columns: 0.7fr 1fr; align-items: start; } .faq-wrap .section-head { position: sticky; top: calc(var(--header-h) + 1.5rem); } }
.faq { display: grid; gap: 0.7rem; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.25rem 1.4rem; cursor: pointer; list-style: none;
  font-family: var(--sans); font-weight: 600; font-size: 1.02rem; color: var(--text);
  transition: color 0.3s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-ico { position: relative; flex: none; width: 16px; height: 16px; }
.faq-ico::before, .faq-ico::after { content: ""; position: absolute; background: var(--accent); transition: transform 0.4s var(--ease-out); }
.faq-ico::before { top: 50%; left: 0; width: 100%; height: 1.5px; transform: translateY(-50%); }
.faq-ico::after { left: 50%; top: 0; height: 100%; width: 1.5px; transform: translateX(-50%); }
.faq-item[open] .faq-ico::after { transform: translateX(-50%) scaleY(0); }
.faq-a { padding: 0 1.4rem 1.3rem; }
.faq-a p { color: var(--text-soft); font-size: 0.96rem; max-width: 60ch; }
.faq-item[open] summary { color: var(--accent); }

/* =============================================================
   8/9. CONTACT + FORM
   ============================================================= */
.contact { position: relative; }
.contact-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 0.85fr 1fr; } }
.contact-intro .section-index { margin-bottom: 1rem; }
.contact-intro .kicker { display: block; margin-bottom: 1rem; }
.contact-intro .section-title { text-align: left; margin-inline: 0; margin-bottom: 1.1rem; }
.contact-intro .section-lead { text-align: left; margin-inline: 0; }
.contact-points { display: grid; gap: 0.7rem; margin: 1.6rem 0; }
.contact-points li { position: relative; padding-left: 1.7rem; color: var(--text-soft); }
.contact-points li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 700; }
.contact-direct { margin-top: 1.8rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.contact-direct > a { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--text); transition: color 0.3s; }
.contact-direct > a:hover { color: var(--accent); }
.contact-social { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; }
.contact-social a { position: relative; font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-mute); transition: color 0.3s; }
.contact-social a:hover { color: var(--accent); }

.contact-form-wrap { position: relative; padding: clamp(1.6rem, 3vw, 2.4rem); border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--panel); box-shadow: var(--shadow-card); }
.form-progress { display: none; align-items: center; gap: 1rem; margin-bottom: 1.6rem; }
.js .form-progress { display: flex; }
.form-progress-bar { position: relative; flex: 1; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.form-progress-bar::after { content: ""; position: absolute; inset: 0; width: var(--form-pct, 33%); border-radius: 3px; background: var(--cta-bg); transition: width 0.5s var(--ease-out); }
.form-progress-label { font-family: var(--mono); font-size: 0.74rem; color: var(--text-mute); }

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

.form-step { border: 0; padding: 0; margin: 0 0 1.4rem; }      /* no-JS: steps stacked */
.js .form-step { display: none; margin: 0; }
.js .form-step.is-active { display: block; animation: stepIn 0.5s var(--ease-out); }
@keyframes stepIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.form-step-legend { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.1rem; }

.field-group { margin-bottom: 1.2rem; }
.field-label { display: block; font-size: 0.82rem; color: var(--text-soft); margin-bottom: 0.6rem; }
.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-block; padding: 0.55rem 0.95rem; border-radius: 100px; border: 1px solid var(--line-strong); font-size: 0.85rem; color: var(--text-soft); transition: all 0.3s var(--ease-out); }
.chip input:hover + span { border-color: var(--accent); }
.chip input:checked + span { background: var(--cta-bg); color: var(--cta-fg); border-color: transparent; font-weight: 600; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.field { position: relative; margin-bottom: 1.1rem; }
.field input {
  width: 100%; padding: 1.4rem 1rem 0.55rem; font: inherit; font-size: 0.98rem;
  color: var(--text); background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 10px; transition: border-color 0.3s, background-color 0.3s;
}
.field input:hover { border-color: var(--line-strong); }
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus-ring); }
.field label { position: absolute; left: 1rem; top: 1rem; pointer-events: none; color: var(--text-mute); font-size: 0.98rem; transition: all 0.25s var(--ease-out); }
.field input:focus + label, .field input:not(:placeholder-shown) + label { top: 0.45rem; font-size: 0.68rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); }

.consent { display: flex; gap: 0.7rem; align-items: flex-start; margin: 0.7rem 0; font-size: 0.82rem; color: var(--text-soft); cursor: pointer; }
.consent input { flex: none; width: 18px; height: 18px; margin-top: 0.15rem; accent-color: var(--accent); }
.consent a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

.form-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.4rem; }
.form-nav .btn--primary { margin-left: auto; }
.form-submit { position: relative; }
.form-submit-spinner { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; }
.form-submit-spinner::after { content: ""; width: 18px; height: 18px; border: 2px solid rgba(11, 31, 42, 0.3); border-top-color: var(--cta-fg); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.contact-form.is-sending .form-submit-label { opacity: 0; }
.contact-form.is-sending .form-submit-spinner { opacity: 1; }
.form-reassure { margin-top: 1rem; font-size: 0.78rem; color: var(--text-mute); text-align: center; }

/* Multi-step form: headings, stacked chips, branches, summary, success */
.form-step-title { font-family: var(--serif); font-weight: 300; font-size: clamp(1.4rem, 3.4vw, 1.95rem); line-height: 1.08; letter-spacing: -0.01em; margin-bottom: 0.35rem; outline: none; }
.form-step-title em { font-style: italic; color: var(--accent); }
.form-step-sub { color: var(--text-soft); font-size: 0.92rem; margin-bottom: 1.5rem; max-width: 46ch; }
.chip-row--stack { flex-direction: column; align-items: stretch; }
.chip-row--stack .chip span { display: block; text-align: left; width: 100%; }
.form-branch { display: grid; gap: 0.9rem; padding: 1.1rem; margin: 0 0 1.2rem; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); animation: branchIn 0.4s var(--ease-out); }
.form-branch[hidden] { display: none; }
@keyframes branchIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.field-help { font-size: 0.78rem; color: var(--text-mute); }
.field-opt { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-mute); }
.form-summary { margin-bottom: 1.4rem; padding: 1rem 1.2rem; border: 1px dashed var(--line-strong); border-radius: 12px; background: var(--panel-2); }
.form-summary:empty { display: none; }
.form-summary-list { display: flex; flex-wrap: wrap; gap: 0.4rem 0.9rem; }
.form-summary-list li { position: relative; font-size: 0.84rem; color: var(--text-soft); padding-left: 0.9rem; }
.form-summary-list li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.form-summary-edit { margin-top: 0.7rem; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.05em; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.form-ok-sub { color: var(--text-soft); margin-bottom: 1.4rem; max-width: 48ch; margin-inline: auto; }
.form-next { display: grid; gap: 0.7rem; text-align: left; max-width: 380px; margin: 0 auto 1.4rem; }
.form-next li { display: grid; gap: 0.15rem; padding: 0.7rem 0.95rem; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); }
.form-next strong { font-size: 0.9rem; color: var(--text); font-weight: 600; }
.form-next span { font-size: 0.82rem; color: var(--text-soft); }
.form-success .kicker { display: block; margin-bottom: 0.6rem; }
.form-success .btn { margin-top: 0.3rem; }
.form-error { margin-top: 1rem; padding: 0.8rem 1rem; border-radius: 8px; background: rgba(190, 70, 60, 0.12); border: 1px solid rgba(190, 70, 60, 0.4); color: var(--danger); font-size: 0.86rem; }

.form-success { text-align: center; padding: 2rem 1rem; animation: stepIn 0.6s var(--ease-out); }
.form-check { width: 64px; height: 64px; color: var(--accent); margin: 0 auto 1.2rem; }
.form-check circle, .form-check path { stroke-dasharray: 1; stroke-dashoffset: 1; pathLength: 1; }
.form-success h3 { font-family: var(--serif); font-weight: 300; font-size: 1.7rem; margin-bottom: 0.5rem; }
.form-success p { color: var(--text-soft); }
.form-success.is-visible .form-check circle { animation: draw 0.6s var(--ease-out) forwards; }
.form-success.is-visible .form-check path { animation: draw 0.5s var(--ease-out) 0.4s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* =============================================================
   10. FOOTER
   ============================================================= */
.site-footer { position: relative; padding-top: clamp(3.5rem, 7vw, 6rem); border-top: 1px solid var(--line); background: var(--bg-2); }
.footer-inner { display: grid; gap: 2.5rem; grid-template-columns: 1fr; padding-bottom: 3rem; }
@media (min-width: 760px) { .footer-inner { grid-template-columns: 1.6fr 1fr 1fr; } }
.footer-brand .brand { margin-bottom: 1.1rem; }
.footer-brand .mark { width: 32px; height: 32px; color: var(--text); }
.footer-tag { color: var(--text-soft); font-size: 0.94rem; max-width: 38ch; margin-bottom: 1.2rem; }
.footer-col h3 { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-soft); margin-bottom: 1.1rem; font-weight: 500; }
.footer-col { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a { color: var(--text-soft); font-size: 0.92rem; width: fit-content; transition: color 0.3s; }
.footer-col a:hover { color: var(--accent); }
.footer-disclosure { padding-block: 1.8rem 2.4rem; border-top: 1px solid var(--line); display: grid; gap: 1.2rem; }
.footer-disclosure > p:first-child { font-size: 0.78rem; line-height: 1.7; color: var(--text-mute); max-width: 100ch; }
.footer-disclosure strong { color: var(--text-soft); font-weight: 600; }
.footer-copy { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem; font-size: 0.78rem; color: var(--text-mute); }

/* =============================================================
   11. COOKIE BANNER
   ============================================================= */
.cookie-banner {
  position: fixed; left: 50%; bottom: 1.2rem; transform: translateX(-50%) translateY(140%);
  z-index: 400; width: min(680px, calc(100% - 2rem));
  display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap;
  padding: 1rem 1.3rem; border-radius: var(--radius);
  background: var(--panel-glass); border: 1px solid var(--line-strong);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
  transition: transform 0.7s var(--ease-out);
}
.cookie-banner.is-visible { transform: translateX(-50%) translateY(0); }
.cookie-banner p { flex: 1; min-width: 220px; font-size: 0.82rem; color: var(--text-soft); }
.cookie-banner a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* =============================================================
   12. LEGAL PAGES (shared)
   ============================================================= */
.legal-main { padding-top: calc(var(--header-h) + clamp(2rem, 6vw, 5rem)); padding-bottom: clamp(3rem, 8vw, 6rem); }
.legal-wrap { max-width: 820px; margin: 0 auto; }
.legal-wrap .kicker { display: block; margin-bottom: 1rem; }
.legal-title { font-family: var(--serif); font-weight: 300; font-size: clamp(2.2rem, 6vw, 3.4rem); margin-bottom: 0.6rem; letter-spacing: -0.02em; }
.legal-note { color: var(--text-mute); font-size: 0.86rem; font-style: italic; margin-bottom: 2.6rem; padding-bottom: 1.6rem; border-bottom: 1px solid var(--line); }
.legal-body h2 { font-family: var(--sans); font-weight: 600; font-size: 1.3rem; margin: 2.4rem 0 0.8rem; color: var(--text); }
.legal-body h3 { font-family: var(--sans); font-weight: 600; font-size: 1.05rem; margin: 1.6rem 0 0.6rem; }
.legal-body p, .legal-body li { color: var(--text-soft); font-size: 0.96rem; margin-bottom: 0.8rem; }
.legal-body ul { list-style: disc; padding-left: 1.3rem; margin-bottom: 1rem; }
.legal-body li { margin-bottom: 0.4rem; }
.legal-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.legal-body strong { color: var(--text); }
.legal-body .bracket { color: var(--accent-deep); background: rgba(203, 165, 107, 0.1); padding: 0 0.25rem; border-radius: 3px; font-weight: 500; }
.legal-body table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.4rem; font-size: 0.9rem; }
.legal-body th, .legal-body td { text-align: left; padding: 0.6rem 0.8rem; border: 1px solid var(--line); color: var(--text-soft); }
.legal-body th { color: var(--text); font-weight: 600; background: var(--panel); }
.legal-back { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 2.4rem; font-family: var(--mono); font-size: 0.8rem; color: var(--accent); }

/* =============================================================
   13. RESPONSIVE FINE-TUNING
   ============================================================= */
@media (max-width: 600px) {
  .hero { padding-top: calc(var(--header-h) + 2vh); }
  .contact-form-wrap { padding: 1.4rem; }
  .footer-copy { flex-direction: column; }
}

/* =============================================================
   14. REDUCED MOTION — only intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-cue-line::after { animation: none; }
  .preloader .mark { animation: none; opacity: 1; transform: none; }
  .mark--draw .mark-bar { animation: none; transform: none; }
  .preloader { animation-delay: 0.6s; }
  .marquee-track { animation: none !important; }
  .hero-aurora::before, .hero-aurora::after { animation: none; }
  [data-reveal] { transition-duration: 0.4s; }
  /* keep hovers, theme transitions, fades — they are functional feedback */
}
