@property --a { syntax: '<angle>'; initial-value: 0deg; inherits: false; }

:root {
  --night-0: #050a1a;
  --night-1: #0a1330;
  --night-2: #0f1a3d;
  --night-3: #16244f;
  --gold: #d8b25a;
  --gold-hi: #f1d590;
  --gold-lo: #a17f2f;
  --moon: #eaeef8;
  --moon-2: #b9c2da;
  --moon-3: #8d98b8;
  --line: rgba(216, 178, 90, 0.28);

  --f-display: 'Forum', 'Times New Roman', serif;
  --f-body: 'Hanken Grotesk', system-ui, sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gut: clamp(1.25rem, 4.5vw, 4rem);
  --rail: 0px;
  --pad-l: calc(var(--gut) + var(--rail));
}

@media (min-width: 1024px) { :root { --rail: 76px; } }

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scrollbar-color: var(--gold-lo) var(--night-0); }

body {
  margin: 0;
  background: var(--night-1);
  color: var(--moon);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(120% 90% at 70% 10%, transparent 38%, rgba(5, 10, 26, 0.7) 100%);
}

body::-webkit-scrollbar { width: 11px; }
body::-webkit-scrollbar-track { background: var(--night-0); }
body::-webkit-scrollbar-thumb { background: var(--gold-lo); border-radius: 99px; border: 2px solid var(--night-0); }

::selection { background: var(--gold); color: var(--night-1); }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 4px; border-radius: 4px; }

img { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
sup { font-size: 0.55em; }

.defs { position: absolute; }
.skip { position: fixed; left: 1rem; top: -4rem; z-index: 100; background: var(--gold); color: var(--night-1); padding: 0.6rem 1rem; border-radius: 6px; transition: top 0.2s; }
.skip:focus { top: 1rem; }

#sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; }
.spot {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 0.8s;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 30%), rgba(216, 178, 90, 0.09), transparent 65%);
}
.spot.on { opacity: 1; }
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; pointer-events: none;
  background: linear-gradient(90deg, var(--gold-lo), var(--gold-hi));
  transform-origin: left; transform: scaleX(var(--p, 0));
}

/* ---------- Reveal ---------- */

.js [data-reveal] {
  opacity: 0; translate: 0 26px;
  transition: opacity 1s var(--ease), translate 1s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js [data-reveal].is-in { opacity: 1; translate: 0 0; }

.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.12em 0 0.16em; margin: -0.12em 0 -0.16em; }
.wi { display: inline-block; }
.js [data-split] .wi { transform: translateY(112%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 55ms); }
.js [data-split].is-in .wi { transform: none; }

/* ---------- Header, rail, menu ---------- */

.bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem var(--gut);
  background: linear-gradient(180deg, rgba(5, 10, 26, 0.92), rgba(5, 10, 26, 0));
}
.bar__brand { display: inline-flex; align-items: center; gap: 0.8rem; text-decoration: none; }
.bar__logo { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; transform: scale(1); box-shadow: 0 0 0 1px rgba(216, 178, 90, 0.55); animation: none; transition: transform 0.8s var(--ease); }
.bar__brand:hover .bar__logo { transform: rotate(60deg) scale(1.06); }
.bar__word { font-family: var(--f-display); font-size: 1.05rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--moon); }
.bar__actions { display: flex; align-items: center; gap: 0.75rem; }

.bar__menu { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%; background: rgba(10, 19, 48, 0.7); cursor: pointer; position: relative; }
.bar__menu span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--moon); transition: transform 0.5s var(--ease); }
.bar__menu span:nth-child(1) { top: 19px; }
.bar__menu span:nth-child(2) { top: 26px; }
.bar__menu[aria-expanded='true'] span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.bar__menu[aria-expanded='true'] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

