/* =========================================================
   Nexxoryx — identidad "noche de montaña"
   Base compartida por precios (index), registro y la app.
   ========================================================= */

/* ---------- Tokens ---------- */
/* El tema lo decide el usuario (Ajustes → Apariencia): data-theme="dark" | "light" en <html>.
   El acento (--accent-h) sigue a sus proyectos y el brillo del fondo (--glow-1/2) a la hora y el clima;
   ambos los pone tema.js y se pueden apagar. Sin JS queda la noche de montaña de siempre. */
:root {
  --accent-h: 256;
  --accent-sat: 90%;
  --accent-spread: 40;
}

:root,
.dark-island {
  --night: #121726;
  --night-2: #181e30;
  --night-3: #20273d;
  --night-rgb: 18 23 38;
  --night-2-rgb: 24 30 48;
  --tint: 255 255 255;
  --shade: 1;
  --glass: rgb(var(--tint) / 0.045);
  --glass-hover: rgb(var(--tint) / 0.08);
  --edge: rgb(var(--tint) / 0.09);
  --edge-strong: rgb(var(--tint) / 0.16);
  --fg-strong: #fff;
  --snow: #eef1fa;
  --text-2: #d5dae8;
  --mist: #9aa3bd;
  --dim: #858ea9; /* (contraste 4,5 o más sobre los fondos oscuros) */
  --ok-text: #86efac;
  --bad-text: #fda4af;
  --warn-text: #fde68a;
  --info-text: #7dd3fc;
  --a1: var(--accent-h) var(--accent-sat) 76%;
  --a2: calc(var(--accent-h) + 2) var(--accent-sat) 66%;
  --a3: calc(var(--accent-h) + var(--accent-spread)) calc(var(--accent-sat) - 14%) 60%;
  --a4: calc(var(--accent-h) - var(--accent-spread)) var(--accent-sat) 60%;
  --violet: hsl(var(--a1));
  --violet-text: hsl(var(--accent-h) var(--accent-sat) 86%);
  --violet-soft: hsl(var(--a1) / 0.14);
  --violet-edge: hsl(var(--a1) / 0.35);
  --aurora: linear-gradient(135deg, hsl(var(--a3)) 0%, hsl(var(--a2)) 55%, hsl(var(--a4)) 100%);
  --glow-1: hsl(var(--a2) / 0.16);
  --glow-2: hsl(var(--a4) / 0.08);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --night: #f4f5f9;
  --night-2: #ffffff;
  --night-3: #eceef5;
  --night-rgb: 244 245 249;
  --night-2-rgb: 255 255 255;
  --tint: 22 28 50;
  --shade: 0.3;
  --glass: rgb(var(--tint) / 0.035);
  --glass-hover: rgb(var(--tint) / 0.065);
  --edge: rgb(var(--tint) / 0.12);
  --edge-strong: rgb(var(--tint) / 0.22);
  --fg-strong: #0e1222;
  --snow: #1a2033;
  --text-2: #353d56;
  --mist: #586180;
  --dim: #5f6783; /* (contraste 4,5 o más sobre los fondos claros) */
  --ok-text: #047857;
  --bad-text: #be123c;
  --warn-text: #92400e;
  --info-text: #0369a1;
  --a1: var(--accent-h) calc(var(--accent-sat) - 22%) 56%;
  --a2: calc(var(--accent-h) + 2) calc(var(--accent-sat) - 18%) 54%;
  --a3: calc(var(--accent-h) + var(--accent-spread)) calc(var(--accent-sat) - 20%) 52%;
  --a4: calc(var(--accent-h) - var(--accent-spread)) calc(var(--accent-sat) - 12%) 50%;
  --violet-text: hsl(var(--accent-h) 62% 42%);
  --violet-soft: hsl(var(--a1) / 0.12);
  --violet-edge: hsl(var(--a1) / 0.4);
  --glow-1: hsl(var(--a2) / 0.12);
  --glow-2: hsl(var(--a4) / 0.07);
  color-scheme: light;
}

/* Lo que va sobre fotos o la escena de Fenrir sigue de noche aunque el tema sea claro */
.dark-island {
  color: var(--snow);
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--snow);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  background:
    radial-gradient(900px 520px at 72% 0%, var(--glow-1), transparent 65%),
    radial-gradient(700px 500px at 0% 100%, var(--glow-2), transparent 60%),
    var(--night);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, dl, dd, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
img, svg, video, canvas { display: block; }
button { font-family: inherit; }
[hidden] { display: none !important; }
::selection { background: hsl(var(--a1) / 0.4); }

:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 2px;
}

.i {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.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: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 640px) {
  .wrap { padding: 0 24px; }
}

/* ---------- Piezas compartidas ---------- */
.aurora-text {
  background: var(--aurora);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--snow);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 5px 12px 5px 10px;
  border: 1px solid rgb(var(--tint) / 0.1);
  border-radius: 9999px;
  background: rgb(var(--night-rgb) / 0.7);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--violet-text);
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  animation: online 2.4s ease-out infinite;
}

@keyframes online {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55); }
  70%, 100% { box-shadow: 0 0 0 7px rgba(74, 222, 128, 0); }
}

.tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--violet-soft);
  color: var(--violet-text);
  font-size: 12px;
  font-weight: 600;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease, filter 0.15s ease;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--aurora);
  color: #fff;
  box-shadow: 0 8px 24px hsl(var(--a2) / 0.35);
}

.btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }

.btn-ghost {
  border-color: var(--edge-strong);
  background: var(--glass);
  color: var(--snow);
}

.btn-ghost:hover { border-color: rgb(var(--tint) / 0.28); background: var(--glass-hover); }

.btn-block { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: default; transform: none; filter: none; }

