/* Grupo Zenith — estilos del sitio institucional */

@font-face { font-family: "Epilogue"; src: url("../fonts/Epilogue-Light.woff2") format("woff2"), url("../fonts/Epilogue-Light.ttf") format("truetype"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Epilogue"; src: url("../fonts/Epilogue-Regular.woff2") format("woff2"), url("../fonts/Epilogue-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Epilogue"; src: url("../fonts/Epilogue-Medium.woff2") format("woff2"), url("../fonts/Epilogue-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Epilogue"; src: url("../fonts/Epilogue-Bold.woff2") format("woff2"), url("../fonts/Epilogue-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  /* Marca (brandbook) */
  --navy: #122649;
  --blue: #0087ff;
  --mist: #e5e5e8;
  --steel: #95a4ba;
  --sky: #9cd9f7;

  /* Derivados */
  --night: #0c1a33;          /* azul oscuro llevado a noche */
  --paper: #f4f4f6;          /* claro, entonado desde --mist */
  --ink: #122649;
  --ink-soft: #3d4f6e;
  --on-dark: #f2f5fa;
  --on-dark-soft: #b7c3d6;
  --line-dark: rgba(156, 217, 247, 0.18);
  --line-light: rgba(18, 38, 73, 0.14);
  --blue-ink: #006fd6;       /* azul Zenith con contraste AA sobre claro */

  /* Diagonal del símbolo: desplazamiento horizontal por unidad de alto */
  --diag: 0.65;

  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(88px, 12vw, 168px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: "Epilogue", system-ui, sans-serif;
  font-weight: 300;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--blue); color: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -0.025em; line-height: 1.08; text-wrap: balance; }
h2 { font-size: clamp(2rem, 1.3rem + 3vw, 3.75rem); }
h3 { font-size: clamp(1.15rem, 1rem + 0.5vw, 1.4rem); letter-spacing: -0.01em; line-height: 1.25; }
p { margin: 0; text-wrap: pretty; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--blue-ink); color: #fff; padding: 10px 14px; text-decoration: none; }
.skip:focus { top: 12px; }

/* Scrollbar */
html { scrollbar-color: var(--steel) var(--night); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--night); }
::-webkit-scrollbar-thumb { background: var(--steel); border-radius: 10px; border: 2px solid var(--night); }

