/* =============================================================
   BASE — tokens, reset, tipografía, botones, utilidades
   Lumina AI Studio
   ============================================================= */

:root {
  /* Paleta (extraída de la imagen original) */
  --ink-950: #060110;
  --ink-900: #0b0220;
  --violet-950: #12042a;
  --violet-900: #1b0739;
  --violet-800: #2a0b56;
  --violet-700: #3d1178;
  --violet-600: #5b1aad;
  --violet-500: #7b2ae0;
  --violet-400: #a855f7;
  --violet-300: #c084fc;
  --fuchsia-300: #f0abfc;
  --cyan-400: #38bdf8;
  --cyan-300: #7dd3fc;
  --blue-500: #2f6bff;

  --white: #ffffff;
  --text: #eee9fb;
  --muted: #b6a6d6;
  --muted-dim: #8d7cb4;

  --line: rgba(255, 255, 255, .11);
  --line-strong: rgba(255, 255, 255, .2);
  --glass: rgba(22, 7, 48, .58);
  --glass-strong: rgba(18, 5, 40, .82);

  /* Tipografía */
  --font-display: "Outfit", "Segoe UI", system-ui, sans-serif;
  --font-body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-script: "Caveat Brush", cursive;
  --font-brush: "Permanent Marker", cursive;

  /* Escala */
  --step--1: clamp(.78rem, .76rem + .1vw, .86rem);
  --step-0: clamp(.95rem, .92rem + .16vw, 1.05rem);
  --step-1: clamp(1.12rem, 1.04rem + .4vw, 1.35rem);
  --step-2: clamp(1.5rem, 1.2rem + 1.4vw, 2.4rem);
  --step-3: clamp(2rem, 1.4rem + 3vw, 4rem);
  --step-4: clamp(3rem, 1.6rem + 6.4vw, 7.2rem);

  /* Espaciado y formas */
  --space-1: .5rem;
  --space-2: .875rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6.5rem;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --radius-pill: 999px;

  --shadow-soft: 0 24px 60px -20px rgba(3, 0, 12, .85);
  --shadow-glow: 0 0 0 1px rgba(168, 85, 247, .35), 0 20px 60px -18px rgba(123, 42, 224, .75);

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --dur: .45s;

  --maxw: 1320px;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--text);
  background: var(--ink-950);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.02em;
  margin: 0;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
strong { font-weight: 700; }

::selection { background: var(--violet-500); color: #fff; }

:focus-visible {
  outline: 2px solid var(--cyan-300);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Utilidades ---------- */
.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 200;
  padding: .7rem 1.1rem;
  background: var(--violet-600);
  border-radius: var(--radius-sm);
  transform: translateY(-160%);
  transition: transform .3s var(--ease-out);
}
.skip-link:focus { transform: translateY(0); }

.section {
  position: relative;
  padding: clamp(4rem, 8vw, 7.5rem) clamp(1.25rem, 5vw, 4rem);
  max-width: var(--maxw);
  margin-inline: auto;
}

.section__head {
  max-width: 62ch;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section__title {
  font-size: var(--step-3);
  margin-block: .55rem .8rem;
}
.section__title em {
  font-style: normal;
  background: linear-gradient(100deg, var(--cyan-300), var(--violet-300) 45%, var(--fuchsia-300));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section__lead {
  color: var(--muted);
  font-size: var(--step-1);
  max-width: 58ch;
}

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .45rem .95rem .45rem .7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .04);
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--violet-300);
  backdrop-filter: blur(8px);
}
.eyebrow__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cyan-400);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, .18), 0 0 14px var(--cyan-400);
  animation: pulse-dot 2.4s var(--ease-in-out) infinite;
}

/* ---------- Botones ---------- */
.btn {
  --btn-py: .72rem;
  --btn-px: 1.35rem;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: var(--btn-py) var(--btn-px);
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-0);
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  isolation: isolate;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out),
              background-color .3s var(--ease-out), border-color .3s var(--ease-out);
}
.btn svg { width: 1.05em; height: 1.05em; flex: none; }

.btn--primary {
  color: #fff;
  background: linear-gradient(120deg, var(--violet-500), var(--violet-600) 55%, #3f2bc9);
  box-shadow: 0 12px 30px -12px rgba(123, 42, 224, .9), inset 0 1px 0 rgba(255, 255, 255, .28);
  overflow: hidden;
}
.btn--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .45) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform .75s var(--ease-out);
}
.btn--primary:hover::before { transform: translateX(120%); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -14px rgba(123, 42, 224, 1); }

.btn--ghost {
  color: var(--text);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, .04);
  backdrop-filter: blur(10px);
}
.btn--ghost:hover {
  border-color: rgba(192, 132, 252, .6);
  background: rgba(168, 85, 247, .14);
  transform: translateY(-2px);
}

.btn--lg { --btn-py: .95rem; --btn-px: 1.75rem; font-size: var(--step-1); }
.btn--sm { --btn-py: .55rem; --btn-px: 1rem; font-size: var(--step--1); }
.btn--block { width: 100%; }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 120;
  background: rgba(255, 255, 255, .06);
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan-400), var(--violet-400), var(--fuchsia-300));
  box-shadow: 0 0 14px rgba(168, 85, 247, .8);
}

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 90;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(140deg, var(--violet-500), var(--violet-700));
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transform: translateY(16px) scale(.85);
  pointer-events: none;
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-out);
}
.to-top svg { width: 18px; height: 18px; }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { transform: translateY(-3px); }
