@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,400;500;600;700;800&display=swap');
@import url('tokens.css');

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-text);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Page transition (fade + slight rise), skipped under prefers-reduced-motion
   via the inline head script that withholds the js-loading class. */
body { opacity: 1; transition: opacity 0.4s ease, transform 0.4s ease; }
html.js-loading body { opacity: 0; transform: translateY(10px); }
html.js-leaving body { opacity: 0; transform: translateY(-10px); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
input, textarea, select { font: inherit; }
table { border-collapse: collapse; width: 100%; }

/* ---------- Layout ---------- */
.container {
  max-width: var(--page-max-width);
  margin: 0 auto;
  padding: 0 40px;
}
@media (max-width: 720px) {
  .container { padding: 0 20px; }
}

.section { padding: var(--gap-3xl) 0; }
.section--tight { padding: var(--gap-2xl) 0; }
@media (max-width: 900px) {
  .section { padding: 80px 0; }
  .section--tight { padding: 64px 0; }
}
.section--black { background: var(--bg); }
.section--pure-black { background: var(--bg-black); }
.section--card { background: var(--bg-card); }

/* ---------- Eyebrow (numbered / chevron label) ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-eyebrow);
  font-weight: var(--font-weight-medium);
  letter-spacing: var(--tracking-eyebrow);
  color: var(--text-muted);
  margin: 0 0 20px;
  text-transform: none;
}
.eyebrow .chev {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: var(--bg-card);
  font-size: 10px;
  color: var(--white);
}

/* ---------- Typography ---------- */
.h-hero {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-hero);
  line-height: var(--leading-hero);
  letter-spacing: var(--tracking-hero);
  margin: 0;
  color: var(--white);
}
.h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-h2);
  line-height: var(--leading-h2);
  letter-spacing: var(--tracking-h2);
  margin: 0;
  color: var(--white);
}
.h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-h3);
  line-height: var(--leading-h3);
  letter-spacing: var(--tracking-h3);
  margin: 0;
  color: var(--white);
}
.body-lg {
  font-size: 19px;
  line-height: 1.5;
  color: var(--text-muted);
  font-weight: var(--font-weight-regular);
  max-width: 560px;
}
.body-copy {
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--text-muted);
}
.body-sm { font-size: var(--text-body-sm); line-height: var(--leading-body-sm); color: var(--text-muted); }
.max-measure { max-width: 640px; }
.text-white { color: var(--white); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  padding: 15px 28px;
  font-family: var(--font-text);
  font-size: 14px;
  font-weight: var(--font-weight-medium);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.97); }
.btn-primary { background: var(--white); color: var(--ink); }
.btn-primary:hover { opacity: 0.85; }
.btn-ghost { background: transparent; color: var(--white); border-color: var(--border); }
.btn-ghost:hover { border-color: rgba(255,255,255,0.4); }
.btn-sm { padding: 10px 20px; font-size: 13px; }
/* Buttons under JS magnetic control (js/main.js) get inline transform: x/y —
   drop the CSS hover lift there so the two don't fight for the property. */
.btn.is-magnetic:hover { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html, body, .btn, .reveal { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
}

.cta-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: var(--gap-lg); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--white);
  font-weight: var(--font-weight-medium);
  font-size: 14px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
}
.link-arrow svg { width: 13px; height: 13px; }

/* ---------- Nav ---------- */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  pointer-events: none;
}
/* Taller, softly-masked glow instead of a hard-edged blurred rectangle —
   the backdrop-blur itself fades out via mask-image, not a flat cutoff. */