/* ---------- Botones ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  font: inherit; font-weight: 500; font-size: 0.98rem; letter-spacing: 0.005em;
  text-decoration: none; cursor: pointer;
  border: 1px solid transparent; border-radius: 2px;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue-ink); color: #fff; }
.btn-primary:hover { background: #0060bd; }
.btn-ghost { color: currentColor; border-color: currentColor; background: transparent; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }

/* ---------- Encabezado ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  color: var(--on-dark);
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header.is-solid { background: var(--night); box-shadow: 0 6px 24px rgba(5, 12, 26, 0.25); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 500; font-size: 1.05rem; letter-spacing: 0.01em; }
.brand img { width: 150px; height: auto; }
.menu { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); font-size: 0.95rem; font-weight: 400; }
.menu a { text-decoration: none; padding: 6px 0; color: var(--on-dark-soft); transition: color .2s; }
.menu a:hover, .menu a[aria-current] { color: #fff; }
.menu a[aria-current]:not(.menu-cta) { text-decoration: underline; text-underline-offset: 0.5em; text-decoration-color: var(--blue); }
.menu .menu-cta { color: #fff; border: 1px solid rgba(255,255,255,.55); padding: 9px 16px; border-radius: 2px; }
.menu .menu-cta:hover { border-color: var(--blue-ink); background: var(--blue-ink); }
.menu-toggle { display: none; background: none; border: 0; color: inherit; padding: 10px; margin-right: -10px; cursor: pointer; }

@media (max-width: 980px) {
  .menu-toggle { display: inline-flex; }
  .menu {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--night); padding: 8px var(--gutter) 24px;
    border-top: 1px solid var(--line-dark);
    transform-origin: top; transform: scaleY(0.96); opacity: 0; visibility: hidden;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s;
  }
  .menu.is-open { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
  .menu a { padding: 14px 0; font-size: 1.1rem; border-bottom: 1px solid var(--line-dark); }
  .menu .menu-cta { margin-top: 16px; text-align: center; border-bottom: 1px solid rgba(255,255,255,.55); }
  .site-header.menu-open { background: var(--night); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  background: radial-gradient(120% 90% at 70% 0%, #17305a 0%, var(--night) 55%, #08132a 100%);
  color: var(--on-dark); overflow: hidden; isolation: isolate;
}
.sky { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-grid { padding-top: 120px; padding-bottom: 140px; }
.hero-copy { max-width: 40rem; }
.hero h1 {
  font-size: clamp(2.6rem, 1.4rem + 5.4vw, 5.6rem);
  font-weight: 500; letter-spacing: -0.035em; line-height: 1.02;
}
.hero .lead { margin-top: clamp(20px, 3vw, 32px); max-width: 34rem; color: var(--on-dark-soft); font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); }
.hero .actions { margin-top: clamp(28px, 4vw, 44px); }
@media (max-width: 820px) {
  /* deja libre el meridiano, que en pantallas angostas corre junto al borde derecho */
  .hero-copy { padding-right: 28px; }
}
@media (max-width: 480px) {
  .actions .btn { flex: 1 1 100%; }
}
.hero-coords {
  position: absolute; left: 0; right: 0; bottom: 28px;
  display: flex; gap: 24px; font-size: 0.85rem; color: var(--on-dark-soft); letter-spacing: 0.02em;
}
/* Diagonal del símbolo en el margen inferior */
.hero::after {
  content: ""; position: absolute; right: 0; bottom: -1px; z-index: 1;
  width: min(34vw, 460px); height: clamp(28px, 3.6vw, 52px);
  background: var(--paper);
  clip-path: polygon(calc(var(--diag) * clamp(28px, 3.6vw, 52px)) 0, 100% 0, 100% 100%, 0 100%);
}

/* ---------- El grupo ---------- */
.group { padding-block: var(--section); background: var(--paper); }
.group-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 900px) { .group-grid { grid-template-columns: 5fr 7fr; gap: 64px; } }
.prose p { max-width: 62ch; color: var(--ink-soft); }
.prose p + p { margin-top: 1.1em; }

.method {
  list-style: none; margin: clamp(64px, 8vw, 112px) 0 0; padding: 0;
  display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line-light);
}
.method li { padding: 28px 0 32px; border-bottom: 1px solid var(--line-light); display: grid; gap: 10px; }
.method h3 { color: var(--navy); }
.method p { color: var(--ink-soft); max-width: 42ch; }
@media (min-width: 900px) {
  .method { grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line-light); }
  .method li { border-bottom: 0; padding: 36px 40px 40px 0; }
  .method li + li { border-left: 1px solid var(--line-light); padding-left: 40px; }
}
/* Marcador que crece de un paso al siguiente, como la altura de un astro */
.method li::before {
  content: ""; display: block; width: 24px; height: 2px; background: var(--blue); margin-bottom: 18px;
}
.method li:nth-child(2)::before { width: 40px; }
.method li:nth-child(3)::before { width: 56px; }


/* ---------- Unidades ---------- */
.units { position: relative; background: var(--navy); color: var(--on-dark); padding-block: var(--section); }
.units::before {
  content: ""; position: absolute; left: 0; top: -1px;
  width: min(38vw, 520px); height: clamp(36px, 5vw, 72px);
  background: var(--paper);
  clip-path: polygon(0 0, 100% 0, calc(100% - var(--diag) * clamp(36px, 5vw, 72px)) 100%, 0 100%);
}
.units-head { display: grid; gap: 24px; max-width: 46rem; }
.units-head p { color: var(--on-dark-soft); max-width: 58ch; }

