/* ==========================================================================
   Adrià Julián — Portfolio
   Design system: "Purple Team" — blue (defense) + red (offense) = violet
   Type: Space Grotesk (display) · Inter (body) · JetBrains Mono (data/code)
   ========================================================================== */

/* ---- Reset --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg, picture, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
input, textarea { background: none; border: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ---- Tokens ---------------------------------------------------------------- */
:root {
  /* surfaces */
  --ink:        #0A0C12;
  --ink-2:      #0D1019;
  --surface:    #12151F;
  --surface-2:  #171B27;
  --line:       rgba(232, 235, 245, 0.09);
  --line-soft:  rgba(232, 235, 245, 0.05);

  /* text */
  --paper:      #ECEEF6;
  --paper-dim:  #C6CADC;
  --muted:      #9AA1B8;
  --faint:      #6B7188;

  /* brand system — original green identity */
  --blue:       #0FA968;   /* networks */
  --blue-dim:   #0A6B45;
  --red:        #39FFA0;   /* bright mint highlight */
  --red-dim:    #0FAE73;
  --violet:     #00DF81;   /* primary signature green */
  --violet-dim: #079A5A;

  --seam: linear-gradient(90deg, var(--blue) 0%, var(--violet) 50%, var(--red) 100%);

  /* category coding — certifications & courses (intentionally distinct hues) */
  --cat-cyber:    #82AAFF;   /* cybersecurity */
  --cat-network:  #5DE0B7;   /* networks */
  --cat-office:   #FFD166;   /* office / productivity */

  /* type */
  --f-display: 'Space Grotesk', 'Inter', sans-serif;
  --f-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --f-mono:    'JetBrains Mono', 'SF Mono', Menlo, monospace;

  /* layout */
  --container: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4.5rem, 9vw, 7.5rem);
  --radius: 14px;
  --radius-sm: 8px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- Base ------------------------------------------------------------------ */
body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* faint structural grid texture — static, cheap, no canvas */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 0%, black 0%, transparent 70%);
  mask-image: radial-gradient(ellipse 70% 50% at 50% 0%, black 0%, transparent 70%);
  opacity: 0.5;
}

::selection { background: var(--violet); color: #0A0C12; }

:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
  border-radius: 4px;
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 8px; border: 2px solid var(--ink); }
::-webkit-scrollbar-thumb:hover { background: var(--violet-dim); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; position: relative; }
.section + .section { border-top: 1px solid var(--line); }

/* ---- Typography ------------------------------------------------------------ */
h1, h2, h3 { font-family: var(--f-display); color: var(--paper); font-weight: 600; letter-spacing: -0.02em; line-height: 1.08; }
h1 { color: var(--paper-dim); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.15rem; font-weight: 600; }
p { color: var(--paper-dim); }

.mono { font-family: var(--f-mono); }

/* "// comment" style eyebrow — mines the subject's own vernacular */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--f-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: lowercase;
}
.eyebrow::before { content: none; }

.section-head { margin-bottom: clamp(2.25rem, 5vw, 3.5rem); max-width: 640px; }
.section-head h2 { margin-top: 0.6rem; }
.section-head p { margin-top: 0.9rem; font-size: 1.02rem; }

/* signature divider thread */
.seam {
  height: 2px;
  width: 100%;
  background: var(--seam);
  opacity: 0.55;
  border: 0;
}
.seam--tight { width: 56px; height: 2px; margin-top: 1rem; opacity: 0.9; }

