/* ==========================================================================
   PORTFOLIO PROFESIONAL // DIEGO · SISTEMAS MICROINFORMÁTICOS & DEV
   Diseño de Alta Fidelidad: Linear / Vercel Dark UI, Glassmorphism, 
   Microinteracciones fluidas, Sistema de Grilla de 8px y Tipografía Moderna.
   ========================================================================== */

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

:root {
  /* Paleta Base Obsidian & Slate */
  --bg-base: #060913;
  --bg-surface: #0a0f1d;
  --bg-card: rgba(14, 21, 38, 0.7);
  --bg-card-hover: rgba(20, 30, 55, 0.85);
  --bg-glass: rgba(10, 15, 29, 0.75);
  --bg-elevated: #111a33;

  /* Tipografía */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-faint: #475569;

  /* Acentos de Luz de Alta Fidelidad */
  --accent-cyan: #00f5c4;
  --accent-cyan-subtle: rgba(0, 245, 196, 0.12);
  --accent-cyan-glow: rgba(0, 245, 196, 0.35);
  --accent-blue: #38bdf8;
  --accent-blue-subtle: rgba(56, 189, 248, 0.12);
  --accent-violet: #818cf8;
  --accent-violet-subtle: rgba(129, 140, 248, 0.12);
  --accent-emerald: #10b981;

  /* Líneas y Bordes de Precisión */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-card: rgba(255, 255, 255, 0.1);
  --border-focus: rgba(0, 245, 196, 0.4);
  --border-gradient: linear-gradient(135deg, rgba(0, 245, 196, 0.3), rgba(129, 140, 248, 0.15));

  /* Sombras y Luces */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px -4px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.7);
  --shadow-cyan: 0 0 25px -3px rgba(0, 245, 196, 0.25);

  /* Fuentes */
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', var(--font-body);
  --font-mono: 'JetBrains Mono', monospace;

  /* Radio */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
}

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

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

body {
  background-color: var(--bg-base);
  color: var(--text-secondary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  min-height: 100vh;
}

/* FONDOS Y EFECTOS ATMOSFÉRICOS (SIN FONDOS TURBIOS NI CLIPPING) */
.ambient-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.15;
  will-change: transform;
  animation: ambientFloat 18s ease-in-out infinite alternate;
}

.glow-cyan {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-cyan) 0%, rgba(0, 245, 196, 0.05) 70%, transparent 100%);
  top: -150px;
  right: -100px;
}

.glow-violet {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, var(--accent-violet) 0%, rgba(129, 140, 248, 0.04) 70%, transparent 100%);
  bottom: 10%;
  left: -200px;
  animation-duration: 22s;
  animation-delay: -6s;
}

.glow-blue {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-blue) 0%, rgba(56, 189, 248, 0.04) 70%, transparent 100%);
  top: 45%;
  right: 10%;
  animation-duration: 26s;
  animation-delay: -12s;
}

@keyframes ambientFloat {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -40px) scale(1.06); }
  100% { transform: translate(-25px, 25px) scale(0.95); }
}

.ambient-grid {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 75%, transparent 100%);
}

/* BARRA DE PROGRESO DE LECTURA */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue), var(--accent-violet));
  box-shadow: 0 0 12px var(--accent-cyan);
  z-index: 1000;
  transition: width 0.06s ease-out;
}

