/* Eosphoros · eosphoros.tech
   Sin dependencias externas. Fuentes servidas desde este dominio (licencia OFL en /assets/fonts). */

@font-face { font-family: "Sora"; src: url("/assets/fonts/sora-var.woff") format("woff"); font-weight: 100 800; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-var.woff") format("woff"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/assets/fonts/jetbrains-mono-var.woff") format("woff"); font-weight: 100 800; font-display: swap; }

:root {
  --noche: #0A0F1E;
  --medianoche: #141B34;
  --horizonte: #3D4A8F;
  --horizonte-claro: #7B8AE0;
  --niebla: #C9CEDC;
  --alba: #F7F4EE;
  --lucero: #F4B860;

  --f-title: "Sora", "Inter", system-ui, sans-serif;
  --f-text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --gutter: clamp(16px, 3.75vw, 54px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Posiciones del paisaje, en % de la altura del hero */
  --horizon: 72%;
  --portal-top: 41%;
}
@media (max-aspect-ratio: 4/5) {
  :root { --horizon: 77%; --portal-top: 53%; }
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--noche); color-scheme: dark; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--noche); color: var(--alba);
  font: 400 16px/1.6 var(--f-text);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }
:focus-visible { outline: 2px solid var(--horizonte-claro); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--lucero); color: var(--noche); }

.wrap { width: 100%; max-width: calc(1332px + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: calc(720px + 2 * var(--gutter)); }
.mono { font-family: var(--f-mono); }
.sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--alba); color: var(--noche); padding: 10px 16px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 16px; }
section[id], [id="servicios"] { scroll-margin-top: 88px; }

/* ── Botones ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 24px; border: 0; border-radius: 999px;
  font: 500 15px/1 var(--f-text); text-decoration: none; cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.btn--accent { background: var(--lucero); color: var(--noche); }
.btn--accent:hover { background: #f8c97f; }
.btn--light { background: var(--alba); color: var(--noche); min-width: 140px; height: 44px; }
.btn--light:hover { background: var(--lucero); }
.btn--sm { height: 40px; padding: 0 20px; font-size: 14px; }
.btn--lg { height: 52px; padding: 0 32px; }
.btn .arrow { display: inline-block; transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translate(3px, -3px); }

/* ── Navegación ────────────────────────────────────────────── */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; height: 72px; transition: background-color .4s var(--ease), border-color .4s var(--ease); border-bottom: 1px solid transparent; }
.nav.is-solid { background: rgba(10, 15, 30, .6); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom-color: rgba(247, 244, 238, .06); }
.nav-center {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  gap: clamp(32px, 6.6vw, 96px); transition: opacity .4s var(--ease);
}
.nav-center a { position: relative; font-size: 14px; color: rgba(247, 244, 238, .9); text-decoration: none; }
.nav-center a:not(.nav-symbol)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--alba);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav-center a:hover { color: var(--alba); }
.nav-center a:hover::after { transform: scaleX(1); }
.nav-symbol img { width: 36px; height: 36px; }

.nav-pill {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between;
  padding-inline: var(--gutter); max-width: calc(1332px + 2 * var(--gutter)); margin-inline: auto;
  opacity: 0; pointer-events: none; transition: opacity .4s var(--ease);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 22px; height: 22px; }
.brand span { font: 500 19px/1 var(--f-title); letter-spacing: .01em; }
.nav-pill nav { display: flex; align-items: center; gap: 6px; }
.nav-pill nav a:not(.btn) {
  padding: 10px 16px; border-radius: 999px; border: 1px solid transparent;
  font-size: 14px; color: var(--niebla); text-decoration: none; transition: color .3s, border-color .3s;
}
.nav-pill nav a:not(.btn):hover { color: var(--alba); }
.nav-pill nav a[aria-current="true"] { color: var(--alba); border-color: var(--horizonte-claro); }
.nav-pill nav .btn { margin-left: 10px; }
.nav.is-pill .nav-center { opacity: 0; pointer-events: none; }
.nav.is-pill .nav-pill { opacity: 1; pointer-events: auto; }