/* ---- Buttons ----------------------------------------------------------------- */
.button {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.5rem;
  font-family: var(--f-body);
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), border-color 0.25s, background 0.25s, color 0.25s;
  white-space: nowrap;
}
.button:active { transform: scale(0.97); }
.button--primary { background: var(--paper); color: var(--ink); }
.button--primary:hover { background: #fff; transform: translateY(-1px); }
.button--outline { border-color: var(--line); color: var(--paper); }
.button--outline:hover { border-color: var(--violet); color: var(--violet); transform: translateY(-1px); }

/* ---- Header ------------------------------------------------------------------ */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 1.1rem 0;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.header--solid {
  background: rgba(10, 12, 18, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.header__content { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { font-family: var(--f-display); font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; }
.nav { display: flex; align-items: center; gap: 1.9rem; }
.nav-link {
  font-size: 0.88rem;
  color: var(--muted);
  position: relative;
  padding: 0.2rem 0;
  transition: color 0.2s;
}
.nav-link::after {
  content: '';
  position: absolute; left: 0; right: 100%; bottom: -3px;
  height: 1px; background: var(--violet);
  transition: right 0.25s var(--ease);
}
.nav-link:hover, .nav-link.active { color: var(--paper); }
.nav-link:hover::after, .nav-link.active::after { right: 0; }

.header__actions { display: flex; align-items: center; gap: 1rem; }
.lang-switcher { display: flex; gap: 0.2rem; padding: 0.2rem; border: 1px solid var(--line); border-radius: 999px; }
.lang-btn {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.32rem 0.6rem;
  border-radius: 999px;
  color: var(--muted);
  transition: background 0.2s, color 0.2s;
}
.lang-btn.active { background: var(--paper); color: var(--ink); }
.lang-btn:not(.active):hover { color: var(--paper); }

.hamburger { display: none; width: 34px; height: 34px; position: relative; }
.hamburger span {
  position: absolute; left: 7px; right: 7px; height: 2px; background: var(--paper);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.hamburger span:nth-child(1) { top: 11px; }
.hamburger span:nth-child(2) { top: 17px; }
.hamburger span:nth-child(3) { top: 23px; }
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav-overlay {
  position: fixed; inset: 0; z-index: 99;
  background: rgba(8, 9, 14, 0.97);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity 0.3s var(--ease);
}
.mobile-nav-overlay.open { opacity: 1; visibility: visible; }
.mobile-nav { display: flex; flex-direction: column; align-items: center; gap: 1.6rem; }
.mobile-nav-link { font-family: var(--f-display); font-size: 1.6rem; font-weight: 600; color: var(--paper-dim); }
.mobile-nav-link:hover { color: var(--paper); }
.mobile-nav-lang { display: flex; gap: 0.5rem; margin-top: 1.5rem; }

body.menu-open { overflow: hidden; }

/* ---- Hero --------------------------------------------------------------------- */
.hero { padding-top: clamp(7rem, 14vw, 9.5rem); padding-bottom: var(--section-y); overflow: hidden; position: relative; }
.hero-matrix-bg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0.65; z-index: 0; }
.hero > .container { position: relative; z-index: 1; }
.hero__status {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: var(--f-mono); font-size: 0.78rem; color: var(--muted);
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}
.hero__status-dot { width: 7px; height: 7px; border-radius: 50%; background: #3FE07A; box-shadow: 0 0 0 3px rgba(63,224,122,0.18); }
.hero__content { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }

.hero__title { font-size: clamp(2.6rem, 5.6vw, 4.4rem); margin-top: 0.85rem; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 1.5rem; }
.hero__meta span {
  font-family: var(--f-mono); font-size: 0.74rem; color: var(--paper-dim);
  padding: 0.4rem 0.75rem; border: 1px solid var(--line); border-radius: 999px;
}
.hero__subtitle { margin-top: 1.6rem; max-width: 46ch; font-size: 1.08rem; color: var(--paper-dim); min-height: 3.4em; }
.typing-cursor { display: inline-block; width: 2px; background: var(--violet); margin-left: 2px; animation: blink 0.9s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero__actions { display: flex; gap: 0.9rem; margin-top: 2.2rem; flex-wrap: wrap; }

/* Terminal */
.hero-terminal-profile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 60px -25px rgba(0,0,0,0.6);
}
.terminal-header {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.8rem 1rem; border-bottom: 1px solid var(--line); background: var(--surface-2);
}
.terminal-buttons { display: flex; gap: 0.4rem; }
.terminal-buttons .btn { width: 10px; height: 10px; border-radius: 50%; background: var(--faint); }
.terminal-title { font-family: var(--f-mono); font-size: 0.74rem; color: var(--muted); margin-left: 0.3rem; }
.terminal-body { padding: 1.4rem; font-family: var(--f-mono); font-size: 0.84rem; min-height: 280px; line-height: 1.75; }
.terminal-line { display: flex; gap: 0.55rem; align-items: baseline; }
.terminal-line .prompt { color: var(--violet); }
.terminal-line .command { color: var(--paper); }
.cursor { color: var(--paper); animation: blink 0.9s steps(1) infinite; }
.terminal-output { margin: 0.25rem 0 1rem; padding-left: 1.3rem; }

/* Líneas de terminal con colores por contexto */
.tline          { display: inline; }
.tline--whoami  { color: var(--paper); font-weight: 600; font-family: var(--f-display); font-size: 0.9rem; }
.tline--green   { color: var(--violet); }
.tline--blue    { color: #82AAFF; }
.tline--yellow  { color: #FFD166; }
.tline--dim     { color: var(--muted); }
.tline--paper   { color: var(--paper-dim); }
.tline--num     { color: var(--violet); font-weight: 600; font-family: var(--f-mono); }
.tline--sep     { color: var(--faint); margin: 0 0.3em; }

/* Mantener compatibilidad con profile-line antiguo */
.profile-line { color: var(--muted); }
.profile-line:first-child { color: var(--blue); }

/* ---- Reveal ----------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1.visible { transition-delay: 0.08s; }
.reveal-delay-2.visible { transition-delay: 0.16s; }

/* ---- About -------------------------------------------------------------------- */
.about__grid { display: grid; grid-template-columns: 280px 1fr; gap: clamp(2.5rem, 6vw, 4.5rem); }
.about__photo-wrap {
  position: relative; aspect-ratio: 4/5; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface); overflow: hidden;
  transition: border-color 0.3s var(--ease);
}
.about__photo-wrap:hover { border-color: rgba(0,223,129,0.35); }
.about__photo-wrap img { width: 100%; height: 100%; object-fit: cover; }
.about__photo-wrap.img-fallback img { display: none; }

/* HUD scanner frame */
.hud-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 2px solid var(--violet);
  z-index: 3;
  pointer-events: none;
  opacity: 0.85;
  filter: drop-shadow(0 0 4px rgba(0,223,129,0.45));
  transition: width 0.3s var(--ease), height 0.3s var(--ease), opacity 0.3s;
}
.hud-corner--tl { top: 12px; left: 12px; border-right: 0; border-bottom: 0; border-radius: 3px 0 0 0; }
.hud-corner--tr { top: 12px; right: 12px; border-left: 0; border-bottom: 0; border-radius: 0 3px 0 0; }
.hud-corner--bl { bottom: 12px; left: 12px; border-right: 0; border-top: 0; border-radius: 0 0 0 3px; }
.hud-corner--br { bottom: 12px; right: 12px; border-left: 0; border-top: 0; border-radius: 0 0 3px 0; }
.about__photo-wrap:hover .hud-corner { width: 28px; height: 28px; opacity: 1; }

.hud-scanline {
  position: absolute;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--violet) 45%, var(--violet) 55%, transparent);
  box-shadow: 0 0 10px 1px rgba(0,223,129,0.55);
  z-index: 2;
  pointer-events: none;
  animation: hud-scan 3.4s ease-in-out infinite;
}
@keyframes hud-scan {
  0%   { top: 6%;  opacity: 0; }
  10%  { opacity: 0.9; }
  50%  { top: 94%; opacity: 0.9; }
  60%  { opacity: 0; }
  100% { top: 6%;  opacity: 0; }
}

.about__monogram {
  display: none; width: 100%; height: 100%; align-items: center; justify-content: center;
  font-family: var(--f-display); font-size: 4rem; font-weight: 600; color: var(--faint);
  background:
    radial-gradient(circle at 30% 20%, rgba(0,223,129,0.16), transparent 55%),
    radial-gradient(circle at 80% 85%, rgba(57,255,160,0.12), transparent 55%);
}
.about__photo-wrap.img-fallback .about__monogram { display: flex; }
.about__badge {
  position: absolute; left: 0.9rem; bottom: 0.9rem;
  display: flex; align-items: center; gap: 0.5rem;
  background: rgba(10,12,18,0.85); backdrop-filter: blur(6px);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 0.4rem 0.75rem; font-family: var(--f-mono); font-size: 0.7rem; color: var(--paper-dim);
}
.about__badge-dot { width: 6px; height: 6px; border-radius: 50%; background: #3FE07A; }

.about__lead { font-size: 1.12rem; color: var(--paper); max-width: 62ch; }
.about__points { margin-top: 1.8rem; display: flex; flex-direction: column; gap: 1.1rem; }
.about__point { display: flex; gap: 0.9rem; padding-left: 0.9rem; border-left: 2px solid var(--line); }
.about__point p { font-size: 0.96rem; }
.about__cta { margin-top: 2.2rem; display: flex; gap: 0.9rem; flex-wrap: wrap; }

.about__languages { margin-top: 2.8rem; padding-top: 2.2rem; border-top: 1px solid var(--line); }
.about__languages-title { font-family: var(--f-mono); font-size: 0.78rem; color: var(--muted); margin-bottom: 1.1rem; text-transform: lowercase; }
.languages-container { display: flex; flex-direction: column; gap: 0.85rem; }
.language-row { display: grid; grid-template-columns: 110px 1fr 90px; align-items: center; gap: 1rem; }
.language-row__name { font-size: 0.92rem; font-weight: 500; color: var(--paper); }
.language-row__track { display: block; width: 100%; height: 4px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.language-row__fill { display: block; width: 100%; height: 100%; border-radius: 4px; background: var(--seam); transform-origin: left; transform: scaleX(0); transition: transform 1.1s var(--ease); }
.language-row__level { font-family: var(--f-mono); font-size: 0.74rem; color: var(--muted); text-align: right; }

/* ---- Skills — icon grid with level dots ------------------------------------ */
.sk-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}



/* ── Group ── */
.ski-group {
  margin-bottom: 2.5rem;
}
.ski-group__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}
.ski-group__label {
  font-family: var(--f-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--paper);
}


/* ── Grid of skill items ── */
.ski-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.75rem;
}
.ski-grid--compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* ── Single skill item ── */
.ski-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), background 0.2s;
  cursor: default;
}
.ski-item:hover {
  border-color: rgba(0,223,129,0.25);
  background: var(--surface-2);
  transform: translateY(-2px);
}