/* CONTENEDOR PRINCIPAL */
.container {
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

/* CABECERA & NAVBAR FLOTANTE */
.site-header {
  position: sticky;
  top: 16px;
  z-index: 100;
  margin-bottom: 2rem;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.4rem;
  background: rgba(10, 15, 29, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.header-inner:hover {
  border-color: rgba(0, 245, 196, 0.25);
  box-shadow: 0 12px 32px -4px rgba(0, 0, 0, 0.6), var(--shadow-cyan);
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-avatar {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 2px solid var(--accent-cyan);
  box-shadow: 0 0 12px rgba(0, 245, 196, 0.4);
}

.brand-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.brand-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent-cyan);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
}

/* NAVEGACIÓN PRINCIPAL */
.main-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.1rem;
  background: linear-gradient(135deg, var(--accent-cyan), #00c99f);
  color: #040813;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 16px rgba(0, 245, 196, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nav-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 245, 196, 0.55);
}

.menu-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1.1rem;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   HERO SECTION // ESTÉTICA LINEAR / VERCEL ELEVADA
   ========================================================================== */
.hero-section {
  padding-block: 3rem 5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-full);
  background: rgba(0, 245, 196, 0.08);
  border: 1px solid rgba(0, 245, 196, 0.25);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4.8vw, 4.2rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin-bottom: 1.4rem;
}

.hero-title .name-highlight {
  background: linear-gradient(135deg, #ffffff 40%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 35px rgba(0, 245, 196, 0.35);
}

/* EFECTO TYPEWRITER */
.typewriter-box {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  font-size: clamp(1.4rem, 2.7vw, 2.3rem);
  font-weight: 700;
  margin-top: 0.25rem;
}

.typewriter-prefix {
  color: var(--text-muted);
  font-weight: 500;
  margin-right: 0.5rem;
}

.typewriter-dynamic {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue), var(--accent-violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: var(--font-display);
}

.typewriter-cursor {
  display: inline-block;
  color: var(--accent-cyan);
  font-weight: 300;
  animation: blinkCursor 0.85s infinite;
  margin-left: 2px;
}

@keyframes blinkCursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* LEMA PROFESIONAL DESTACADO */
.hero-motto-card {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  padding: 1.15rem 1.4rem;
  margin-bottom: 1.6rem;
  background: linear-gradient(135deg, rgba(0, 245, 196, 0.08), rgba(129, 140, 248, 0.05));
  border: 1px solid rgba(0, 245, 196, 0.28);
  border-left: 4px solid var(--accent-cyan);
  border-radius: var(--radius-md);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
}

.motto-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(0, 245, 196, 0.15);
  display: grid;
  place-items: center;
  color: var(--accent-cyan);
  font-size: 1.05rem;
  flex-shrink: 0;
  box-shadow: 0 0 15px rgba(0, 245, 196, 0.25);
}

.motto-content {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.motto-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent-cyan);
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.hero-motto-text {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.5;
}

.hero-bio {
  font-size: 1.06rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 640px;
}

.hero-bio strong {
  color: var(--text-primary);
}

/* BOTONES DE ACCIÓN HERO */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 1.45rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan), #00c99f);
  color: #040813;
  box-shadow: 0 8px 24px -4px rgba(0, 245, 196, 0.45);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -4px rgba(0, 245, 196, 0.65);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border-color: var(--border-card);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.btn-discord {
  background: rgba(88, 101, 242, 0.15);
  color: #a5b4fc;
  border-color: rgba(88, 101, 242, 0.35);
}

.btn-discord:hover {
  background: rgba(88, 101, 242, 0.28);
  color: #ffffff;
  border-color: #5865f2;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(88, 101, 242, 0.3);
}

/* HERO STATS */
.hero-metrics {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--border-subtle);
}

.metric-item {
  display: flex;
  flex-direction: column;
}

.metric-val {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
}

.metric-lbl {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-cyan);
}

.metric-sep {
  width: 1px;
  height: 32px;
  background: var(--border-subtle);
}

/* ==========================================================================
   TARJETA INTERACTIVA 3D HERO PANEL
   ========================================================================== */
.hero-card-panel {
  position: relative;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-lg), var(--shadow-cyan);
  overflow: hidden;
  backdrop-filter: blur(24px);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  background: rgba(6, 9, 19, 0.9);
  border-bottom: 1px solid var(--border-subtle);
}

.panel-dots {
  display: flex;
  gap: 0.45rem;
}