.rail {
  position: fixed; left: 26px; top: 50%; translate: 0 -50%; z-index: 45;
  display: none; flex-direction: column; gap: clamp(1.2rem, 4.2vh, 2.2rem);
  color: var(--gold); transition: color 0.6s;
}
.rail::before, .rail::after { content: ''; position: absolute; left: 4px; top: 5px; bottom: 5px; width: 1px; }
.rail::before { background: repeating-linear-gradient(180deg, currentColor 0 4px, transparent 4px 9px); opacity: 0.35; }
.rail::after { background: currentColor; transform-origin: top; transform: scaleY(var(--p, 0)); }
.rail a { position: relative; display: flex; align-items: center; gap: 1rem; text-decoration: none; height: 10px; }
.rail i { position: relative; z-index: 1; width: 9px; height: 9px; flex: none; rotate: 45deg; background: var(--night-1); border: 1px solid currentColor; transition: background 0.4s, scale 0.4s var(--ease); }
.rail span { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; white-space: nowrap; color: var(--moon); opacity: 0; translate: -8px 0; transition: opacity 0.4s, translate 0.5s var(--ease); pointer-events: none; background: var(--night-0); padding: 0.4rem 0.8rem; border-radius: 999px; border: 1px solid var(--line); }
.rail a.is-current i { background: currentColor; scale: 1.35; }
.rail:hover span, .rail a:focus-visible span { opacity: 1; translate: 0 0; }
.rail a.is-current i::after { content: ''; position: absolute; inset: -6px; border: 1px solid currentColor; opacity: 0; animation: ping 3.4s ease-out infinite; }
.rail.rail--ink { color: var(--night-1); }
.rail.rail--ink i { background: var(--gold); }
.rail.rail--ink a.is-current i { background: var(--night-1); }
.rail.rail--ink span { color: var(--night-1); background: var(--gold); border-color: var(--night-1); }
@media (min-width: 1024px) { .rail { display: flex; } }
@media (max-width: 1023px) { .bar__menu { display: block; } }

.menu {
  position: fixed; inset: 0; z-index: 48; background: var(--night-0);
  display: flex; flex-direction: column; justify-content: center; gap: 2.5rem; padding: 96px var(--gut) 40px;
  visibility: hidden; opacity: 0; transition: opacity 0.5s var(--ease), visibility 0s 0.5s;
}
.menu.is-open { visibility: visible; opacity: 1; transition: opacity 0.5s var(--ease); }
.menu ol { display: grid; gap: 0.4rem; }
.menu li { translate: 0 18px; opacity: 0; transition: translate 0.8s var(--ease), opacity 0.6s; transition-delay: calc(var(--k, 0) * 55ms); }
.menu.is-open li { translate: 0 0; opacity: 1; }
.menu ol a { font-family: var(--f-display); font-size: clamp(1.8rem, 8vw, 2.6rem); text-decoration: none; line-height: 1.3; }
.menu ol a:hover { color: var(--gold-hi); }
.menu__contact { display: flex; gap: 1.5rem; flex-wrap: wrap; color: var(--gold); }
body.menu-open { overflow: hidden; }

/* ---------- Buttons ---------- */

.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 1.05rem 1.9rem; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--f-body); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; text-align: center;
  cursor: pointer; overflow: hidden; isolation: isolate;
  transition: transform 0.5s var(--ease), translate 0.35s var(--ease), background 0.4s, color 0.4s, box-shadow 0.5s var(--ease);
}
.btn:hover { transform: translateY(-3px); }
.btn--sm { padding: 0.72rem 1.25rem; font-size: 0.7rem; }

.btn--gold { background: var(--gold); color: var(--night-1); }
.btn--gold::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.6) 50%, transparent 62%);
  transform: translateX(-140%); animation: sheen 6s ease-in-out infinite;
}
.btn--gold:hover { background: var(--gold-hi); box-shadow: 0 14px 22px -12px rgba(0, 0, 0, 0.7); }

.btn--ghost {
  color: var(--moon);
  background: linear-gradient(var(--night-1), var(--night-1)) padding-box,
              conic-gradient(from var(--a), rgba(216, 178, 90, 0.28) 0 55%, var(--gold-hi) 80%, rgba(216, 178, 90, 0.28) 100%) border-box;
  animation: orbit 6s linear infinite;
}
.btn--ghost:hover { color: var(--gold-hi); box-shadow: 0 14px 22px -12px rgba(0, 0, 0, 0.7); }

