/* ══════════════════════════════════════════════
   ÁLZARA — experiencia inmersiva
   Paleta: oliva-negro / crema / oro
══════════════════════════════════════════════ */
:root {
  --bg: #0d0f08;
  --bg-2: #14170d;
  --cream: #f7f2df;
  --cream-60: rgba(247, 242, 223, .6);
  --cream-30: rgba(247, 242, 223, .3);
  --cream-12: rgba(247, 242, 223, .12);
  --cream-06: rgba(247, 242, 223, .06);
  --gold: #c8a85a;
  --gold-soft: rgba(200, 168, 90, .18);
  --olive: #2a2d1a;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", -apple-system, sans-serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: initial; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--gold); color: var(--bg); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── Fondo WebGL + grano ─────────────────── */
#gl {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}
.grain {
  position: fixed; inset: -50%;
  z-index: 1; pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  animation: grain 7s steps(8) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0) } 25% { transform: translate(-3%,2%) }
  50% { transform: translate(2%,-3%) } 75% { transform: translate(-2%,-2%) }
}

main { position: relative; z-index: 2; }

/* ── Preloader ───────────────────────────── */
.preloader {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
}
.preloader__curtain {
  position: absolute; inset: 0;
  background: var(--bg);
}
.preloader__inner { position: relative; z-index: 2; text-align: center; }
.preloader__logo {
  font-family: var(--serif);
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--cream);
  display: flex; gap: .02em; justify-content: center;
}
.preloader__logo span { display: inline-block; opacity: 0; transform: translateY(.6em) rotate(6deg); }
.preloader__bar {
  width: min(280px, 60vw); height: 1px;
  background: var(--cream-12);
  margin: 2rem auto 1rem;
  overflow: hidden;
}
.preloader__bar span {
  display: block; height: 100%; width: 0%;
  background: var(--gold);
}
.preloader__count {
  font-size: .75rem; letter-spacing: .35em;
  color: var(--cream-60);
  font-variant-numeric: tabular-nums;
}

/* ── Cursor ──────────────────────────────── */
.cursor { position: fixed; top: 0; left: 0; z-index: 200; pointer-events: none; }
.cursor__dot {
  position: absolute; top: -3px; left: -3px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
}
.cursor__ring {
  position: absolute; top: -22px; left: -22px;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--cream-30);
  transition: transform .35s var(--ease-out), background .35s, border-color .35s;
}
.cursor__label {
  position: absolute; top: -8px; left: 18px;
  font-size: .6rem; letter-spacing: .25em;
  color: var(--gold);
  opacity: 0; transition: opacity .25s;
  white-space: nowrap;
}
.cursor.is-hover .cursor__ring {
  transform: scale(1.7);
  background: var(--gold-soft);
  border-color: var(--gold);
}
.cursor.is-hover .cursor__label { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ── HUD ─────────────────────────────────── */
.hud-top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem clamp(1.2rem, 4vw, 3rem);
  transition: background .5s, backdrop-filter .5s;
}
.hud-top.is-solid {
  background: rgba(13, 15, 8, .55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.hud-logo img { height: clamp(20px, 2.6vw, 28px); width: auto; }
.hud-cta { margin-left: auto; }
.hud-level {
  position: fixed; bottom: 1.6rem; left: clamp(1.2rem, 4vw, 3rem); z-index: 50;
  display: flex; align-items: center; gap: .8rem;
  font-size: .65rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--cream-60);
}
.hud-level__num { color: var(--gold); font-variant-numeric: tabular-nums; }
.hud-level__sep { width: 34px; height: 1px; background: var(--cream-30); }
.hud-dots {
  position: fixed; right: clamp(1rem, 2.5vw, 2rem); top: 50%; z-index: 50;
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 14px;
}
.hud-dots { gap: 4px; }
.hud-dots a {
  width: 24px; height: 24px;
  display: grid; place-items: center;
}
.hud-dots a::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  border: 1px solid var(--cream-30);
  transition: background .4s, border-color .4s, transform .4s var(--ease-out);
}
.hud-dots a.is-active::before { background: var(--gold); border-color: var(--gold); transform: scale(1.3); }
.hud-progress {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  height: 2px; background: transparent;
}
.hud-progress span {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--cream));
}
@media (max-width: 720px) { .hud-dots { display: none; } .hud-level { display: none; } }


/* ── Botones ─────────────────────────────── */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: .7rem;
  padding: 1rem 2rem;
  font-family: var(--sans); font-size: .8rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  border-radius: 999px; cursor: pointer;
  border: 1px solid var(--cream-30);
  color: var(--cream); background: transparent;
  overflow: hidden;
  transition: color .4s, border-color .4s;
}
.btn::before {
  content: ""; position: absolute; inset: 0;
  background: var(--cream);
  transform: translateY(101%); border-radius: inherit;
  transition: transform .5s var(--ease-out);
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { color: var(--bg); border-color: var(--cream); }
.btn__txt { position: relative; z-index: 1; }
.btn__dot { position: relative; z-index: 1; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.btn--solid { border-color: var(--gold); color: var(--bg); background: var(--gold); }
.btn--solid::before { background: var(--cream); transform: translateY(101%); }
.btn--solid:hover { color: var(--bg); border-color: var(--cream); }

/* ── Secciones base ──────────────────────── */
.sec { position: relative; padding: clamp(3.2rem, 7.5vh, 5.5rem) clamp(1.2rem, 6vw, 6rem); }
.sec-tag {
  font-size: .7rem; letter-spacing: .35em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.6rem;
}
.sec-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.05; margin-bottom: 2rem;
}
.sec-title em { font-style: italic; color: var(--gold); }

[data-reveal], [data-arrive] { opacity: 0; transform: translateY(40px); }
html.no-js [data-reveal], html.reduced [data-reveal],
html.no-js [data-arrive], html.reduced [data-arrive] { opacity: 1; transform: none; }

/* ── 01 · Hero ───────────────────────────── */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding-top: 7rem; padding-bottom: 6.5rem;
}
.hero__beam {
  position: absolute; top: 0; left: 50%;
  width: clamp(120px, 18vw, 260px); height: 100%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, transparent 0%, rgba(200,168,90,.10) 35%, rgba(247,242,223,.16) 50%, rgba(200,168,90,.10) 65%, transparent 100%);
  filter: blur(28px);
  pointer-events: none;
}
.hero__inner { position: relative; width: 100%; max-width: 1100px; }
.hero__kicker {
  font-size: .7rem; letter-spacing: .4em; text-transform: uppercase;
  color: var(--cream-60); margin-bottom: 2.4rem;
}
.hero__title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.4rem, 7vw, 6.6rem);
  line-height: 1; letter-spacing: .01em;
  margin-bottom: 2.6rem;
}
.hero__line { display: block; overflow: hidden; }
.hero__word { display: inline-block; will-change: transform; }
.hero__word--italic { font-style: italic; font-weight: 400; }
.hero__word--gold { color: var(--gold); }
.hero__sub {
  color: var(--cream-60);
  font-size: clamp(.95rem, 1.4vw, 1.1rem);
  margin-bottom: 3rem;
}
.hero__scroll {
  position: absolute; bottom: 5.4rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .8rem;
  color: var(--cream-30); font-size: .62rem; letter-spacing: .3em; text-transform: uppercase;
  white-space: nowrap;
}
.hero__scroll-line { width: 1px; height: 52px; background: var(--cream-30); overflow: hidden; position: relative; }
.hero__scroll-line::after {
  content: ""; position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; background: var(--gold);
  transform: translateY(-100%);
  animation: scrollhint 2s var(--ease-out) infinite;
}
@keyframes scrollhint { 0% { transform: translateY(-100%) } 55% { transform: translateY(0) } 100% { transform: translateY(100%) } }
.hero__marquee {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1.1rem 0;
  border-top: 1px solid var(--cream-06);
  overflow: hidden;
}
.marquee__track {
  display: flex; white-space: nowrap; width: max-content;
  font-family: var(--serif); font-style: italic;
  font-size: 1.05rem; color: var(--cream-30);
}