.p-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.p-dot.close { background: #ef4444; }
.p-dot.min { background: #f59e0b; }
.p-dot.max { background: #10b981; }

.panel-tabs {
  display: flex;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.2rem;
  border-radius: var(--radius-sm);
}

.p-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.p-tab-btn.active {
  background: rgba(0, 245, 196, 0.15);
  color: var(--accent-cyan);
  font-weight: 600;
}

.panel-ping {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-cyan);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.panel-body {
  padding: 1.5rem;
}

/* VISTA PERFIL DISCORD */
.profile-banner-clean {
  height: 90px;
  background: linear-gradient(135deg, #090f24, #18264d, #2a3a6e, #0d9488);
  border-radius: var(--radius-sm);
  margin-bottom: -35px;
  position: relative;
  overflow: hidden;
}

.profile-avatar-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-inline: 0.8rem;
  margin-bottom: 1rem;
}

.profile-pic-wrap {
  position: relative;
  width: 76px;
  height: 76px;
  border-radius: var(--radius-full);
  border: 3px solid var(--bg-surface);
  overflow: hidden;
  box-shadow: 0 0 15px rgba(0, 245, 196, 0.4);
}

.profile-pic-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.live-badge-pill {
  padding: 0.3rem 0.75rem;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.profile-info-block h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.verified-icon {
  color: var(--accent-cyan);
  font-size: 0.95rem;
}

.profile-handle {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

.activity-box {
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  margin-bottom: 1.2rem;
}

.activity-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent-cyan);
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
  display: block;
}

.activity-desc {
  font-size: 0.88rem;
  color: var(--text-primary);
  line-height: 1.45;
}

.card-actions-row {
  display: flex;
  gap: 0.75rem;
}

.card-btn {
  flex: 1;
  padding: 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.card-btn.discord {
  background: #5865f2;
  color: #ffffff;
}
.card-btn.discord:hover {
  background: #4752c4;
}

.card-btn.copy {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-card);
  color: var(--text-primary);
}
.card-btn.copy:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

/* TERMINAL CLI BODY */
.terminal-console {
  background: #040711;
  border-radius: var(--radius-sm);
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  min-height: 240px;
  display: flex;
  flex-direction: column;
}

.terminal-logs {
  flex: 1;
  overflow-y: auto;
  max-height: 200px;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.t-line { color: var(--text-secondary); }
.t-cyan { color: var(--accent-cyan); }
.t-green { color: var(--accent-emerald); }
.t-violet { color: var(--accent-violet); }

.terminal-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.6rem;
}

.t-btn {
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  cursor: pointer;
}
.t-btn:hover {
  background: rgba(0, 245, 196, 0.15);
  border-color: var(--accent-cyan);
}

.t-input-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.8rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.6rem;
}

.t-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  outline: none;
}

/* ==========================================================================
   SECCIONES Y ENCABEZADOS UNIVERSALES
   ========================================================================== */
.section {
  padding-block: 4.5rem;
  position: relative;
}

.section-head {
  margin-bottom: 3rem;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-cyan);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 680px;
}

/* ==========================================================================
   SOBRE MÍ // 2 COLUMNAS PERFECTAMENTE EQUILIBRADAS
   ========================================================================== */
.about-grid-clean {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: start;
}

.about-card-main {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  backdrop-filter: blur(16px);
}

.about-card-main p {
  margin-bottom: 1.25rem;
  font-size: 1.02rem;
  line-height: 1.75;
}

.about-card-main p:last-child {
  margin-bottom: 0;
}

.about-values-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.8rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--border-subtle);
}

.val-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.val-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(0, 245, 196, 0.1);
  display: grid;
  place-items: center;
  color: var(--accent-cyan);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.val-text strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.val-text span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* COLUMNA LATERAL DE FOCO */
.focus-stack {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.focus-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.5rem;
  transition: all 0.25s ease;
}

.focus-card:hover {
  border-color: rgba(0, 245, 196, 0.35);
  transform: translateY(-2px);
  background: var(--bg-card-hover);
}

.focus-card-top {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.5rem;
}

.focus-icon {
  color: var(--accent-cyan);
  font-size: 1.15rem;
}

.focus-card-top h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.focus-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ==========================================================================
   HABILIDADES / ARSENAL TÉCNICO // 4 TARJETAS CON ALTURA UNIFORME
   ========================================================================== */
.skills-grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.skill-box {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.skill-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.skill-box:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 245, 196, 0.35);
  box-shadow: var(--shadow-md), 0 0 25px rgba(0, 245, 196, 0.15);
}

.skill-box:hover::before {
  opacity: 1;
}

.skill-icon-header {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(0, 245, 196, 0.1);
  display: grid;
  place-items: center;
  color: var(--accent-cyan);
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
}

.skill-box h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.65rem;
}