.btn--ink { background: var(--night-1); color: var(--gold-hi); }
.btn--ink:hover { background: var(--night-0); box-shadow: 0 14px 22px -12px rgba(5, 10, 26, 0.6); }
.btn--ink-ghost { color: var(--night-1); border-color: var(--night-1); background: transparent; }
.btn--ink-ghost:hover { background: var(--night-1); color: var(--gold-hi); }

.more {
  display: inline-flex; align-items: center; color: var(--gold); text-decoration: none;
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; margin-top: 1.1rem;
}
.more::after { content: ''; width: 1.6rem; height: 1px; background: currentColor; margin-left: 0.7rem; transform-origin: left; transition: transform 0.6s var(--ease); }
.more:hover { color: var(--gold-hi); }
.more:hover::after { transform: scaleX(1.75); }

.label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.body { color: var(--moon-2); max-width: 58ch; font-size: 1.08rem; }

.title {
  font-family: var(--f-display); font-weight: 400; font-size: clamp(2.3rem, 5vw, 4.4rem);
  line-height: 1.06; letter-spacing: 0; text-wrap: balance; color: var(--moon);
}

/* ---------- Hero ---------- */

.hero {
  position: relative; min-height: 100svh; display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  grid-template-areas: 'copy stage'; align-items: center; gap: 2rem;
  padding: 120px var(--gut) 90px var(--pad-l);
  overflow: clip;
}
.hero::before {
  content: ''; position: absolute; inset: -96px; pointer-events: none; z-index: -1;
  background-image: linear-gradient(rgba(216, 178, 90, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(216, 178, 90, 0.07) 1px, transparent 1px);
  background-size: 96px 96px;
  -webkit-mask-image: radial-gradient(60% 65% at 68% 48%, #000, transparent 78%);
  mask-image: radial-gradient(60% 65% at 68% 48%, #000, transparent 78%);
  animation: drift 40s linear infinite;
}
.hero__copy { grid-area: copy; display: grid; gap: 1.6rem; justify-items: start; max-width: 40rem; }
.hero h1 { font-family: var(--f-display); font-weight: 400; font-size: clamp(2.7rem, 5.6vw, 5.4rem); line-height: 1.04; text-wrap: balance; }
.hero__lede { font-size: 1.2rem; color: var(--moon-2); max-width: 34rem; }
.hero__tag { display: inline-flex; align-items: center; gap: 0.7rem; font-family: var(--f-display); font-size: 1.15rem; color: var(--gold-hi); }
.i-spark { width: 12px; height: 12px; fill: var(--gold); animation: twinkle 3s ease-in-out infinite; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 0.6rem; }

.hero__stage { grid-area: stage; position: relative; width: min(50vw, 720px); aspect-ratio: 1; justify-self: center; }
.hero__stage::before {
  content: ''; position: absolute; inset: -24%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(98, 128, 230, 0.32), rgba(98, 128, 230, 0.08) 58%, transparent 74%);
  animation: breathe 8s ease-in-out infinite;
}
.astro { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.rot { transform-box: view-box; transform-origin: 0 0; animation: spin linear infinite; }
.rot--a { animation-duration: 240s; }
.rot--b { animation-duration: 150s; animation-direction: reverse; }
.rot--c { animation-duration: 64s; }
.medallion {
  position: absolute; inset: 14%; border-radius: 50%; overflow: hidden;
  box-shadow: 0 44px 70px -26px rgba(0, 0, 0, 0.8);
  animation: float 11s ease-in-out infinite;
}
.medallion img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.035); }

.hero__cue { position: absolute; left: 50%; bottom: 20px; width: 1px; height: 56px; background: rgba(216, 178, 90, 0.25); overflow: hidden; }
.hero__cue span { position: absolute; left: 0; top: 0; width: 1px; height: 18px; background: var(--gold-hi); animation: drip 2.8s var(--ease) infinite; }

/* ---------- Trail ---------- */

main { position: relative; }
.trail { position: absolute; left: 0; top: 0; width: var(--pad-l); height: 100%; display: none; pointer-events: none; overflow: visible; }
.trail__base { fill: none; stroke: rgba(216, 178, 90, 0.3); stroke-width: 1.4; stroke-dasharray: 1 8; stroke-linecap: round; }
.trail__draw { fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-linecap: round; opacity: 0.8; }
.trail__star { fill: var(--gold-hi); }
.trail__node { fill: var(--night-1); stroke: var(--gold); stroke-width: 1; }
@media (min-width: 1024px) { .trail { display: block; } }

.dots { display: none; justify-content: center; gap: 0.6rem; margin-top: 0.4rem; }
.dots i { width: 7px; height: 7px; rotate: 45deg; border: 1px solid var(--gold); transition: background 0.4s, scale 0.4s var(--ease); }
.dots i.is-on { background: var(--gold); scale: 1.3; }
@media (max-width: 900px) { .dots { display: flex; } }

/* ---------- Band ---------- */

.band { overflow: hidden; border-block: 1px solid var(--line); padding: 1.05rem 0; background: rgba(5, 10, 26, 0.55); }
.band__track { display: flex; align-items: center; width: max-content; animation: marquee 70s linear infinite; }
.band__track > * { margin-right: 2.4rem; flex: none; }
.band:hover .band__track { animation-play-state: paused; }
.band span { font-family: var(--f-display); font-size: 1.05rem; letter-spacing: 0.34em; text-transform: uppercase; color: var(--gold); }
.band svg { width: 12px; height: 12px; fill: var(--gold-hi); animation: twinkle 3.2s ease-in-out infinite; }
.band svg:nth-of-type(2n) { animation-delay: -1.1s; }
.band svg:nth-of-type(3n) { animation-delay: -2.2s; }

/* ---------- Astrología aplicada ---------- */

.astro-sec {
  position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 2rem; row-gap: 4.5rem;
  padding: clamp(5rem, 11vw, 9.5rem) var(--gut) clamp(4.5rem, 9vw, 8rem) var(--pad-l);
}
.astro-sec__copy { grid-column: 1 / 8; display: grid; gap: 1.6rem; justify-items: start; }
.statement { font-family: var(--f-display); font-size: clamp(1.7rem, 3.1vw, 2.7rem); line-height: 1.2; margin-top: 1.2rem; max-width: 24ch; }
.statement--2 { margin-top: 0; }
.statement strong { font-weight: 400; color: var(--gold-hi); }
.terrain { display: flex; align-items: center; gap: 1rem; font-family: var(--f-display); font-size: clamp(1.25rem, 2vw, 1.6rem); color: var(--gold-hi); margin-top: 0.6rem; }
.terrain::before { content: ''; width: 3rem; height: 1px; background: var(--gold); flex: none; }

.astro-sec__window { grid-column: 9 / 13; align-self: start; margin-top: 2.5rem; }
.window { position: relative; width: 100%; aspect-ratio: 4 / 5; animation: bob 9s ease-in-out infinite; }
.window img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 62%; border-radius: 999px 999px 10px 10px; outline: 1px solid rgba(216, 178, 90, 0.5); outline-offset: 10px; }
.window__ring { position: absolute; left: 50%; top: 46%; width: 128%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; border: 1px dashed rgba(216, 178, 90, 0.35); animation: spin 110s linear infinite; pointer-events: none; z-index: -1; }
.window__ring::after { content: ''; position: absolute; top: -3px; left: 50%; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-hi); }