/* ── 02 · Manifiesto ─────────────────────── */
.manifesto { display: flex; align-items: center; justify-content: center; }
.manifesto__pin { max-width: 1000px; margin: 0 auto; }
.manifesto__text {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.5rem, 3.4vw, 2.6rem);
  line-height: 1.4;
}
.js-words .w { color: var(--cream-12); transition: color .3s; }
.js-words .w.on { color: var(--cream); }
.manifesto__pills { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.pill {
  padding: .55rem 1.2rem; border-radius: 999px;
  border: 1px solid var(--cream-12);
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--cream-60);
  background: rgba(247,242,223,.03);
}

/* ── 03 · Sobre mí ───────────────────────── */
.about__grid {
  display: grid; grid-template-columns: minmax(280px, 460px) 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  max-width: 1250px; margin: 0 auto; align-items: center;
}
.about__media { position: relative; }
.about__frame {
  position: relative; border-radius: 14px; overflow: hidden;
  transform-style: preserve-3d;
  box-shadow: 0 40px 80px rgba(0,0,0,.5);
}
.about__frame img { aspect-ratio: 4/5; object-fit: cover; width: 100%; filter: saturate(.85) contrast(1.05); }
.about__frame-glow {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(200,168,90,.22), transparent 45%, rgba(13,15,8,.55));
  pointer-events: none;
}
.about__badge {
  position: absolute; bottom: -1.1rem; left: 50%; transform: translateX(-50%);
  white-space: nowrap;
  padding: .7rem 1.4rem; border-radius: 999px;
  background: var(--bg-2); border: 1px solid var(--cream-12);
  font-size: .62rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold);
}
.about__text p { color: var(--cream-60); margin-bottom: 1.4rem; max-width: 60ch; }
.about__text strong { color: var(--cream); font-weight: 500; }
@media (max-width: 900px) { .about__grid { grid-template-columns: 1fr; } .about__media { max-width: 380px; margin: 0 auto 2rem; } }

/* ── 05 · Caso ───────────────────────────── */
.case { max-width: 1250px; margin: 0 auto; }
.case__cat { font-size: .78rem; letter-spacing: .25em; text-transform: uppercase; color: var(--cream-30); margin-bottom: 3rem; }
.case__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem; margin-bottom: 2.4rem;
}
.case__step {
  border: 1px solid var(--cream-12); border-radius: 14px;
  padding: 1.8rem;
  background: rgba(247,242,223,.025);
}
.case__step-label {
  display: block;
  font-size: .65rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold); margin-bottom: .9rem;
}
.case__step p { color: var(--cream-60); font-size: .95rem; }
.case__stat { display: flex; align-items: baseline; gap: 1.4rem; flex-wrap: wrap; }
.case__stat-num {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(4.5rem, 12vw, 9rem); line-height: 1;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.case__stat-label { font-size: .8rem; letter-spacing: .3em; text-transform: uppercase; color: var(--cream-60); max-width: 200px; line-height: 1.8; }

/* ── 06 · FAQ ────────────────────────────── */
.faq { max-width: 900px; margin: 0 auto; }
.faq__list { margin-top: 1.6rem; }
.faq__item { border-bottom: 1px solid var(--cream-12); }
.faq__item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.15rem 0;
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  transition: color .3s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--gold); }
.faq__icon { position: relative; width: 16px; height: 16px; flex-shrink: 0; }
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; background: var(--gold);
  transition: transform .4s var(--ease-out);
}
.faq__icon::before { top: 7px; left: 0; width: 16px; height: 2px; }
.faq__icon::after { top: 0; left: 7px; width: 2px; height: 16px; }
.faq__item[open] .faq__icon::after { transform: scaleY(0); }
.faq__body { overflow: hidden; }
.faq__body p { color: var(--cream-60); padding-bottom: 1.6rem; max-width: 65ch; }

/* ── 07 · Contacto ───────────────────────── */
.contact { text-align: center; padding-bottom: 0; }
.contact__title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.8rem, 8.5vw, 7rem);
  line-height: 1; margin-bottom: 1.6rem;
}
.contact__title em { font-style: italic; color: var(--gold); }
.contact__sub { color: var(--cream-60); margin-bottom: 2.4rem; }
.contact__form {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  max-width: 760px; margin: 0 auto 2.2rem;
  text-align: left;
}
.field { display: flex; flex-direction: column; gap: .5rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .65rem; letter-spacing: .3em; text-transform: uppercase; color: var(--cream-60); }
.field input, .field select, .field textarea {
  background: rgba(247,242,223,.04);
  border: 1px solid var(--cream-12);
  border-radius: 10px;
  padding: .95rem 1.1rem;
  color: var(--cream);
  font-family: var(--sans); font-size: .95rem; font-weight: 300;
  transition: border-color .3s, background .3s;
  width: 100%;
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23c8a85a'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1.1rem center; }
.field select option { background: var(--bg-2); color: var(--cream); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold);
  background: rgba(200,168,90,.06);
}
.field textarea { resize: vertical; min-height: 120px; }
.contact__send { grid-column: 1 / -1; justify-self: center; margin-top: .6rem; }
.contact__direct {
  display: flex; flex-direction: column; gap: .4rem; align-items: center;
  margin-bottom: 3rem;
}
.contact__direct span { font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; color: var(--cream-30); margin-bottom: .6rem; }
.contact__direct a {
  font-family: var(--serif); font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  transition: color .3s;
}
.contact__direct a:hover { color: var(--gold); }
@media (max-width: 640px) { .contact__form { grid-template-columns: 1fr; } }

/* ── Footer ──────────────────────────────── */
.footer {
  border-top: 1px solid var(--cream-06);
  padding: 2.2rem 0 5.5rem;
  display: flex; flex-direction: column; align-items: center; gap: 1.4rem;
}
.footer__logo { height: 22px; width: auto; opacity: .8; }
.footer__copy { font-size: .75rem; color: rgba(247, 242, 223, .55); }
.footer__legal { display: flex; flex-wrap: wrap; gap: 1.4rem; justify-content: center; }
.footer__legal a {
  font-size: .68rem; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(247, 242, 223, .55); transition: color .3s;
}
.footer__legal a:hover { color: var(--gold); }