.nav-wrap::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 170px;
  background: linear-gradient(180deg, rgba(6,6,6,0.82) 0%, rgba(6,6,6,0.5) 40%, rgba(6,6,6,0.18) 70%, transparent 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  -webkit-mask-image: linear-gradient(180deg, black 0%, black 40%, transparent 100%);
  mask-image: linear-gradient(180deg, black 0%, black 40%, transparent 100%);
  z-index: -1;
}
.nav {
  max-width: var(--page-max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 40px;
  pointer-events: auto;
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--white);
  display: inline-flex;
  align-items: baseline;
}
.nav-logo .accent-dot,
.footer-wordmark .accent-dot { color: var(--color-accent); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a:not(.nav-cta) {
  position: relative;
  font-size: var(--text-nav);
  color: var(--text-muted);
  transition: color 0.2s ease;
  padding-bottom: 3px;
}
.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-links a:not(.nav-cta):hover,
.nav-links a:not(.nav-cta)[aria-current="page"] { color: var(--white); }
.nav-links a:not(.nav-cta):hover::after,
.nav-links a:not(.nav-cta)[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}
.nav-cta {
  background: var(--white);
  color: var(--ink) !important;
  font-size: 13px;
  font-weight: var(--font-weight-medium);
  padding: 10px 20px;
  border-radius: var(--radius-pill);
}
.nav-toggle { display: none; background: none; border: none; color: var(--white); padding: 6px; }
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 820px) {
  .nav { padding: 14px 20px; position: relative; z-index: 2; }
  .nav-logo, .nav-toggle { position: relative; z-index: 2; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-right: -12px; border-radius: 50%; }
  .nav-toggle:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
  .nav-toggle-bars { position: relative; width: 22px; height: 14px; display: block; }
  .nav-toggle-bars span { position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor; transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), top 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
  .nav-toggle-bars span:nth-child(1) { top: 2px; }
  .nav-toggle-bars span:nth-child(2) { top: 10px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { top: 6px; transform: rotate(-45deg); }

  /* Panel a pantalla completa, continuo con la barra */
  .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    position: fixed;
    inset: 0;
    z-index: 1;
    height: 100dvh;
    padding: 88px 20px calc(28px + env(safe-area-inset-bottom));
    background: var(--bg);
    overflow-y: auto;
    overscroll-behavior: contain;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
  }
  .nav-links li { border-bottom: 1px solid var(--border-soft); opacity: 0; transform: translateY(14px); transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1); }
  .nav-links li:last-child { border-bottom: 0; margin-top: auto; padding-top: 28px; opacity: 0; }
  .nav-links a:not(.nav-cta) { display: flex; align-items: baseline; gap: 14px; min-height: 64px; padding: 14px 0; width: 100%; font-family: var(--font-display); font-size: 28px; font-weight: 600; letter-spacing: -0.02em; color: var(--text-muted); }
  .nav-links a:not(.nav-cta)::after { display: none; }
  .nav-links a[aria-current="page"] { color: var(--white); }
  .nav-links a:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; border-radius: 4px; }
  .nav-links .nav-cta { display: flex; align-items: center; justify-content: center; min-height: 56px; width: 100%; font-size: 16px; font-weight: 600; }
  .nav-links.is-open { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity 0.3s ease, visibility 0s linear 0s; }
  .nav-links.is-open li { opacity: 1; transform: none; }
  .nav-links.is-open li:nth-child(2) { transition-delay: 0.04s; }
  .nav-links.is-open li:nth-child(3) { transition-delay: 0.08s; }
  .nav-links.is-open li:nth-child(4) { transition-delay: 0.12s; }
  .nav-links.is-open li:nth-child(5) { transition-delay: 0.16s; }
  .nav-links.is-open li:nth-child(6) { transition-delay: 0.22s; }
  html.nav-locked, html.nav-locked body { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-links, .nav-links li, .nav-toggle-bars span { transition: none !important; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  background-color: var(--bg-black);
  overflow: hidden;
  margin-top: -92px;
  padding-top: 92px;
}
/* Capa de imagen separada del contenedor del hero — más alta que el
   viewport del hero (120%) para tener recorrido de sobra al aplicar el
   parallax por GSAP (js/main.js) sin dejar bordes vacíos. */
.hero-media {
  position: absolute;
  top: -10%;
  left: 0;
  right: 0;
  height: 120%;
  background-size: cover;
  background-position: center;
  filter: var(--photo-grade);
  will-change: transform;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.15) 30%, rgba(10,10,10,0.55) 70%, rgba(10,10,10,0.96) 100%),
    linear-gradient(90deg, rgba(0,0,0,0.5) 0%, transparent 40%);
}
.hero-inner { position: relative; z-index: 1; padding-bottom: 72px; padding-top: 160px; width: 100%; }
.hero--compact { min-height: 58vh; }
.hero--compact .hero-inner { padding-bottom: 56px; padding-top: 150px; }