.process { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); max-width: 52rem; margin-top: 1rem; }
.process li { position: relative; display: grid; justify-items: center; gap: 1rem; }
.process__node { position: relative; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--gold); display: grid; place-items: center; background: var(--night-1); }
.process__node svg { width: 16px; height: 16px; fill: var(--gold-hi); }
.process__node::after { content: ''; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid var(--gold); opacity: 0; animation: ping 3.6s ease-out infinite; }
.process li:nth-child(2) .process__node::after { animation-delay: 1.2s; }
.process li:nth-child(3) .process__node::after { animation-delay: 2.4s; }
.process__word { font-family: var(--f-display); font-size: clamp(1.4rem, 2.4vw, 2rem); }
.process li:not(:last-child)::after {
  content: ''; position: absolute; top: 24px; left: calc(50% + 38px); right: calc(-50% + 38px); height: 1px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 6px, transparent 6px 12px); background-size: 12px 1px; animation: march 1s linear infinite;
}

/* ---------- Lecturas ---------- */

.reads { padding: clamp(4rem, 9vw, 8rem) var(--gut) clamp(4rem, 9vw, 8rem) var(--pad-l); }
.triptych { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3.5rem); margin-top: 4.5rem; align-items: start; max-width: 1240px; }
.arch { position: relative; isolation: isolate; text-align: center; display: grid; justify-items: center; align-content: start; animation: bob 9s ease-in-out infinite; animation-delay: calc(var(--i) * -3s); }
.arch:nth-child(odd) { margin-top: 3.2rem; }
.arch::before {
  content: ''; position: absolute; z-index: -1; left: 50%; top: -6%; width: 130%; aspect-ratio: 1; translate: -50% 0; pointer-events: none;
  background: radial-gradient(closest-side, rgba(var(--tint), 0.3), transparent 70%); animation: breathe 7s ease-in-out infinite; animation-delay: calc(var(--i) * -2s);
}
.arch__frame {
  position: relative; width: min(100%, 290px); aspect-ratio: 4 / 5; margin-bottom: 1.8rem; overflow: hidden; border-radius: 999px 999px 10px 10px;
  outline: 1px solid rgba(216, 178, 90, 0.5); outline-offset: 10px;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 0.6s var(--ease);
}
.arch__frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.4s var(--ease); }
.arch:hover .arch__frame img { transform: scale(1.09); }
.arch__sheen { position: absolute; inset: 0; opacity: 0; transition: opacity 0.5s; pointer-events: none; background: linear-gradient(115deg, transparent calc(var(--sx, 50%) - 20%), rgba(255, 255, 255, 0.2) var(--sx, 50%), transparent calc(var(--sx, 50%) + 20%)); }
.arch:hover .arch__sheen { opacity: 1; }
.arch h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.7rem; line-height: 1.2; margin-bottom: 0.6rem; }
.arch .label { margin-bottom: 0.9rem; }
.arch p:not(.label) { color: var(--moon-2); max-width: 30ch; }