.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid rgba(247, 244, 238, .2); border-radius: 999px; background: transparent; cursor: pointer; position: relative; }
.nav-toggle i { position: absolute; left: 13px; right: 13px; height: 1px; background: var(--alba); transition: transform .3s var(--ease); }
.nav-toggle i:first-of-type { top: 18px; }
.nav-toggle i:last-of-type { top: 25px; }
.nav-toggle[aria-expanded="true"] i:first-of-type { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] i:last-of-type { transform: translateY(-3.5px) rotate(-45deg); }
.nav-menu {
  position: absolute; top: 72px; left: var(--gutter); right: var(--gutter);
  display: grid; gap: 4px; padding: 12px; border-radius: 16px;
  background: rgba(20, 27, 52, .92); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border: 1px solid rgba(247, 244, 238, .08);
}
.nav-menu[hidden] { display: none; }
.nav-menu a { padding: 14px 16px; border-radius: 10px; text-decoration: none; font-size: 16px; }
.nav-menu a:hover { background: rgba(247, 244, 238, .06); }

/* ── 1. Hero + puente ──────────────────────────────────────── */
.stage { position: relative; z-index: 2; height: 300vh; }
.stage-inner { position: sticky; top: 0; height: 100vh; overflow: hidden; }
@supports (height: 100svh) { .stage-inner { height: 100svh; } }

.scene { position: absolute; inset: 0; transform-origin: 50% 56.5%; will-change: transform; }
.scene > * { position: absolute; }
.scene > img { max-width: none; }
.sky {
  inset: 0;
  background: linear-gradient(180deg,
    #060914 0%, var(--noche) 20%, var(--medianoche) 40%,
    #262f6b calc(var(--horizon) - 15%), var(--horizonte) calc(var(--horizon) - 6%),
    #66639a calc(var(--horizon) - 2.2%), #b98d70 calc(var(--horizon) - .6%), var(--lucero) var(--horizon), var(--lucero) 100%);
}
.stars { left: 0; top: 0; width: 100%; height: var(--horizon); object-fit: cover; opacity: .9; }
.mtn { left: -2%; width: 104%; }
.mtn--far { bottom: calc(100% - var(--horizon) - .2%); height: 14%; opacity: .9; }
.mtn--near { bottom: calc(100% - var(--horizon) - .2%); height: 9%; }
.horizon-glow {
  left: 50%; top: var(--horizon); width: 150vh; height: 46vh; transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(244, 184, 96, .42) 0%, rgba(244, 184, 96, .14) 32%, transparent 68%);
  mix-blend-mode: screen; pointer-events: none;
}
.haze {
  left: 0; right: 0; top: calc(var(--horizon) - 4%); height: 7%; pointer-events: none;
  background: linear-gradient(180deg, rgba(123, 138, 224, 0) 0%, rgba(150, 150, 205, .22) 48%, rgba(201, 170, 150, .16) 56%, rgba(20, 27, 52, 0) 100%);
}
.ground { left: 0; top: calc(var(--horizon) - .2%); width: 100%; height: calc(100% - var(--horizon) + .2%); }
.mist {
  left: -20%; width: 140%; pointer-events: none; filter: blur(10px);
  background:
    radial-gradient(ellipse 30% 60% at 25% 55%, rgba(201, 206, 220, .17), transparent 70%),
    radial-gradient(ellipse 26% 50% at 72% 50%, rgba(201, 206, 220, .14), transparent 70%),
    radial-gradient(ellipse 18% 40% at 50% 60%, rgba(247, 228, 200, .12), transparent 70%);
  animation: drift 46s ease-in-out infinite alternate;
}
.mist--back { top: calc(var(--horizon) - 9%); height: 12%; }
.mist--front { top: calc(var(--horizon) - 2.5%); height: 9%; opacity: .75; animation-duration: 63s; animation-direction: alternate-reverse; }
@keyframes drift { from { transform: translateX(-4%); } to { transform: translateX(4%); } }