/* Icon */
.ski-item__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ski-item__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(30%);
  transition: filter 0.2s;
}
.ski-item:hover .ski-item__icon img {
  filter: grayscale(0%);
}

/* Fallback si un icono externo (CDN) no llega a cargar:
   se oculta con elegancia en vez de mostrar el icono roto del navegador */
.ski-item__icon.icon-broken,
.lab-row__icon.icon-broken {
  position: relative;
}
.ski-item__icon.icon-broken img,
.lab-row__icon.icon-broken img {
  display: none;
}
.ski-item__icon.icon-broken::after,
.lab-row__icon.icon-broken::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--violet);
  opacity: 0.5;
}

/* Name */
.ski-item__name {
  font-family: var(--f-mono);
  font-size: 0.65rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.3;
  transition: color 0.2s;
}
.ski-item:hover .ski-item__name {
  color: var(--paper-dim);
}


/* ── Responsive ── */
@media (max-width: 1024px) {
  .ski-grid { grid-template-columns: repeat(4, 1fr); }
  .ski-grid--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .ski-grid { grid-template-columns: repeat(3, 1fr); }
  .ski-grid--compact { grid-template-columns: 1fr; }
  .ski-item { padding: 0.75rem 0.4rem; }
  .ski-item__icon { width: 32px; height: 32px; }
}

