/* BASE.CSS */

:root {
  /* Colores de fondo */
  --bg:      #060810;
  --bg2:     #0c0f1a;
  --bg3:     #111525;
  --surface: rgba(16, 20, 40, 0.7);

  /* Bordes */
  --border:  rgba(255, 255, 255, 0.07);
  --border2: rgba(0, 200, 255, 0.18);

  /* Paleta de acento */
  --cyan:    #00c8ff;
  --cyan2:   #00ffc4;
  --violet:  #7b5ea7;
  --violet2: #a47fd4;

  /* Tipografía de color */
  --text:    #e8edf8;
  --muted:   #6b7591;
  --dim:     #3a4060;

  /* Familias tipográficas */
  --font:    'Space Grotesk', sans-serif;
  --mono:    'Syne Mono', monospace;
  --display: 'Syne', sans-serif;

  /* Espaciado y layout */
  --section-px: 6%;
  --max-w:      1200px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

/* BODY */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  overflow-x: hidden;
}

/* SCROLLBAR */
::-webkit-scrollbar          { width: 3px; }
::-webkit-scrollbar-track    { background: var(--bg); }
::-webkit-scrollbar-thumb    { background: var(--cyan); border-radius: 2px; }

/* NOISE TEXTURE */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.35;
}

/* SITE WRAPPER */
.site-wrapper {
  position: relative;
  z-index: 2;
}

/* LAYOUT BASE DE SECCIONES */
section,
header {
  padding: 100px var(--section-px);
}

/* UTILIDADES DE SECCIÓN */
.section-tag {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--cyan);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-tag::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--cyan);
}

.section-title {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 48px;
  color: var(--text);
}
.section-title em {
  color: var(--cyan);
  font-style: normal;
}

/* BOTONES */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 26px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.25s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--cyan);
  color: #06080f;
  font-weight: 600;
}
.btn-primary:hover {
  background: var(--cyan2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 200, 255, 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--cyan);
  border: 1px solid var(--border2);
}
.btn-outline:hover {
  background: rgba(0, 200, 255, 0.06);
  transform: translateY(-2px);
}

/* TAGS REUTILIZABLES */
.tag {
  font-family: var(--mono);
  font-size: 0.68rem;
  padding: 4px 10px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--muted);
  letter-spacing: 0.04em;
  transition: all 0.2s;
}
.tag:hover {
  border-color: var(--border2);
  color: var(--cyan);
}
.tag.hot {
  border-color: rgba(0, 200, 255, 0.2);
  color: var(--cyan);
  background: rgba(0, 200, 255, 0.06);
}
.tag.learning {
  border-color: rgba(164, 127, 212, 0.25);
  color: var(--violet2);
  background: rgba(123, 94, 167, 0.08);
}