/* ---------- Recursos ---------- */

.tools { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr); gap: clamp(2rem, 6vw, 6rem); padding: clamp(4rem, 9vw, 8rem) var(--gut) clamp(4rem, 9vw, 8rem) var(--pad-l); }
.tools__head { position: sticky; top: 130px; align-self: start; display: grid; gap: 1.6rem; }
.tools__head .title { font-size: clamp(2.1rem, 4vw, 3.6rem); }
.tools__intro { color: var(--moon-2); max-width: 34ch; font-size: 1.1rem; }
.dossier { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2rem; align-items: center; padding: 2rem 0; border-top: 1px solid var(--line); }
.dossier:last-child { border-bottom: 1px solid var(--line); }
.dossier__disc { position: relative; width: clamp(110px, 12vw, 160px); aspect-ratio: 1; }
.dossier__disc img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; transition: transform 1s var(--ease); }
.dossier:hover .dossier__disc img { transform: scale(1.06) rotate(-3deg); }
.ring { position: absolute; inset: -11px; border-radius: 50%; border: 1px dashed rgba(216, 178, 90, 0.5); animation: spin 46s linear infinite; pointer-events: none; }
.ring::after { content: ''; position: absolute; top: -3px; left: 50%; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-hi); }
.dossier:nth-child(2) .ring { animation-direction: reverse; animation-duration: 58s; }
.dossier h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.2; margin-bottom: 0.5rem; }
.dossier .label { margin-bottom: 0.7rem; }
.dossier p:not(.label) { color: var(--moon-2); max-width: 46ch; }