/* ── Reduced motion ──────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .grain { display: none; }
}

/* ── Constelación de servicios (home) ────── */
.cosmos { min-height: 100svh; display: flex; flex-direction: column; }
.cosmos__head { text-align: center; }
.cosmos__sub { color: var(--cream-60); margin-bottom: 1rem; }
.cosmos__map { position: relative; flex: 1; min-height: clamp(440px, 56vh, 640px); }
.cosmos__lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.cosmos__lines line { stroke: rgba(247, 242, 223, .16); stroke-width: 1; }
.star {
  position: absolute; left: var(--x); top: var(--y);
  translate: -50% -50%;
  display: flex; flex-direction: column; align-items: center; gap: .55rem;
  text-align: center; z-index: 2;
}
.star__orb {
  position: relative;
  width: clamp(58px, 7vw, 88px); height: clamp(58px, 7vw, 88px);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #fffbe9 0%, var(--star) 42%, rgba(13,15,8,.92) 78%);
  box-shadow: 0 0 26px var(--star), 0 0 90px rgba(200, 168, 90, .25);
  transition: transform .5s var(--ease-out), box-shadow .5s;
}
.star__orb::after {
  content: ""; position: absolute; inset: -12px; border-radius: 50%;
  border: 1px solid var(--star); opacity: .4;
  animation: halo 3.2s ease-out infinite;
}
@keyframes halo {
  0% { transform: scale(.75); opacity: .5; }
  100% { transform: scale(1.75); opacity: 0; }
}
.star:hover .star__orb { transform: scale(1.16); box-shadow: 0 0 48px var(--star), 0 0 130px rgba(200,168,90,.4); }
.star__num { font-size: .62rem; letter-spacing: .34em; color: var(--star, var(--gold)); }
.star__name { font-family: var(--serif); font-weight: 500; font-size: clamp(1.05rem, 1.7vw, 1.4rem); line-height: 1.15; }
.star__hook {
  font-family: var(--serif); font-style: italic;
  font-size: .95rem; color: var(--cream-60);
  opacity: 0; transform: translateY(8px);
  transition: opacity .4s, transform .4s var(--ease-out);
}
.star:hover .star__hook { opacity: 1; transform: translateY(0); }
@media (max-width: 899px) {
  .cosmos__map { min-height: 0; display: flex; flex-direction: column; gap: 1.9rem; padding: 1.2rem 0 0; }
  .cosmos__lines { display: none; }
  .cosmos__map::before {
    content: ""; position: absolute;
    left: clamp(28px, 3.5vw, 44px); top: 2.4rem; bottom: 2.2rem;
    width: 1px; background: var(--cream-12);
  }
  .star {
    position: static; translate: none;
    display: grid; grid-template-columns: auto 1fr;
    column-gap: 1.15rem; align-items: center;
    justify-items: start; text-align: left;
  }
  .star__orb { grid-row: 1 / 4; width: clamp(54px, 7vw, 64px); height: clamp(54px, 7vw, 64px); }
  .star__orb::after { animation-duration: 4.5s; }
  .star__hook { opacity: .6; }
}

/* ── Destello de viaje warp ──────────────── */
.warp-flash {
  position: fixed; inset: 0; z-index: 98; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at 50% 50%, #fffbe9 0%, #f0e3bb 28%, rgba(200,168,90,.9) 58%, rgba(13,15,8,.98) 100%);
}

/* ── Páginas de servicio ─────────────────── */
.page-service { --accent: var(--gold); }
.shero {
  min-height: 88svh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
}
.shero__planet {
  position: absolute; left: 50%; bottom: -34vh;
  transform: translateX(-50%);
  width: min(78vw, 720px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 18%, var(--accent) 0%, rgba(13,15,8,.94) 64%);
  box-shadow: 0 0 140px rgba(200, 168, 90, .3), 0 0 60px var(--accent);
  pointer-events: none;
}
.shero__planet::before, .shero__planet::after { content: ""; position: absolute; border-radius: 50%; }
/* variantes de planeta */
.planet--orbit::after {
  inset: -9%; border-radius: 50%;
  border: 1px solid var(--accent); opacity: .55;
  transform: rotateX(72deg);
  animation: orbitspin 14s linear infinite;
}
@keyframes orbitspin { to { transform: rotateX(72deg) rotate(360deg); } }
.planet--star { box-shadow: 0 0 190px var(--accent), 0 0 80px var(--accent); }
.planet--star::after {
  inset: 24%; border-radius: 50%;
  background: radial-gradient(circle, #fffbe9 0%, transparent 65%);
  animation: starbreath 4.5s ease-in-out infinite alternate;
}
@keyframes starbreath { from { opacity: .55; transform: scale(.92); } to { opacity: 1; transform: scale(1.06); } }
.planet--grid::before {
  inset: 0; overflow: hidden;
  background:
    repeating-linear-gradient(0deg, transparent 0 34px, rgba(247,242,223,.10) 34px 35px),
    repeating-linear-gradient(90deg, transparent 0 34px, rgba(247,242,223,.10) 34px 35px);
  -webkit-mask-image: radial-gradient(circle, #000 62%, transparent 70%);
  mask-image: radial-gradient(circle, #000 62%, transparent 70%);
}
.planet--pulse::after {
  inset: -4%; border: 1px solid var(--accent); opacity: 0;
  animation: pulsering 2.8s ease-out infinite;
}
.planet--pulse::before {
  inset: -14%; border: 1px solid var(--accent); border-radius: 50%; opacity: 0;
  animation: pulsering 2.8s ease-out infinite 1.4s;
}
@keyframes pulsering {
  0% { transform: scale(.86); opacity: .6; }
  100% { transform: scale(1.35); opacity: 0; }
}
.shero__inner { position: relative; z-index: 2; max-width: 1050px; padding: 0 1.2rem; }
.shero__num { font-size: .7rem; letter-spacing: .35em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.shero__flavor { font-family: var(--serif); font-style: italic; font-size: clamp(1rem, 1.8vw, 1.3rem); color: var(--cream-60); margin-bottom: 2rem; }
.shero__title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.5rem, 7.5vw, 6.2rem);
  line-height: 1.02; margin-bottom: 2rem;
}
.shero__title em { font-style: italic; color: var(--accent); }
.shero__linewrap { display: block; overflow: hidden; }
.shero__line { display: inline-block; will-change: transform; }
.shero__lead { color: var(--cream-60); max-width: 62ch; margin: 0 auto 1.6rem; font-size: clamp(.95rem, 1.4vw, 1.12rem); }
.shero__scroll {
  display: flex; flex-direction: column; align-items: center; gap: .8rem;
  color: var(--cream-30); font-size: .62rem; letter-spacing: .3em; text-transform: uppercase;
}
.shero__scroll .hero__scroll-line { width: 1px; height: 44px; background: var(--cream-30); overflow: hidden; position: relative; }
.shero__scroll .hero__scroll-line::after {
  content: ""; position: absolute; top: -100%; left: 0;
  width: 100%; height: 100%; background: var(--accent);
  animation: scrollhint 2s var(--ease-out) infinite;
}

/* el problema */
.sprob { max-width: 1000px; margin: 0 auto; }
.sprob__text {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.4rem, 3vw, 2.3rem);
  line-height: 1.42;
}

/* la solución */
.ssol { max-width: 1250px; margin: 0 auto; }
.ssol__intro { color: var(--cream-60); max-width: 68ch; margin-bottom: 1.8rem; font-size: 1.05rem; }
.ssol__intro strong { color: var(--cream); font-weight: 500; }
.sol-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.3rem; }
.sol-card {
  border: 1px solid var(--cream-12); border-radius: 14px;
  padding: 1.7rem;
  background: rgba(247, 242, 223, .025);
  transition: border-color .4s, background .4s;
}
.sol-card:hover { border-color: var(--accent); background: rgba(247, 242, 223, .05); }
.sol-card__n { display: block; font-family: var(--serif); font-style: italic; font-size: 1.6rem; color: var(--accent); margin-bottom: .7rem; }
.sol-card p { color: var(--cream-60); font-size: .95rem; }
.sol-card strong { color: var(--cream); font-weight: 500; }