.btn.is-busy::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Escena de Fenrir (ver escena.js) ---------- */
.scene {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: radial-gradient(closest-side at 50% 48%, #000 45%, transparent 100%);
  mask-image: radial-gradient(closest-side at 50% 48%, #000 45%, transparent 100%);
}

.scene-video,
.scene-still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 47% 35%;
  transform-origin: 47% 45%;
}

.scene-still { opacity: 0; }
.scene-video { transition: opacity 0.8s ease, filter 3s ease; }
.scene-still { transition: filter 3s ease; }
.scene.is-settled .scene-video { opacity: 0; }

/* Fenrir vive la hora y el clima de ahora (escena.js pone data-phase, data-wx y data-temp en .scene).
   La luz se arma con filtros encadenados (hora × clima) y capas de color encima. */
.scene { --ph-b: 1; --ph-s: 1; --ph-h: 0deg; --wx-b: 1; --wx-s: 1; --wx-c: 1; --t-sep: 0; }
.scene-video,
.scene-still {
  filter: brightness(var(--ph-b)) saturate(var(--ph-s)) hue-rotate(var(--ph-h)) brightness(var(--wx-b)) saturate(var(--wx-s)) contrast(var(--wx-c)) sepia(var(--t-sep));
}
.scene[data-phase="noche"] { --ph-b: 0.6; --ph-s: 0.7; --ph-h: 10deg; }
.scene[data-phase="alba"] { --ph-b: 0.74; --ph-s: 0.8; }
.scene[data-phase="amanecer"] { --ph-b: 0.98; --ph-s: 1.18; }
.scene[data-phase="temprano"] { --ph-b: 1.06; --ph-s: 1.06; }
.scene[data-phase="manana"] { --ph-b: 1.12; --ph-s: 1.08; }
.scene[data-phase="mediodia"] { --ph-b: 1.18; --ph-s: 1.1; }
.scene[data-phase="tarde"] { --ph-b: 1.12; --ph-s: 1.08; }
.scene[data-phase="dorada"] { --ph-b: 1.04; --ph-s: 1.22; }
.scene[data-phase="atardecer"] { --ph-b: 0.94; --ph-s: 1.16; }
.scene[data-phase="anochecer"] { --ph-b: 0.8; --ph-s: 0.92; }
.scene[data-wx="lluvia"] { --wx-b: 0.78; --wx-s: 0.6; --wx-c: 1.08; }
.scene[data-wx="llovizna"] { --wx-b: 0.88; --wx-s: 0.72; --wx-c: 1.04; }
.scene[data-wx="tormenta"] { --wx-b: 0.62; --wx-s: 0.5; --wx-c: 1.15; }
.scene[data-wx="nieve"] { --wx-b: 1.06; --wx-s: 0.68; --wx-c: 0.95; }
.scene[data-wx="niebla"] { --wx-b: 1.03; --wx-s: 0.6; --wx-c: 0.76; }
.scene[data-wx="nubes"] { --wx-b: 0.92; --wx-s: 0.76; }
.scene[data-wx="sol"] { --wx-s: 1.1; --wx-c: 1.04; }
.scene[data-temp="calor"] { --t-sep: 0.16; }
/* La foto de Fenrir para esta hora y este clima (escena.js): entra al terminar el video, fundiéndose. Ya trae la luz
   y el clima, así que las capas de color se apagan; lo que se mueve (lluvia, copos, gotas, relámpagos) sigue encima. */
.scene-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 47% 35%;
  transform-origin: 47% 45%;
  opacity: 0;
  transition: opacity 1.6s ease;
}
.scene.is-settled .scene-photo.is-on { opacity: 1; animation: breathe 9s ease-in-out infinite alternate; }
.scene[data-photo] .scene-light,
.scene[data-photo] .scene-air,
.scene[data-photo] .scene-rays,
.scene[data-photo] .scene-sheen,
.scene[data-photo] .scene-fog,
.scene[data-photo] .scene-frost,
.scene[data-photo] .scene-drift { opacity: 0; }
.scene[data-photo] .scene-mist { opacity: 0.5; }
.scene.is-flash .scene-photo { filter: brightness(1.8) saturate(0.4) contrast(1.15); transition: filter 60ms, opacity 1.6s ease; }

/* El relámpago lo ilumina de golpe */
.scene.is-flash .scene-video,
.scene.is-flash .scene-still { filter: brightness(1.9) saturate(0.3) contrast(1.2); transition: filter 60ms; }

.scene-light,
.scene-air,
.scene-rays,
.scene-sheen,
.scene-fog,
.scene-drift,
.scene-frost,
.scene-flash,
.scene-weather { position: absolute; inset: 0; pointer-events: none; }
.scene-weather { width: 100%; height: 100%; z-index: 2; }
.scene-light,
.scene-air,
.scene-rays,
.scene-sheen,
.scene-fog,
.scene-frost,
.scene-flash { opacity: 0; transition: opacity 3s ease; }

/* La luz de la hora */
.scene[data-phase] .scene-light { opacity: 1; }
.scene[data-phase="noche"] .scene-light { background: linear-gradient(180deg, rgba(14, 24, 80, 0.6), rgba(8, 14, 50, 0.45)); mix-blend-mode: multiply; }
.scene[data-phase="alba"] .scene-light { background: linear-gradient(180deg, rgba(70, 50, 150, 0.45), rgba(40, 30, 90, 0.3)); mix-blend-mode: multiply; }
.scene[data-phase="amanecer"] .scene-light { background: linear-gradient(195deg, rgba(255, 140, 90, 0.85), rgba(255, 110, 150, 0.5) 45%, rgba(255, 170, 120, 0.25)); mix-blend-mode: soft-light; }
.scene[data-phase="temprano"] .scene-light { background: linear-gradient(200deg, rgba(255, 200, 140, 0.7), rgba(150, 190, 255, 0.35)); mix-blend-mode: soft-light; }
.scene[data-phase="manana"] .scene-light,
.scene[data-phase="mediodia"] .scene-light,
.scene[data-phase="tarde"] .scene-light { background: linear-gradient(180deg, rgba(60, 140, 255, 0.9), rgba(90, 170, 255, 0.6) 40%, rgba(140, 200, 255, 0) 70%); mix-blend-mode: color; }
.scene[data-phase="dorada"] .scene-light { background: linear-gradient(230deg, rgba(255, 160, 50, 0.9), rgba(255, 110, 60, 0.5) 50%, rgba(255, 190, 120, 0.2)); mix-blend-mode: soft-light; }
.scene[data-phase="atardecer"] .scene-light { background: linear-gradient(200deg, rgba(255, 100, 80, 0.85), rgba(190, 70, 170, 0.5) 55%, rgba(120, 60, 150, 0.2)); mix-blend-mode: soft-light; }
.scene[data-phase="anochecer"] .scene-light { background: linear-gradient(180deg, rgba(90, 60, 160, 0.4), rgba(40, 30, 90, 0.3)); mix-blend-mode: multiply; }

/* El aire del clima */
.scene[data-wx="lluvia"] .scene-air,
.scene[data-wx="llovizna"] .scene-air { opacity: 1; background: linear-gradient(180deg, rgba(55, 70, 95, 0.55), rgba(35, 48, 70, 0.35)); mix-blend-mode: multiply; }
.scene[data-wx="llovizna"] .scene-air { opacity: 0.6; }
.scene[data-wx="tormenta"] .scene-air { opacity: 1; background: linear-gradient(180deg, rgba(25, 30, 50, 0.72), rgba(20, 25, 40, 0.45)); mix-blend-mode: multiply; }
.scene[data-wx="nieve"] .scene-air { opacity: 1; background: linear-gradient(180deg, rgba(225, 235, 255, 0.45), rgba(255, 255, 255, 0.25)); mix-blend-mode: screen; }
.scene[data-wx="niebla"] .scene-air { opacity: 1; background: linear-gradient(180deg, rgba(215, 220, 230, 0.55), rgba(225, 230, 238, 0.75)); mix-blend-mode: screen; }
.scene[data-wx="nubes"] .scene-air { opacity: 1; background: linear-gradient(180deg, rgba(90, 100, 120, 0.42), rgba(110, 120, 140, 0.15)); mix-blend-mode: multiply; }
.scene[data-wx="sol"] .scene-air { opacity: 1; background: radial-gradient(circle at 86% 6%, rgba(255, 232, 165, 0.75), rgba(255, 210, 140, 0.18) 32%, transparent 58%); mix-blend-mode: screen; }
.scene[data-wx="noche"] .scene-air { opacity: 1; background: radial-gradient(circle at 80% 14%, rgba(200, 215, 255, 0.5), rgba(170, 190, 255, 0.12) 16%, transparent 36%); mix-blend-mode: screen; }