/* ---------- Cómo funciona ---------- */

.how {
  display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(2.5rem, 7vw, 7rem); align-items: center;
  padding: clamp(5rem, 10vw, 9rem) var(--gut) clamp(5rem, 10vw, 9rem) var(--pad-l);
  background: linear-gradient(180deg, transparent, rgba(22, 36, 79, 0.78) 14%, rgba(22, 36, 79, 0.78) 86%, transparent);
}
.how__portrait { position: relative; justify-self: center; width: min(100%, 340px); }
.oval { aspect-ratio: 3 / 4; border-radius: 50%; overflow: hidden; outline: 1px solid rgba(216, 178, 90, 0.5); outline-offset: 12px; animation: bob 10s ease-in-out infinite; }
.oval img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.ring--wide { inset: auto; left: 50%; top: 50%; width: 138%; aspect-ratio: 1; translate: -50% -50%; animation-duration: 120s; z-index: -1; }
.how__content { display: grid; gap: 1.4rem; justify-items: start; }
.how__intro { font-family: var(--f-display); font-size: clamp(1.3rem, 2.2vw, 1.75rem); color: var(--gold-hi); text-wrap: balance; line-height: 1.4; }
.route { display: grid; margin-top: 1.6rem; }
.route > li { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 1.6rem; padding-bottom: 3rem; }
.route > li:last-child { padding-bottom: 0; }
.route > li:not(:last-child)::before {
  content: ''; position: absolute; left: 27px; top: 64px; bottom: 6px; width: 1px;
  background: repeating-linear-gradient(180deg, var(--gold) 0 6px, transparent 6px 12px); background-size: 1px 12px; animation: marchy 1.3s linear infinite;
}
.route__node { position: relative; width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--gold); display: grid; place-items: center; font-family: var(--f-display); font-size: 1.5rem; color: var(--gold-hi); background: var(--night-2); }
.route__node::after { content: ''; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid var(--gold); opacity: 0; animation: ping 3.6s ease-out infinite; }
.route h3 { font-size: 0.85rem; font-family: var(--f-body); font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin: 0.9rem 0 1.1rem; }
.route ul li { position: relative; padding-left: 1.5rem; margin-bottom: 0.7rem; color: var(--moon-2); max-width: 52ch; }
.route ul li::before { content: ''; position: absolute; left: 0.1rem; top: 0.72em; width: 6px; height: 6px; rotate: 45deg; background: var(--gold); }

/* ---------- Quién está detrás ---------- */

.about {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); grid-template-areas: 'copy portrait'; gap: clamp(2.5rem, 7vw, 7rem); align-items: center;
  padding: clamp(5rem, 10vw, 9rem) var(--gut) clamp(5rem, 10vw, 9rem) var(--pad-l);
}
.about__copy { grid-area: copy; display: grid; gap: 1.3rem; justify-items: start; }
.about__portrait { grid-area: portrait; position: relative; justify-self: center; width: min(100%, 340px); }
.arch-portrait { aspect-ratio: 3 / 4; border-radius: 999px 999px 12px 12px; overflow: hidden; outline: 1px solid rgba(216, 178, 90, 0.5); outline-offset: 12px; animation: bob 10s ease-in-out infinite; animation-delay: -4s; }
.arch-portrait img { width: 100%; height: 100%; object-fit: cover; }
.about .title { font-size: clamp(2.1rem, 4vw, 3.5rem); margin-bottom: 0.8rem; }
.about__name { font-family: var(--f-display); font-size: clamp(1.7rem, 2.8vw, 2.4rem); color: var(--gold-hi); }
.about__role { font-size: 1.2rem; color: var(--moon); }
.about__idea { font-family: var(--f-display); font-size: clamp(1.3rem, 2vw, 1.65rem); line-height: 1.4; max-width: 40ch; margin-top: 0.4rem; text-wrap: balance; }
.tags { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.8rem; }
.tags li { border: 1px solid var(--line); border-radius: 999px; padding: 0.4rem 1rem; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--moon-2); }
.about__triad { font-size: 0.78rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); }