/* el ascenso */
.asc { max-width: 860px; margin: 0 auto; position: relative; }
.asc__rail {
  position: absolute; left: 25px; top: 8.5rem; bottom: 2rem; width: 1px;
  background: var(--cream-12);
}
.asc__line-fill { display: block; width: 100%; height: 0; background: linear-gradient(180deg, var(--accent), var(--cream)); }
.asc__step { position: relative; padding-left: 78px; margin-bottom: 2.1rem; opacity: .3; transform: translateX(8px); transition: opacity .6s, transform .6s var(--ease-out); }
.asc__step.is-lit { opacity: 1; transform: translateX(0); }
.asc__dot {
  position: absolute; left: 12px; top: .2rem;
  width: 27px; height: 27px; border-radius: 50%;
  border: 1px solid var(--cream-30);
  display: grid; place-items: center;
  font-size: .62rem; color: var(--cream-60);
  background: var(--bg);
  transition: all .5s;
}
.asc__step.is-lit .asc__dot {
  border-color: var(--accent); color: var(--bg);
  background: var(--accent);
  box-shadow: 0 0 22px var(--accent);
}
.asc__step h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.25rem, 2.4vw, 1.7rem); margin-bottom: .5rem; }
.asc__step p { color: var(--cream-60); max-width: 60ch; }

/* beneficios + stat */
.sben { max-width: 1250px; margin: 0 auto; }
.sben .sol-grid { margin-bottom: 2.2rem; }
.sben__stat { display: flex; align-items: baseline; gap: 1.4rem; flex-wrap: wrap; }
.sben__stat-num {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(4rem, 11vw, 8rem); line-height: 1;
  color: var(--accent); font-variant-numeric: tabular-nums;
}
.sben__stat-label { font-size: .78rem; letter-spacing: .3em; text-transform: uppercase; color: var(--cream-60); max-width: 230px; line-height: 1.8; }

/* despegue (CTA final) */
.scta { text-align: center; padding-bottom: 4rem; }
.scta__title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.6rem, 7.5vw, 5.6rem);
  line-height: 1.02; margin-bottom: 1.4rem;
}
.scta__title em { font-style: italic; color: var(--accent); }
.scta__sub { color: var(--cream-60); margin-bottom: 2.6rem; }
.scta__next {
  display: inline-flex; align-items: center; gap: .9rem;
  margin-top: 2.6rem;
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  color: var(--cream-60);
  transition: color .4s;
}
.scta__next:hover { color: var(--accent); }
.scta__next-label { font-family: var(--sans); font-style: normal; font-size: .62rem; letter-spacing: .3em; text-transform: uppercase; color: var(--cream-30); }
.scta__legal { margin-top: 3rem; display: flex; flex-wrap: wrap; gap: 1.3rem; justify-content: center; }
.scta__legal a { font-size: .65rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(247, 242, 223, .55); transition: color .3s; }
.scta__legal a:hover { color: var(--accent); }

/* ── Acceso rápido a los mundos (hero) ───── */
.hero__quick {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: .6rem 1.6rem; margin-top: 2.2rem;
}
.hero__quick a {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .66rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--cream-60);
  transition: color .3s;
}
.hero__quick a:hover { color: var(--cream); }
.hero__quick i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--c, var(--gold));
  box-shadow: 0 0 10px var(--c, var(--gold));
}

/* gancho de las estrellas siempre legible */
.star__hook { opacity: .85; transform: none; }
.star:hover .star__hook { opacity: 1; }

