/**
 * ====================================================================
 * LYRAN - Estilos Base & Reset
 * Tipografía, Fondo Cósmico & Utilidades Globales
 * ====================================================================
 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* --- RESET & BOX SIZING --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--navbar-height) + 1.5rem);
  color-scheme: dark;
}

body {
  background-color: var(--color-bg-deep);
  color: var(--color-text-stars);
  font-family: var(--font-body);
  font-weight: var(--weight-regular);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* --- AMBIENTE DE FONDO CÓSMICO (AURORA / GLOW MESH) --- */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle 800px at 15% -10%, rgba(77, 183, 255, 0.14), transparent 70%),
    radial-gradient(circle 900px at 85% 20%, rgba(198, 162, 255, 0.12), transparent 70%),
    radial-gradient(circle 700px at 50% 60%, rgba(77, 183, 255, 0.08), transparent 75%),
    radial-gradient(circle 1000px at 80% 100%, rgba(198, 162, 255, 0.1), transparent 70%);
  pointer-events: none;
  z-index: var(--z-bg);
}

/* Grilla sutil tecnológica de fondo */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(242, 245, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 245, 255, 0.015) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: var(--z-bg);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black 20%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black 20%, transparent 90%);
}

/* Canvas de estrellas interactivo */
#stars-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: var(--z-particles);
  opacity: 0.85;
}

/* --- SELECCIÓN Y SCROLLBAR PERSONALIZADO --- */
::selection {
  background: rgba(77, 183, 255, 0.35);
  color: var(--color-text-stars);
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-deep);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(77, 183, 255, 0.4), rgba(198, 162, 255, 0.4));
  border-radius: var(--radius-full);
  border: 2px solid var(--color-bg-deep);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(77, 183, 255, 0.7), rgba(198, 162, 255, 0.7));
}

/* --- TIPOGRAFÍA Y ENCABEZADOS --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  line-height: 1.15;
  color: var(--color-text-stars);
  letter-spacing: -0.025em;
}

h1 { font-size: var(--text-hero); font-weight: var(--weight-extrabold); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  margin-bottom: var(--space-4);
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--color-accent-blue);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--color-accent-violet);
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  outline: none;
}

ul, ol {
  list-style: none;
}

/* --- UTILIDADES DE TEXTO Y EFECTOS --- */
.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.gradient-text-primary {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.glow-text {
  text-shadow: 0 0 20px rgba(77, 183, 255, 0.45);
}

.text-muted {
  color: var(--color-text-muted);
}

.text-dim {
  color: var(--color-text-dim);
}

.text-center {
  text-align: center;
}

/* --- CONTENEDORES Y ESTRUCTURA --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-6);
  padding-right: var(--space-6);
  position: relative;
  z-index: var(--z-content);
}

.container-wide {
  width: 100%;
  max-width: var(--container-wide);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-6);
  padding-right: var(--space-6);
  position: relative;
  z-index: var(--z-content);
}

.section {
  padding-top: var(--space-24);
  padding-bottom: var(--space-24);
  position: relative;
  z-index: var(--z-content);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-16);
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(77, 183, 255, 0.08);
  border: 1px solid rgba(77, 183, 255, 0.22);
  color: var(--color-accent-blue);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
  box-shadow: 0 0 15px rgba(77, 183, 255, 0.1);
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.85rem);
  font-weight: var(--weight-extrabold);
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
}

.section-description {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* Utilidad para orbes de luz localizados */
.ambient-glow-orb {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(100px);
  z-index: -1;
  opacity: 0.45;
}

.orb-blue {
  background: radial-gradient(circle, rgba(77, 183, 255, 0.35) 0%, transparent 70%);
}

.orb-violet {
  background: radial-gradient(circle, rgba(198, 162, 255, 0.3) 0%, transparent 70%);
}
