/* ==========================================================================
   SOLAR · ESTILOS  (mismo lenguaje visual que marsseia.com y marsseia.com/solar)
   Ciruela oscuro + dorado + terracota, Marcellus en mayúsculas, Space Grotesk
   espaciado, sol sobre dunas, rayos, estrellas fugaces y grano.
   Mobile-first. Todo se cambia desde los tokens de :root.
   ========================================================================== */

@font-face { font-family: "Marcellus"; src: url("../assets/fonts/marcellus.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("../assets/fonts/space-grotesk-var.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }

/* ── Tokens (los mismos de marsseia.com) ───────────────────────────────── */
:root {
  --bg:         #130F17;
  --deep:       #0b0810;
  --panel:      #1C1521;
  --panel-2:    #241A29;
  --gold:       #E7B559;
  --terracotta: #C96A3E;
  --burnt:      #8C3B22;
  --pink:       #E39AA0;
  --purple:     #8C6BB5;
  --ivory:      #F6EFE2;
  --muted:      #C6BAAE;
  --sun-core:   #FFF1C9;
  --sun-mid:    #F2B95A;

  --display: "Marcellus", "Cormorant Garamond", Georgia, serif;
  --sans:    "Space Grotesk", "Helvetica Neue", system-ui, -apple-system, sans-serif;

  --ease:   cubic-bezier(.22, .61, .36, 1);
  --gutter: clamp(22px, 6vw, 56px);
  --safe-b: env(safe-area-inset-bottom, 0px);

  --horizon: clamp(350px, 43vh, 470px);      /* línea del horizonte del hero */
  --S: min(58vw, 300px);                      /* diámetro del sol */

  color-scheme: dark;
}
@supports (height: 100svh) { :root { --horizon: clamp(350px, 43svh, 470px); } }

/* ── Base ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); overflow-x: clip; }
body {
  margin: 0;
  font: 400 1rem/1.6 var(--sans);
  color: var(--ivory);
  background: var(--bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
em { font-style: normal; }
::selection { background: var(--gold); color: var(--bg); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
button { font-family: inherit; }
a, button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: 1100px; margin-inline: auto; padding-inline: var(--gutter); }

/* Grano de película + estrellas (como en marsseia.com) */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .96  0 0 0 0 .93  0 0 0 0 .88  0 0 0 .13 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.stars {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .4;
  background-image:
    radial-gradient(1.4px 1.4px at 8% 12%, rgba(246,239,226,.9), transparent 60%),
    radial-gradient(1px 1px at 22% 68%, rgba(246,239,226,.7), transparent 60%),
    radial-gradient(1.6px 1.6px at 39% 24%, rgba(246,239,226,.6), transparent 60%),
    radial-gradient(1px 1px at 54% 82%, rgba(246,239,226,.55), transparent 60%),
    radial-gradient(1.8px 1.8px at 68% 8%, rgba(246,239,226,.75), transparent 60%),
    radial-gradient(1px 1px at 77% 46%, rgba(246,239,226,.6), transparent 60%),
    radial-gradient(1.4px 1.4px at 91% 71%, rgba(246,239,226,.7), transparent 60%),
    radial-gradient(1px 1px at 12% 92%, rgba(246,239,226,.5), transparent 60%),
    radial-gradient(1.6px 1.6px at 85% 28%, rgba(246,239,226,.55), transparent 60%),
    radial-gradient(1px 1px at 47% 55%, rgba(246,239,226,.45), transparent 60%);
  background-size: 560px 560px;
  animation: twinkle 9s ease-in-out infinite;
}
@keyframes twinkle { 0%, 100% { opacity: .3; } 50% { opacity: .5; } }

main, .foot { position: relative; z-index: 1; }
main { counter-reset: sec 1; }                 /* el hero es el 01 */

/* ── Tipografía ────────────────────────────────────────────────────────── */
.eyebrow {
  font: 500 .6875rem/1.6 var(--sans);
  letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold);
}
.eyebrow--gold { color: var(--gold); }
.sec { counter-increment: sec; }
.eyebrow--num::before { content: counter(sec, decimal-leading-zero) " — "; opacity: .8; }