/* Sol: rayos que se mecen */
.scene[data-wx="sol"] .scene-rays {
  opacity: 1;
  inset: -20%;
  background: repeating-conic-gradient(from 200deg at 82% 8%, rgba(255, 236, 180, 0) 0deg, rgba(255, 236, 180, 0.2) 3deg, rgba(255, 236, 180, 0) 8deg);
  -webkit-mask-image: radial-gradient(circle at 82% 8%, #000, transparent 70%);
  mask-image: radial-gradient(circle at 82% 8%, #000, transparent 70%);
  mix-blend-mode: screen;
  animation: rays-sway 16s ease-in-out infinite alternate;
  transform-origin: 82% 8%;
}
@keyframes rays-sway { from { transform: rotate(-3deg); } to { transform: rotate(4deg); } }

/* Mojado: un brillo húmedo que le recorre el pelaje */
.scene[data-wx="lluvia"] .scene-sheen,
.scene[data-wx="tormenta"] .scene-sheen,
.scene[data-wx="llovizna"] .scene-sheen {
  opacity: 1;
  background: linear-gradient(170deg, transparent 30%, rgba(220, 235, 255, 0.16) 42%, transparent 52%, rgba(220, 235, 255, 0.1) 64%, transparent 74%);
  background-size: 100% 220%;
  mix-blend-mode: screen;
  animation: sheen-run 5s linear infinite;
}
@keyframes sheen-run { from { background-position: 0 100%; } to { background-position: 0 -120%; } }

/* Neblina espesa que pasa */
.scene[data-wx="niebla"] .scene-fog {
  opacity: 1;
  inset: 0 -30%;
  background:
    radial-gradient(45% 35% at 25% 55%, rgba(235, 238, 245, 0.75), transparent 70%),
    radial-gradient(40% 30% at 70% 70%, rgba(235, 238, 245, 0.7), transparent 70%),
    radial-gradient(50% 30% at 50% 35%, rgba(235, 238, 245, 0.5), transparent 70%);
  animation: mist 14s ease-in-out infinite alternate;
}
.scene[data-wx="niebla"] .scene-mist { opacity: 1; height: 80%; filter: brightness(2.2); }
/* Nubes: sombras que pasan */
.scene[data-wx="nubes"] .scene-fog {
  opacity: 1;
  inset: 0 -40%;
  background:
    radial-gradient(30% 40% at 20% 40%, rgba(20, 25, 40, 0.28), transparent 70%),
    radial-gradient(28% 35% at 65% 60%, rgba(20, 25, 40, 0.22), transparent 70%);
  animation: mist 22s ease-in-out infinite alternate;
}

/* Nieve acumulada a sus pies y escarcha en los bordes */
.scene-drift {
  top: auto;
  height: var(--drift, 0%);
  background:
    radial-gradient(60% 120% at 20% 100%, rgba(250, 252, 255, 0.95), transparent 72%),
    radial-gradient(55% 110% at 70% 100%, rgba(245, 248, 255, 0.92), transparent 70%),
    linear-gradient(0deg, rgba(250, 252, 255, 0.9), rgba(250, 252, 255, 0));
  transition: height 2s linear;
}
.scene[data-wx="nieve"] .scene-frost,
.scene[data-temp="helado"] .scene-frost { opacity: 1; box-shadow: inset 0 0 80px 18px rgba(225, 238, 255, 0.6); }

/* El destello del relámpago */
.scene-flash { background: radial-gradient(120% 90% at 50% 0%, rgba(235, 240, 255, 0.85), rgba(200, 215, 255, 0.25) 60%, transparent); }
.scene.is-flash .scene-flash { animation: flash 0.7s ease-out; }
@keyframes flash { 0% { opacity: 0; } 8% { opacity: 1; } 20% { opacity: 0.2; } 30% { opacity: 0.85; } 100% { opacity: 0; } }

/* Con fondo claro, Fenrir va en una ventana (la escena es un paisaje con cielo; en una mancha redonda se veía mal) */
:root[data-theme="light"] .pr-hero .scene,
:root[data-theme="light"] .auth-art .scene {
  -webkit-mask-image: none;
  mask-image: none;
  border-radius: 28px;
  box-shadow: 0 30px 60px -28px rgba(30, 40, 80, 0.5), 0 0 0 1px rgba(30, 40, 80, 0.08);
}
:root[data-theme="light"] .pr-hero .scene { width: 100%; margin: 8px 0 0; }
:root[data-theme="light"] .pr-hero-copy { margin-top: 20px; }
@media (min-width: 900px) {
  :root[data-theme="light"] .pr-hero .scene { top: 7%; right: 0; width: 44%; height: 86%; margin: 0; }
  :root[data-theme="light"] .pr-hero-copy { margin-top: 0; }
  :root[data-theme="light"] .auth-art .scene { inset: 24px; }
}
.scene.is-settled .scene-still { opacity: 1; animation: breathe 9s ease-in-out infinite alternate; }

@keyframes breathe {
  from { transform: scale(1); }
  to { transform: scale(1.045) translate(-0.4%, -0.8%); }
}

.scene-mist {
  position: absolute;
  left: -20%;
  right: -20%;
  bottom: 0;
  height: 50%;
  background:
    radial-gradient(40% 60% at 30% 75%, rgba(225, 230, 255, 0.13), transparent 70%),
    radial-gradient(35% 55% at 72% 85%, rgba(235, 220, 255, 0.11), transparent 70%);
  animation: mist 18s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes mist {
  from { transform: translateX(-6%); }
  to { transform: translateX(6%); }
}

.snow { position: absolute; pointer-events: none; }

/* Entrada suave */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: reveal 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--delay, 0ms);
}

@keyframes reveal {
  to { opacity: 1; transform: none; }
}

/* =========================================================
   Precios (index.html)
   ========================================================= */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgb(var(--tint) / 0.05);
  background: rgb(var(--night-rgb) / 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.site-nav.is-scrolled { border-bottom-color: var(--edge); background: rgb(var(--night-rgb) / 0.88); }

.site-nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
}

.site-links { display: none; align-items: center; gap: 2px; }

.site-links a,
.site-login {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--mist);
  transition: color 0.15s ease, background-color 0.15s ease;
}

.site-links a:hover,
.site-login:hover { color: var(--snow); background: var(--glass); }

.site-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.site-actions .btn { height: 38px; padding: 0 16px; border-radius: 10px; font-size: 14px; }

@media (min-width: 860px) {
  .site-links { display: flex; }
}

@media (max-width: 400px) {
  .site-login { display: none; }
}

/* Hero */
.pr-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-top: 8px;
}

.pr-hero .scene {
  width: calc(100% + 32px);
  height: 300px;
  margin: 0 -16px;
}

.pr-hero .snow { top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }

/* La escena y su brillo sangran hacia los bordes sin crear scroll horizontal */
main { overflow-x: clip; }

.pr-hero-copy { position: relative; z-index: 2; margin-top: -48px; padding-bottom: 24px; }

.pr-hero h1 {
  font-size: 36px;
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--fg-strong);
  text-wrap: balance;
}

.pr-lead {
  max-width: 500px;
  margin-top: 18px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--mist);
  text-wrap: pretty;
}