.portal {
  left: 50%; top: var(--portal-top); height: calc(var(--horizon) - var(--portal-top)); aspect-ratio: 89 / 230;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #fffdf9 0%, #fff6e6 72%, #ffe8c4 100%);
  box-shadow:
    0 0 16px 3px rgba(255, 249, 238, .95),
    0 0 56px 16px rgba(255, 236, 206, .55),
    0 0 150px 56px rgba(244, 184, 96, .26),
    0 0 360px 130px rgba(244, 184, 96, .12);
}
.portal-core { position: absolute; inset: 0; background: radial-gradient(ellipse 60% 50% at 50% 50%, #fff, transparent 80%); animation: breathe 7s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .55; } }
.portal-reflection {
  left: 50%; top: var(--horizon); height: 20%; aspect-ratio: 140 / 230; transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(255, 242, 220, .55), rgba(244, 184, 96, .12) 55%, transparent);
  filter: blur(7px); mix-blend-mode: screen;
}
.hero-video { inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s var(--ease); }
.has-video .hero-video { opacity: 1; }
.sky-veil { inset: 0; background: linear-gradient(180deg, rgba(10, 15, 30, .55) 0%, rgba(10, 15, 30, 0) 42%); pointer-events: none; }

.hero-copy { position: absolute; z-index: 3; left: 0; right: 0; top: 15%; padding-inline: var(--gutter); text-align: center; will-change: transform, opacity; }
.hero-title { font: 500 clamp(34px, min(5vw, 6.4vh), 76px)/1.06 var(--f-title); letter-spacing: -.02em; }
.hero-title span { display: block; }
.hero-title .l2 { color: rgba(201, 206, 220, .75); }
.hero-sub { max-width: 34em; margin: 1.1em auto 0; font-size: clamp(14px, 1.9vh, 17px); line-height: 1.45; color: rgba(247, 244, 238, .9); }

.hero-cta { position: absolute; z-index: 3; left: 50%; top: var(--portal-top); transform: translate(-50%, -100%); will-change: opacity; }
.bracket-btn {
  --c: var(--alba);
  display: inline-block; padding: 5px; text-decoration: none;
  background:
    linear-gradient(var(--c), var(--c)) top left / 10px 1px, linear-gradient(var(--c), var(--c)) top left / 1px 10px,
    linear-gradient(var(--c), var(--c)) top right / 10px 1px, linear-gradient(var(--c), var(--c)) top right / 1px 10px,
    linear-gradient(var(--c), var(--c)) bottom left / 10px 1px, linear-gradient(var(--c), var(--c)) bottom left / 1px 10px,
    linear-gradient(var(--c), var(--c)) bottom right / 10px 1px, linear-gradient(var(--c), var(--c)) bottom right / 1px 10px;
  background-repeat: no-repeat;
  transition: padding .3s var(--ease);
}
.bracket-btn span { display: block; padding: 8px 36px; border-radius: 2px; background: var(--alba); color: var(--noche); font: 500 14px/18px var(--f-text); transition: background-color .3s var(--ease); }
.bracket-btn:hover { padding: 8px; }
.bracket-btn:hover span { background: var(--lucero); }

.night { position: absolute; inset: 0; z-index: 4; background: var(--noche); opacity: 0; pointer-events: none; }
.flash { position: absolute; inset: 0; z-index: 5; background: var(--alba); opacity: 0; pointer-events: none; }
.dot {
  position: absolute; left: 52%; top: 50%; width: 12px; height: 12px; border-radius: 50%;
  background: var(--lucero); box-shadow: 0 0 22px 6px rgba(244, 184, 96, .55);
  transform: translate(-50%, -50%);
}
.scroll-hint {
  position: absolute; z-index: 3; left: 50%; bottom: 22px; transform: translateX(-50%);
  font: 400 11px/1 var(--f-mono); letter-spacing: .24em; text-transform: uppercase; color: rgba(201, 206, 220, .6);
}

/* ── Capa 3D de los anillos ────────────────────────────────── */
.rings-layer { position: fixed; inset: 0; z-index: 0; opacity: 0; pointer-events: none; }
.rings-layer canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.rings-halo {
  position: absolute; left: 52%; top: 50%; width: min(1100px, 150vw); aspect-ratio: 1; transform: translate(-50%, -50%);
  background:
    radial-gradient(circle, rgba(244, 184, 96, .2) 0%, rgba(244, 184, 96, 0) 22%),
    radial-gradient(circle, rgba(61, 74, 143, .5) 0%, rgba(61, 74, 143, .18) 36%, rgba(61, 74, 143, 0) 66%);
}
.rings-fallback { display: none; position: absolute; left: 52%; top: 50%; transform: translate(-50%, -50%); width: min(560px, 80vw); aspect-ratio: 1; border-radius: 50%; border: 18px solid #1d2546; box-shadow: inset 0 0 0 2px rgba(123, 138, 224, .35), 0 0 0 2px rgba(123, 138, 224, .25); }
.rings-fallback span { position: absolute; inset: 41%; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fff3dc, var(--lucero) 55%, #b9772d); box-shadow: 0 0 60px 14px rgba(244, 184, 96, .45); }
.no-webgl .rings-fallback { display: block; }
.no-webgl .rings-layer canvas { display: none; }

/* ── 2. Zona de anillos ────────────────────────────────────── */
.rings-zone { position: relative; z-index: 1; margin-top: -100vh; padding-bottom: 18vh; }
.intro { min-height: 100vh; padding-top: max(120px, 15vh); }
.intro-grid { display: grid; grid-template-columns: 1fr minmax(0, 466px); gap: 40px; align-items: start; }
.display { font: 300 clamp(46px, 6.1vw, 92px)/1.02 var(--f-title); letter-spacing: -.03em; }
.intro-sub { margin-top: 40px; font-size: 14px; color: rgba(201, 206, 220, .6); }
.intro-side { padding-top: 8px; }
.markets { display: flex; justify-content: flex-end; gap: 12px; font-size: 12px; color: var(--niebla); letter-spacing: .08em; }
.markets span + span::before { content: "·"; margin-right: 12px; color: rgba(201, 206, 220, .5); }
.note { margin-top: 26px; padding: 24px; }
.note p { font-size: 15px; line-height: 1.6; color: rgba(247, 244, 238, .9); }

.glass {
  background: rgba(20, 27, 52, .55); border: 1px solid rgba(123, 138, 224, .25); border-radius: 12px;
  -webkit-backdrop-filter: blur(20px) saturate(140%); backdrop-filter: blur(20px) saturate(140%);
}
.glass--big {
  background: rgba(20, 27, 52, .32); border-color: rgba(247, 244, 238, .08); border-radius: 20px;
  padding: clamp(24px, 3.9vw, 56px);
  -webkit-backdrop-filter: blur(24px) saturate(140%); backdrop-filter: blur(24px) saturate(140%);
}
.about { margin-top: -22vh; }
.about-head { display: grid; grid-template-columns: 1fr minmax(0, 520px); gap: 40px; align-items: start; }
.h2 { font: 300 clamp(30px, 3.1vw, 44px)/1.12 var(--f-title); letter-spacing: -.015em; }
.about-body p { margin-bottom: 28px; font-size: 15px; line-height: 1.7; color: var(--niebla); }
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 64px; }
.service { padding: 28px; border-radius: 16px; background: rgba(10, 15, 30, .28); border-color: rgba(247, 244, 238, .07); }
.label { font-size: 11px; color: rgba(201, 206, 220, .5); letter-spacing: .06em; }
.service h3 { margin: 10px 0 44px; font: 300 28px/1.15 var(--f-title); letter-spacing: -.01em; }
.service p:last-child { font-size: 15px; line-height: 1.65; color: var(--niebla); }

/* ── 3. Manifiesto ─────────────────────────────────────────── */
.manifesto { position: relative; z-index: 1; padding: 26vh 0 140px; background: linear-gradient(180deg, rgba(10, 15, 30, 0) 0, var(--noche) 22vh); }
.reveal-text { font: 400 clamp(30px, 4.2vw, 60px)/1.15 var(--f-title); letter-spacing: -.02em; max-width: 22em; }
.reveal-text .w { opacity: .22; transition: opacity .25s linear; }
.stats { list-style: none; margin: 96px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 3vw, 40px); }
.stat {
  --c: rgba(201, 206, 220, .45); --s: 14px;
  position: relative; min-height: 190px; padding: 26px 28px;
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--s) 1px, linear-gradient(var(--c), var(--c)) top left / 1px var(--s),
    linear-gradient(var(--c), var(--c)) top right / var(--s) 1px, linear-gradient(var(--c), var(--c)) top right / 1px var(--s),
    linear-gradient(var(--c), var(--c)) bottom left / var(--s) 1px, linear-gradient(var(--c), var(--c)) bottom left / 1px var(--s),
    linear-gradient(var(--c), var(--c)) bottom right / var(--s) 1px, linear-gradient(var(--c), var(--c)) bottom right / 1px var(--s);
  background-repeat: no-repeat;
}
.stat-num { margin: 30px 0 12px; font: 300 clamp(34px, 3.1vw, 44px)/1 var(--f-title); letter-spacing: -.01em; }
.stat-cap { font-size: 12px; line-height: 1.5; color: rgba(201, 206, 220, .65); }
.closing { margin-top: 72px; text-align: center; }