.hero-eyebrow {
  font-size: 14px;
  font-weight: var(--font-weight-medium);
  color: rgba(255,255,255,0.75);
  margin: 0 0 18px;
}
.hero-sub {
  margin-top: 24px;
  font-size: 18px;
  color: rgba(255,255,255,0.78);
  max-width: 620px;
  line-height: 1.5;
}
.hero-body { margin-top: 12px; color: rgba(255,255,255,0.55); max-width: 560px; }

/* Minimal centered opening (hero--intro): eyebrow line + two CTAs only —
   the rest of the pitch reveals on scroll in the section right after. */
.hero--intro { align-items: center; justify-content: center; text-align: center; }
.hero--intro .hero-inner {
  padding-top: 0;
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-solo {
  font-family: var(--font-display);
  font-size: clamp(32px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--white);
  margin: 0 0 48px;
  max-width: 900px;
}
.hero--intro .cta-row { justify-content: center; margin-top: 0; }
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 11px;
  letter-spacing: 0.04em;
  z-index: 1;
}
.scroll-cue svg { width: 14px; height: 14px; animation: scroll-cue-bounce 1.8s ease-in-out infinite; }
@keyframes scroll-cue-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(6px); opacity: 1; }
}

/* Big centered reveal that replaces the old inline hero headline —
   animated in via GSAP ScrollTrigger (js/main.js), CSS only sets the base look. */
.hero-reveal-section { text-align: center; }
.hero-reveal-section .h-hero { margin: 0 auto; max-width: 1000px; }
.hero-reveal-section .hero-sub,
.hero-reveal-section .hero-body { margin-left: auto; margin-right: auto; color: var(--text-muted); }
.hero-reveal-section .hero-sub { color: rgba(255,255,255,0.78); }
.hero-reveal-section .cta-row { justify-content: center; }

/* ---------- Stat band (animated counters) ---------- */
.stat-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  border-radius: var(--radius-card-lg);
  overflow: hidden;
  margin-top: var(--gap-2xl);
}
.stat-card {
  background: var(--bg-card);
  padding: 40px 30px;
  text-align: center;
}
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}
.stat-label {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-muted);
}
@media (max-width: 700px) {
  .stat-band { grid-template-columns: 1fr; }
}

/* ---------- Marquee ---------- */
.marquee-wrap {
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  overflow: hidden;
  padding: 22px 0;
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: 48px;
  animation: marquee 28s linear infinite;
}
.marquee-track span {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-faint);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 48px;
}
.marquee-track span::after { content: "\2022"; color: var(--text-faint); margin-left: 48px; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Statement / y-intro split ---------- */
.intro-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--gap-xl);
  align-items: end;
}
.intro-split .intro-media { border-radius: var(--radius-card-lg); overflow: hidden; }
.intro-split .intro-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; max-height: 460px; filter: var(--photo-grade); }
@media (max-width: 900px) {
  .intro-split { grid-template-columns: 1fr; }
  .intro-split .intro-media { order: -1; }
}

/* ---------- Big centered statement (reveal) ---------- */
.statement {
  text-align: center;
  padding: 40px 0;
}
.statement p {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.6vw, 46px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--text-faint);
  max-width: 980px;
  margin: 0 auto;
}
.statement p strong, .statement p .lit { color: var(--white); font-weight: 600; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Section header row ---------- */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}

/* ---------- Numbered photo grid (stages / work) ---------- */
.index-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  margin-top: var(--gap-lg);
  border-radius: var(--radius-card-lg);
  overflow: hidden;
}
.index-card {
  position: relative;
  min-height: 360px;
  background-color: var(--bg-card);
  display: flex;
  align-items: flex-end;
  padding: 26px;
  overflow: hidden;
}
.index-card-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: var(--photo-grade);
  transform: scale(1);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
}
.index-card:hover .index-card-media { transform: scale(1.08); filter: var(--photo-grade-hover); }
.index-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.75) 100%);
  transition: background 0.4s ease;
}
.index-card:hover::after { background: linear-gradient(180deg, rgba(0,0,0,0.05) 30%, rgba(0,0,0,0.85) 100%); }
.index-card-inner { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: flex-end; width: 100%; }
.index-card-name {
  font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--white);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.index-card:hover .index-card-name { transform: translateX(4px); }