.pr-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.pr-note { margin-top: 14px; font-size: 13px; color: var(--dim); }

@media (min-width: 900px) {
  .pr-hero {
    display: grid;
    align-items: center;
    min-height: 560px;
    padding-top: 0;
  }

  .pr-hero::before {
    content: "";
    position: absolute;
    top: -10%;
    right: -8%;
    width: 62%;
    height: 120%;
    background: radial-gradient(closest-side, hsl(var(--a2) / 0.18), transparent);
    pointer-events: none;
  }

  .pr-hero .scene {
    position: absolute;
    top: -4%;
    right: -24px;
    width: 62%;
    height: 108%;
    margin: 0;
    -webkit-mask-image: radial-gradient(closest-side at 54% 50%, #000 42%, transparent 100%);
    mask-image: radial-gradient(closest-side at 54% 50%, #000 42%, transparent 100%);
  }

  .pr-hero-copy { max-width: 52%; margin-top: 0; padding: 40px 0; }
  .pr-hero h1 { font-size: 54px; }
}

/* Secciones */
.pr-section { padding-top: 88px; }
.pr-video { position: relative; max-width: 960px; margin: 0 auto; overflow: hidden; border: 1px solid var(--edge-strong); border-radius: 20px; background: #000; box-shadow: 0 30px 80px -40px rgb(0 0 0 / 0.7); }
.pr-video video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.pr-video-sound { position: absolute; right: 14px; top: 14px; padding: 10px 16px; border: 0; border-radius: 99px; background: rgb(0 0 0 / 0.65); font: inherit; font-size: 15px; font-weight: 700; color: #fff; cursor: pointer; backdrop-filter: blur(6px); }
.pr-video-sound:hover { background: rgb(0 0 0 / 0.8); }
.pr-video-section .pr-head { margin-left: auto; margin-right: auto; text-align: center; }

.pr-head { max-width: 640px; margin-bottom: 36px; }

.kicker {
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet);
}

.pr-head h2 {
  font-size: 28px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg-strong);
  text-wrap: balance;
}

.pr-head p:not(.kicker) { margin-top: 12px; font-size: 16px; color: var(--mist); }

@media (min-width: 768px) {
  .pr-head h2 { font-size: 36px; }
}

/* La ruta */
.route {
  position: relative;
  display: grid;
  gap: 28px;
  padding: 0 0 0 44px;
  list-style: none;
}

.route::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 15px;
  border-left: 2px dashed rgb(var(--tint) / 0.14);
}

.route-step { position: relative; }

.route-marker {
  position: absolute;
  top: 0;
  left: -44px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--violet-edge);
  border-radius: 10px;
  background: var(--night);
  font-size: 14px;
  font-weight: 700;
  color: var(--violet-text);
}

.route-step h3 { margin-bottom: 6px; font-size: 18px; font-weight: 600; color: var(--fg-strong); }
.route-step p { margin-bottom: 10px; font-size: 15px; line-height: 1.55; color: var(--mist); }

@media (min-width: 900px) {
  .route { grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 52px 0 0; }

  .route::before {
    top: 15px;
    bottom: auto;
    left: 16px;
    right: 16px;
    border-left: 0;
    border-top: 2px dashed rgb(var(--tint) / 0.14);
  }

  .route-marker { top: -52px; left: 0; }
}

/* Planes */
.pr-plans {
  display: grid;
  gap: 20px;
  max-width: 880px;
}

@media (min-width: 820px) {
  .pr-plans { grid-template-columns: 1fr 1fr; align-items: stretch; }
}
@media (min-width: 1040px) {
  .pr-plans { grid-template-columns: repeat(3, 1fr); max-width: 1120px; }
}

.pr-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px 24px 24px;
  overflow: hidden;
  border: 1px solid var(--edge);
  border-radius: 22px;
  background: rgb(var(--tint) / 0.03);
}

.pr-plan-pro {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--night-2), var(--night-2)) padding-box,
    var(--aurora) border-box;
  box-shadow: 0 30px 70px hsl(var(--a2) / 0.18);
}

/* Fenrir vigila el plan Pro desde el fondo */
.pr-plan-pro::after {
  content: "";
  position: absolute;
  top: -30px;
  right: -60px;
  width: 300px;
  height: 240px;
  background: url("assets/fenrir-escena-final.jpg") 45% 30% / cover;
  opacity: 0.16;
  -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 30%, transparent 100%);
  pointer-events: none;
}

.pr-plan > * { position: relative; z-index: 1; }

.pr-badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  border: 1px solid var(--violet-edge);
  border-radius: 9999px;
  background: rgb(var(--night-rgb) / 0.8);
  font-size: 12px;
  font-weight: 600;
  color: var(--violet-text);
}

.pr-badge img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }

.pr-plan-top { display: flex; align-items: center; gap: 14px; }

.pr-plan-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 1px solid var(--edge-strong);
  border-radius: 12px;
  background: var(--glass);
  color: var(--violet-text);
}

.pr-plan-pro .pr-plan-icon { border-color: transparent; background: var(--aurora); color: #fff; }
.pr-plan-icon .i { width: 22px; height: 22px; }

.pr-plan-top h3 { font-size: 20px; font-weight: 700; color: var(--fg-strong); }
.pr-plan-top p { font-size: 14px; color: var(--mist); }

.pr-price { display: flex; align-items: baseline; gap: 8px; }
.pr-price .amount { font-size: 48px; line-height: 1; font-weight: 700; letter-spacing: -0.03em; color: var(--fg-strong); }
.pr-price .per { font-size: 15px; color: var(--mist); }

.pr-credits {
  margin-top: -8px;
  padding: 10px 12px;
  border: 1px solid var(--violet-edge);
  border-radius: 12px;
  background: var(--violet-soft);
  font-size: 14px;
  color: var(--violet-text);
}

.pr-credits strong { color: var(--fg-strong); }

.pr-features { display: flex; flex-direction: column; gap: 12px; }

.pr-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--text-2);
}

.pr-features .i { width: 18px; height: 18px; margin-top: 2px; color: var(--violet); stroke-width: 2.5; }

.pr-plan .btn { margin-top: auto; }
.pr-fine { margin-top: -8px; text-align: center; font-size: 12px; line-height: 1.5; color: var(--dim); }

.pr-packs { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; max-width: 880px; margin-top: 20px; padding: 20px 24px; border: 1px solid var(--violet-edge); border-radius: 20px; background: var(--violet-soft); }
.pr-packs h3 { margin: 0 0 4px; font-size: 17px; color: var(--snow); }
.pr-packs p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--mist); }
.pr-packs .btn { flex: none; }

.pr-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 28px;
}

.pr-trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--mist);
}

.pr-trust .i { width: 16px; height: 16px; color: var(--violet); }

/* Preguntas */
.pr-faq { display: flex; flex-direction: column; gap: 10px; max-width: 760px; }

.pr-faq details {
  border: 1px solid var(--edge);
  border-radius: 14px;
  background: rgb(var(--tint) / 0.03);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.pr-faq details[open] { border-color: var(--violet-edge); background: hsl(var(--a1) / 0.06); }

.pr-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  font-size: 16px;
  font-weight: 600;
  color: var(--fg-strong);
  cursor: pointer;
  list-style: none;
}