/* ---- Experience — timeline vertical ---------------------------------------- */

/* Contenedor raíz */
.tl {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Una entrada de la línea de tiempo */
.tl__entry {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 0 1.75rem;
  position: relative;
}

/* ── Columna izquierda: punto + línea ── */
.tl__side {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 0.25rem;
}

/* Punto */
.tl__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--faint);
  background: var(--ink);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: border-color 0.3s;
}
.tl__dot--active {
  border-color: var(--violet);
  background: var(--violet);
  box-shadow: 0 0 0 4px rgba(0,223,129,0.12), 0 0 14px rgba(0,223,129,0.25);
  animation: tl-pulse 2.4s ease infinite;
}
@keyframes tl-pulse {
  0%,100% { box-shadow: 0 0 0 4px rgba(0,223,129,0.12), 0 0 14px rgba(0,223,129,0.2); }
  50%      { box-shadow: 0 0 0 8px rgba(0,223,129,0.04), 0 0 20px rgba(0,223,129,0.1); }
}

/* Línea vertical que conecta con la siguiente entrada */
.tl__line {
  width: 1px;
  flex: 1;
  min-height: 2rem;
  background: linear-gradient(180deg, var(--violet) 0%, rgba(0,223,129,0.08) 100%);
  margin-top: 4px;
}
/* Última entrada: ocultar línea */
.tl__entry:last-child .tl__line { display: none; }

/* ── Cuerpo derecho ── */
.tl__body {
  padding-bottom: 3rem;
}
.tl__entry:last-child .tl__body { padding-bottom: 0; }

/* Cabecera */
.tl__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}
.tl__head-left { flex: 1; min-width: 0; }

/* Periodo + badge en la misma línea */
.tl__period {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

/* Badge "Activo" */
.tl__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--f-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #3FE07A;
  background: rgba(63,224,122,0.08);
  border: 1px solid rgba(63,224,122,0.22);
  border-radius: 999px;
  padding: 0.22rem 0.65rem;
}
.tl__badge::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #3FE07A;
  animation: tl-dot-pulse 2s ease infinite;
}
@keyframes tl-dot-pulse {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.4; }
}

/* Fecha */
.tl__date {
  font-family: var(--f-mono);
  font-size: 0.76rem;
  color: var(--muted);
}

/* Título del puesto */
.tl__role {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 600;
  color: var(--paper);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

/* Empresa */
.tl__company {
  margin-top: 0.25rem;
  font-family: var(--f-mono);
  font-size: 0.8rem;
  color: var(--violet);
  font-weight: 500;
}

/* Logo placeholder */
.tl__logo {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  flex-shrink: 0;
}

/* Resumen corto siempre visible */
.tl__summary {
  margin-top: 1rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--paper-dim);
  max-width: 68ch;
}

/* Botón para desplegar el detalle completo */
.tl__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.9rem;
  font-family: var(--f-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--violet);
  padding: 0;
}
.tl__toggle svg { transition: transform 0.25s var(--ease); }
.tl__toggle:hover { color: var(--red); }
.tl__toggle--open svg { transform: rotate(180deg); }

/* Contenedor colapsable con la información completa */
.tl__details {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.45s var(--ease), opacity 0.35s var(--ease);
}
.tl__details--open {
  max-height: 900px;
  opacity: 1;
}

/* Descripción */
.tl__desc {
  margin-top: 1rem;
  font-size: 0.95rem;
  line-height: 1.72;
  color: var(--paper-dim);
  max-width: 68ch;
}

/* Tech tags */
.tl__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.1rem;
}
.tl__tag {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  color: var(--paper-dim);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  transition: border-color 0.2s, color 0.2s;
}
.tl__tag:hover {
  border-color: rgba(0,223,129,0.3);
  color: var(--violet);
}

/* Lista de tareas */
.tl__tasks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem 2rem;
  margin-top: 1.3rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}
.tl__task {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: var(--paper-dim);
  line-height: 1.5;
}
.tl__task-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--violet);
  flex-shrink: 0;
  margin-top: 0.42em;
  opacity: 0.7;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .tl__entry { grid-template-columns: 20px 1fr; gap: 0 1rem; }
  .tl__tasks  { grid-template-columns: 1fr; }
  .tl__logo   { display: none; }
}