.display {
  font: 400 clamp(1.9rem, 8.6vw, 3.6rem)/1.06 var(--display);
  letter-spacing: .05em; text-transform: uppercase;
  text-shadow: 0 2px 26px rgba(19, 10, 24, .4);
  text-wrap: balance;
}
.display--hero { font-size: clamp(2.05rem, 10.2vw, 4.2rem); }
.display--md { font-size: clamp(1.5rem, 6.4vw, 2.5rem); line-height: 1.12; }

.lede { font: 400 .9375rem/1.62 var(--sans); max-width: 33ch; margin-inline: auto; color: rgba(246, 239, 226, .82); text-wrap: balance; }
.micro { max-width: 36ch; margin-inline: auto; font: 400 .71875rem/1.55 var(--sans); color: rgba(246, 239, 226, .58); text-wrap: balance; }

/* Palabra clave ~así~ : dorado con sus virgulillas */
.key { color: var(--gold); white-space: nowrap; }
.key::before, .key::after { content: "~"; display: inline-block; font-size: .5em; vertical-align: .5em; opacity: .75; }
.key::before { margin-right: .12em; }
.key::after  { margin-left: .06em; }

.s-link {
  position: relative; display: inline-block;
  padding-bottom: 4px; border-bottom: 1px solid rgba(246, 239, 226, .4);
  font: 500 .71875rem/1.2 var(--sans); letter-spacing: .18em; text-transform: uppercase; text-decoration: none;
  color: rgba(246, 239, 226, .92);
  transition: color .3s, border-color .3s;
}
.s-link::after { content: ""; position: absolute; inset: -14px -8px; }
.s-link:hover { color: var(--sun-core); border-color: var(--gold); }
.s-link[data-unset] { cursor: default; }