.pr-faq summary::-webkit-details-marker { display: none; }

.pr-faq summary::after {
  content: "";
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  border-right: 2px solid var(--violet);
  border-bottom: 2px solid var(--violet);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.2s ease;
}

.pr-faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.pr-faq details p { padding: 0 20px 18px; font-size: 15px; line-height: 1.6; color: var(--mist); }

/* Cierre */
.pr-final {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  margin-top: 88px;
  padding: 28px 24px;
  border: 1px solid var(--edge);
  border-radius: 24px;
  background:
    radial-gradient(500px 220px at 0% 0%, hsl(var(--a2) / 0.2), transparent 70%),
    rgb(var(--tint) / 0.03);
}

.pr-final img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 3px hsl(var(--a1) / 0.4), 0 10px 30px rgb(0 0 0 / calc(0.4 * var(--shade)));
}

.pr-final h2 { font-size: 24px; line-height: 1.2; font-weight: 700; color: var(--fg-strong); }
.pr-final p { margin-top: 6px; color: var(--mist); }

@media (min-width: 760px) {
  .pr-final { flex-direction: row; align-items: center; padding: 28px 32px; }
  .pr-final .btn { margin-left: auto; }
}

/* Pie de página */
.site-footer {
  margin-top: 88px;
  border-top: 1px solid rgb(var(--tint) / 0.06);
  background: rgb(0 0 0 / calc(0.15 * var(--shade)));
}

.footer-grid {
  display: grid;
  gap: 32px;
  padding-top: 40px;
  padding-bottom: 32px;
}

.footer-brand p { max-width: 280px; margin-top: 12px; font-size: 14px; line-height: 1.6; color: var(--mist); }

.footer-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.footer-links { display: inline-flex; gap: 6px; flex-wrap: wrap; }

.footer-cols h3 {
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}

.footer-cols ul { display: flex; flex-direction: column; gap: 4px; }

.footer-cols a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-size: 14px;
  color: var(--mist);
  transition: color 0.15s ease;
}

.footer-cols a:hover { color: var(--snow); }

@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 1.2fr 2fr; }
  .footer-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 16px;
  padding-bottom: 24px;
  border-top: 1px solid rgb(var(--tint) / 0.06);
  font-size: 13px;
  color: var(--dim);
}

.footer-bottom a:hover { color: var(--snow); }

/* =========================================================
   Registro / inicio de sesión (registro.html)
   ========================================================= */
.auth-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 16px;
}

@media (min-width: 640px) {
  .auth-top { padding: 20px 24px; }
}

.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px 6px 8px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--mist);
  transition: color 0.15s ease, background-color 0.15s ease;
}

.auth-back:hover { color: var(--snow); background: var(--glass); }
.auth-back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.auth-main {
  flex: 1;
  display: grid;
  place-items: center;
  gap: 32px;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 8px 16px 64px;
}

@media (min-width: 960px) {
  .auth-main { grid-template-columns: 420px 1fr; padding: 8px 24px 64px; }
}

.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 32px 24px;
  border: 1px solid var(--edge);
  border-radius: 24px;
  background: rgb(var(--night-2-rgb) / 0.78);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 30px 70px rgb(0 0 0 / calc(0.35 * var(--shade))), inset 0 1px 0 rgb(var(--tint) / 0.05);
}

@media (min-width: 480px) {
  .auth-card { padding: 36px 32px; }
}

.auth-avatar {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 3px hsl(var(--a1) / 0.4), 0 10px 30px rgb(0 0 0 / calc(0.4 * var(--shade)));
}

@media (min-width: 960px) {
  .auth-avatar { display: none; }
}

.auth-card h1 {
  text-align: center;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg-strong);
}

.auth-sub {
  margin-top: 8px;
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
  color: var(--mist);
}

.auth-page code {
  padding: 1px 5px;
  border-radius: 4px;
  background: rgb(var(--tint) / 0.08);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.92em;
  white-space: nowrap;
}

.auth-alert {
  margin-top: 20px;
  padding: 10px 12px;
  border: 1px solid;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.45;
}

.auth-alert[data-type="error"] { background: rgba(244, 63, 94, 0.12); border-color: rgba(244, 63, 94, 0.35); color: var(--bad-text); }
.auth-alert[data-type="info"] { background: var(--violet-soft); border-color: var(--violet-edge); color: var(--violet-text); }
.auth-alert[data-type="success"] { background: rgba(74, 222, 128, 0.1); border-color: rgba(74, 222, 128, 0.35); color: var(--ok-text); }

.btn-google {
  width: 100%;
  margin-top: 24px;
  border-color: var(--edge-strong);
  background: var(--glass);
  color: var(--snow);
}

.btn-google:hover { border-color: rgb(var(--tint) / 0.28); background: var(--glass-hover); }
.btn-google svg { width: 18px; height: 18px; }
.btn-google.is-busy svg { display: none; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  font-size: 12px;
  color: var(--dim);
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--edge);
}

.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-form .btn-primary { width: 100%; margin-top: 4px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.field label { font-size: 14px; font-weight: 500; color: var(--snow); }

.field input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--edge-strong);
  border-radius: 12px;
  background: rgb(0 0 0 / calc(0.2 * var(--shade)));
  font: inherit;
  font-size: 15px;
  color: var(--fg-strong);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input::placeholder { color: var(--dim); }
.field input:hover { border-color: rgb(var(--tint) / 0.26); }

.field input:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 4px hsl(var(--a1) / 0.15);
}

.field input[aria-invalid="true"] { border-color: #fb7185; }
.field input[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.15); }

.password-wrap { position: relative; }
.password-wrap input { padding-right: 46px; }

.toggle-pass {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 12px;
  background: none;
  color: var(--mist);
  cursor: pointer;
}

.toggle-pass:hover { color: var(--fg-strong); }
.toggle-pass svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.toggle-pass .icon-eye-off,
.toggle-pass[aria-pressed="true"] .icon-eye { display: none; }
.toggle-pass[aria-pressed="true"] .icon-eye-off { display: block; }

.field-hint { font-size: 12px; color: var(--dim); }
.field-error { font-size: 12px; color: var(--bad-text); }
.field:has([aria-invalid="true"]) .field-hint { display: none; }

.link-btn {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--violet-text);
  cursor: pointer;
}

.link-btn:hover { color: var(--fg-strong); text-decoration: underline; text-underline-offset: 2px; }
.link-btn:disabled { opacity: 0.6; cursor: default; }

.auth-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.5; color: var(--mist); cursor: pointer; }
.auth-check input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--violet); cursor: pointer; }
.auth-check input[aria-invalid="true"] { outline: 2px solid var(--bad-text); outline-offset: 2px; }
.auth-check a { color: var(--violet-text); text-decoration: underline; text-underline-offset: 2px; }
.auth-check a:hover { color: var(--snow); }
.field .auth-check { font-weight: 400; color: var(--mist); }

.auth-legal {
  margin-top: 16px;
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
  color: var(--dim);
}

.auth-legal a { text-decoration: underline; text-underline-offset: 2px; }
.auth-legal a:hover { color: var(--snow); }