/* ---- Projects --------------------------------------------------------------------- */
.projects { display: flex; flex-direction: column; }
.project {
  display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: center; padding: clamp(2rem, 5vw, 3.2rem) 0;
}
.project + .project { border-top: 1px solid var(--line); }
.project:nth-child(even) { grid-template-columns: 1.3fr 1fr; }
.project:nth-child(even) .project__visual { order: 2; }

/* ── Project visual ── */
.project__visual {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface-2);
  overflow: hidden;
  position: relative;
  transition: border-color 0.3s var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
}

.project:hover .project__visual {
  border-color: rgba(0, 223, 129, 0.18);
}

.project__visual picture {
  width: 100%;
  height: 100%;
  display: block;
}

/* Todas las imágenes — cover limpio sin blend */
.project__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s var(--ease);
}
.project:hover .project__visual img {
  transform: scale(1.03);
}

/* SVGs — contain con padding */
.project__visual img[src$=".svg"] {
  object-fit: contain;
  padding: 1.5rem;
}

.project__tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.9rem; }
.tag { font-family: var(--f-mono); font-size: 0.7rem; color: var(--muted); border: 1px solid var(--line); padding: 0.3rem 0.6rem; border-radius: 999px; }
.project h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.project p { margin-top: 0.9rem; font-size: 0.98rem; max-width: 52ch; }
.project__links { margin-top: 1.4rem; }
.project__link { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.88rem; font-weight: 600; color: var(--paper); border-bottom: 1px solid var(--line); padding-bottom: 0.2rem; transition: border-color 0.2s, color 0.2s; }
.project__link:hover { color: var(--violet); border-color: var(--violet); }

/* ---- Certifications --------------------------------------------------------------- */
.cert-filter-row { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.cert-filter-btn {
  display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.95rem;
  border: 1px solid var(--line); border-radius: 999px; font-size: 0.84rem; color: var(--muted);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.cert-filter-btn:hover { color: var(--paper); }
.cert-filter-btn.active { background: var(--surface); border-color: var(--line); color: var(--paper); }
.cert-filter-dot { width: 7px; height: 7px; border-radius: 50%; }
.cert-filter-count { font-family: var(--f-mono); font-size: 0.72rem; color: var(--faint); }

.cert-search-row { margin-bottom: 2.2rem; }
.cert-search-wrap { display: flex; align-items: center; gap: 0.6rem; max-width: 360px; padding: 0.7rem 1rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.cert-search-wrap svg { flex-shrink: 0; }
.cert-search-wrap input { width: 100%; font-size: 0.88rem; color: var(--paper); }
.cert-search-wrap input::placeholder { color: var(--faint); }

.certifications { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.cert-card {
  display: block; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--faint);
  border-radius: var(--radius-sm); transition: transform 0.25s var(--ease), border-color 0.25s;
}
.cert-card:hover { transform: translateY(-3px); }
.cert-card[data-category="cybersecurity"] { border-left-color: color-mix(in srgb, var(--cat-cyber) 75%, var(--line)); }
.cert-card[data-category="networks"] { border-left-color: color-mix(in srgb, var(--cat-network) 75%, var(--line)); }
.cert-card[data-category="office"] { border-left-color: color-mix(in srgb, var(--cat-office) 70%, var(--line)); }
.cert-card__stripe { display: none; }
.cert-card__body { padding: 1.4rem; }
.cert-card__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.7rem; }
.cert-card__issuer { font-family: var(--f-mono); font-size: 0.76rem; color: var(--muted); }
.cert-card__year { font-family: var(--f-mono); font-size: 0.76rem; color: var(--faint); }
.cert-card__name { font-family: var(--f-display); font-weight: 600; font-size: 1.02rem; color: var(--paper); margin-bottom: 0.5rem; }
.cert-card__desc { font-size: 0.86rem; line-height: 1.55; }
.cert-card__link { display: inline-block; margin-top: 0.9rem; font-size: 0.8rem; font-weight: 600; color: var(--paper-dim); }
.cert-card:hover .cert-card__link { color: var(--violet); }
.certs-footer { margin-top: 2.2rem; }

/* ---- Education / Courses ----------------------------------------------------------- */
.education-timeline { display: flex; flex-direction: column; gap: 1.4rem; margin-bottom: 3rem; }
.education-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.5rem 1.7rem; }
.education-item h3 { font-size: 1.05rem; }
.education-meta { display: flex; gap: 0.6rem; font-family: var(--f-mono); font-size: 0.78rem; color: var(--muted); margin: 0.5rem 0 0.7rem; }
.education-item p { font-size: 0.92rem; }

.cert-tabs[role="tablist"] { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 2rem; }
.cert-tab {
  display: flex; align-items: center; gap: 0.5rem; padding: 0.55rem 1rem;
  border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 0.84rem;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.cert-tab__dot { width: 7px; height: 7px; border-radius: 50%; }
.cert-tab__count { font-family: var(--f-mono); font-size: 0.72rem; color: var(--faint); }
.cert-tab.active, .cert-tab:hover { color: var(--paper); background: var(--surface); }

.courses-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.course-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.5rem; }
.course-card__header { display: flex; justify-content: space-between; gap: 0.6rem; font-family: var(--f-mono); font-size: 0.74rem; color: var(--muted); margin-bottom: 0.9rem; }
.course-card__title { font-size: 1.02rem; margin-bottom: 0.9rem; }
.course-card__skills { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.9rem; }
.skill-tag { font-family: var(--f-mono); font-size: 0.68rem; color: var(--paper-dim); border: 1px solid var(--line); padding: 0.28rem 0.55rem; border-radius: 999px; }
.course-card__description { font-size: 0.86rem; line-height: 1.55; }

/* ---- Contact ------------------------------------------------------------------------ */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2.5rem, 6vw, 4.5rem); align-items: start; }
.section-description { margin-top: 0.9rem; max-width: 50ch; }
.contact__form { display: flex; flex-direction: column; gap: 1.1rem; margin-top: 2rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group label { font-family: var(--f-mono); font-size: 0.76rem; color: var(--muted); }
.form-group input, .form-group textarea {
  padding: 0.85rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--paper); font-size: 0.94rem; resize: vertical;
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--violet); }
.hidden-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status-message { font-size: 0.88rem; min-height: 1.2em; }
.status-message.success { color: #3FE07A; }
.status-message.error { color: var(--red); }
#contactForm .button { align-self: flex-start; margin-top: 0.4rem; }

.contact-aside { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.8rem, 4vw, 2.4rem); }
.contact-aside h3 { font-size: 1.25rem; }
.contact-aside p { margin-top: 0.8rem; font-size: 0.95rem; }
.contact-aside__actions { display: flex; flex-direction: column; gap: 0.8rem; margin-top: 1.8rem; }
.contact-aside__actions .button { width: 100%; justify-content: center; }
.contact-aside__status { display: flex; align-items: center; gap: 0.6rem; margin-top: 1.8rem; padding-top: 1.6rem; border-top: 1px solid var(--line); font-family: var(--f-mono); font-size: 0.78rem; color: var(--muted); }