.index-card-service { font-size: 12px; color: rgba(255,255,255,0.65); margin-top: 4px; }
.index-card-num { font-size: 13px; color: rgba(255,255,255,0.65); font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  .index-grid { grid-template-columns: 1fr; }
}

/* ---------- Process (sticky image + numbered steps) ---------- */
.process {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--gap-xl);
  margin-top: var(--gap-2xl);
  align-items: start;
}
.process-media {
  position: sticky;
  top: 110px;
  border-radius: var(--radius-card-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background-color: var(--bg-card);
}
.process-media-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: var(--photo-grade);
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.7s ease, transform 1.1s ease;
}
.process-media-layer.is-active { opacity: 1; transform: scale(1); }
/* Sky-fade on top + soft floor so bright daylight shots sit in the dark UI */
.process-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: var(--photo-sky-fade), linear-gradient(0deg, rgba(10,10,10,0.45) 0%, rgba(10,10,10,0) 32%);
}
.process-steps { display: flex; flex-direction: column; }
.process-step {
  padding: 44px 0;
  border-top: 1px solid var(--border-soft);
}
.process-step:first-child { border-top: none; padding-top: 0; }
.process-step-num {
  font-size: 13px;
  font-weight: var(--font-weight-medium);
  color: var(--text-faint);
  font-variant-numeric: tabular-nums;
  margin-bottom: 14px;
}
.process-step-title { font-family: var(--font-display); font-size: 30px; font-weight: 600; letter-spacing: -0.02em; color: var(--white); }
.process-step-service { font-size: 13px; font-weight: var(--font-weight-medium); color: var(--text-muted); margin-top: 8px; }
.process-step-desc { margin-top: 14px; font-size: 15px; line-height: 1.6; color: var(--text-muted); max-width: 480px; }
.process-step-list { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.process-step-list li { font-size: 14px; color: var(--text-primary); display: flex; align-items: center; gap: 8px; }
.process-step-list li svg { width: 12px; height: 12px; flex-shrink: 0; color: var(--text-faint); }
@media (max-width: 860px) {
  .process { grid-template-columns: 1fr; }
  .process-media { position: relative; top: 0; aspect-ratio: 16/10; margin-bottom: 8px; }
}

/* ---------- Full-bleed break with caption ---------- */
.break-media {
  position: relative;
  height: 64vh;
  min-height: 420px;
  background-size: cover;
  background-position: center;
  filter: var(--photo-grade);
}
.break-media::after { content: ""; position: absolute; inset: 0; background: var(--photo-sky-fade), linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,0.55) 100%); }
.break-caption {
  position: absolute;
  left: 40px;
  bottom: 24px;
  z-index: 1;
  font-size: 13px;
  color: rgba(255,255,255,0.75);
}

/* ---------- Numbered criteria grid (services-style) ---------- */
.criteria-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 48px;
  margin-top: var(--gap-2xl);
}
.criteria-item { border-top: 1px solid var(--border-soft); padding-top: 22px; }
.criteria-num { font-size: 13px; color: var(--text-faint); font-variant-numeric: tabular-nums; }
.criteria-title { font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--white); margin-top: 10px; }
.criteria-desc { margin-top: 8px; font-size: 14px; line-height: 1.55; color: var(--text-muted); }
@media (max-width: 700px) { .criteria-grid { grid-template-columns: 1fr; } }

/* ---------- Comparison table ---------- */
.compare-table-wrap { overflow-x: auto; margin-top: var(--gap-lg); }
.compare-table { border-radius: var(--radius-card); overflow: hidden; border: 1px solid var(--border-soft); }
.compare-table th, .compare-table td {
  text-align: left;
  padding: 18px 22px;
  font-size: 14px;
  border-bottom: 1px solid var(--border-soft);
}
.compare-table thead th {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  background: var(--bg-card);
  color: var(--text-muted);
}
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table td:first-child { color: var(--white); font-weight: var(--font-weight-medium); }
.compare-table td:last-child { color: var(--text-primary); }