.auth-switch {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--edge);
  text-align: center;
  font-size: 14px;
  color: var(--mist);
}

.auth-switch .link-btn { font-size: 14px; }

/* Escena junto al formulario (escritorio) */
.auth-art { display: none; }

@media (min-width: 960px) {
  .auth-art {
    display: block;
    position: relative;
    width: 100%;
    height: 580px;
  }

  .auth-art .scene {
    position: absolute;
    inset: 0;
    -webkit-mask-image: radial-gradient(closest-side at 50% 46%, #000 45%, transparent 100%);
    mask-image: radial-gradient(closest-side at 50% 46%, #000 45%, transparent 100%);
  }

  .auth-art .snow { inset: 0; width: 100%; height: 100%; }
}

.auth-quote {
  position: absolute;
  left: 8%;
  bottom: 6%;
  z-index: 2;
  max-width: 340px;
  padding: 16px 18px;
  border: 1px solid var(--edge);
  border-radius: 16px;
  background: rgb(var(--night-rgb) / 0.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.auth-quote p { font-size: 17px; line-height: 1.45; font-weight: 500; color: var(--fg-strong); }
.auth-quote cite { display: block; margin-top: 8px; font-size: 12px; font-style: normal; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--violet-text); }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; animation: none; }
  .scene.is-settled .scene-still,
  .scene.is-settled .scene-photo.is-on,
  .scene-mist,
  .scene .scene-rays,
  .scene .scene-sheen,
  .scene .scene-fog,
  .eyebrow-dot { animation: none; }
  .btn { transition: none; }
}

/* ---------- Ventanas de Nexxoryx (en vez de las del navegador) ---------- */
.btn-danger { background: #e11d48; color: #fff; box-shadow: 0 8px 24px rgba(225, 29, 72, 0.3); }
.btn-danger:hover { filter: brightness(1.08); }

dialog.ask {
  width: min(460px, calc(100vw - 32px));
  padding: 0;
  border: 1px solid var(--edge-strong);
  border-radius: 20px;
  background: var(--night-2);
  color: var(--snow);
  box-shadow: 0 30px 80px rgb(0 0 0 / calc(0.55 * var(--shade)));
}
dialog.ask::backdrop { background: rgba(6, 9, 18, 0.66); backdrop-filter: blur(4px); }
dialog.ask[open] { animation: ask-in 0.18s ease-out; }
@keyframes ask-in { from { opacity: 0; transform: translateY(8px) scale(0.98); } }
.ask-box { display: grid; gap: 14px; padding: 22px; }
.ask-head { display: flex; align-items: center; gap: 12px; }
.ask-avatar { display: none; width: 48px; height: 48px; flex: none; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px hsl(var(--a1) / 0.4); }
dialog.ask.is-fenrir .ask-avatar { display: block; }
.ask-head h2 { margin: 0; font-size: 19px; line-height: 1.3; color: var(--fg-strong); }
.ask-text { margin: 0; font-size: 15px; line-height: 1.55; color: var(--mist); }
.ask-cost { margin: 0; padding: 10px 12px; border: 1px solid var(--violet-edge); border-radius: 12px; background: var(--violet-soft); font-size: 14px; color: var(--violet-text); }
.ask-btns { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.ask-btns .btn { height: 42px; }
@media (max-width: 480px) {
  .ask-btns { flex-direction: column-reverse; }
  .ask-btns .btn { width: 100%; }
}

/* ---------- Fenrir trabajando: la pantalla de carga mientras la IA trabaja ---------- */
.fx-work {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(6, 9, 18, 0.72);
  backdrop-filter: blur(6px);
  animation: ask-in 0.2s ease-out;
}
.fx-work[hidden], .fx-pill[hidden] { display: none; }
.fx-card {
  width: min(560px, 100%);
  overflow: hidden;
  border: 1px solid var(--violet-edge);
  border-radius: 22px;
  background: var(--night-2);
  box-shadow: 0 30px 90px rgb(0 0 0 / calc(0.6 * var(--shade))), 0 0 60px hsl(var(--a2) / 0.18);
}
.fx-media { aspect-ratio: 16 / 9; background: #05070d url("assets/fenrir-cargando.jpg") center / cover; }
.fx-media video { display: block; width: 100%; height: 100%; object-fit: cover; }
.fx-body { display: grid; gap: 8px; padding: 18px 20px 20px; text-align: center; }
.fx-body strong { font-size: 18px; color: #fff; }
.fx-body p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--mist); }
.fx-body .btn { justify-self: center; margin-top: 4px; }
.fx-time { font-variant-numeric: tabular-nums; color: var(--dim) !important; font-size: 13px !important; }
.fx-step { margin: 2px 0 0; font-size: 14.5px; font-weight: 600; color: var(--snow); animation: fx-step-in 0.4s ease; }
@keyframes fx-step-in { from { opacity: 0.3; } to { opacity: 1; } }
.fx-bar { position: relative; height: 4px; overflow: hidden; border-radius: 4px; background: rgba(255, 255, 255, 0.08); }
.fx-bar span { position: absolute; inset: 0 auto 0 0; width: 35%; border-radius: inherit; background: var(--aurora); animation: fx-bar 1.6s ease-in-out infinite; }
@keyframes fx-bar { from { left: -35%; } to { left: 100%; } }
.fx-pill {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100vw - 32px);
  padding: 6px 16px 6px 6px;
  border: 1px solid var(--violet-edge);
  border-radius: 999px;
  background: var(--night-2);
  box-shadow: 0 12px 34px rgb(0 0 0 / calc(0.5 * var(--shade)));
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--snow);
  cursor: pointer;
  font-variant-numeric: tabular-nums;
}
.fx-pill img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.fx-pill span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) {
  .fx-bar span { animation: none; width: 100%; opacity: 0.5; }
  dialog.ask[open], .fx-work { animation: none; }
}

/* La insignia de Nexxoryx Pro (la app, Tu espacio y la administración) */
.pro-badge { display: inline-flex; align-items: center; padding: 1px 7px; border-radius: 999px; background: linear-gradient(135deg, #fde68a, #f59e0b); color: #1c1305; font-size: 10.5px; font-weight: 800; letter-spacing: 0.06em; line-height: 1.6; vertical-align: middle; }
.pro-badge[hidden] { display: none; }

/* Aviso de versión nueva (version.js): se publicó otra mientras la pestaña seguía abierta */
.new-version {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 97;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 10px 10px 10px 16px;
  border: 1px solid var(--violet-edge);
  border-radius: 14px;
  background: var(--night-3);
  color: var(--fg-strong);
  font-size: 14px;
  transform: translateX(-50%);
  box-shadow: 0 12px 30px rgb(0 0 0 / calc(0.45 * var(--shade)));
}
.new-version-x { width: 30px; height: 30px; border: 0; border-radius: 8px; background: none; font-size: 13px; color: var(--mist); cursor: pointer; }
.new-version-x:hover { background: var(--glass-hover); color: var(--fg-strong); }

/* La fila de Fenrir (api.js): mientras espera su turno */
.fenrir-queue {
  position: fixed;
  top: 76px;
  left: 50%;
  z-index: 98;
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 10px 16px;
  border: 1px solid var(--violet-edge);
  border-radius: 14px;
  background: var(--night-3);
  color: var(--snow);
  font-size: 14px;
  line-height: 1.45;
  transform: translateX(-50%);
  box-shadow: 0 12px 30px rgb(0 0 0 / calc(0.45 * var(--shade)));
}
.fenrir-queue-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--violet); animation: fenrir-queue 1.2s ease-in-out infinite; }
@keyframes fenrir-queue { 50% { opacity: 0.3; transform: scale(0.7); } }
@media (prefers-reduced-motion: reduce) { .fenrir-queue-dot { animation: none; } }