/* ---- Footer --------------------------------------------------------------------------- */
.footer { padding: 2.4rem 0; border-top: 1px solid var(--line); }
.footer__bar { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.footer__brand { font-family: var(--f-display); font-weight: 600; }
.footer__socials { display: flex; gap: 1rem; }
.footer__social { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); transition: color 0.2s, border-color 0.2s; }
.footer__social:hover { color: var(--violet); border-color: var(--violet); }
.footer__social svg { width: 15px; height: 15px; }
.footer__right { display: flex; flex-direction: column; align-items: flex-end; gap: 0.4rem; }
.footer__status { display: flex; align-items: center; gap: 0.5rem; font-family: var(--f-mono); font-size: 0.76rem; color: var(--muted); }
.footer__status-dot { width: 6px; height: 6px; border-radius: 50%; background: #3FE07A; }
.footer__copy { font-size: 0.78rem; color: var(--faint); }





/* ---- Hero redesign ---------------------------------------------------------- */
.hero__pre {
  display: block;
  font-family: var(--f-mono);
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}
.hero__name {
  font-size: clamp(3rem, 7vw, 5.5rem) !important;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.0;
  color: var(--paper-dim) !important;
  margin-bottom: 0.4rem;
}
.hero__role {
  font-family: var(--f-mono);
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  color: var(--violet);
  margin: 0 0 1.4rem;
  letter-spacing: 0.02em;
}

/* ---- Skills asymmetric layout ----------------------------------------------- */
.sk-blocks--asymmetric {
  grid-template-columns: 1.6fr 1fr 1fr !important;
}
.sk-block--featured {
  grid-row: span 1;
  background: var(--surface-2) !important;
  border-left-width: 3px !important;
  border-left-color: var(--blue) !important;
}
.sk-block--featured .sk-featured__name {
  font-size: 1.4rem !important;
}
.sk-block--featured .sk-block__desc {
  font-size: 0.97rem !important;
}

/* ---- Project mock terminal/code window -------------------------------------- */
.proj-mock {
  background: #0d1117 !important;
  border: 1px solid rgba(255,255,255,0.07) !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column;
  overflow: hidden;
  font-family: var(--f-mono);
  font-size: 0.78rem;
}
.proj-mock__bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}
.proj-mock__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--faint);
}
.proj-mock__dot:nth-child(1) { background: #ff5f57; }
.proj-mock__dot:nth-child(2) { background: #febc2e; }
.proj-mock__dot:nth-child(3) { background: #28c840; }
.proj-mock__title {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--muted);
  margin-left: 0.3rem;
}
.proj-mock__body {
  padding: 1.1rem 1.3rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  overflow: hidden;
}
.proj-mock__line {
  line-height: 1.7;
  white-space: pre;
}
.proj-mock__line.pm-blank { height: 0.5rem; }
.proj-mock__line.pm-indent { padding-left: 1.4rem; }
.proj-mock__line.pm-comment { opacity: 0.45; }

/* Syntax colors */
.pm-kw   { color: #ff79c6; }
.pm-fn   { color: #50fa7b; }
.pm-name { color: #8be9fd; }
.pm-mod  { color: #ffb86c; }
.pm-str  { color: #f1fa8c; }
.pm-dim  { color: var(--muted); }
.pm-op   { color: var(--violet); }
.pm-comment { color: #6272a4; }

/* Terminal body inside proj-mock */
.proj-mock__body--terminal .pm-prompt { color: var(--violet); margin-right: 0.4rem; }
.proj-mock__body--terminal .pm-cmd    { color: var(--paper-dim); }
.pm-ok   { color: #50fa7b; }
.pm-warn { color: #ffb86c; }

/* ---- Labs — professional, unified layout ------------------------------------ */
.section-head__copy {
  margin-top: 0.95rem;
  max-width: 72ch;
  font-size: 1rem;
  color: var(--paper-dim);
}
.labs-intro {
  margin-bottom: 1.4rem;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.02);
}
.labs-intro__text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--paper-dim);
}
/* ---- Certifications — color accent by issuer -------------------------------- */
.cert-card[data-issuer="cisco"]     { border-left-color: #1ba0d7; }
.cert-card[data-issuer="fortinet"]  { border-left-color: #da3832; }
.cert-card[data-issuer="microsoft"] { border-left-color: var(--violet); }
.cert-card[data-issuer="pearson"]   { border-left-color: #9c59d1; }

/* Issuer dot on card header */
.cert-card[data-issuer="cisco"]     .cert-card__issuer::before { content:''; display:inline-block; width:6px; height:6px; border-radius:50%; background:#1ba0d7; margin-right:0.4rem; vertical-align:middle; }
.cert-card[data-issuer="fortinet"]  .cert-card__issuer::before { content:''; display:inline-block; width:6px; height:6px; border-radius:50%; background:#da3832; margin-right:0.4rem; vertical-align:middle; }
.cert-card[data-issuer="microsoft"] .cert-card__issuer::before { content:''; display:inline-block; width:6px; height:6px; border-radius:50%; background:var(--violet); margin-right:0.4rem; vertical-align:middle; }
.cert-card[data-issuer="pearson"]   .cert-card__issuer::before { content:''; display:inline-block; width:6px; height:6px; border-radius:50%; background:#9c59d1; margin-right:0.4rem; vertical-align:middle; }


/* ---- Hero fade-in on load --------------------------------------------------- */
.hero__name {
  animation: hero-fadein 0.9s var(--ease) both;
}
.hero__pre {
  animation: hero-fadein 0.7s var(--ease) both;
}
.hero__role {
  animation: hero-fadein 1s var(--ease) 0.1s both;
}
.hero__subtitle {
  animation: hero-fadein 1.1s var(--ease) 0.2s both;
}
.hero__actions {
  animation: hero-fadein 1.2s var(--ease) 0.35s both;
}
@keyframes hero-fadein {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

/* ---- Responsive updates ----------------------------------------------------- */
@media (max-width: 1024px) {
  .sk-blocks--asymmetric { grid-template-columns: 1fr !important; }
}

@media (max-width: 760px) {
  .labs-intro {
    padding: 0.95rem 1rem;
  }
}

/* ---- Labs — filas horizontales estilo lista de integraciones --------------- */
.labs-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.lab-row {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: flex-start;
  gap: 1.15rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.5rem;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s;
}
.lab-row:hover {
  border-color: rgba(0,223,129,0.22);
  background: var(--surface-2);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.18);
}

.lab-row__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.lab-row__icon--htb {
  background: rgba(159,239,0,0.07);
  border: 1px solid rgba(159,239,0,0.2);
}
.lab-row__icon--thm {
  background: rgba(255,70,85,0.08);
  border: 1px solid rgba(255,70,85,0.2);
}
.lab-row__icon--cd {
  background: rgba(0,180,200,0.08);
  border: 1px solid rgba(0,180,200,0.2);
}

.lab-row__main { min-width: 0; }
.lab-row__top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
}
.lab-row__platform {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--paper);
}
.lab-row__nick {
  font-family: var(--f-mono);
  font-size: 0.76rem;
  color: var(--violet);
}
.lab-row__status {
  margin-left: auto;
  font-family: var(--f-mono);
  font-size: 0.66rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #3FE07A;
  background: rgba(63,224,122,0.08);
  border: 1px solid rgba(63,224,122,0.2);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
}
.lab-row__desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--paper-dim);
  margin: 0 0 0.7rem;
  max-width: 62ch;
}
.lab-row__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.lab-row__pill {
  display: inline-flex;
  align-items: center;
  padding: 0.26rem 0.55rem;
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  color: var(--paper-dim);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
}
.lab-row__pill--accent {
  background: rgba(0,223,129,0.09);
  color: var(--violet);
  border-color: rgba(0,223,129,0.18);
}
.lab-row__arrow {
  align-self: center;
  font-size: 1.15rem;
  color: var(--muted);
  transition: transform 0.2s var(--ease), color 0.2s;
}
.lab-row:hover .lab-row__arrow {
  color: var(--violet);
  transform: translate(3px, -3px);
}

@media (max-width: 640px) {
  .lab-row { grid-template-columns: 44px 1fr; }
  .lab-row__arrow { display: none; }
}

/* ---- Hacker Effects --------------------------------------------------------- */

/* 1. Cert-card hover — border glow (scanline removed) */
.cert-card {
  transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s !important;
}
.cert-card:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3) !important;
}
.cert-card[data-issuer="cisco"]:hover     { border-color: rgba(27,160,215,0.5) !important; box-shadow: 0 8px 32px rgba(27,160,215,0.08) !important; }
.cert-card[data-issuer="fortinet"]:hover  { border-color: rgba(218,56,50,0.5) !important;  box-shadow: 0 8px 32px rgba(218,56,50,0.08) !important; }
.cert-card[data-issuer="microsoft"]:hover { border-color: rgba(0,223,129,0.5) !important;  box-shadow: 0 8px 32px rgba(0,223,129,0.1) !important; }
.cert-card[data-issuer="pearson"]:hover   { border-color: rgba(156,89,209,0.5) !important; box-shadow: 0 8px 32px rgba(156,89,209,0.08) !important; }

/* 2. Footer terminal line — removed */

/* 3. Red de partículas cert — canvas posicionado detrás */
.cert-network-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
/* Asegurar que las cards queden por encima del canvas */
#certifications .cert-filter-row,
#certifications .cert-search-row,
#certifications .certifications,
#certifications .certs-footer,
#certifications .section-head {
  position: relative;
  z-index: 1;
}

/* 4. Glitch h1 — sin CSS extra, se hace por JS */

/* 5. Decode chips — cursor pointer para indicar interactividad */
.sk-chip, .tl__tag {
  cursor: default;
  user-select: none;
}

/* 6. sk-counter__num — animación de color al contar */
.sk-counter__num {
  transition: color 0.2s;
  background: linear-gradient(135deg, var(--paper) 0%, var(--violet) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- H2 Decode Effect -------------------------------------------------------- */
.h2-type {
  min-height: 1.08em;
}

/* Caracteres aún sin resolver — verde tenue, fuente mono */
.h2-char-glitch {
  color: var(--violet);
  opacity: 0.45;
  font-family: var(--f-mono);
  font-size: 0.9em;
  display: inline-block;
  animation: glyph-flicker 0.1s steps(1) infinite;
}
@keyframes glyph-flicker {
  0%, 49% { opacity: 0.45; }
  50%,100% { opacity: 0.2; }
}

/* Caracteres ya resueltos — transición suave al color normal */
.h2-char-resolved {
  display: inline-block;
  color: var(--paper);
  animation: char-resolve 0.15s var(--ease) forwards;
}
@keyframes char-resolve {
  from { color: var(--violet); opacity: 0.7; }
  to   { color: var(--paper);  opacity: 1; }
}

/* Cursor parpadeante durante el decode */
.h2-cursor {
  display: inline-block;
  color: var(--violet);
  animation: h2-blink 0.5s steps(1) infinite;
  font-weight: 400;
  margin-left: 1px;
  font-family: var(--f-mono);
  font-size: 0.85em;
}
@keyframes h2-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* Estado final: subrayado verde que aparece al completar */
.h2-typed {
  position: relative;
  display: inline-block;
}
.h2-typed::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--violet) 0%, transparent 80%);
  opacity: 0.4;
  animation: h2-underline 0.5s var(--ease) forwards;
  transform-origin: left;
}
@keyframes h2-underline {
  from { transform: scaleX(0); opacity: 0; }
  to   { transform: scaleX(1); opacity: 0.4; }
}


/* ---- Responsive ------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .nav { display: none; }
  .hamburger { display: block; }
  .hero__content { grid-template-columns: 1fr; }
  .hero__title { font-size: clamp(2.4rem, 8vw, 3.2rem); }
  .about__grid { grid-template-columns: 1fr; }
  .about__photo-wrap { max-width: 280px; }
  .sk-blocks { grid-template-columns: 1fr; }
  .certifications { grid-template-columns: repeat(2, 1fr); }
  .courses-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .project, .project:nth-child(even) { grid-template-columns: 1fr; }
  .project:nth-child(even) .project__visual { order: 0; }
}

@media (max-width: 640px) {
  .certifications { grid-template-columns: 1fr; }
  .courses-grid { grid-template-columns: 1fr; }
  .language-row { grid-template-columns: 90px 1fr 70px; gap: 0.6rem; }
  .exp-header { flex-direction: column; }
  .exp-tasks { grid-template-columns: 1fr; }
  .exp-card { margin-left: 1.25rem; }
  .exp-card::before { left: -1.8rem; }
  .footer__bar { justify-content: center; text-align: center; }
  .footer__right { align-items: center; }
}

/* ---- Noscript fallback ------------------------------------------------------------------ */
.no-js-banner { text-align: center; padding: 0.9rem; background: var(--surface); color: var(--violet); font-family: var(--f-mono); font-size: 0.85rem; }