/* ---------- Pricing cards ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: var(--gap-2xl); align-items: start; }
@media (max-width: 980px) { .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; } }
.pricing-card {
  background: var(--bg-card);
  border-radius: var(--radius-card-lg);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-soft);
  position: relative;
}
.pricing-card--featured { background: #1e1e1e; border-color: rgba(255,255,255,0.35); }
.pricing-badge {
  position: absolute; top: -14px; left: 30px;
  background: var(--white); color: var(--ink);
  font-size: 11px; font-weight: var(--font-weight-semibold);
  padding: 6px 14px; border-radius: var(--radius-pill);
}
.pricing-name { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--white); }
.pricing-who { margin-top: 12px; font-size: 14px; color: var(--text-muted); min-height: 60px; line-height: 1.5; }
.pricing-price { margin-top: var(--gap-md); display: flex; align-items: baseline; gap: 6px; }
.pricing-price .amount { font-family: var(--font-display); font-size: 42px; font-weight: 700; color: var(--white); letter-spacing: -0.02em; }
.pricing-price .period { color: var(--text-muted); font-size: 14px; }
.pricing-setup { margin-top: 4px; font-size: 13px; color: var(--text-faint); }
.pricing-cta { margin-top: var(--gap-md); }
.pricing-cta .btn { width: 100%; }
.pricing-stages { margin-top: var(--gap-md); padding-top: var(--gap-md); border-top: 1px solid var(--border-soft); }
.pricing-stages summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: var(--font-weight-medium);
  color: var(--white);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.pricing-stages summary::-webkit-details-marker { display: none; }
.pricing-stages-chev {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  color: var(--text-faint);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.pricing-stages.is-open .pricing-stages-chev { transform: rotate(180deg); }
/* JS-controlled height animation (js/main.js), same pattern as .faq-answer:
   .pricing-stages-body is the clipped wrapper whose max-height animates so
   each card's detail expands independently instead of snapping open. */
