@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@100..800&family=Work+Sans:wght@100..900&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  font-size: 16px;
  font-family: "Work Sans";
}

/* Paleta y tokens globales */
:root {
  --primary-purple: #a78bfa;
  --secondary-purple: #c084fc;
  --accent-pink: #db2777;
  --dark-bg: #0f0f23;
  --card-bg: #1a1a2e;
  --gray-950: #030712;
  --gray-100: #f3f4f6;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --purple-800: #6b21a8;
  --purple-900: #581c87;
  --font-sans: "Work Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ======= Header / Nav ======= */
.site-header {
  padding: 19.2px;
  /* 24px → 19.2px */
  border-bottom: 1.6px solid var(--purple-800);
  /* 2px → 1.6px */
  box-shadow: 0 8px 12px -2.4px #581c874d;
  /* 0 10px 15px -3px */
  position: relative;
  z-index: 10;
}

.brand {
  font-family: "Work Sans", monospace;
  font-size: 1.6rem;
  /* 2rem → 1.6rem */
  font-weight: 700;
  color: var(--secondary-purple);
  letter-spacing: .05em;
  text-decoration: none;
  transition: color .2s ease;
}

.brand:hover {
  color: #e9d5ff;
}

.nav-links {
  display: flex;
  gap: 1.6rem;
  font-size: .96rem;
}

/* 2rem / 1.2rem */

.nav-link {
  font-family: "Jetbrains mono", sans-serif;
  color: #e5e7eb;
  position: relative;
  text-decoration: none;
  transition: color .2s ease;
}

.nav-link:hover {
  color: var(--secondary-purple);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1.6px;
  /* -2px */
  height: 1.6px;
  width: 0;
  background: var(--primary-purple);
  transition: width .3s;
}

.nav-link:hover::after {
  width: 100%;
}

/* Base de página por defecto (oscura) */
body {
  background: var(--dark-bg);
  color: #e2e8f0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Utilidades globales */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 12.8px;
}

/* 1200→960, 16→12.8 */
.flex {
  display: flex;
}

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

.justify-between {
  justify-content: space-between;
}

/* Glow text */
@keyframes pulse-glow {

  0%,
  100% {
    text-shadow: 0 0 4px #a78bfa, 0 0 8px #a78bfa, 0 0 12px #a78bfa;
  }

  /* 5,10,15 → 4,8,12 */
  50% {
    text-shadow: 0 0 8px #c084fc, 0 0 16px #c084fc, 0 0 24px #c084fc;
  }

  /* 10,20,30 → 8,16,24 */
}

.glow-text {
  animation: pulse-glow 2s infinite alternate;
}

.btn-glow {
  box-shadow: 0 0 4px #a78bfa, 0 0 12px #a78bfa;
  /* 5,15 → 4,12 */
  transition: all .3s ease-in-out;
}

.btn-glow:hover {
  box-shadow: 0 0 8px #c084fc, 0 0 20px #c084fc, 0 0 32px #c084fc;
  /* 10,25,40 → 8,20,32 */
  transform: scale(1.05);
}

.border-glow {
  border-image: linear-gradient(to right, #a78bfa, #c084fc, #db2777) 1;
  border-width: 1.6px;
  /* 2px */
  border-style: solid;
  box-shadow: 0 0 6.4px rgba(167, 139, 250, .6);
  /* 8px → 6.4px */
  transition: all .3s ease-in-out;
}

.border-glow:hover {
  box-shadow: 0 0 12px rgba(192, 132, 252, .8);
}

/* 15px → 12px */

.input-glow {
  box-shadow: 0 0 0 rgba(167, 139, 250, 0);
  transition: .3s;
}

.input-glow:focus {
  box-shadow: 0 0 6.4px rgba(167, 139, 250, .6);
  /* 8px → 6.4px */
  border-color: #a78bfa;
}

/* Float util */
@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }

  /* -10px → -8px */
}

.floating {
  animation: float 3s ease-in-out infinite;
}

/* ======= Partículas flotantes ======= */
.floating-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: -1;
}

.particle {
  position: absolute;
  width: 1.6px;
  height: 1.6px;
  /* 2px → 1.6px */
  background: var(--primary-purple);
  border-radius: 50%;
  animation: float-particle 15s linear infinite;
  opacity: 0;
}

@keyframes float-particle {
  0% {
    transform: translateY(100vh) translateX(0);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    transform: translateY(-80px) translateX(80px);
    opacity: 0;
  }

  /* 100px → 80px */
}

.particle:nth-child(1) {
  left: 10%;
  animation-delay: 0s;
}

.particle:nth-child(2) {
  left: 20%;
  animation-delay: 2s;
}

.particle:nth-child(3) {
  left: 30%;
  animation-delay: 4s;
}

.particle:nth-child(4) {
  left: 40%;
  animation-delay: 6s;
}

.particle:nth-child(5) {
  left: 50%;
  animation-delay: 8s;
}

.particle:nth-child(6) {
  left: 60%;
  animation-delay: 10s;
}

.particle:nth-child(7) {
  left: 70%;
  animation-delay: 12s;
}

.particle:nth-child(8) {
  left: 80%;
  animation-delay: 14s;
}

/* ======= Footer ======= */
.site-footer {
  padding: 19.2px;
  /* 24px → 19.2px */
  text-align: center;
  color: var(--gray-500);
  font-size: .7rem;
  /* .875rem → .7rem */
  border-top: 1.6px solid var(--purple-800);
  /* 2px → 1.6px */
  box-shadow: inset 0 .8px 2.4px rgba(88, 28, 135, .3);
  /* 0 1px 3px */
  position: relative;
  z-index: 10;
  background-color: rgba(3, 7, 18, 0.0);
}

.footer-subtitle {
  margin-top: .4rem;
  /* .5rem → .4rem */
  font-size: .8rem;
  /* 1rem → .8rem */
  color: var(--secondary-purple);
}

/* Selección de texto global */
::selection {
  background: var(--primary-purple);
  color: #0b0b18;
}