/* ── 4. Contacto ───────────────────────────────────────────── */
.contact { position: relative; z-index: 1; padding: 60px 0 160px; background: var(--noche); }
.contact-card { position: relative; overflow: hidden; }
.contact-card::before {
  content: ""; position: absolute; left: 50%; top: -40%; width: 120%; aspect-ratio: 2; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(61, 74, 143, .35), transparent 65%);
}
.contact-card > * { position: relative; }
.contact-card .h2 { margin-bottom: 36px; }
.field { margin-bottom: 22px; }
.field label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 500; }
.field input, .field textarea {
  width: 100%; padding: 14px 16px; border: 1px solid rgba(201, 206, 220, .22); border-radius: 12px;
  background: rgba(10, 15, 30, .55); color: var(--alba); font: 400 16px/1.5 var(--f-text);
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: rgba(201, 206, 220, .4); }
.field input:focus, .field textarea:focus { outline: 2px solid var(--horizonte-claro); outline-offset: 2px; border-color: var(--horizonte-claro); }
[aria-invalid="true"] { border-color: var(--lucero) !important; }
.field-help { margin-top: 8px; font-size: 13px; color: rgba(201, 206, 220, .7); }
.field-error { margin-top: 8px; font-size: 13px; color: var(--lucero); }
.check { display: grid; grid-template-columns: 22px 1fr; column-gap: 12px; align-items: start; margin: 16px 0; }
.check input {
  appearance: none; -webkit-appearance: none; width: 20px; height: 20px; margin: 2px 0 0; border: 1px solid rgba(201, 206, 220, .55); border-radius: 5px;
  background: transparent center / 14px no-repeat; cursor: pointer; transition: background-color .2s, border-color .2s;
}
.check input:checked {
  background-color: var(--lucero); border-color: var(--lucero);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%230A0F1E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.check input:focus-visible { outline: 2px solid var(--horizonte-claro); outline-offset: 2px; }
.check label { font-size: 14.5px; line-height: 1.55; color: var(--niebla); cursor: pointer; }
.check label a { color: var(--alba); text-underline-offset: 3px; }
.check label a:hover { color: var(--lucero); }
.check .field-error { grid-column: 2; }
.form-notice { margin: 22px 0; font-size: 13px; line-height: 1.6; color: rgba(201, 206, 220, .72); }
.form-notice a { color: var(--alba); text-underline-offset: 3px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.2em; margin-bottom: 14px; font-size: 14px; color: var(--lucero); }
.form-status:empty { margin: 0; }
.form button[disabled] { opacity: .6; cursor: progress; }
.form-done { outline: none; }
.form-done .h3 { margin-bottom: 10px; font: 300 30px/1.2 var(--f-title); }
.form-done p { color: var(--niebla); }
.receipt { margin-top: 18px; font-size: 13px; color: rgba(201, 206, 220, .7); }

/* ── Pie de página ─────────────────────────────────────────── */
.footer { position: relative; z-index: 1; padding: 40px 0 48px; background: var(--noche); font-size: 14px; color: var(--niebla); }
.footer-horizon { position: relative; height: 1px; margin: 28px 0 56px; background: linear-gradient(90deg, rgba(123, 138, 224, 0), rgba(123, 138, 224, .7) 20%, rgba(123, 138, 224, .7) 80%, rgba(123, 138, 224, 0)); }
.footer-horizon img { position: absolute; left: 50%; bottom: 3px; width: 28px; height: 28px; transform: translateX(-50%); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; }
.footer-claim { margin-bottom: 14px; font: 500 18px/1.3 var(--f-title); color: var(--alba); }
.footer-legal { line-height: 1.75; }
.footer a { color: var(--niebla); text-decoration: none; }
.footer a:hover { color: var(--alba); text-decoration: underline; text-underline-offset: 3px; }
.footer nav a { display: block; margin-bottom: 10px; }
.footer-copy { margin-top: 44px; font-size: 12px; color: rgba(201, 206, 220, .55); }

/* ── Páginas legales y de resultado ────────────────────────── */
.page-legal .nav { background: rgba(10, 15, 30, .85); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom-color: rgba(247, 244, 238, .06); }
.page-legal .nav-pill { opacity: 1; pointer-events: auto; }
.legal { max-width: calc(760px + 2 * var(--gutter)); margin: 0 auto; padding: 140px var(--gutter) 96px; }
.legal-meta { margin-bottom: 18px; font-size: 12px; letter-spacing: .04em; color: rgba(201, 206, 220, .7); }
.legal h1 { margin-bottom: 14px; font: 400 clamp(32px, 4vw, 48px)/1.1 var(--f-title); letter-spacing: -.02em; }
.legal h1 + p { color: rgba(201, 206, 220, .7); font-family: var(--f-mono); font-size: 12px; }
.legal h2 { margin: 52px 0 14px; font: 400 24px/1.25 var(--f-title); }
.legal h3 { margin: 28px 0 10px; font: 500 18px/1.3 var(--f-title); }
.legal p, .legal li { font-size: 16px; line-height: 1.7; color: rgba(247, 244, 238, .9); }
.legal p + p { margin-top: 14px; }
.legal ul, .legal ol { padding-left: 22px; margin: 12px 0; }
.legal li { margin: 6px 0; }
.legal strong { color: var(--alba); font-weight: 600; }
.legal a { color: var(--alba); text-underline-offset: 3px; }
.legal a:hover { color: var(--lucero); }
.legal table { display: block; overflow-x: auto; width: 100%; margin: 18px 0; border-collapse: collapse; font-size: 15px; }
.legal th, .legal td { padding: 10px 14px; border: 1px solid rgba(247, 244, 238, .1); text-align: left; vertical-align: top; line-height: 1.55; }
.legal th { background: rgba(20, 27, 52, .7); font-weight: 600; }
.legal-back { margin-top: 56px; }

.page-result { min-height: 100vh; display: grid; place-items: center; }
.result { max-width: 560px; padding: 48px var(--gutter); }
.result h1 { margin-bottom: 18px; font: 300 clamp(30px, 4vw, 44px)/1.15 var(--f-title); }
.result p, .result li { color: var(--niebla); line-height: 1.7; }
.result ul { margin: 0 0 24px; padding-left: 20px; color: var(--lucero); }
.result .mono { margin: 14px 0 28px; font-size: 13px; }

/* ── Animaciones de entrada ────────────────────────────────── */
.js .reveal-up { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal-up.in { opacity: 1; transform: none; }
.js .services .reveal-up:nth-child(3), .js .stats .reveal-up:nth-child(2) { transition-delay: .08s; }
.js .services .reveal-up:nth-child(4), .js .stats .reveal-up:nth-child(3) { transition-delay: .16s; }
.js .stat { --s: 0px; transition: opacity .6s var(--ease), transform .6s var(--ease), background-size .5s var(--ease); }
.js .stat.in { --s: 14px; }
.js .stat .stat-num { opacity: 0; transition: opacity .5s var(--ease) .35s; }
.js .stat.in .stat-num { opacity: 1; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .intro-grid { grid-template-columns: 1fr minmax(0, 360px); }
  .services { grid-template-columns: 1fr 1fr; }
  .services .service:last-child { grid-column: span 2; }
}
@media (max-width: 760px) {
  .nav-center { display: none; }
  .nav-pill { opacity: 1; pointer-events: auto; }
  .nav-pill nav { display: none; }
  .nav-toggle { display: block; }
  .stage { height: 240vh; }
  .hero-copy { top: 13%; }
  .intro { padding-top: 112px; }
  .intro-grid { grid-template-columns: 1fr; gap: 24px; }
  .markets { justify-content: flex-start; }
  .intro-side { padding-top: 34vh; }
  .about { margin-top: 4vh; }
  .about-head { grid-template-columns: 1fr; gap: 20px; }
  .services { grid-template-columns: 1fr; margin-top: 40px; }
  .services .service:last-child { grid-column: auto; }
  .service h3 { margin-bottom: 20px; }
  .stats { grid-template-columns: 1fr; margin-top: 64px; }
  .stat { min-height: 150px; }
  .reveal-text { font-size: clamp(28px, 8.4vw, 36px); }
  .footer-grid { grid-template-columns: 1fr; }
  .contact { padding-bottom: 96px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stage { height: auto; }
  .stage-inner { position: relative; }
  .mist, .portal-core { animation: none; }
  .js .reveal-up { opacity: 1; transform: none; transition: none; }
  .js .stat { --s: 14px; }
  .js .stat .stat-num { opacity: 1; }
  .rings-zone { margin-top: 0; }
}
@media print {
  html, body { background: #fff; color: #000; }
  .nav, .footer-horizon, .skip { display: none; }
  .legal { padding-top: 0; }
  .legal p, .legal li, .legal th, .legal td, .legal a, .legal strong { color: #000; }
  .legal th { background: #eee; }
}
.footer-soon { color: rgba(201, 206, 220, .55); }
