/* ============================================
   HERLISS BRICEÑO — main.css
   Design System: Cyber-Sophisticate
   ============================================ */

/* IMPORTS */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&family=JetBrains+Mono:wght@400;600&display=swap');

/* VARIABLES */
:root {
  /* Surfaces */
  --color-bg:               #131315;
  --color-surface-low:      #1b1b1d;
  --color-surface:          #1f1f21;
  --color-surface-high:     #2a2a2c;
  --color-surface-bright:   #39393b;

  /* Accents */
  --color-emerald:          #38eeba;
  --color-emerald-dim:      rgba(56, 238, 186, 0.15);
  --color-cyan:             #00bcd4;
  --color-cyan-dim:         rgba(0, 188, 212, 0.15);

  /* Text */
  --color-text:             #e4e2e4;
  --color-text-2:           #c5c6cd;
  --color-text-3:           #8892b0;

  /* Borders */
  --color-border:           rgba(57, 57, 59, 0.6);
  --color-border-subtle:    rgba(255, 255, 255, 0.05);
  --color-border-accent:    rgba(56, 238, 186, 0.2);

  /* Typography */
  --font-display:  'Geist', 'Inter', system-ui, sans-serif;
  --font-body:     'Inter', system-ui, sans-serif;
  --font-mono:     'JetBrains Mono', 'Fira Code', monospace;

  /* Layout */
  --nav-height:    64px;
  --max-width:     1280px;
  --transition:    all 0.2s ease;
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-text);
  background-color: var(--color-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* Grid overlay sutil en el fondo */
  background-image:
    linear-gradient(rgba(56, 238, 186, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 238, 186, 0.015) 1px, transparent 1px);
  background-size: 40px 40px;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

/* ============================================
   NAVEGACIÓN
   ============================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4rem;
  height: var(--nav-height);
  background: rgba(19, 19, 21, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
}

.nav__brand {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
  text-decoration: none;
}

.nav__brand span {
  color: var(--color-emerald);
}

.nav__links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav__link {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-3);
  transition: var(--transition);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.nav__link:hover {
  color: var(--color-emerald);
  text-shadow: 0 0 10px rgba(56, 238, 186, 0.4);
}

.nav__link--active {
  color: var(--color-emerald);
  border-bottom-color: var(--color-emerald);
  text-shadow: 0 0 10px rgba(56, 238, 186, 0.3);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--color-text-3);
  transition: var(--transition);
}

/* BADGE (certificaciones) */
.badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border: 1px solid var(--color-border-accent);
  color: var(--color-emerald);
  background: var(--color-emerald-dim);
  border-radius: 0.25rem;
  transition: var(--transition);
}

.badge:hover {
  background: rgba(56, 238, 186, 0.25);
  box-shadow: 0 0 12px rgba(56, 238, 186, 0.2);
}

/* BOTONES */
.btn {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 28px;
  border-radius: 0.25rem;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  display: inline-block;
}

.btn--primary {
  background: var(--color-emerald);
  color: #0a1a14;
}

.btn--primary:hover {
  background: #5af5ca;
  box-shadow: 0 0 20px rgba(56, 238, 186, 0.35);
}

.btn--secondary {
  background: transparent;
  color: var(--color-text-3);
  border: 1px solid var(--color-border);
}

.btn--secondary:hover {
  border-color: var(--color-cyan);
  color: var(--color-cyan);
  box-shadow: 0 0 15px rgba(0, 188, 212, 0.2);
}

/* ============================================
   RESPONSIVE — NAVEGACIÓN
   ============================================ */
@media (max-width: 900px) {
  .nav { padding: 0 1.5rem; }

  .nav__links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(19, 19, 21, 0.97);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
    z-index: 99;
  }

  .nav__links--open { display: flex; }

  .nav__link {
    padding: 0.75rem 1.5rem;
    border-bottom: none;
    width: 100%;
  }

  .nav__toggle { display: flex; }
}