/* ---------- Cierre ---------- */

.close { position: relative; overflow: hidden; background: var(--gold); color: var(--night-1); text-align: center; padding: clamp(5.5rem, 11vw, 9.5rem) var(--gut) clamp(5rem, 10vw, 8rem) var(--pad-l); isolation: isolate; }
.close::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.32) 50%, transparent 60%); transform: translateX(-130%); animation: foil 11s ease-in-out infinite;
}
.close__rose { position: absolute; left: 50%; top: 50%; width: min(130vw, 980px); translate: -50% -50%; color: var(--night-1); opacity: 0.09; animation: spin 200s linear infinite; z-index: -1; pointer-events: none; }
.close__inner { position: relative; display: grid; justify-items: center; gap: 1.6rem; }
.close h2 { font-family: var(--f-display); font-weight: 400; font-size: clamp(2.3rem, 5.2vw, 4.6rem); line-height: 1.06; max-width: 18ch; color: var(--night-1); text-wrap: balance; }
.close__lede { max-width: 46ch; font-size: 1.15rem; color: rgba(10, 19, 48, 0.85); }
.close__cta { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 0.8rem; }
.close__contacts { display: grid; grid-template-columns: repeat(3, auto); gap: clamp(1.5rem, 5vw, 4rem); margin-top: 2rem; }
.close__contacts span { display: block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(10, 19, 48, 0.72); margin-bottom: 0.2rem; }
.close__contacts a { font-family: var(--f-display); font-size: 1.3rem; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.6s var(--ease); }
.close__contacts a:hover { background-size: 100% 1px; }
.close :focus-visible { outline-color: var(--night-1); }
.close__tag { font-family: var(--f-display); font-size: 1.1rem; margin-top: 1.4rem; color: rgba(10, 19, 48, 0.85); }

/* ---------- Footer, WhatsApp, dialog ---------- */

.foot { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1.6rem var(--gut) 1.6rem var(--pad-l); background: var(--night-0); border-top: 1px solid var(--line); }
.foot__logo { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.foot__word { font-family: var(--f-display); letter-spacing: 0.2em; text-transform: uppercase; font-size: 0.95rem; margin-right: auto; }
.foot__links { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.foot__links button { background: none; border: 0; padding: 0.4rem 0; cursor: pointer; font-size: 0.85rem; color: var(--moon-2); transition: color 0.3s; }
.foot__links button:hover { color: var(--gold-hi); }

.wa {
  position: fixed; right: 20px; bottom: 20px; z-index: 55; display: inline-flex; align-items: center; gap: 0.6rem; height: 54px; padding: 0 1.3rem 0 1.05rem;
  border-radius: 999px; background: var(--night-2); color: var(--gold-hi); border: 1px solid rgba(216, 178, 90, 0.65);
  text-decoration: none; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em;
  transition: transform 0.5s var(--ease), background 0.4s, color 0.4s;
}
.js .wa { opacity: 0; visibility: hidden; translate: 0 24px; pointer-events: none; transition: opacity 0.6s var(--ease), translate 0.7s var(--ease), visibility 0s 0.6s, transform 0.5s var(--ease), background 0.4s, color 0.4s; }
.js .wa.is-on { opacity: 1; visibility: visible; translate: 0 0; pointer-events: auto; transition: opacity 0.6s var(--ease), translate 0.7s var(--ease), transform 0.5s var(--ease), background 0.4s, color 0.4s; }
.wa svg { width: 24px; height: 24px; }
.wa::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; border: 1px solid var(--gold); opacity: 0; animation: ping 4.6s ease-out infinite; pointer-events: none; }
.wa:hover { transform: translateY(-3px); background: var(--gold); color: var(--night-1); }

.dlg { background: var(--night-2); color: var(--moon); border: 1px solid var(--line); border-radius: 14px; width: min(32rem, calc(100% - 2rem)); padding: 2.2rem; }
.dlg::backdrop { background: rgba(5, 10, 26, 0.75); }
.dlg[open] { animation: dlg-in 0.5s var(--ease); }
.dlg h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.8rem; margin-bottom: 0.8rem; color: var(--gold-hi); }
.dlg p { color: var(--moon-2); }
.dlg a { color: var(--gold-hi); }
.dlg form { position: absolute; top: 0.6rem; right: 0.8rem; }
.dlg__x { background: none; border: 0; font-size: 1.8rem; line-height: 1; cursor: pointer; padding: 0.3rem 0.6rem; transition: color 0.3s, rotate 0.5s var(--ease); }
.dlg__x:hover { color: var(--gold-hi); rotate: 90deg; }