/* ── Botones (mismo estilo que marsseia.com/solar) ─────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; min-height: 56px; padding: 0 30px;
  border: 0; border-radius: 999px;
  background: var(--gold); color: #1a0f14;
  font: 600 .78125rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: background .3s, color .3s, box-shadow .4s, transform .3s, opacity .3s;
}
.btn:hover { background: #f6cd85; box-shadow: 0 0 40px rgba(242, 185, 90, .5); }
.btn:active { transform: scale(.985); }
.btn[disabled] { opacity: .55; cursor: progress; }
.btn--ghost {
  width: auto; min-width: 220px;
  background: rgba(19, 10, 22, .55); color: #fff1c9;
  box-shadow: inset 0 0 0 1px rgba(255, 226, 170, .75), 0 0 44px rgba(242, 185, 89, .24);
  font-weight: 500; letter-spacing: .2em;
}
.btn--ghost:hover, .btn--ghost:focus-visible { background: var(--gold); color: #1a0f14; box-shadow: inset 0 0 0 1px var(--gold), 0 0 70px rgba(242, 185, 89, .6); }
.btn[data-unset] { cursor: default; }

/* ── Revelado suave (solo con JS) ──────────────────────────────────────── */
.js .reveal { opacity: 0; transform: translate3d(0, 18px, 0); transition: opacity 1.3s var(--ease) var(--d, 0s), transform 1.3s var(--ease) var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ── Portal de entrada ─────────────────────────────────────────────────── */
@property --pr { syntax: "<percentage>"; inherits: false; initial-value: 0%; }
.portal {
  display: none; position: fixed; inset: 0; z-index: 200; pointer-events: none;
  background: radial-gradient(circle at 50% 47%, rgba(255, 190, 90, .95) 0, rgba(238, 134, 58, .45) 7px, transparent 90px), #07030a;
}
.js .portal { display: block; }
.js .portal.is-open { animation: portal-fade 1.4s ease .1s forwards; }
.js.portal-rich .portal.is-open {
  -webkit-mask-image: radial-gradient(circle at 50% 47%, transparent var(--pr), #000 calc(var(--pr) + 16%));
          mask-image: radial-gradient(circle at 50% 47%, transparent var(--pr), #000 calc(var(--pr) + 16%));
  animation: portal-open 2.1s cubic-bezier(.5, .05, .2, 1) .1s forwards;
}
@keyframes portal-open { from { --pr: 0%; } to { --pr: 135%; } }
@keyframes portal-fade { to { opacity: 0; } }

/* ── Navegación ────────────────────────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 80;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(env(safe-area-inset-top, 0px) + 6px) var(--gutter) 14px;
  color: var(--ivory);
}
.nav::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, rgba(19, 15, 23, .92) 0, rgba(19, 15, 23, .92) 55%, transparent 100%); opacity: 0; transition: opacity .5s var(--ease); }
.nav.is-scrolled::before { opacity: 1; }
.nav__mark { font: 400 1rem/1 var(--display); letter-spacing: .3em; text-transform: uppercase; text-decoration: none; padding: 14px 0; opacity: 0; transition: opacity .5s var(--ease); }
.nav.is-scrolled .nav__mark { opacity: 1; }
.nav__links { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.nav__links a { padding: 13px 2px; font: 500 .65625rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; transition: color .3s; }
.nav__links a:hover { color: var(--sun-core); }
.nav__links .nav__pill { padding: 11px 15px; border: 1px solid rgba(246, 239, 226, .7); border-radius: 999px; transition: background .3s, color .3s, border-color .3s; }
.nav__links .nav__pill:hover { background: var(--ivory); color: var(--bg); border-color: var(--ivory); }
.nav__long { display: none; }
@media (min-width: 720px) {
  .nav { padding-top: calc(env(safe-area-inset-top, 0px) + 14px); gap: 28px; }
  .nav__mark { font-size: 1.15rem; }
  .nav__links { gap: 32px; }
  .nav__links a { font-size: .72rem; letter-spacing: .2em; }
  .nav__long { display: inline; }
  .nav__short { display: none; }
}

/* ── Rayos, estrellas fugaces (compartidos) ────────────────────────────── */
.rays { pointer-events: none; max-width: none; }
.rays line { stroke: var(--gold); stroke-linecap: round; }
.rays { animation: spin 300s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.flyers { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 2; }
.flyers i {
  position: absolute; display: block; width: clamp(80px, 22vw, 170px); height: 1.5px; border-radius: 2px;
  background: linear-gradient(90deg, rgba(255, 236, 190, 0) 0%, rgba(255, 236, 190, .55) 70%, #fff 100%);
  opacity: 0; transform-origin: 0 50%;
  animation: fly var(--t, 14s) linear var(--d, 0s) infinite;
}
.flyers i::after { content: ""; position: absolute; right: -2px; top: -2px; width: 5px; height: 5px; border-radius: 50%; background: #fff; box-shadow: 0 0 9px 2px rgba(255, 236, 190, .9); }
.flyers i:nth-child(1) { top: 9%;  left: 6%;  --t: 13s; --d: 4s; }
.flyers i:nth-child(2) { top: 20%; left: 46%; --t: 17s; --d: 9s; }
.flyers i:nth-child(3) { top: 6%;  left: 62%; --t: 15s; --d: 14s; }
.flyers i:nth-child(4) { top: 30%; left: 18%; --t: 21s; --d: 2s; }
@keyframes fly {
  0%   { opacity: 0; transform: rotate(-24deg) translateX(0); }
  1.5% { opacity: 1; }
  9%   { opacity: 1; }
  12%  { opacity: 0; transform: rotate(-24deg) translateX(85vw); }
  100% { opacity: 0; transform: rotate(-24deg) translateX(85vw); }
}

/* ── 01 · HERO ─────────────────────────────────────────────────────────── */
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: 100vh; min-height: 100svh; background: #07030a; text-align: center; }

.hero__sky {
  position: absolute; inset: 0; z-index: -4;
  background: linear-gradient(180deg, #07030a 0, #1a0a10 calc(var(--horizon) * .36), #4e1810 calc(var(--horizon) * .66), #b3441a calc(var(--horizon) * .9), #ee863a var(--horizon), #6a2612 calc(var(--horizon) + 70px), var(--bg) calc(var(--horizon) + 190px));
}
.hero__media, .hero__media > * { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__media { z-index: -3; }
.hero__media > * { object-fit: cover; }
.hero__media:empty { display: none; }
.hero.has-media .hero__sky, .hero.has-media .hero__scene { display: none; }

.hero__scene { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.hero__rays {
  position: absolute; left: 50%; top: var(--horizon);
  width: calc(2.7 * var(--S)); aspect-ratio: 1; margin: calc(-1.35 * var(--S)) 0 0 calc(-1.35 * var(--S));
  opacity: .32; animation-duration: 400s;
  -webkit-mask-image: radial-gradient(circle, #000 30%, transparent 68%); mask-image: radial-gradient(circle, #000 30%, transparent 68%);
}
.hero__sun {
  position: absolute; left: 50%; top: var(--horizon);
  width: var(--S); aspect-ratio: 1; margin: calc(var(--S) / -2) 0 0 calc(var(--S) / -2);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #ffb54d 0%, #ff7b22 46%, #e0500f 100%);
  box-shadow: 0 0 90px 30px rgba(255, 120, 40, .5), 0 0 280px 100px rgba(255, 90, 20, .28);
}
.hero__sun::after { content: ""; position: absolute; inset: 0; border-radius: 50%; mix-blend-mode: multiply; opacity: .4; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .85 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

/* Dunas (foto tuya) con horizonte curvo; tapan la mitad del sol */
.hero__dunes, .circle__dunes {
  background: url("../assets/img/dunes.jpg") center / cover no-repeat;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 300' preserveAspectRatio='none'><path d='M0 34C240 8 460 46 720 26S1200 40 1440 16V300H0Z' fill='black'/></svg>") 0 0 / 100% 100% no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 300' preserveAspectRatio='none'><path d='M0 34C240 8 460 46 720 26S1200 40 1440 16V300H0Z' fill='black'/></svg>") 0 0 / 100% 100% no-repeat;
}
.hero__dunes { position: absolute; left: 0; right: 0; top: calc(var(--horizon) - 34px); bottom: 0; }

/* Oscurece para que el texto y el formulario siempre se lean */
.hero__shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(7, 3, 10, .55) 0, rgba(7, 3, 10, 0) 24%),
    linear-gradient(180deg, rgba(19, 15, 23, 0) calc(var(--horizon) - 10px), rgba(19, 15, 23, .55) calc(var(--horizon) + 40px), rgba(19, 15, 23, .86) calc(var(--horizon) + 150px), rgba(19, 15, 23, .96) 100%);
}
.hero.has-media .hero__shade { background: linear-gradient(180deg, rgba(19, 15, 23, .6) 0, rgba(19, 15, 23, .2) 32%, rgba(140, 59, 34, .35) 55%, rgba(19, 15, 23, .92) 100%); }

.hero__top { position: relative; height: var(--horizon); padding: 70px var(--gutter) 0; text-shadow: 0 2px 36px rgba(7, 3, 10, .55); }
.wordmark {
  font: 400 clamp(3.7rem, 19vw, 8.5rem)/.95 var(--display);
  letter-spacing: .14em; padding-left: .14em; text-transform: uppercase; color: var(--ivory);
}
.wordmark__letters i { display: inline-block; font-style: normal; }
.hero__line { margin-top: 12px; font: 400 clamp(1.15rem, 5vw, 1.7rem)/1.2 var(--display); color: var(--ivory); }
.hero__eyebrow { margin-top: 10px; font-size: .625rem; letter-spacing: .3em; color: #ffd48a; }

.hero__cta { position: relative; padding: 26px var(--gutter) calc(var(--safe-b) + 24px); display: grid; justify-items: center; gap: 8px; }
.hero__cta .display { margin-top: 2px; }
.hero__cta .lede { margin-top: 2px; }
.quick { display: flex; justify-content: center; gap: 30px; margin-top: 6px; }

/* Entrada del hero (solo con JS) */
.js:not(.is-entered) .wordmark__letters i,
.js:not(.is-entered) .hero__line, .js:not(.is-entered) .hero__eyebrow,
.js:not(.is-entered) .hero__cta > *, .js:not(.is-entered) .nav { opacity: 0; }
.js:not(.is-entered) .hero__sun { transform: translateY(52%); }
.js:not(.is-entered) .hero__rays { opacity: 0; }

.js.is-entered .wordmark__letters i { animation: letter-in 2.2s var(--ease) both; }
.js.is-entered .wordmark__letters i:nth-child(1) { animation-delay: .15s; }
.js.is-entered .wordmark__letters i:nth-child(2) { animation-delay: .27s; }
.js.is-entered .wordmark__letters i:nth-child(3) { animation-delay: .39s; }
.js.is-entered .wordmark__letters i:nth-child(4) { animation-delay: .51s; }
.js.is-entered .wordmark__letters i:nth-child(5) { animation-delay: .63s; }
.js.is-entered .hero__line    { animation: rise-in 1.8s var(--ease) 1.1s both; }
.js.is-entered .hero__eyebrow { animation: rise-in 1.8s var(--ease) 1.4s both; }
.js.is-entered .hero__cta > * { animation: rise-in 1.6s var(--ease) both; }
.js.is-entered .hero__cta > *:nth-child(1) { animation-delay: 1.6s; }
.js.is-entered .hero__cta > *:nth-child(2) { animation-delay: 1.75s; }
.js.is-entered .hero__cta > *:nth-child(3) { animation-delay: 1.9s; }
.js.is-entered .hero__cta > *:nth-child(4) { animation-delay: 2.05s; }
.js.is-entered .hero__cta > *:nth-child(5) { animation-delay: 2.2s; }
.js.is-entered .nav { animation: fade-in 1.6s ease 1.4s backwards; }
.js.is-entered .hero__sun { animation: sun-rise 4.2s var(--ease) .2s backwards; }
.js.is-entered .hero__rays { animation: spin 400s linear infinite, fade-rays 3s ease 1s backwards; }

@keyframes letter-in { from { opacity: 0; filter: blur(12px); transform: translate3d(0, 14px, 0) scale(1.05); } to { opacity: 1; filter: blur(0); transform: none; } }
@keyframes rise-in { from { opacity: 0; transform: translate3d(0, 14px, 0); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes sun-rise { from { transform: translateY(52%); } to { transform: none; } }
@keyframes fade-rays { from { opacity: 0; } to { opacity: .32; } }

.dev-badge { position: absolute; left: var(--gutter); top: 64px; z-index: 5; padding: 6px 10px; border: 1px dashed rgba(246, 239, 226, .5); border-radius: 4px; font: 500 .6rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; }

/* ── Formulario ────────────────────────────────────────────────────────── */
.form { display: grid; justify-items: center; gap: 11px; width: min(100%, 420px); margin: 10px auto 0; transition: opacity .8s var(--ease), transform .8s var(--ease), filter .8s var(--ease); }
.form.is-leaving { opacity: 0; transform: translate3d(0, -10px, 0); filter: blur(6px); pointer-events: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__field { display: block; width: 100%; }
.form__field input {
  width: 100%; min-height: 56px; padding: 0 24px;
  border: 1px solid rgba(246, 239, 226, .4); border-radius: 999px;
  background: rgba(255, 255, 255, .06); color: var(--ivory);
  font: 400 max(16px, 1rem)/1 var(--sans); text-align: center;
  outline: none; -webkit-appearance: none; appearance: none;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.form__field input::placeholder { color: rgba(246, 239, 226, .58); opacity: 1; }
.form__field input:focus-visible { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(231, 181, 89, .25), 0 0 34px rgba(231, 181, 89, .2); background: rgba(255, 255, 255, .08); }
.form__field.is-invalid input { border-color: #ffb08a; }
.form__msg { min-height: 1.2em; margin-top: -2px; font: 500 .8125rem/1.3 var(--sans); color: #ffe2a3; }
.form__msg:empty { min-height: 0; margin: 0; }

.done { display: grid; justify-items: center; gap: 10px; padding: 12px 0 4px; text-align: center; }
.done__mark { width: 64px; height: 64px; fill: none; stroke: var(--gold); stroke-width: 1.2; overflow: visible; }
.done__mark circle { vector-effect: non-scaling-stroke; }
.done__dot { fill: var(--gold); stroke: none; }
.done__ring { stroke-dasharray: 340; stroke-dashoffset: 340; }
.done.is-in .done__ring { animation: draw 2.2s var(--ease) forwards; }
.done.is-in .done__mark { animation: glow-in 2.2s var(--ease) both; }
.done.is-in .display, .done.is-in .lede { animation: rise-in 1.6s var(--ease) both; }
.done.is-in .display { animation-delay: .4s; } .done.is-in .lede { animation-delay: .8s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes glow-in { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }

/* ── Secciones ─────────────────────────────────────────────────────────── */
.sec { position: relative; isolation: isolate; padding: clamp(56px, 9vh, 84px) 0; }

/* 02 · Qué es Solar */
.statement { background: linear-gradient(180deg, var(--bg) 0, var(--panel) 100%); }
.statement__grid { display: grid; gap: 34px; }
.statement .eyebrow { margin-bottom: 16px; }
.statement__lines { font: 400 clamp(1.85rem, 8.2vw, 3.5rem)/1.1 var(--display); letter-spacing: .005em; max-width: 15ch; text-wrap: balance; }
.statement__lines .ln { display: block; }
.statement__lines .ln--b { margin-top: .12em; color: var(--gold); }
.statement__lines .key { color: var(--sun-core); text-shadow: 0 0 26px rgba(242, 185, 90, .65); }
.statement__lines .key::before, .statement__lines .key::after { color: var(--gold); font-size: .42em; }
.js .statement__lines.is-split .w { opacity: var(--o, .18); transition: opacity .5s linear; }

.statement__body { margin-top: 22px; max-width: 36ch; }
.statement__body p { font: 400 .9375rem/1.65 var(--sans); color: var(--muted); }
.statement__body p + p { margin-top: .9em; }

.field .eyebrow { margin-bottom: 10px; }
.field__list { counter-reset: f; display: grid; grid-template-columns: 1fr 1fr; column-gap: 22px; border-top: 1px solid rgba(231, 181, 89, .28); }
.field__list li {
  counter-increment: f; display: flex; align-items: baseline; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid rgba(231, 181, 89, .18);
  font: 400 1.05rem/1.2 var(--display); letter-spacing: .06em; text-transform: uppercase;
}
.field__list li::before { content: counter(f, decimal-leading-zero); font: 500 .6875rem/1 var(--sans); letter-spacing: .15em; color: var(--gold); }
.field__list li:last-child { grid-column: 1 / -1; }

/* 03 · YouTube */
.yt { text-align: center; overflow: hidden; padding-bottom: 28px; background: radial-gradient(70% 34% at 50% 30%, rgba(201, 106, 62, .26), transparent 70%), linear-gradient(180deg, var(--panel) 0, var(--deep) 140px), var(--deep); }
.yt__inner { display: grid; justify-items: center; gap: 30px; }
.yt__copy { display: grid; justify-items: center; gap: 12px; }
.yt__copy .btn { margin-top: 8px; }
.yt .eyebrow { margin-bottom: 2px; }

.arch { position: relative; display: block; width: min(52vw, 210px); aspect-ratio: 760 / 971; margin: 14px auto 6px; text-decoration: none; color: inherit; }
.arch__rays {
  position: absolute; left: 50%; top: 36%; width: 270%; aspect-ratio: 1; margin: -135% 0 0 -135%; z-index: -1; opacity: .5;
  animation-duration: 260s; -webkit-mask-image: radial-gradient(circle, #000 34%, transparent 70%); mask-image: radial-gradient(circle, #000 34%, transparent 70%);
}
.arch__frame { position: absolute; inset: -10px; border: 1px solid rgba(231, 181, 89, .3); border-radius: 999px 999px 0 0; transition: inset .8s var(--ease), border-color .6s; }
.arch__window { position: absolute; inset: 0; overflow: hidden; border-radius: 999px 999px 0 0; box-shadow: 0 0 60px rgba(201, 106, 62, .35); }
.arch__img { width: 100%; height: 100%; object-fit: cover; }
.arch__play {
  position: absolute; left: 50%; bottom: 5%; width: 46px; height: 46px; margin-left: -23px; border-radius: 50%;
  display: grid; place-items: center; color: var(--ivory);
  border: 1px solid rgba(246, 239, 226, .75); background: rgba(19, 10, 22, .45);
  transition: background .5s var(--ease), color .5s, box-shadow .6s;
}
.arch__play svg { width: 18px; height: 18px; fill: currentColor; margin-left: 2px; }
@media (hover: hover) {
  .arch:hover .arch__frame { inset: -16px; border-color: rgba(231, 181, 89, .7); }
  .arch:hover .arch__play { background: var(--gold); color: #1a0f14; box-shadow: 0 0 36px rgba(231, 181, 89, .6); }
}
.arch[data-unset] { cursor: default; }

/* 04 · Círculo Solar (resumen + segundo formulario) */
.circle { text-align: center; padding-top: 28px; padding-bottom: clamp(140px, 21vh, 190px); background: linear-gradient(180deg, var(--deep) 0, var(--panel-2) 30%, #4a2226 62%, var(--burnt) 100%); overflow: hidden; }
.circle__inner { position: relative; z-index: 2; display: grid; justify-items: center; gap: 12px; }
.circle__dunes { position: absolute; left: 0; right: 0; bottom: 0; height: clamp(150px, 22vh, 200px); z-index: 0; opacity: .95; }
.circle__dunes::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(140, 59, 34, .35) 0, rgba(19, 15, 23, .45) 50%, var(--bg) 100%); }
.arrives { display: grid; gap: 4px; max-width: 34ch; font: 500 .6875rem/1.9 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: rgba(246, 239, 226, .9); }
.arrives__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 18px; }
.arrives__list span { white-space: nowrap; }
.arrives__sub { margin-top: 2px; font: 400 1.1rem/1.3 var(--display); letter-spacing: .02em; text-transform: none; color: var(--gold); }
.circle__panel { width: min(100%, 420px); margin-top: 6px; }
.circle .form { margin-top: 4px; }

/* Footer */
.foot { padding: 34px 0 calc(var(--safe-b) + 26px); background: var(--bg); text-align: center; }
.foot__inner { display: grid; justify-items: center; gap: 18px; }
.sunmark { width: 54px; height: 54px; fill: none; stroke: var(--gold); stroke-width: 1.2; }
.sunmark circle { vector-effect: non-scaling-stroke; }
.sunmark__outer { stroke-dasharray: .1 7.04; stroke-linecap: round; stroke-width: 2.2; transform-origin: 60px 60px; animation: spin 140s linear infinite; }
.sunmark__dot { fill: var(--gold); stroke: none; }
.foot__line { max-width: 17ch; }
.foot__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 26px; }
.foot__links a { display: inline-block; padding: 12px 4px; font: 500 .6875rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; text-decoration: none; opacity: .8; transition: opacity .4s, color .4s; }
.foot__links a:hover { opacity: 1; color: var(--gold); }
.foot__base { width: 100%; margin-top: 8px; padding-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid rgba(246, 239, 226, .12); font: 400 .65rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; opacity: .8; }
.foot__mark { font-family: var(--display); font-size: .9rem; letter-spacing: .32em; }
.lang { display: flex; align-items: center; gap: 4px; }
.lang button { padding: 12px 8px; margin: -12px -4px; border: 0; background: none; color: inherit; cursor: pointer; font: inherit; letter-spacing: inherit; opacity: .55; transition: opacity .4s, color .4s; }
.lang button[aria-pressed="true"] { opacity: 1; color: var(--gold); }

/* ── Escritorio ────────────────────────────────────────────────────────── */
@media (min-width: 900px) {
  .hero__top { padding-top: 92px; }
  .statement__grid { grid-template-columns: 7fr 5fr; align-items: end; gap: 7vw; }
  .yt__inner { grid-template-columns: auto 1fr; justify-items: start; text-align: left; gap: 8vw; max-width: 860px; }
  .yt__copy { justify-items: start; }
  .yt__copy .lede { margin-inline: 0; }
  .arch { width: 250px; margin: 14px 0; }
}

/* ── Movimiento reducido ───────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js:not(.is-entered) .wordmark__letters i, .js:not(.is-entered) .hero__line, .js:not(.is-entered) .hero__eyebrow,
  .js:not(.is-entered) .hero__cta > *, .js:not(.is-entered) .nav { opacity: 1; }
  .js:not(.is-entered) .hero__sun { transform: none; }
  .js .portal, .flyers { display: none; }
  .js.is-entered .wordmark__letters i, .js.is-entered .hero__line, .js.is-entered .hero__eyebrow, .js.is-entered .hero__cta > *,
  .js.is-entered .nav, .js.is-entered .hero__sun { animation: none !important; }
  .rays, .stars, .sunmark__outer, .arch__frame { animation: none !important; }
  .js .statement__lines.is-split .w { opacity: 1; }
}