.pricing-stages-body { max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.pricing-stage-row { padding: 14px 0; border-bottom: 1px solid var(--border-soft); opacity: 0; transform: translateY(6px); transition: opacity 0.35s ease, transform 0.35s ease; }
.pricing-stages.is-open .pricing-stage-row { opacity: 1; transform: translateY(0); }
.pricing-stages.is-open .pricing-stage-row:nth-child(1) { transition-delay: 0.05s; }
.pricing-stages.is-open .pricing-stage-row:nth-child(2) { transition-delay: 0.1s; }
.pricing-stages.is-open .pricing-stage-row:nth-child(3) { transition-delay: 0.15s; }
.pricing-stages.is-open .pricing-stage-row:nth-child(4) { transition-delay: 0.2s; }
.pricing-stages.is-open .pricing-stage-row:nth-child(5) { transition-delay: 0.25s; }
.pricing-stages.is-open .pricing-stage-row:nth-child(6) { transition-delay: 0.3s; }
.pricing-stage-row:last-child { border-bottom: none; }
.pricing-stage-label { font-size: 12px; font-weight: var(--font-weight-semibold); color: var(--white); margin-bottom: 4px; }
.pricing-stage-desc { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* ---------- Investment table ---------- */
.invest-table { margin-top: var(--gap-lg); border-radius: var(--radius-card); overflow: hidden; border: 1px solid var(--border-soft); }
.invest-table th, .invest-table td { padding: 18px 22px; text-align: left; font-size: 14px; border-bottom: 1px solid var(--border-soft); }
.invest-table thead th { background: var(--bg-card); font-family: var(--font-display); font-weight: 600; color: var(--text-muted); }
.invest-table tbody tr:last-child td { border-bottom: none; }
.invest-table td:first-child { color: var(--white); font-weight: var(--font-weight-medium); }

.note-block {
  margin-top: var(--gap-lg);
  padding: 24px 28px;
  border-radius: var(--radius-card);
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ---------- FAQ accordion ---------- */
.faq-list { display: flex; flex-direction: column; gap: 4px; margin-top: var(--gap-lg); }
.faq-item {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 6px 26px;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  color: var(--white);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-num { font-size: 13px; color: var(--text-faint); font-variant-numeric: tabular-nums; flex-shrink: 0; width: 28px; }
.faq-q { flex: 1; }
.faq-chev { flex-shrink: 0; width: 16px; height: 16px; color: var(--text-faint); transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1); }
.faq-item.is-open .faq-chev { transform: rotate(180deg); }
/* JS-controlled height animation (js/main.js) — .faq-answer-inner carries the
   real content height, .faq-answer is the clipped wrapper whose max-height
   is animated so open/close reads as a smooth expand instead of the native
   <details> instant snap. */
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1); }
.faq-answer-inner { padding: 0 0 22px 48px; font-size: 14px; line-height: 1.6; color: var(--text-muted); max-width: 640px; }

/* ---------- People (Nosotros) ---------- */
.people-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; margin-top: var(--gap-2xl); border-radius: var(--radius-card-lg); overflow: hidden; }
@media (max-width: 700px) { .people-grid { grid-template-columns: 1fr; } }
.person-card { background: var(--bg-card); padding: 36px 30px; }
.person-name { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--white); }
.person-role { margin-top: 6px; font-size: 13px; color: var(--text-muted); font-weight: var(--font-weight-medium); }
.person-bio { margin-top: 16px; font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: var(--gap-xl); }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-weight: var(--font-weight-medium); color: var(--white); }
.form-field input, .form-field select, .form-field textarea {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  min-height: 52px;
  color: var(--white);
  font-size: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-field input:hover, .form-field select:hover, .form-field textarea:hover { border-color: rgba(255,255,255,0.3); }
.form-field input:focus-visible, .form-field select:focus-visible, .form-field textarea:focus-visible { outline: none; border-color: var(--white); box-shadow: 0 0 0 3px rgba(255,199,48,0.45); }
.form-field select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23b3b3b3' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; }
.form-field label { font-size: 14px; }
.form-field .req { color: var(--color-accent); }
.form-field input[aria-invalid="true"] { border-color: #f08a8a; }
.field-error { margin: 0; font-size: 13px; line-height: 1.4; color: #f7a4a4; }
.field-hint { margin: 0; font-size: 13px; line-height: 1.4; color: var(--text-faint); }
.form-actions .btn { min-height: 52px; }
.form-actions .btn:disabled { opacity: 0.6; cursor: progress; }
.form-note a { color: var(--text-muted); }
.form-field textarea { resize: vertical; min-height: 120px; }
.form-actions { grid-column: 1 / -1; margin-top: 8px; }
.form-note { font-size: 13px; line-height: 1.5; color: var(--text-faint); margin-top: 12px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form-status { margin-top: 16px; font-size: 14px; font-weight: var(--font-weight-medium); display: none; }
.form-status.is-visible { display: block; }
.form-status.is-success { color: #b7f7c7; }
.form-status.is-error { color: #f7b7b7; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; padding: 110px 0; }
.cta-band .h2 { max-width: 780px; margin: 0 auto; }
.cta-band .cta-row { justify-content: center; margin-top: var(--gap-xl); }

/* ---------- Footer (giant wordmark) ---------- */
.footer { background: var(--bg-black); padding: var(--gap-2xl) 0 var(--gap-md); }
.footer-pre {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: var(--gap-2xl);
  border-bottom: 1px solid var(--border-soft);
}
.footer-tag { font-size: 14px; color: var(--text-muted); max-width: 320px; }
.footer-links { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h4 { font-size: 12px; color: var(--text-faint); margin-bottom: 14px; font-weight: var(--font-weight-regular); }
.footer-col a, .footer-col span { display: block; font-size: 14px; color: var(--text-muted); margin-bottom: 10px; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--white); }
.footer-wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(56px, 12vw, 160px);
  letter-spacing: -0.04em;
  color: var(--white);
  line-height: 1;
  margin-top: var(--gap-lg);
}
.footer-bottom {
  margin-top: var(--gap-md);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--text-faint);
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }

/* ---------- Planes: apertura directa (sin foto de hero) ---------- */
.plans-intro { padding-top: 56px; padding-bottom: 96px; }
.plans-head { align-items: flex-end; gap: 32px 64px; }
.plans-sub { max-width: 440px; font-size: 17px; }
.plans-intro .pricing-grid { margin-top: var(--gap-xl); }
@media (max-width: 900px) { .plans-intro { padding-top: 32px; padding-bottom: 72px; } }

/* ---------- Nosotros: visión y misión ---------- */
.mv-section { padding-top: var(--gap-2xl); }
.mv-block {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px 80px;
  align-items: start;
}
.mv-block + .mv-block {
  margin-top: var(--gap-2xl);
  padding-top: var(--gap-2xl);
  border-top: 1px solid var(--border-soft);
}
.mv-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 3.8vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--white);
}
.mv-text { font-size: 18px; line-height: 1.65; color: var(--text-muted); max-width: 520px; padding-top: 42px; }
.criteria-grid--4 { grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: var(--gap-2xl); }
.criteria-grid--4 .criteria-title { font-size: clamp(22px, 2.4vw, 32px); letter-spacing: -0.02em; }
@media (max-width: 900px) {
  .mv-block { grid-template-columns: 1fr; gap: 24px; }
  .mv-text { padding-top: 0; }
  .criteria-grid--4 { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Hero dividido (escritorio) ----------
   Las fotos son verticales (2:3): a pantalla completa en un hero ancho se
   recortan a una franja muy angosta y se ven demasiado cerca. En escritorio
   la foto ocupa todo el alto del hero, pegada al borde derecho, y se
   disuelve en sombra hacia la izquierda; en móvil sigue a pantalla completa
   detrás del texto. */
@media (min-width: 901px) {
  .hero--split { min-height: 84vh; align-items: center; }
  .hero--split::after { display: none; }
  .hero--split .hero-inner { padding-top: 0; padding-bottom: 0; }
  .hero--split .hero-media {
    top: 0;
    bottom: 0;
    left: auto;
    right: 0;
    height: auto;
    width: min(58vw, 840px);
    background-position: center 36% !important; /* sobre el inline: solo escritorio; deja ver el techo */
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.55) 26%, #000 50%);
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.55) 26%, #000 50%);
  }
  .hero--split .hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: var(--photo-sky-fade), linear-gradient(0deg, rgba(10,10,10,0.8) 0%, rgba(10,10,10,0) 28%);
  }
}

/* ---------- Páginas legales ---------- */
.legal-page { padding-top: 56px; padding-bottom: 96px; }
.legal-meta { margin-top: 16px; font-size: 14px; color: var(--text-faint); }
.legal { max-width: 760px; margin-top: var(--gap-lg); }
.legal h2 { font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; color: var(--white); margin: 44px 0 12px; }
.legal p, .legal li { font-size: 16px; line-height: 1.7; color: var(--text-muted); }
.legal p + p { margin-top: 12px; }
.legal ul { list-style: disc; padding-left: 22px; margin: 12px 0; }
.legal li + li { margin-top: 6px; }
.legal strong { color: var(--text-primary); font-weight: 600; }
.legal a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) { .legal-page { padding-top: 32px; padding-bottom: 72px; } }