/* ── Botón Mapa + Mapa del universo ──────── */
.hud-map {
  position: fixed; bottom: 1.45rem; left: 50%; z-index: 50;
  transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: .7rem;
  padding: .8rem 1.6rem; border-radius: 999px;
  border: 1px solid rgba(200, 168, 90, .45);
  background: rgba(13, 15, 8, .6);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-family: var(--sans); font-size: .64rem; font-weight: 500;
  letter-spacing: .28em; text-transform: uppercase;
  color: var(--cream); cursor: pointer;
  transition: color .3s, border-color .3s, background .3s;
}
.hud-map::after {
  content: ""; position: absolute; inset: -2px; border-radius: 999px;
  box-shadow: 0 0 26px 2px rgba(200, 168, 90, .35);
  opacity: 0; pointer-events: none;
  animation: mapglow 3.2s ease-in-out infinite;
}
.hud-map { position: fixed; }
.hud-map:hover { border-color: var(--gold); background: rgba(200, 168, 90, .14); }
.hud-map__ico { overflow: visible; }
.hud-map__ico line { stroke: var(--gold); stroke-width: 1; }
.hud-map__ico circle { fill: var(--gold); }
@keyframes mapglow {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

.starmap {
  position: fixed; inset: 0; z-index: 85;
  background: rgba(13, 15, 8, .84);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  opacity: 0; visibility: hidden;
  transition: opacity .5s, visibility .5s;
}
.starmap.is-open { opacity: 1; visibility: visible; }
.starmap__title {
  position: absolute; top: 13%; left: 0; right: 0;
  text-align: center;
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
}
.starmap__title em { font-style: italic; color: var(--gold); }
.starmap__close {
  position: absolute; top: 1.4rem; right: clamp(1.4rem, 4vw, 2.4rem);
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(247, 242, 223, .05);
  border: 1px solid var(--cream-12); cursor: pointer;
  transition: background .3s, transform .4s var(--ease-out);
}
.starmap__close span {
  position: absolute; top: 50%; left: 50%;
  width: 18px; height: 1.5px; background: var(--cream);
}
.starmap__close span:first-child { transform: translate(-50%, -50%) rotate(45deg); }
.starmap__close span:last-child { transform: translate(-50%, -50%) rotate(-45deg); }
.starmap__close:hover { background: var(--gold); transform: rotate(90deg); }
.starmap__close:hover span { background: var(--bg); }
.starmap__dest {
  position: absolute; left: var(--x); top: var(--y);
  transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: .7rem;
  text-align: center;
  opacity: 0; translate: 0 14px;
  transition: opacity .6s, translate .6s var(--ease-out);
}
.starmap.is-open .starmap__dest { opacity: 1; translate: 0 0; }
.starmap.is-open .starmap__dest:nth-child(3) { transition-delay: .05s; }
.starmap.is-open .starmap__dest:nth-child(4) { transition-delay: .1s; }
.starmap.is-open .starmap__dest:nth-child(5) { transition-delay: .15s; }
.starmap.is-open .starmap__dest:nth-child(6) { transition-delay: .2s; }
.starmap.is-open .starmap__dest:nth-child(7) { transition-delay: .25s; }
.starmap.is-open .starmap__dest:nth-child(8) { transition-delay: .3s; }
.starmap__orb {
  position: relative;
  width: clamp(56px, 6.5vw, 84px); height: clamp(56px, 6.5vw, 84px);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #fffbe9 0%, var(--c) 42%, rgba(13,15,8,.92) 78%);
  box-shadow: 0 0 26px var(--c), 0 0 90px rgba(200, 168, 90, .25);
  transition: transform .5s var(--ease-out), box-shadow .5s;
}
.starmap__orb::after {
  content: ""; position: absolute; inset: -12px; border-radius: 50%;
  border: 1px solid var(--c); opacity: .4;
  animation: halo 3.2s ease-out infinite;
}
.starmap__dest:hover .starmap__orb { transform: scale(1.16); box-shadow: 0 0 48px var(--c), 0 0 130px rgba(200,168,90,.4); }
.starmap__num { font-size: .6rem; letter-spacing: .34em; color: var(--c, var(--gold)); }
.starmap__label {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.05rem, 1.6vw, 1.4rem); line-height: 1.15;
  color: var(--cream); max-width: 190px;
  transition: color .3s;
}
.starmap__dest:hover .starmap__label { color: #fffbe9; }
.starmap__dest.is-here .starmap__orb { outline: 1px solid var(--cream-30); outline-offset: 7px; }
.starmap__here { font-size: .54rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
@media (max-width: 700px) {
  .starmap { overflow-y: auto; }
  .starmap__title { position: static; padding: 5.5rem 1rem 2rem; }
  .starmap__dest {
    position: static; transform: none;
    flex-direction: row; text-align: left;
    margin: 0 auto 1.6rem; width: min(320px, 84vw);
    translate: 0 14px;
  }
  .starmap__orb { flex-shrink: 0; width: 52px; height: 52px; }
  .starmap__label { max-width: none; }
}


/* cielo y constelación del mapa del universo */
.starmap__stars { position: absolute; inset: 0; overflow: hidden; }
.starmap__stars span {
  position: absolute; border-radius: 50%;
  background: var(--cream);
  opacity: .12;
  animation: twinkle 3s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: .08; } to { opacity: .85; } }
.starmap__lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.starmap__lines line {
  stroke: rgba(247, 242, 223, .22); stroke-width: 1;
  stroke-dasharray: 260; stroke-dashoffset: 260;
}
.starmap.is-open .starmap__lines line {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.3s ease .15s;
}
.starmap.is-open .starmap__lines line:nth-of-type(2) { transition-delay: .3s; }
.starmap.is-open .starmap__lines line:nth-of-type(3) { transition-delay: .45s; }
.starmap.is-open .starmap__lines line:nth-of-type(4) { transition-delay: .6s; }
.starmap.is-open .starmap__lines line:nth-of-type(5) { transition-delay: .75s; }
@media (max-width: 700px) { .starmap__lines { display: none; } }


/* ── Mini-universo inline (pie de página) ── */
.miniverse { margin-top: 3.2rem; }
.miniverse__title {
  font-family: var(--serif); font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  font-weight: 500; margin-bottom: 2.2rem;
}
.miniverse__title em { font-style: italic; color: var(--accent, var(--gold)); }
.miniverse__map { position: relative; height: 340px; max-width: 1050px; margin: 0 auto; }
.miniverse__map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.miniverse__map line { stroke: rgba(247, 242, 223, .16); stroke-width: 1; }
.mv-dest {
  position: absolute; left: var(--x); top: var(--y);
  translate: -50% -50%;
  display: flex; flex-direction: column; align-items: center; gap: .55rem;
  text-align: center;
}
.mv-orb {
  position: relative;
  width: clamp(44px, 4.6vw, 62px); height: clamp(44px, 4.6vw, 62px);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #fffbe9 0%, var(--c) 42%, rgba(13,15,8,.92) 78%);
  box-shadow: 0 0 22px var(--c), 0 0 70px rgba(200, 168, 90, .2);
  transition: transform .5s var(--ease-out), box-shadow .5s;
}
.mv-orb::after {
  content: ""; position: absolute; inset: -10px; border-radius: 50%;
  border: 1px solid var(--c); opacity: .4;
  animation: halo 3.2s ease-out infinite;
}
.mv-dest:hover .mv-orb { transform: scale(1.16); box-shadow: 0 0 40px var(--c), 0 0 110px rgba(200,168,90,.35); }
.mv-num { font-size: .58rem; letter-spacing: .34em; color: var(--c, var(--gold)); }
.mv-name {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(.95rem, 1.4vw, 1.2rem); line-height: 1.15;
  max-width: 170px;
}
.mv-dest:hover .mv-name { color: var(--cream); }
.mv-dest.is-here .mv-orb { outline: 1px solid var(--cream-30); outline-offset: 6px; }
.mv-here { font-size: .52rem; letter-spacing: .3em; text-transform: uppercase; color: var(--accent, var(--gold)); }
@media (max-width: 700px) {
  .miniverse__map { height: auto; display: flex; flex-direction: column; gap: 1.5rem; padding: .6rem 0 0; }
  .miniverse__map svg { display: none; }
  .mv-dest {
    position: static; translate: none;
    display: grid; grid-template-columns: auto 1fr;
    column-gap: 1.1rem; align-items: center;
    justify-items: start; text-align: left;
    width: min(340px, 86vw); margin: 0 auto;
  }
  .mv-orb { grid-row: 1 / 4; }
  .mv-name { max-width: none; }
}


/* ── Móvil: todo cabe y respira justo ────── */
@media (max-width: 640px) {
  .sec { padding-top: 2.6rem; padding-bottom: 2.6rem; }
  .hero { padding-top: 5.5rem; padding-bottom: 6.5rem; }
  .hero__kicker { font-size: .58rem; letter-spacing: .26em; margin-bottom: 1.5rem; }
  .hero__title { font-size: clamp(1.8rem, 8.2vw, 2.8rem); margin-bottom: 1.4rem; }
  .hero__sub { font-size: .9rem; margin-bottom: 1.7rem; }
  .hero__cta { width: 100%; }
  .hero__quick { gap: .5rem 1.1rem; margin-top: 1.5rem; }
  .hero__scroll { bottom: 4.6rem; }
  .btn { font-size: .66rem; letter-spacing: .13em; padding: .85rem 1.4rem; max-width: 100%; }
  .btn__txt { white-space: normal; }
  .sec-title { font-size: clamp(1.9rem, 8.5vw, 2.7rem); }
  .shero { min-height: 78svh; }
  .shero__title { font-size: clamp(2rem, 10vw, 3rem); margin-bottom: 1.3rem; }
  .shero__flavor { margin-bottom: 1.2rem; }
  .sprob__text { font-size: clamp(1.25rem, 5.6vw, 1.7rem); }
  .contact__title { font-size: clamp(2.2rem, 11vw, 3.6rem); }
  .scta__title { font-size: clamp(2rem, 10vw, 3rem); }
  .asc__step { padding-left: 62px; margin-bottom: 1.7rem; }
  .asc__rail { left: 19px; top: 7rem; }
  .asc__dot { left: 6px; }
  .case__stat-num { font-size: clamp(3.4rem, 16vw, 5rem); }
  .manifesto__text { font-size: clamp(1.3rem, 5.8vw, 1.8rem); }
  .miniverse { margin-top: 2.2rem; }
}

/* botón de efectos de viaje */
.hud-fx {
  position: fixed; bottom: 1.45rem;
  right: clamp(1.2rem, 4vw, 3rem);
  z-index: 50;
  width: 40px; height: 34px;
  background: none; border: none; cursor: pointer;
  display: grid; place-items: center;
  opacity: .85;
}
.hud-fx svg path {
  stroke: var(--cream-30); stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
  transition: stroke .4s;
}
.hud-fx.is-on svg path { stroke: var(--gold); }
.hud-fx.is-on svg path:first-child { animation: fxpulse 1.6s ease-in-out infinite; }
.hud-fx.is-on svg path:last-child { animation: fxpulse 1.6s ease-in-out infinite .3s; }
@keyframes fxpulse { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
.hud-fx::after {
  content: ""; position: absolute; left: 6px; right: 6px; top: 50%;
  height: 1.5px; background: var(--cream-60);
  transform: rotate(-38deg) scaleX(0);
  transition: transform .3s;
}
.hud-fx:not(.is-on)::after { transform: rotate(-38deg) scaleX(1); }

/* ── Portfolio ────────────────────────────── */
.pf-group { max-width: 1250px; margin: 0 auto; }
.pf-item {
  display: grid; grid-template-columns: minmax(280px, 480px) 1fr;
  gap: clamp(1.6rem, 4vw, 3.5rem);
  align-items: center;
  margin-top: 2.6rem;
  padding: clamp(1.4rem, 3vw, 2.4rem);
  border: 1px solid var(--cream-12); border-radius: 18px;
  background: rgba(247, 242, 223, .025);
  transition: border-color .5s;
}
.pf-item:hover { border-color: var(--c, var(--gold)); }
.pf-item:nth-of-type(even) { grid-template-columns: 1fr minmax(280px, 480px); }
.pf-item:nth-of-type(even) .pf-media { order: 2; }
.pf-media { position: relative; border-radius: 12px; overflow: hidden; transform-style: preserve-3d; }
.pf-media img { aspect-ratio: 4/3; object-fit: cover; width: 100%; filter: saturate(.9) contrast(1.04); transition: transform .8s var(--ease-out); }
.pf-item:hover .pf-media img { transform: scale(1.05); }
.pf-demo {
  position: absolute; top: .9rem; left: .9rem;
  padding: .35rem .8rem; border-radius: 999px;
  background: rgba(13, 15, 8, .72); backdrop-filter: blur(6px);
  border: 1px solid var(--cream-12);
  font-size: .55rem; letter-spacing: .26em; text-transform: uppercase;
  color: var(--cream-60);
}
.pf-meta { font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--c, var(--gold)); margin-bottom: .7rem; }
.pf-title { font-family: var(--serif); font-weight: 500; font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.1; margin-bottom: .9rem; }
.pf-reto { color: var(--cream-60); font-size: .95rem; margin-bottom: 1.1rem; }
.pf-reto strong { color: var(--cream); font-weight: 500; }
.pf-label { font-size: .6rem; letter-spacing: .3em; text-transform: uppercase; color: var(--cream-30); margin-bottom: .5rem; }
.pf-how { margin: 0 0 1.3rem 1.1rem; color: var(--cream-60); font-size: .92rem; }
.pf-how li { margin-bottom: .35rem; padding-left: .25rem; }
.pf-how li::marker { content: "— "; color: var(--c, var(--gold)); }
.pf-stats { display: flex; flex-wrap: wrap; gap: 1.1rem 2.2rem; border-top: 1px solid var(--cream-12); padding-top: 1.1rem; }
.pf-stat { display: flex; flex-direction: column; }
.pf-num { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.1; color: var(--c, var(--gold)); font-variant-numeric: tabular-nums; }
.pf-cap { font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--cream-60); margin-top: .25rem; max-width: 150px; }
@media (max-width: 899px) {
  .pf-item, .pf-item:nth-of-type(even) { grid-template-columns: 1fr; }
  .pf-item:nth-of-type(even) .pf-media { order: 0; }
}