/* ---------- Keyframes ---------- */

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes orbit { to { --a: 360deg; } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-12px) rotate(0.6deg); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes breathe { 0%, 100% { opacity: 0.65; scale: 1; } 50% { opacity: 1; scale: 1.07; } }
@keyframes twinkle { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
@keyframes ping { 0% { opacity: 0.7; scale: 1; } 70%, 100% { opacity: 0; scale: 1.9; } }
@keyframes drift { to { transform: translate(96px, 96px); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes march { to { background-position-x: 12px; } }
@keyframes marchy { to { background-position-y: 12px; } }
@keyframes sheen { 0%, 62% { transform: translateX(-140%); } 100% { transform: translateX(140%); } }
@keyframes foil { 0%, 55% { transform: translateX(-130%); } 100% { transform: translateX(130%); } }
@keyframes drip { 0% { translate: 0 -20px; } 100% { translate: 0 60px; } }
@keyframes dlg-in { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }

.astro-sec, .reads, .tools, .how, .about { overflow-x: clip; }

/* ---------- Responsive ---------- */

@media (max-width: 1023px) {
  .bar__word { display: none; }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; grid-template-areas: 'stage' 'copy'; min-height: auto; padding-top: 84px; padding-bottom: 5rem; gap: 1.6rem; }
  .hero__stage { width: min(72vw, 360px); }
  .hero__copy { max-width: none; }
  .hero__cue { display: none; }
  .astro-sec { grid-template-columns: 1fr; row-gap: 3.5rem; }
  .astro-sec__copy, .astro-sec__window, .process { grid-column: 1; }
  .astro-sec__window { width: min(78%, 320px); justify-self: center; margin-top: 0; }
  .process { max-width: none; }
  .triptych { display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; gap: 1.6rem; padding: 0 0.5rem 1.4rem; margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); scrollbar-width: none; margin-top: 3rem; }
  .triptych::-webkit-scrollbar { display: none; }
  .arch { scroll-snap-align: center; }
  .arch:nth-child(odd) { margin-top: 0; }
  .tools { grid-template-columns: 1fr; }
  .tools__head { position: static; }
  .how, .about { grid-template-columns: 1fr; }
  .how__portrait { width: min(70%, 300px); }
  .about { grid-template-areas: 'portrait' 'copy'; }
  .about__portrait { width: min(70%, 300px); }
  .close__contacts { grid-template-columns: 1fr; gap: 1.2rem; }
}

@media (max-width: 560px) {
  .hero__cta, .close__cta { width: 100%; }
  .hero__cta .btn, .close__cta .btn { flex: 1 1 100%; }
  .btn--sm { padding: 0.65rem 1rem; }
  .dossier { grid-template-columns: 1fr; justify-items: start; gap: 1.6rem; }
  .dossier__disc { width: 120px; }
  .wa { width: 54px; padding: 0; justify-content: center; }
  .wa span { display: none; }
  .foot__word { margin-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; translate: none; }
  .js [data-split] .wi { transform: none; }
}