.unit-feature {
  margin-top: clamp(48px, 6vw, 80px);
  display: grid; grid-template-columns: 1fr; gap: 32px;
  padding: clamp(28px, 4vw, 56px);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid var(--line-dark);
  position: relative; overflow: hidden;
}
.unit-feature::after {
  /* diagonal como máscara contenedora, borde derecho */
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: clamp(56px, 9vw, 140px);
  background: var(--blue); opacity: 0.9;
  clip-path: polygon(calc(var(--diag) * 100%) 0, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}
.unit-feature-media img { width: clamp(180px, 22vw, 280px); }
.unit-feature-body { display: grid; gap: 16px; max-width: 40rem; padding-right: clamp(40px, 8vw, 120px); }
.unit-feature-body h3 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); letter-spacing: -0.025em; line-height: 1.12; }
.unit-feature-body p { color: var(--on-dark-soft); }
.unit-feature .actions { margin-top: 8px; }
@media (min-width: 980px) {
  .unit-feature { grid-template-columns: 4fr 8fr; align-items: center; gap: 56px; }
}

/* ---------- Equipo ---------- */
.team { padding-block: var(--section); background: var(--paper); }
.people {
  list-style: none; margin: clamp(40px, 5vw, 64px) 0 0; padding: 32px 0 0;
  border-top: 1px solid var(--line-light);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.portrait { aspect-ratio: 4 / 5; background: var(--mist); position: relative; overflow: hidden; margin-bottom: 20px; }
@media (max-width: 639px) {
  /* en celular, una fila por persona: foto chica a la izquierda y datos a la derecha */
  .people { grid-template-columns: 1fr; gap: 24px; }
  .person { display: grid; grid-template-columns: 104px 1fr; column-gap: 20px; align-items: center; }
  .person .portrait { grid-row: span 2; margin-bottom: 0; }
  .person-name { align-self: end; }
  .person-role { align-self: start; }
}
.portrait::after {
  content: ""; position: absolute; left: 0; bottom: 0; z-index: 1; width: 46%; height: 10%;
  background: var(--navy);
  clip-path: polygon(0 0, 78% 0, 100% 100%, 0 100%);
}
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
/* Igualar el encuadre de la foto con más aire sobre la cabeza */
.portrait img.is-wide-frame { transform: scale(1.3); transform-origin: 52% 62%; }
.nowrap { white-space: nowrap; }
.person-name { font-weight: 500; font-size: 1.15rem; color: var(--navy); }
.person-role { margin-top: 4px; color: var(--ink-soft); font-size: 0.97rem; }
.team-intro { margin-top: 20px; color: var(--ink-soft); max-width: 52ch; }

/* ---------- Contacto ---------- */
.contact { position: relative; background: var(--night); color: var(--on-dark); padding-block: var(--section); overflow: hidden; }
.contact::before {
  content: ""; position: absolute; right: 0; top: -1px;
  width: min(46vw, 620px); height: clamp(40px, 6vw, 84px);
  background: var(--paper);
  clip-path: polygon(0 0, 100% 0, 100% 100%, calc(var(--diag) * clamp(40px, 6vw, 84px)) 100%);
}
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 56px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 5fr 6fr; gap: 80px; align-items: start; } }
.contact-head > p { margin-top: 20px; color: var(--on-dark-soft); max-width: 38ch; }
.contact-data { margin: 40px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line-dark); }
.contact-data div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line-dark); }
.contact-data dt { color: var(--on-dark-soft); font-size: 0.9rem; padding-top: 2px; }
.contact-data dd { margin: 0; overflow-wrap: anywhere; }
.contact-data a { text-decoration-color: rgba(156,217,247,.45); }
.contact-data a:hover { color: var(--sky); }