/* tarjetas de proyecto (home + órbitas) */
.pfhome { max-width: 1250px; margin: 0 auto; }
.pfhome__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.3rem; margin-top: .6rem; }
.pfhome__grid--two { max-width: 900px; }
.pfcard {
  position: relative; display: block;
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--cream-12);
  transition: border-color .4s, transform .5s var(--ease-out);
}
.pfcard:hover { border-color: var(--c, var(--gold)); transform: translateY(-6px); }
.pfcard img { aspect-ratio: 16/11; object-fit: cover; width: 100%; filter: saturate(.85) brightness(.8); transition: transform .8s var(--ease-out), filter .5s; }
.pfcard:hover img { transform: scale(1.06); filter: saturate(1) brightness(.9); }
.pfcard__body {
  position: absolute; inset: auto 0 0 0;
  padding: 2.4rem 1.2rem 1.1rem;
  display: flex; flex-direction: column; gap: .2rem;
  background: linear-gradient(180deg, transparent, rgba(13, 15, 8, .92) 55%);
}
.pfcard__svc { font-size: .56rem; letter-spacing: .26em; text-transform: uppercase; color: var(--c, var(--gold)); }
.pfcard__client { font-family: var(--serif); font-weight: 500; font-size: 1.25rem; }
.pfcard__metric { font-size: .78rem; color: var(--cream-60); }
.pfhome__cta { text-align: center; margin-top: 2rem; }
.pforbit { max-width: 1250px; margin: 0 auto; }


/* ── Menú superior + drawer lateral ──────── */
.hud-nav {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: 1.5rem;
}
.hud-nav a {
  position: relative;
  font-size: .6rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  color: var(--cream-60); padding: .3rem 0;
  transition: color .3s;
}
.hud-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease-out);
}
.hud-nav a:hover { color: var(--cream); }
.hud-nav a:hover::after { transform: scaleX(1); }
.hud-nav a.is-active { color: var(--gold); }
.hud-nav a.is-active::after { transform: scaleX(1); }

.hud-burger {
  display: none;
  width: 42px; height: 42px; margin-left: 1rem;
  border: 1px solid var(--cream-12); border-radius: 50%;
  background: rgba(13, 15, 8, .5); cursor: pointer;
  position: relative; flex-shrink: 0;
}
.hud-burger span {
  position: absolute; left: 12px; right: 12px;
  height: 1.5px; background: var(--cream);
  transition: transform .4s var(--ease-out), opacity .3s, top .4s var(--ease-out);
}
.hud-burger span:nth-child(1) { top: 15px; }
.hud-burger span:nth-child(2) { top: 20px; }
.hud-burger span:nth-child(3) { top: 25px; }
.hud-burger.is-open span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.hud-burger.is-open span:nth-child(2) { opacity: 0; }
.hud-burger.is-open span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

@media (max-width: 1099px) {
  .hud-nav { display: none; }
  .hud-burger { display: block; }
}
@media (max-width: 480px) { .hud-cta { display: none; } }