/* ---------- Portada: la idea se escribe aquí mismo (main.js) ---------- */
@media (min-width: 900px) {
  .pr-hero h1 { font-size: 46px; }
  .pr-hero-copy { max-width: 56%; }
}
.idea-box {
  position: relative;
  display: grid;
  gap: 10px;
  max-width: 600px;
  margin-top: 26px;
  padding: 12px;
  border: 1px solid var(--edge-strong);
  border-radius: 20px;
  background: rgb(var(--night-rgb) / 0.82);
  box-shadow: 0 24px 60px rgb(0 0 0 / calc(0.45 * var(--shade))), 0 0 0 1px hsl(var(--a1) / 0.08);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.idea-kinds { display: flex; flex-wrap: wrap; gap: 4px; }
.idea-kinds button {
  height: 32px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: none;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--mist);
  cursor: pointer;
}
.idea-kinds button:hover { color: var(--snow); background: var(--glass); }
.idea-kinds button[aria-selected="true"] { border-color: var(--violet-edge); background: var(--violet-soft); color: var(--fg-strong); }
.idea-box textarea {
  width: 100%;
  min-height: 84px;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: rgb(var(--tint) / 0.04);
  color: var(--fg-strong);
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
  resize: vertical;
}
.idea-box textarea::placeholder, .idea-mini input::placeholder { color: var(--dim); }
.idea-box textarea:focus-visible, .idea-mini input:focus-visible { outline: 2px solid var(--violet-edge); outline-offset: 1px; }
.idea-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.idea-chips { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.idea-chip {
  height: 30px;
  padding: 0 11px;
  border: 1px solid var(--edge);
  border-radius: 999px;
  background: var(--glass);
  font: inherit;
  font-size: 13px;
  color: var(--mist);
  cursor: pointer;
}
.idea-chip:hover { border-color: var(--violet-edge); color: var(--fg-strong); }
.idea-go { height: 42px; padding: 0 18px; border-radius: 12px; }
.idea-error { margin: 0; font-size: 13px; color: var(--bad-text); }
@media (max-width: 520px) {
  .idea-go { width: 100%; justify-content: center; }
}

/* Proyectos de ejemplo (portada): la tienda y la app con su vista en vivo, cada una con su color */
.demos { display: grid; gap: 22px; }
.demo-card { --demo-h: 228; display: grid; gap: 18px; padding: 16px; border: 1px solid hsl(var(--demo-h) 70% 60% / 0.3); border-radius: 26px; background: linear-gradient(160deg, hsl(var(--demo-h) 80% 60% / 0.12), var(--glass) 55%); min-width: 0; }
.demo-shot { position: relative; display: block; overflow: hidden; border: 1px solid var(--edge); border-radius: 18px; background: #fff; text-decoration: none; box-shadow: 0 24px 60px -24px rgb(0 0 0 / calc(0.55 * var(--shade))); transition: transform 0.35s, box-shadow 0.35s; }
.demo-shot:hover { transform: translateY(-4px); box-shadow: 0 34px 70px -24px hsl(var(--demo-h) 80% 45% / 0.55); }
.demo-browser { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #f1f0ee; border-bottom: 1px solid #e3e1dd; }
.demo-browser i { width: 10px; height: 10px; border-radius: 50%; background: #d8d5cf; }
.demo-browser i:first-child { background: #ff6159; } .demo-browser i:nth-child(2) { background: #ffbd2e; } .demo-browser i:nth-child(3) { background: #28c941; }
.demo-browser em { margin-left: 10px; padding: 2px 12px; border-radius: 99px; background: #fff; font: 500 12px/1.6 var(--font, system-ui); font-style: normal; color: #77736c; }
.demo-frame { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.demo-frame iframe { position: absolute; inset: 0 auto auto 0; width: 250%; height: 250%; border: 0; transform: scale(0.4); transform-origin: 0 0; pointer-events: none; }
.demo-copy { display: grid; gap: 8px; align-content: start; }
.demo-q { margin: 0; font-size: 14px; font-weight: 700; letter-spacing: 0.02em; color: hsl(var(--demo-h) 85% 72%); }
.demo-copy h3 { margin: 0; font-size: clamp(22px, 2.6vw, 28px); line-height: 1.2; color: var(--fg-strong); }
.demo-copy p:not(.demo-q) { margin: 0; font-size: 15px; line-height: 1.55; color: var(--mist); }
.demo-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.demo-note { margin: 16px 0 0; font-size: 13px; color: var(--dim); text-align: center; }
.demo-copy-btn { min-height: 40px; padding: 0 14px; border: 1px dashed hsl(var(--demo-h) 60% 60% / 0.55); border-radius: 12px; background: transparent; color: var(--mist); font: 600 14px/1 var(--font, system-ui); cursor: pointer; }
.demo-copy-btn:hover { color: var(--fg-strong); border-style: solid; }
.demo-small .demo-copy p:not(.demo-q) { font-size: 14px; }
.demo-small .demo-actions .btn { padding-inline: 14px; }
@media (min-width: 900px) {
  .demos { grid-template-columns: repeat(6, 1fr); }
  .demo-card { grid-column: span 3; }
  .demo-card.demo-small { grid-column: span 2; }
}
:root[data-theme="light"] .demo-q { color: hsl(var(--demo-h) 70% 40%); }
/* Todo incluido */
.included { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.included li { display: grid; gap: 4px; padding: 16px 18px; border: 1px solid var(--edge); border-radius: 14px; background: var(--glass); }
.included strong { font-size: 15px; font-weight: 600; color: var(--fg-strong); }
.included span { font-size: 14px; color: var(--mist); }

/* La ruta en tres pasos */
@media (min-width: 900px) {
  .route.route-3 { grid-template-columns: repeat(3, 1fr); }
}

/* La idea, de nuevo al final */
.idea-mini { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
.idea-mini input {
  flex: 1 1 220px;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--edge-strong);
  border-radius: 12px;
  background: rgb(var(--tint) / 0.05);
  color: var(--fg-strong);
  font: inherit;
  font-size: 15px;
}
.idea-mini .btn { height: 44px; }
.idea-mini .idea-error { flex-basis: 100%; }
@media (min-width: 760px) {
  .pr-final .idea-mini { max-width: 440px; margin-left: auto; }
  .pr-final .idea-mini .btn { margin-left: 0; }
}

/* En el celular la caja de la idea aparece antes: escena más baja, título más corto y tipos deslizables */
@media (max-width: 899px) {
  .pr-hero .scene { height: 170px; }
  .pr-hero-copy { margin-top: -28px; }
  .pr-hero h1 { font-size: 30px; }
  .pr-lead { margin-top: 12px; font-size: 16px; }
  .idea-box { margin-top: 18px; }
  .idea-kinds { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .idea-kinds::-webkit-scrollbar { display: none; }
  .idea-kinds button { flex: none; }
}

/* «Hola, nachoss»: su nombre en colores. Sin Pro, los de la marca (fijos); con Pro, los del cielo y el clima de ahora
   (inicio.js los pone en --n1..--n3 cada minuto y se funden) y el degradado corre despacio */
@property --n1 { syntax: "<color>"; inherits: true; initial-value: hsl(262 82% 70%); }
@property --n2 { syntax: "<color>"; inherits: true; initial-value: hsl(228 82% 70%); }
@property --n3 { syntax: "<color>"; inherits: true; initial-value: hsl(196 82% 70%); }
.hello-name {
  background: linear-gradient(100deg, var(--n1), var(--n2), var(--n3), var(--n1));
  background-size: 100% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  transition: --n1 3s ease, --n2 3s ease, --n3 3s ease;
}
.hello-name.is-pro { background-size: 200% auto; animation: hello-flow 8s linear infinite; }
@keyframes hello-flow { to { background-position: 200% center; } } /* (= una vuelta entera: el degradado se repite sin salto) */
@media (prefers-reduced-motion: reduce) { .hello-name.is-pro { animation: none; } }

/* «Tu espacio»: la idea del proyecto nuevo se escribe en la tarjeta de Fenrir */
.home-idea { margin-top: 4px; }
.home-idea .btn { flex: none; }

/* ---------- Ajustes → Apariencia (tema.js) ---------- */
.look-set { display: grid; gap: 10px; min-width: 0; margin: 0; padding: 0 0 14px; border: 0; border-bottom: 1px solid var(--edge); }
.look-set legend { padding: 0; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.look-modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border: 1px solid var(--edge); border-radius: 12px; background: var(--glass); }
.look-mode { position: relative; display: grid; }
.look-mode input { position: absolute; opacity: 0; pointer-events: none; }
.look-mode span { padding: 8px 6px; border-radius: 9px; font-size: 13px; font-weight: 500; text-align: center; color: var(--mist); cursor: pointer; }
.look-mode input:checked + span { background: var(--violet-soft); color: var(--fg-strong); box-shadow: inset 0 0 0 1px var(--violet-edge); }
.look-mode input:focus-visible + span { outline: 2px solid var(--violet); outline-offset: 1px; }
.look-check { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 10px; font-size: 13.5px; font-weight: 500; color: var(--snow); cursor: pointer; }
.look-check input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--violet); }
.look-check small { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; line-height: 1.45; color: var(--dim); }
.look-now { min-height: 1em; font-size: 12px; color: var(--mist); }
.look-now:empty { display: none; }
.look-dialog .look-set { padding-bottom: 4px; border-bottom: 0; }

/* Portada: claro ↔ oscuro con un toque (el resto de opciones está en Ajustes → Apariencia) */
.theme-toggle { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--edge); border-radius: 10px; background: var(--glass); color: var(--mist); cursor: pointer; }
.theme-toggle:hover { background: var(--glass-hover); color: var(--fg-strong); }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:root[data-theme="light"] .theme-toggle .tt-sun,
:root:not([data-theme="light"]) .theme-toggle .tt-moon { display: none; }

/* ---------- El ambiente (tema.js): el cielo según la hora y el clima ----------
   Con «Colores según la hora y el clima», el fondo pasa a una capa propia: el tono del cielo arriba, dos luces que el
   viento mueve, escarcha en los bordes si está helado y un lienzo con lluvia, nieve o estrellas. */
/* Los colores del cielo se funden (cambian cada minuto con el sol y al cambiar el clima) */
@property --glow-1 { syntax: "<color>"; inherits: true; initial-value: transparent; }
@property --glow-2 { syntax: "<color>"; inherits: true; initial-value: transparent; }
@property --sky { syntax: "<color>"; inherits: true; initial-value: transparent; }
:root[data-sky] { transition: --glow-1 6s ease, --glow-2 6s ease, --sky 6s ease; }
:root[data-sky] body { background: var(--night); }
:root[data-sky] body::before {
  content: "";
  position: fixed;
  inset: -12%;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(to bottom, var(--sky, transparent), transparent 62%),
    radial-gradient(55% 45% at 78% 4%, var(--glow-1), transparent 72%),
    radial-gradient(60% 50% at 12% 100%, var(--glow-2), transparent 72%);
  /* El cielo respira despacio; con viento se mueve más rápido */
  animation: amb-drift 48s ease-in-out infinite alternate;
}
:root[data-wind="1"] body::before { animation-duration: 20s; }
:root[data-wind="2"] body::before { animation-duration: 9s; }
@keyframes amb-drift {
  from { transform: translate3d(-3%, -1.5%, 0) scale(1); }
  50% { transform: translate3d(1%, 1%, 0) scale(1.04); }
  to { transform: translate3d(4%, -0.5%, 0) scale(1.02); }
}
/* Helado: escarcha suave en los bordes */
:root[data-temp="helado"] body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  box-shadow: inset 0 0 120px 10px hsl(192 70% 80% / 0.1);
}
:root[data-theme="light"][data-temp="helado"] body::after { box-shadow: inset 0 0 120px 10px hsl(196 70% 60% / 0.12); }
.amb-fx { position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  :root[data-wind] body::before { animation: none; }
}

/* El indicador del clima en la barra de arriba: discreto; abre Apariencia */
.amb-chip { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 10px; border: 1px solid var(--edge); border-radius: 99px; background: var(--glass); font: inherit; font-size: 12.5px; font-weight: 500; color: var(--mist); white-space: nowrap; cursor: pointer; }
.amb-chip:hover { background: var(--glass-hover); color: var(--fg-strong); }
.amb-chip[hidden] { display: none; }
.look-place { margin: -2px 0 0 26px; font-size: 12px; line-height: 1.45; color: var(--dim); }
.look-place .link-btn { padding: 0; border: 0; background: none; font: inherit; font-weight: 600; color: var(--violet-text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.look-place:empty { display: none; }
@media (max-width: 520px) {
  .amb-chip { display: none; }
}

/* Mi espacio: ¿una web o una app? (sin elegir, Fenrir lo deduce de la idea) */
.home-kind { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; }
.home-kind label { position: relative; }
.home-kind input { position: absolute; opacity: 0; pointer-events: none; }
.home-kind span { display: inline-block; padding: 6px 12px; border: 1px solid var(--edge); border-radius: 99px; background: var(--glass); font-size: 13px; font-weight: 500; color: var(--mist); cursor: pointer; }
.home-kind input:checked + span { border-color: var(--violet-edge); background: var(--violet-soft); color: var(--fg-strong); }
.home-kind input:focus-visible + span { outline: 2px solid var(--violet); outline-offset: 2px; }

/* Selector de idioma (portada y entrar) */
.lang-switch { margin: 10px 0 0; font-size: 13px; color: var(--mist); }
.lang-switch strong { color: var(--snow); font-weight: 600; }
.lang-switch .link-btn { font-size: 13px; }

/* Trampa para robots en los formularios: fuera de la pantalla (una persona no la ve ni llega a ella con el teclado) */
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