.skill-box p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.pill-tag {
  padding: 0.28rem 0.65rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: #cbd5e1;
  transition: all 0.2s ease;
}

.pill-tag:hover {
  background: rgba(0, 245, 196, 0.12);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

/* ==========================================================================
   FORMACIÓN // TIMELINE ALINEADO Y MODERNO
   ========================================================================== */
.timeline-clean {
  position: relative;
  max-width: 900px;
  margin-inline: auto;
  padding-left: 2rem;
  border-left: 2px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
}

.timeline-entry {
  position: relative;
}

.t-node-marker {
  position: absolute;
  top: 0;
  left: calc(-2rem - 6px);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-base);
  border: 2px solid var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.6rem 1.8rem;
  transition: all 0.25s ease;
}

.timeline-card:hover {
  border-color: rgba(0, 245, 196, 0.3);
  transform: translateX(4px);
}

.t-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.t-year-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-cyan);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  background: rgba(0, 245, 196, 0.1);
  border: 1px solid rgba(0, 245, 196, 0.25);
}

.t-center-badge {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.timeline-card h3 {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.timeline-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   EXPERIENCIA LABORAL & PRÁCTICAS REALES
   ========================================================================== */
.experience-grid-clean {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.8rem;
}

.exp-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.exp-card:hover {
  border-color: rgba(0, 245, 196, 0.35);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.exp-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.exp-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(56, 189, 248, 0.1);
  display: grid;
  place-items: center;
  color: var(--accent-blue);
  font-size: 1.25rem;
}

.exp-period-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
}

.exp-card h3 {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.exp-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  flex: 1;
}

.exp-card p strong {
  color: var(--text-primary);
}

/* ==========================================================================
   PROYECTOS & LABORATORIO
   ========================================================================== */
.filter-tabs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.2rem;
}

.filter-tab {
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.filter-tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

.filter-tab.active {
  background: var(--accent-cyan);
  color: #040813;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 16px rgba(0, 245, 196, 0.5);
}

.projects-grid-clean {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.8rem;
}

.project-box {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-box:hover {
  border-color: rgba(0, 245, 196, 0.35);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(0, 245, 196, 0.12);
}

.project-box.is-hidden {
  display: none !important;
}

.proj-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.proj-code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.proj-tech-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.proj-category-lbl {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent-violet);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.project-box h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.project-box p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.4rem;
  flex: 1;
}

.proj-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.proj-btn {
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.2s ease;
}

.proj-btn.primary {
  background: rgba(0, 245, 196, 0.15);
  border: 1px solid rgba(0, 245, 196, 0.35);
  color: var(--accent-cyan);
}
.proj-btn.primary:hover {
  background: var(--accent-cyan);
  color: #040813;
}

.proj-btn.secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
}
.proj-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   LABORATORIO & HERRAMIENTAS INTERACTIVAS
   ========================================================================== */
.tools-grid-clean {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 1.8rem;
}

.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.tool-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.tool-live-pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-cyan);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.tool-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}

.tool-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

/* INTERACTIVO RJ45 */
.rj45-switch {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}