/* ---------- Buscador de nivel (Cómo funciona) ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.finder-section { padding-bottom: var(--gap-2xl); }
.finder-head { align-items: flex-end; gap: 24px 64px; }
.finder-head .h2 { text-wrap: balance; }
.finder-sub { max-width: 440px; font-size: 17px; }
.finder-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px 56px; margin-top: var(--gap-xl); align-items: start; }
.finder-form { display: flex; flex-direction: column; gap: 32px; min-width: 0; }
.finder-progress { display: flex; align-items: center; gap: 16px; font-size: 13px; color: var(--text-muted); }
.finder-bar { flex: 1; height: 3px; border-radius: 3px; background: var(--border-soft); overflow: hidden; display: block; }
.finder-bar > span { display: block; height: 100%; width: 0; background: var(--white); transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1); }
.finder-q { border: 0; margin: 0; padding: 0; min-width: 0; }
.finder-q legend { display: flex; gap: 12px; align-items: baseline; padding: 0; margin-bottom: 14px; font-family: var(--font-display); font-size: 19px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; color: var(--white); }
.finder-q-num { font-size: 12px; font-weight: 500; color: var(--text-faint); font-variant-numeric: tabular-nums; flex-shrink: 0; }
.finder-opts { display: grid; gap: 8px; }
.finder-opt { position: relative; }
.finder-radio { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.finder-opt label { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 14px 18px; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--bg-card); color: var(--text-primary); font-size: 15px; line-height: 1.4; cursor: pointer; transition: border-color 0.2s ease, background-color 0.2s ease; }
.finder-opt label::before { content: ""; flex-shrink: 0; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--text-faint); transition: border-color 0.2s ease, background 0.2s ease; }
.finder-opt label:hover { border-color: rgba(255,255,255,0.35); }
.finder-radio:checked + label { border-color: var(--white); background: #222; }
.finder-radio:checked + label::before { border-color: var(--white); background: radial-gradient(circle, var(--white) 0 42%, transparent 46%); }
.finder-radio:focus-visible + label { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.finder-reset { align-self: flex-start; padding: 6px 0; font-size: 14px; color: var(--text-muted); text-decoration: underline; text-underline-offset: 3px; }
.finder-reset:hover { color: var(--white); }
.finder-reset:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; border-radius: 4px; }

.finder-result { position: sticky; top: 110px; min-width: 0; }
.finder-card { background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: var(--radius-card-lg); padding: 32px 30px; min-height: 340px; }
.finder-card--empty { display: flex; flex-direction: column; justify-content: center; gap: 12px; color: var(--text-muted); font-size: 15px; line-height: 1.5; }
.finder-card--empty strong { font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; color: var(--white); }
.finder-levels { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.finder-levels span { padding: 6px 14px; border: 1px solid var(--border); border-radius: var(--radius-pill); font-size: 13px; color: var(--text-faint); }
.finder-card.is-in { animation: finder-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes finder-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.finder-kicker { font-size: 12px; font-weight: 500; letter-spacing: 0.02em; color: var(--text-faint); margin: 0 0 8px; }
.finder-level { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-family: var(--font-display); font-size: 32px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; color: var(--white); margin: 0; }
.finder-badge { padding: 5px 12px; border-radius: var(--radius-pill); background: var(--white); color: var(--ink); font-family: var(--font-text); font-size: 11px; font-weight: 600; letter-spacing: 0; }
.finder-desc { margin-top: 14px; font-size: 15px; line-height: 1.6; color: var(--text-muted); }
.finder-price { margin-top: 22px; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.finder-price .amount { font-family: var(--font-display); font-size: 38px; font-weight: 700; letter-spacing: -0.02em; color: var(--white); }
.finder-price .period { font-size: 14px; color: var(--text-muted); }
.finder-price .setup { width: 100%; font-size: 13px; color: var(--text-faint); }
.finder-priority { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--border-soft); }
.finder-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.finder-chips li { padding: 7px 14px; border: 1px solid var(--border); border-radius: var(--radius-pill); font-size: 13px; font-weight: 500; color: var(--text-primary); }
.finder-actions { margin-top: 26px; display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; }
.finder-note { margin-top: 18px; font-size: 12px; line-height: 1.5; color: var(--text-faint); }

@media (max-width: 900px) {
  .finder-grid { grid-template-columns: 1fr; }
  .finder-result { position: static; }
  .finder-card { min-height: 0; padding: 26px 22px; }
  .finder-level { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .finder-card.is-in { animation: none; }
  .finder-bar > span, .finder-opt label, .finder-opt label::before { transition: none; }
}

/* ---------- Nosotros: rediseño (tarjetas visión/misión + pilares) ---------- */
.mv-section { padding-top: var(--gap-xl); padding-bottom: var(--gap-xl); }
.mv-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.mv-card { position: relative; background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: var(--radius-card-lg); padding: 48px 44px 52px; display: flex; flex-direction: column; gap: 20px; overflow: hidden; transition: border-color 0.3s ease; }
.mv-card:hover { border-color: var(--border); }
.mv-card .mv-title { font-size: clamp(26px, 2.6vw, 38px); line-height: 1.12; text-wrap: balance; }
.mv-card .mv-text { padding-top: 20px; max-width: 54ch; font-size: 17px; border-top: 1px solid var(--border-soft); margin: 0; }
.mv-pillars { padding-top: var(--gap-xl); }
.mv-pillars .h2 { margin-top: 12px; }
.mv-pillars .criteria-item { transition: border-color 0.3s ease; }
.mv-pillars .criteria-item:hover { border-top-color: var(--color-accent); }
.mv-pillars .criteria-title { margin-bottom: 0; }
@media (max-width: 900px) {
  .mv-cards { grid-template-columns: 1fr; }
  .mv-card { padding: 36px 26px 40px; }
  }