.contact-form { display: grid; gap: 20px; padding: clamp(24px, 3.5vw, 44px); background: rgba(255,255,255,0.04); border: 1px solid var(--line-dark); }
.field { display: grid; gap: 8px; }
.field label { font-size: 0.9rem; font-weight: 400; color: var(--on-dark-soft); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-weight: 400; color: var(--on-dark);
  background: rgba(8, 19, 42, 0.6); border: 1px solid rgba(149,164,186,.45); border-radius: 2px;
  padding: 13px 14px; caret-color: var(--blue);
  transition: border-color .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%239CD9F7' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.field select option { background: var(--night); color: var(--on-dark); }
.field input::placeholder, .field textarea::placeholder { color: #8796ad; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--steel); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: rgba(8, 19, 42, 0.85); box-shadow: 0 0 0 3px rgba(0,135,255,.25); }
.field [aria-invalid="true"] { border-color: #ff8a8a; }
.form-error { color: #ffb3b3; font-size: 0.92rem; }
.form-sent { color: var(--sky); font-size: 0.92rem; }
.contact-form .btn { justify-self: start; }
.form-hint { font-size: 0.85rem; color: var(--on-dark-soft); }

/* ---------- Pie ---------- */
.site-footer { background: #08132a; color: var(--on-dark-soft); padding: 64px 0 40px; font-size: 0.92rem; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1fr auto; align-items: start; } .legal { grid-column: 1 / -1; } }
.footer-brand img { width: 180px; }
.motto { margin-top: 16px; color: var(--on-dark); font-weight: 400; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0 28px; }
.footer-nav a { padding-block: 10px; text-decoration: none; }
.footer-nav a:hover { color: #fff; }
.legal { padding-top: 28px; border-top: 1px solid var(--line-dark); line-height: 1.7; }

/* ---------- Elección Comprador / Vendedor ---------- */
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: clamp(28px, 4vw, 44px); max-width: 38rem; }
.choice {
  display: grid; align-content: center; gap: 6px; min-height: 88px; padding: 18px 20px;
  border-radius: 2px; text-decoration: none;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 13px) 100%, 0 100%);
  transition: background-color .25s var(--ease), transform .25s var(--ease);
}
.choice strong { font-size: clamp(1.2rem, 1.1rem + 0.25vw, 1.32rem); font-weight: 500; letter-spacing: -0.015em; line-height: 1.1; }
.choice span { font-size: 0.92rem; line-height: 1.35; }
.choice:hover { transform: translateY(-2px); }
.choice:focus-visible { outline-offset: 2px; clip-path: none; }
.choice--solid { background: var(--blue-ink); color: #fff; }
.choice--solid:hover { background: #0060bd; }
.choice--light { background: var(--on-dark); color: var(--navy); }
.choice--light:hover { background: #fff; }
.hero-link { display: inline-block; margin-top: 18px; padding-block: 12px; color: var(--on-dark); text-underline-offset: 0.3em; text-decoration-color: rgba(156,217,247,.5); }
.hero-link:hover { color: var(--sky); }
@media (max-width: 480px) {
  .choices { grid-template-columns: 1fr; }
  .choice { min-height: 0; }
}

/* Encabezado de páginas interiores */
.hero--page { min-height: min(78svh, 680px); }
.hero--page .hero-grid { padding-top: 136px; padding-bottom: 104px; }
.hero--page h1 { font-size: clamp(2.5rem, 1.4rem + 4.6vw, 5rem); }
.hero-note { margin-top: 16px; color: var(--on-dark-soft); font-size: 0.92rem; }
.btn-large { min-height: 54px; padding-inline: 26px; }

.text-link { display: inline-block; padding-block: 12px; color: var(--blue-ink); font-weight: 500; text-underline-offset: 0.3em; }
.text-link:hover { color: var(--navy); }

/* ---------- El método en la portada: columnas que ascienden ---------- */
.method-home { padding-block: var(--section); background: var(--paper); }
.method-home-head { display: grid; gap: 24px; align-items: end; }
.method-home-head p { color: var(--ink-soft); max-width: 46ch; }
@media (min-width: 900px) { .method-home-head { grid-template-columns: 7fr 5fr; gap: 64px; } }

.ascent { list-style: none; margin: clamp(48px, 6vw, 80px) 0 0; padding: 0; display: grid; gap: 8px; }
.ascent a { display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; height: 100%; padding: 24px; text-decoration: none; }
.ascent h3 { font-size: clamp(1.15rem, 1rem + 0.5vw, 1.4rem); }
.ascent p { font-size: 0.97rem; line-height: 1.45; }
.ascent .ascent-idea { font-weight: 500; }
.ascent li { transition: transform .4s var(--ease), background-color .3s var(--ease); }
.ascent li:nth-child(1) { background: var(--mist); color: var(--ink); }
.ascent li:nth-child(2) { background: #c8d3e3; color: var(--ink); }
.ascent li:nth-child(3) { background: var(--navy); color: var(--on-dark); }
.ascent li:nth-child(4) { background: var(--blue-ink); color: #fff; }
.ascent li:hover { transform: translateY(-4px); }
@media (min-width: 900px) {
  .ascent { grid-template-columns: repeat(4, 1fr); align-items: stretch; }
  .ascent li { margin-top: calc((3 - var(--i)) * clamp(44px, 5vw, 72px)); min-height: 280px; clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 40px, 100% 100%, 0 100%); }
  .ascent a { padding: 28px; }
}
@media (prefers-reduced-motion: no-preference) {
  .js .method-home:not(.is-in) .ascent li { opacity: 0; transform: translateY(32px); }
  .js .method-home .ascent li { transition: opacity .8s var(--ease), transform .9s var(--ease), background-color .3s var(--ease); transition-delay: calc(var(--i) * 110ms); }
  .js .method-home.is-in .ascent li:hover { transition-delay: 0s; }
}

/* ---------- Tarjetas con profundidad ---------- */
.path-cards { list-style: none; margin: clamp(48px, 6vw, 80px) 0 0; padding: 0; display: grid; gap: clamp(16px, 1.6vw, 22px); }
@media (min-width: 760px) { .path-cards { grid-template-columns: repeat(2, 1fr); } }
.path-card { perspective: 1100px; --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 0%; }
.path-card-inner {
  position: relative; display: block; height: 100%; min-height: clamp(320px, 30vw, 400px);
  text-decoration: none; color: #fff; border-radius: 6px;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
  box-shadow: 0 22px 44px -26px rgba(4, 10, 24, .75);
}
.path-card--buyer .path-card-inner { background: linear-gradient(160deg, #0060c2 0%, #006fd6 100%); }
.path-card--seller .path-card-inner { background: radial-gradient(120% 90% at 20% 0%, #274a84 0%, #16305a 50%, #0c1a33 100%); box-shadow: 0 0 0 1px var(--line-dark) inset, 0 22px 44px -26px rgba(4, 10, 24, .75); }
.path-card.is-tilting .path-card-inner { transition: transform .12s linear, box-shadow .5s var(--ease); }
.path-card-inner::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(55% 45% at var(--gx) var(--gy), rgba(255,255,255,.11), transparent 70%);
  opacity: 0; transition: opacity .4s var(--ease);
}
/* Capas cortadas por la diagonal del símbolo */
.path-layer {
  position: absolute; right: 0; bottom: 0; pointer-events: none; border-bottom-right-radius: 6px;
  clip-path: polygon(calc(var(--diag) * 100%) 0, 100% 0, 100% 100%, 0 100%);
  transition: transform .55s var(--ease);
}
.path-layer--1 { width: 54%; height: 92%; background: rgba(255,255,255,.07); transform: translateZ(8px); }
.path-layer--2 { width: 34%; height: 58%; background: rgba(156,217,247,.16); transform: translateZ(18px); }
.path-body { position: relative; display: flex; flex-direction: column; gap: 14px; height: 100%; padding: clamp(24px, 3vw, 40px); transform: translateZ(36px); }
.path-title { font-size: clamp(1.9rem, 1.4rem + 2vw, 3rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; }
.path-text { max-width: 34ch; color: rgba(255,255,255,.88); }
.path-go { margin-top: auto; padding-top: 28px; font-weight: 500; text-decoration: underline; text-underline-offset: 0.3em; text-decoration-thickness: 1px; }
@media (hover: hover) and (pointer: fine) {
  .path-card:hover .path-card-inner::after { opacity: 1; }
  .path-card:hover .path-layer--1 { transform: translate3d(0, -8px, 8px); }
  .path-card:hover .path-layer--2 { transform: translate3d(0, -16px, 18px); }
}
@media (prefers-reduced-motion: reduce) {
  .path-card-inner, .path-layer, .ascent li, .choice { transition: none; }
}

.group-grid--second { margin-top: clamp(72px, 9vw, 128px); padding-top: clamp(56px, 7vw, 96px); position: relative; scroll-margin-top: 72px; }
.group-grid--second::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: var(--line-light); }
.prose .actions { margin-top: 28px; }

/* ---------- Propuesta de valor ---------- */
.manifest { position: relative; padding-block: clamp(72px, 9vw, 128px); background: var(--navy); color: var(--on-dark); }
.hero--page:has(+ .manifest)::after { background: var(--navy); }
.manifest-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .manifest-grid { grid-template-columns: 6fr 6fr; gap: 72px; } }
.manifest h2 { color: var(--sky); font-weight: 300; }
.manifest-body { display: grid; gap: 1.1em; }
.manifest-body p { max-width: 58ch; color: var(--on-dark-soft); }
.manifest-body strong { color: #fff; font-weight: 500; }

.experience { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: clamp(16px, 4vw, 72px); padding-block: var(--section); }
@media (min-width: 1000px) { .experience { grid-template-columns: 260px minmax(0, 1fr); } }

/* Meridiano: el mismo instrumento del encabezado, de 0° al zenith */
.meridian { position: sticky; top: 104px; align-self: start; height: calc(100svh - 160px); max-height: 760px; }
.meridian-track { position: relative; height: 100%; margin-left: 8px; border-left: 1px solid var(--line-light); }
.meridian-fill { position: absolute; left: -1px; bottom: 0; width: 2px; height: 100%; background: var(--blue); transform-origin: bottom; transform: scaleY(var(--p, 0)); }
.meridian-mark { position: absolute; left: 0; bottom: calc(var(--p, 0) * 100%); width: 0; height: 0; z-index: 2; }
.meridian-mark::before { content: ""; position: absolute; left: -7px; top: -6px; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2px solid var(--blue); }
.meridian-mark span { display: none; position: absolute; left: 18px; top: -10px; color: var(--blue-ink); font-size: .82rem; font-weight: 500; white-space: nowrap; background: var(--paper); padding-inline: 4px; }
.meridian a { display: none; }
@media (min-width: 1000px) {
  .meridian-track { margin-left: 62px; }
  .meridian-mark span { display: block; left: auto; right: 16px; }
  .meridian a {
    display: block; position: absolute; left: 22px; bottom: var(--alt); width: 170px;
    padding-block: 6px; transform: translateY(50%);
    color: var(--ink-soft); font-size: .92rem; line-height: 1.25; text-decoration: none; transition: color .2s;
  }
  .meridian a::before { content: ""; position: absolute; left: -22px; top: 50%; width: 10px; height: 1px; background: var(--steel); }
  .meridian a:hover { color: var(--blue-ink); }
  .meridian a.is-current { color: var(--navy); font-weight: 500; }
  .meridian a.is-current::before { background: var(--blue); width: 16px; }
}

.stages { min-width: 0; max-width: 46rem; }
.stages-head h2 { color: var(--blue-ink); font-weight: 300; }
.stage, .fees { margin-top: clamp(64px, 8vw, 112px); scroll-margin-top: 96px; }
.stage-title { font-size: clamp(1.9rem, 1.4rem + 2vw, 3rem); font-weight: 300; letter-spacing: -0.03em; line-height: 1.1; color: #5f7290; }
.stage-photo { position: relative; margin: 32px 0 0; overflow: hidden; background: var(--mist); clip-path: polygon(0 0, calc(100% - 36px) 0, 100% 56px, 100% 100%, 0 100%); }
.stage-photo img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.stage-photo figcaption { position: absolute; right: 8px; bottom: 8px; padding: 3px 7px; border-radius: 2px; font-size: .72rem; color: rgba(255,255,255,.92); background: rgba(8, 19, 42, .68); }
.sign-pair { display: grid; gap: 12px; margin-top: 32px; }
.sign-pair .stage-photo { margin: 0; }
@media (min-width: 620px) { .sign-pair { grid-template-columns: 1fr 1fr; } .sign-pair .stage-photo img { aspect-ratio: 4 / 3; } }

.step { margin-top: clamp(32px, 4vw, 48px); display: grid; gap: 12px; }
.step h4 { margin: 0; color: var(--blue-ink); font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem); font-weight: 500; letter-spacing: -0.015em; line-height: 1.2; text-wrap: balance; }
.step p, .step li { color: var(--ink-soft); }
.step strong { color: var(--ink); font-weight: 500; }
.step .step-idea { color: var(--ink); font-weight: 500; }
.step ul { list-style: none; margin: 4px 0; padding: 0; display: grid; gap: 8px; }
.step li { position: relative; padding-left: 20px; }
.step li::before { content: ""; position: absolute; left: 0; top: .62em; width: 9px; height: 2px; background: var(--blue); }

.fees-intro { margin-top: 16px; max-width: 58ch; color: var(--ink-soft); }
.fees-label { margin: 36px 0 12px; font-size: 1rem; font-weight: 500; color: var(--blue-ink); }
.fee-plates { display: grid; gap: 12px; }
@media (min-width: 620px) { .fee-plates:not(.fee-plates--one) { grid-template-columns: 1fr 1fr; } }
.fee-plate { display: grid; grid-template-rows: 1fr auto auto; background: var(--navy); color: var(--on-dark); overflow: hidden; }
.fee-amount { padding: 28px 20px 8px; text-align: center; font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); font-weight: 300; letter-spacing: -0.02em; }
.fee-amount strong { font-weight: 500; }
.fee-base { padding: 0 20px 20px; text-align: center; color: var(--sky); font-size: .95rem; }
.fee-who { padding: 10px 20px; text-align: center; background: var(--blue-ink); color: #fff; font-weight: 500; font-size: .95rem; }
.fees-note { margin-top: 20px; max-width: 60ch; color: var(--ink-soft); }

.closing { position: relative; background: var(--night); color: var(--on-dark); padding-block: var(--section); overflow: hidden; }
.closing::before {
  content: ""; position: absolute; right: 0; top: -1px;
  width: min(46vw, 620px); height: clamp(40px, 6vw, 84px);
  background: var(--paper);
  clip-path: polygon(0 0, 100% 0, 100% 100%, calc(var(--diag) * clamp(40px, 6vw, 84px)) 100%);
}
.closing h2 { max-width: 16ch; }
.closing > .wrap > p { margin-top: 20px; color: var(--on-dark-soft); }
.closing .actions { margin-top: 32px; }
.closing .closing-fine { margin-top: 32px; max-width: 62ch; font-size: .92rem; }
.closing-fine a { color: var(--on-dark); }
.closing--compact { padding-block: clamp(96px, 10vw, 136px); }

/* ---------- Páginas Comprador y Vendedor ---------- */
.route { padding-block: var(--section); background: var(--paper); }
.route-grid { display: grid; gap: 48px; }
@media (min-width: 900px) { .route-grid { grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; } .route-head { position: sticky; top: 104px; } }
.route-head > p { margin-top: 20px; color: var(--ink-soft); max-width: 40ch; }
.route-head .text-link { margin-top: 12px; }
.route-steps { list-style: none; margin: 0; padding: 0 0 0 28px; border-left: 2px solid var(--blue); display: grid; gap: clamp(32px, 4vw, 48px); }
.route-steps li { position: relative; display: grid; gap: 8px; }
.route-steps li::before { content: ""; position: absolute; left: -35px; top: .45em; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2px solid var(--blue); }
.route-steps li:last-child::before { background: var(--blue); }
.route-steps p { color: var(--ink-soft); max-width: 52ch; }