.drawer-back {
  position: fixed; inset: 0; z-index: 95;
  background: rgba(13, 15, 8, .6);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden;
  transition: opacity .4s, visibility .4s;
}
.drawer-back.is-open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 96;
  width: min(330px, 88vw);
  background: linear-gradient(200deg, #171a0f, var(--bg) 60%);
  border-left: 1px solid var(--cream-12);
  transform: translateX(102%);
  transition: transform .55s var(--ease-out);
  display: flex; flex-direction: column;
  padding: 5.2rem 2rem 1.8rem;
  overflow-y: auto;
}
.drawer.is-open { transform: none; }
.drawer__title {
  font-family: var(--serif); font-size: 1.25rem; font-weight: 500;
  color: var(--cream-60); margin-bottom: 1.6rem;
}
.drawer__title em { font-style: italic; color: var(--gold); }
.dlink {
  display: flex; align-items: center; gap: .95rem;
  padding: .68rem 0;
  font-family: var(--serif); font-weight: 500; font-size: 1.35rem;
  border-bottom: 1px solid var(--cream-06);
  transition: color .3s, padding-left .3s;
}
.dlink:hover { color: var(--gold); padding-left: .4rem; }
.dlink i {
  width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0;
  background: radial-gradient(circle at 35% 30%, #fffbe9, var(--c) 55%);
  box-shadow: 0 0 10px var(--c);
}
.dlink small {
  font-family: var(--sans); font-size: .55rem; letter-spacing: .3em;
  color: var(--cream-30); display: block; line-height: 1;
}
.dlink.is-active { color: var(--gold); }
.dlink__here {
  margin-left: auto;
  font-family: var(--sans); font-style: normal;
  font-size: .52rem; letter-spacing: .26em; text-transform: uppercase;
  color: var(--cream-30);
}
.drawer__foot {
  margin-top: auto; padding-top: 1.6rem;
  display: flex; flex-direction: column; gap: .3rem;
}
.drawer__foot a { font-family: var(--serif); font-size: 1.05rem; color: var(--cream-60); transition: color .3s; }
.drawer__foot a:hover { color: var(--gold); }


/* ── Página de proyecto ───────────────────── */
.pj-hero { min-height: 62svh; }
.pj-coversec { max-width: 1250px; margin: 0 auto; }
.pj-cover { position: relative; border-radius: 18px; overflow: hidden; box-shadow: 0 40px 90px rgba(0,0,0,.5); }
.pj-cover img { width: 100%; aspect-ratio: 21/9; object-fit: cover; filter: saturate(.9) contrast(1.04); }
.pj-ficha {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.1rem; margin-top: 1.6rem;
  border: 1px solid var(--cream-12); border-radius: 14px;
  padding: 1.4rem 1.6rem;
  background: rgba(247, 242, 223, .025);
}
.pj-ficha span { display: block; font-size: .56rem; letter-spacing: .28em; text-transform: uppercase; color: var(--cream-30); margin-bottom: .3rem; }
.pj-ficha strong { font-weight: 400; font-family: var(--serif); font-size: 1.05rem; color: var(--cream); }
.pj-galsec { max-width: 1250px; margin: 0 auto; }
.pj-gal { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
.pj-gal__item { position: relative; border-radius: 14px; overflow: hidden; transform-style: preserve-3d; }
.pj-gal__item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; filter: saturate(.9); }
.pj-entregables { margin-top: 2rem; }
.pj-stats { border-top: none; padding-top: 0; gap: 1.4rem 3rem; }
.pj-stats .pf-num { font-size: clamp(2.4rem, 5vw, 3.6rem); color: var(--accent); }
.pj-quote {
  margin-top: 2.4rem; padding: 1.8rem 2rem;
  border-left: 2px solid var(--accent);
  background: rgba(247, 242, 223, .03);
  border-radius: 0 14px 14px 0;
  max-width: 720px;
}
.pj-quote p { font-family: var(--serif); font-style: italic; font-size: clamp(1.15rem, 2.2vw, 1.5rem); line-height: 1.5; margin-bottom: .8rem; }
.pj-quote cite { font-style: normal; font-size: .62rem; letter-spacing: .26em; text-transform: uppercase; color: var(--cream-30); }
.pf-open {
  display: inline-flex; align-items: center; gap: .6rem;
  margin-top: 1.4rem;
  font-size: .7rem; font-weight: 500; letter-spacing: .26em; text-transform: uppercase;
  color: var(--c, var(--gold));
}
.pf-open i {
  font-style: normal;
  transition: transform .35s var(--ease-out);
}
.pf-open:hover i { transform: translateX(6px); }
a.pf-media { display: block; cursor: pointer; }
@media (max-width: 700px) { .pj-gal { grid-template-columns: 1fr; } .pj-cover img { aspect-ratio: 16/10; } }


/* botones del despegue: centrados y con aire */
.scta__btns { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1rem; }


/* ── Popup de contacto ────────────────────── */
.cmodal {
  position: fixed; inset: 0; z-index: 97;
  display: grid; place-items: center;
  padding: 1rem;
  visibility: hidden;
  transition: visibility .45s;
}
.cmodal.is-open { visibility: visible; }
.cmodal__back {
  position: absolute; inset: 0;
  background: rgba(13, 15, 8, .78);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  opacity: 0; transition: opacity .45s;
}
.cmodal.is-open .cmodal__back { opacity: 1; }
.cmodal__panel {
  position: relative;
  width: min(680px, 94vw); max-height: 88svh; overflow-y: auto;
  background: linear-gradient(200deg, #171a0f, var(--bg) 60%);
  border: 1px solid var(--cream-12); border-radius: 18px;
  padding: 2.6rem clamp(1.4rem, 4vw, 2.8rem) 2.2rem;
  transform: translateY(28px) scale(.97); opacity: 0;
  transition: transform .5s var(--ease-out), opacity .45s;
  overscroll-behavior: contain;
}
.cmodal.is-open .cmodal__panel { transform: none; opacity: 1; }
.cmodal__close { top: 1rem; right: 1rem; width: 44px; height: 44px; }
.cmodal__title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1.05;
  margin-bottom: .5rem;
}
.cmodal__title em { font-style: italic; color: var(--accent, var(--gold)); }
.cmodal__sub { color: var(--cream-60); font-size: .92rem; margin-bottom: 1.8rem; }
.cmodal__form { margin: 0; max-width: none; }


/* ── Tema cielo (dentro del planeta Portfolio) ── */
body.theme-light {
  --bg: #f3edd8;
  --bg-2: #ece3c8;
  --cream: #23260f;
  --cream-60: rgba(35, 38, 15, .64);
  --cream-30: rgba(35, 38, 15, .36);
  --cream-12: rgba(35, 38, 15, .15);
  --cream-06: rgba(35, 38, 15, .08);
  --gold: #a8853b;
  --gold-soft: rgba(168, 133, 59, .18);
  background: var(--bg);
}
body.theme-light .grain { opacity: .06; mix-blend-mode: multiply; }
body.theme-light .hud-top.is-solid { background: rgba(243, 237, 216, .6); }
body.theme-light .drawer,
body.theme-light .cmodal__panel { background: linear-gradient(200deg, #efe6ca, #f3edd8 60%); }
body.theme-light .pfcard__body { background: linear-gradient(180deg, transparent, rgba(243, 237, 216, .95) 58%); }
body.theme-light .pfcard img { filter: saturate(.92) brightness(.97); }
body.theme-light .pf-demo { background: rgba(243, 237, 216, .82); color: rgba(35,38,15,.6); }
body.theme-light .asc__step.is-lit .asc__dot { color: #f3edd8; }
body.theme-light .btn--solid { color: #f7f2df; }
body.theme-light .sol-card, body.theme-light .pj-ficha, body.theme-light .pj-quote { background: rgba(35, 38, 15, .04); }
body.theme-light ::selection { background: var(--gold); color: #f7f2df; }

body.theme-light .hud-logo img,
body.theme-light .footer__logo { filter: brightness(0) saturate(0); opacity: .82; }


/* despegue de las páginas-cielo: sección nocturna */
body.theme-light .scta {
  --cream: #f7f2df;
  --cream-60: rgba(247, 242, 223, .6);
  --cream-30: rgba(247, 242, 223, .3);
  --cream-12: rgba(247, 242, 223, .12);
  --cream-06: rgba(247, 242, 223, .06);
  --gold: #c8a85a;
  color: var(--cream);
}
body.theme-light .scta .scta__title em,
body.theme-light .scta .miniverse__title em,
body.theme-light .scta .mv-here { color: var(--gold); }
body.theme-light .scta .btn--solid { background: var(--gold); border-color: var(--gold); }


/* durante el salto, el fondo (con sus estelas) pasa por encima del contenido */
body.is-warping #gl { z-index: 96; }


/* ── Control de volumen de la música ──────── */
.hud-vol {
  position: fixed; bottom: 1.35rem;
  right: calc(clamp(1.2rem, 4vw, 3rem) + 52px); z-index: 50;
  display: flex; align-items: center; gap: .6rem;
  padding: .45rem .8rem .45rem .6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: border-color .35s, background .35s;
}
.hud-vol:hover {
  border-color: var(--cream-12);
  background: rgba(13, 15, 8, .45);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.hud-vol__ico { display: flex; align-items: flex-end; gap: 3px; height: 20px; }
.hud-vol__ico span {
  width: 3px; border-radius: 2px; background: var(--gold);
  animation: eq 1.1s ease-in-out infinite;
}
.hud-vol__ico span:nth-child(1) { height: 6px; animation-delay: 0s; }
.hud-vol__ico span:nth-child(2) { height: 14px; animation-delay: .25s; }
.hud-vol__ico span:nth-child(3) { height: 9px; animation-delay: .5s; }
.hud-vol__ico span:nth-child(4) { height: 12px; animation-delay: .12s; }
@keyframes eq { 0%, 100% { transform: scaleY(.45); } 50% { transform: scaleY(1); } }
.hud-vol.is-mute .hud-vol__ico span { background: var(--cream-30); animation: none; transform: scaleY(.5); }

.hud-vol__range {
  -webkit-appearance: none; appearance: none;
  width: 74px; height: 3px; border-radius: 2px; cursor: pointer;
  background: linear-gradient(90deg, var(--gold) var(--v, 60%), var(--cream-12) var(--v, 60%));
  outline: none;
}
.hud-vol__range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--cream); border: none; cursor: pointer;
  box-shadow: 0 0 8px rgba(200, 168, 90, .6);
}
.hud-vol__range::-moz-range-thumb {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--cream); border: none; cursor: pointer;
}
@media (prefers-reduced-motion: reduce) { .hud-vol__ico span { animation: none; } }
@media (max-width: 520px) {
  .hud-vol { gap: .45rem; padding: .4rem .6rem; }
  .hud-vol__range { width: 56px; }
}


/* ── Estados del formulario ───────────────── */
.form-trap { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.form-note {
  grid-column: 1 / -1;
  margin-top: .4rem; min-height: 1.2rem;
  font-size: .82rem; letter-spacing: .02em; text-align: center;
  opacity: 0; transform: translateY(6px);
  transition: opacity .35s, transform .35s var(--ease-out);
}
.form-note.is-wait, .form-note.is-ok, .form-note.is-err { opacity: 1; transform: none; }
.form-note.is-wait { color: var(--cream-60); }
.form-note.is-ok { color: var(--gold); }
.form-note.is-err { color: #e08a6a; }
.form-note a { color: inherit; text-decoration: underline; text-underline-offset: 4px; }
.contact__send:disabled { opacity: .6; cursor: wait; }


/* ── Zona legal ───────────────────────────── */
.legal { padding-top: 8.5rem; }
.legal__inner { max-width: 860px; margin: 0 auto; }
.legal__fecha { font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; color: var(--cream-30); margin-bottom: 2.6rem; }
.legal h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.35rem, 2.6vw, 1.8rem);
  margin: 2.4rem 0 .8rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--cream-06);
}
.legal p { color: var(--cream-60); margin-bottom: 1rem; font-size: .95rem; }
.legal strong { color: var(--cream); font-weight: 500; }
.legal ul { margin: 0 0 1.2rem 1.2rem; color: var(--cream-60); font-size: .95rem; }
.legal li { margin-bottom: .5rem; padding-left: .25rem; }
.legal li::marker { content: "— "; color: var(--gold); }
.legal a { color: var(--gold); text-decoration: underline; text-underline-offset: 4px; }
.legal__nav {
  margin-top: 3.4rem; padding-top: 1.6rem;
  border-top: 1px solid var(--cream-12);
  display: flex; flex-wrap: wrap; gap: 1.3rem; align-items: baseline;
}
.legal__nav span { font-size: .62rem; letter-spacing: .28em; text-transform: uppercase; color: var(--cream-30); }
.legal__nav a { color: var(--cream-60); text-decoration: none; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.legal__nav a:hover { color: var(--gold); }

.footer__geo { font-size: .68rem; color: rgba(247, 242, 223, .55); max-width: 60ch; text-align: center; line-height: 1.7; }


/* ── WhatsApp flotante ────────────────────── */
.hud-wa {
  position: fixed; right: clamp(1.2rem, 4vw, 3rem); bottom: 5rem; z-index: 50;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: #1fae54; color: #fff;
  box-shadow: 0 6px 22px rgba(31, 174, 84, .35);
  transition: transform .35s var(--ease-out), box-shadow .35s;
}
.hud-wa:hover { transform: scale(1.12) translateY(-2px); box-shadow: 0 10px 30px rgba(31, 174, 84, .5); }
body.theme-light .hud-wa { box-shadow: 0 6px 20px rgba(31, 120, 60, .3); }

/* ── Banner de cookies (tarjeta compacta crema) ── */
.consent {
  position: fixed; left: 50%; bottom: 1rem; z-index: 97;
  width: 420px; max-width: calc(100vw - 2rem);
  background: #f3edd8; color: #23260f;
  border: 1px solid rgba(35, 38, 15, .18); border-radius: 12px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .45);
  padding: .85rem 1rem .8rem;
  transform: translate(-50%, 130%); opacity: 0;
  transition: transform .55s var(--ease-out), opacity .4s;
}
.consent.is-in { transform: translate(-50%, 0); opacity: 1; }
.consent__txt { margin: 0 0 .65rem; font-size: .72rem; line-height: 1.55; color: rgba(35, 38, 15, .88); }
.consent__txt a { color: #23260f; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.consent__botones { display: flex; gap: .9rem; align-items: center; }
.cbtn.si {
  font-family: var(--sans); font-size: .6rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  background: #23260f; color: #f3edd8; border: 1px solid #23260f;
  padding: .6rem 1.3rem; border-radius: 999px; cursor: pointer;
  transition: opacity .25s;
}
.cbtn.si:hover { opacity: .85; }
.clink {
  font-family: var(--sans); font-size: .62rem; letter-spacing: .06em;
  background: none; border: none; padding: 0; cursor: pointer;
  color: rgba(35, 38, 15, .72);
  text-decoration: underline; text-underline-offset: 3px;
  transition: color .25s;
}
.clink:hover { color: #23260f; }


/* en móvil el mapa vive en el menú lateral: fuera el botón flotante */
@media (max-width: 720px) { .hud-map { display: none; } }


/* capas compuestas para las animaciones perpetuas (evita repintados por frame) */
.hud-map::after, .star__orb::after, .mv-orb::after, .starmap__orb::after,
.planet--orbit::after, .planet--pulse::before, .planet--pulse::after, .planet--star::after {
  will-change: transform, opacity;
}
.hud-vol__ico span { will-change: transform; }
.marquee__track { will-change: transform; }