.rj45-btn {
  flex: 1;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rj45-btn.active {
  background: rgba(0, 245, 196, 0.15);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.rj45-pins-display {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0.4rem;
  background: #040813;
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  margin-bottom: 0.8rem;
}

.wire-pin {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.wire-color {
  width: 14px;
  height: 32px;
  border-radius: 4px;
}

.wire-pin b {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.w-w-orange { background: repeating-linear-gradient(45deg, #ffffff, #ffffff 4px, #f97316 4px, #f97316 8px); }
.w-orange { background: #f97316; }
.w-w-green { background: repeating-linear-gradient(45deg, #ffffff, #ffffff 4px, #22c55e 4px, #22c55e 8px); }
.w-green { background: #22c55e; }
.w-w-blue { background: repeating-linear-gradient(45deg, #ffffff, #ffffff 4px, #3b82f6 4px, #3b82f6 8px); }
.w-blue { background: #3b82f6; }
.w-w-brown { background: repeating-linear-gradient(45deg, #ffffff, #ffffff 4px, #a16207 4px, #a16207 8px); }
.w-brown { background: #a16207; }

.rj45-desc-note {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-cyan);
}

/* INTERACTIVO SUBNET */
.subnet-row {
  margin-bottom: 1rem;
}

.subnet-select {
  width: 100%;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  background: #040813;
  border: 1px solid var(--border-card);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  outline: none;
}

.subnet-select:focus {
  border-color: var(--accent-cyan);
}

.subnet-result-box {
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: #040813;
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.7;
}

/* ==========================================================================
   CONTACTO // UPLINK BOX
   ========================================================================== */
.contact-uplink-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 3rem;
  backdrop-filter: blur(20px);
}

.contact-info-col h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.contact-info-col p {
  font-size: 1.02rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.avail-badge-box {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1.2rem;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-md);
}

.avail-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
}

.avail-text strong {
  display: block;
  font-size: 0.88rem;
  color: var(--text-primary);
}

.avail-text span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.contact-links-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all 0.25s ease;
  cursor: pointer;
}

.contact-link-row:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(0, 245, 196, 0.35);
  transform: translateX(4px);
}

.contact-row-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.c-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
}

.c-icon-wrap.discord { background: rgba(88, 101, 242, 0.15); color: #818cf8; }
.c-icon-wrap.copy { background: rgba(0, 245, 196, 0.15); color: var(--accent-cyan); }
.c-icon-wrap.github { background: rgba(255, 255, 255, 0.1); color: #ffffff; }
.c-icon-wrap.email { background: rgba(239, 68, 68, 0.15); color: #f87171; }

.c-text-block strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.c-text-block span {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.c-arrow {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 2.5rem 0;
  margin-top: 4rem;
  background: rgba(4, 7, 18, 0.95);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-left strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--text-primary);
}

.footer-left p {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.back-top-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.back-top-btn:hover {
  background: rgba(0, 245, 196, 0.15);
  border-color: var(--accent-cyan);
  color: #ffffff;
}

/* BOTÓN FLOTANTE */
.floating-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  color: var(--accent-cyan);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
}

.floating-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.floating-top:hover {
  background: var(--accent-cyan);
  color: #040813;
  box-shadow: 0 0 20px var(--accent-cyan);
}

/* ==========================================================================
   ANIMACIONES DE ENTRADA SCROLL-REVEAL (BLUR TO CRISP CON ACELERACIÓN GPU)
   ========================================================================== */
.reveal, .reveal-stagger .stagger-child {
  opacity: 0;
  filter: blur(10px);
  transform: translateY(28px) scale(0.98);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease,
              box-shadow 0.3s ease;
  will-change: opacity, transform, filter;
}

.reveal.visible, .reveal-stagger.visible .stagger-child {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0) scale(1);
}

.reveal-stagger.visible .stagger-child:nth-child(1) { transition-delay: 0.06s; }
.reveal-stagger.visible .stagger-child:nth-child(2) { transition-delay: 0.14s; }
.reveal-stagger.visible .stagger-child:nth-child(3) { transition-delay: 0.22s; }
.reveal-stagger.visible .stagger-child:nth-child(4) { transition-delay: 0.30s; }

/* Micro-interacciones en botones y tarjetas */
.btn, .proj-btn, .card-btn, .contact-link-row, .filter-tab {
  position: relative;
  overflow: hidden;
}

.btn:active, .proj-btn:active, .card-btn:active {
  transform: scale(0.96);
}

.project-box:hover, .skill-box:hover, .exp-card:hover, .timeline-card:hover, .tool-card:hover {
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 245, 196, 0.15);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 992px) {
  .hero-grid,
  .about-grid-clean,
  .contact-uplink-card {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .container {
    width: min(100% - 32px, 1200px);
  }
  .menu-toggle {
    display: flex;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 16px;
    right: 16px;
    padding: 1.2rem;
    gap: 0.8rem;
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    background: #0a0f1d;
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    align-items: stretch;
  }
  .main-nav.open {
    display: flex;
  }
  .nav-link {
    padding: 0.6rem;
  }
  .nav-cta-btn {
    text-align: center;
    justify-content: center;
  }
  .hero-metrics {
    flex-wrap: wrap;
  }
  .timeline-clean {
    padding-left: 1.5rem;
  }
  .t-node-marker {
    left: calc(-1.5rem - 6px);
  }
}
