/* ===========================
   VARIABLES & RESET
   =========================== */
:root {
  --bg-deep:    #020c1b;
  --bg-dark:    #071428;
  --bg-card:    #0a1f3d;
  --bg-card2:   #0d2347;
  --accent:     #00aaff;
  --accent2:    #0066cc;
  --accent-glow:#00aaff55;
  --text:       #ccd6f6;
  --text-muted: #8892b0;
  --text-light: #e6f1ff;
  --white:      #ffffff;
  --border:     #1a3a6e;
  --font-main:  'Inter', sans-serif;
  --font-mono:  'JetBrains Mono', monospace;
  --nav-h:      90px;  /* space reserved for floating pill */
  --radius:     12px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: var(--font-main);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  /* ambient glow — orb derecho fijo igual al sitio de referencia */
  background-image:
    radial-gradient(ellipse 55% 40% at 75% 18%,
      rgba(0, 60, 140, 0.22) 0%,
      transparent 70%);
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--white); }

/* ===========================
   CANVAS PARTICLES
   =========================== */
#particles-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ===========================
   LAYOUT
   =========================== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

.section {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

/* All sections transparent — stars show through */
.section-dark {
  background: transparent;
}

/* Section label: "01 ─── SOBRE MÍ" */
.section-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-label-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.section-label-line {
  flex: 0 0 48px;
  height: 1px;
  background: rgba(255,255,255,0.2);
}

.section-label-text {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* Main section title (bigger, below the label) */
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--text-light);
  margin-bottom: 3rem;
  position: relative;
  display: block;
  line-height: 1.1;
}

.section-title::after { display: none; }

/* ===========================
   NAVBAR — pill style
   =========================== */
#navbar {
  position: fixed;
  top: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  max-width: 820px;
  min-width: 560px;
  height: auto;
  z-index: 100;
  background: rgba(8, 16, 32, 0.75);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  padding: 0.55rem 1.4rem;
  box-shadow: 0 4px 32px rgba(0,0,0,0.45);
  transition: background var(--transition), box-shadow var(--transition), top var(--transition);
}

#navbar.scrolled {
  top: 0.4rem;
  background: rgba(4, 10, 24, 0.92);
  box-shadow: 0 6px 40px rgba(0,0,0,0.6);
}

#scroll-progress {
  position: absolute;
  bottom: 0;
  left: 15px;
  right: 15px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent2), var(--accent));
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.1s linear;
  box-shadow:
    0 0 6px rgba(0,200,255,0.9),
    0 0 18px rgba(0,200,255,0.6),
    0 0 36px rgba(0,180,255,0.3);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  white-space: nowrap;
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-right: auto;
}

/* green dot like the reference */
.nav-logo::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  flex-shrink: 0;
}
.nav-logo .accent { display: none; } /* hide the old dot */

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.6rem;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  transition: color var(--transition), text-shadow var(--transition);
}
.nav-links a:hover { color: var(--text-light); }
.nav-links a.active {
  color: var(--accent);
  text-shadow:
    0 0 8px rgba(0,200,255,0.9),
    0 0 20px rgba(0,200,255,0.5),
    0 0 40px rgba(0,180,255,0.3);
}


.lang-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.lang-btn:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--accent);
  color: var(--accent);
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-light);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ===========================
   HERO
   =========================== */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: clip;
  z-index: 1;
  padding-top: var(--nav-h);
}

/* glow manejado por canvas */

.hero-inner {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 340px;
  align-items: center;
  gap: 3rem;
  position: relative;
  z-index: 2;
}

/* Frosted glass — solo en el hero */
.hero-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 20, 0.06);
  backdrop-filter: blur(0.8px);
  -webkit-backdrop-filter: blur(0.8px);
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-photo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-avatar {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  box-shadow: 0 0 40px var(--accent-glow), 0 0 80px rgba(0,100,200,0.2);
  animation: fadeUp 0.8s 0.5s both;
}

/* ---- Cloud SVG hero ---- */
.hero-cloud-svg {
  width: 100%;
  max-width: 420px;
  animation: fadeUp 0.9s 0.6s both;
  filter: drop-shadow(0 0 24px rgba(0,150,255,0.35));
}

/* float up/down */
.cloud-body {
  animation: cloudFloat 5s ease-in-out infinite;
  transform-origin: 200px 180px;
}

/* pulse shine */
.cloud-shine {
  animation: shinePulse 4s ease-in-out infinite;
}

/* data dots caen */
.dot1 { animation: dropDot 3s linear infinite; }
.dot2 { animation: dropDot 3s 1s linear infinite; }
.dot3 { animation: dropDot 3s 2s linear infinite; }

/* sparkles parpadean */
.s1 { animation: twinkle 2.1s 0.0s ease-in-out infinite; }
.s2 { animation: twinkle 2.6s 0.4s ease-in-out infinite; }
.s3 { animation: twinkle 1.9s 0.8s ease-in-out infinite; }
.s4 { animation: twinkle 2.4s 1.2s ease-in-out infinite; }
.s5 { animation: twinkle 2.2s 0.6s ease-in-out infinite; }

/* data stream lines blink */
.dl { animation: lineBlink 2.5s ease-in-out infinite; }
.dl1 { animation-delay: 0s; }
.dl2 { animation-delay: 0.8s; }
.dl3 { animation-delay: 1.6s; }

@keyframes cloudFloat {
  0%,100% { transform: translateY(0px); }
  50%      { transform: translateY(-12px); }
}
@keyframes shinePulse {
  0%,100% { opacity: 0.06; }
  50%      { opacity: 0.18; }
}
@keyframes dropDot {
  0%   { transform: translate(200px, 230px); opacity: 0; }
  10%  { opacity: 1; }
  100% { transform: translate(200px, 275px); opacity: 0; }
}
.dot2 { animation-name: dropDot2; }
.dot3 { animation-name: dropDot3; }
@keyframes dropDot2 {
  0%   { transform: translate(168px, 230px); opacity: 0; }
  10%  { opacity: 1; }
  100% { transform: translate(153px, 275px); opacity: 0; }
}
@keyframes dropDot3 {
  0%   { transform: translate(232px, 230px); opacity: 0; }
  10%  { opacity: 1; }
  100% { transform: translate(247px, 275px); opacity: 0; }
}
@keyframes twinkle {
  0%,100% { opacity: 0.3; r: 2; }
  50%      { opacity: 1;   r: 4; }
}
@keyframes lineBlink {
  0%,100% { opacity: 0.15; }
  50%      { opacity: 0.7; }
}

/* ---- About photo ---- */
.about-photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
}

.hero-greeting {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeUp 0.6s 0.2s forwards;
}

.hero-name {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  color: var(--text-light);
  line-height: 1.1;
  margin-bottom: 0.5rem;
  opacity: 0;
  animation: fadeUp 0.6s 0.4s forwards;
  background: linear-gradient(135deg, #e6f1ff 0%, #00aaff 60%, #0066cc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 400;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  min-height: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.6s 0.6s forwards;
}

.typed-cursor {
  color: var(--accent);
  animation: blink 1s infinite;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.6s 0.8s forwards;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.6s 1s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2.2rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-deep);
  font-weight: 600;
}
.btn-primary:hover {
  background: #00ccff;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
  color: var(--bg-deep);
}

.btn-outline {
  background: transparent;
  color: var(--text-light);
  border: 1px solid rgba(255,255,255,0.2);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.hero-socials {
  display: flex;
  gap: 1.2rem;
  opacity: 0;
  animation: fadeUp 0.6s 1.2s forwards;
}

.hero-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all var(--transition);
}
.hero-socials a svg { width: 18px; height: 18px; }
.hero-socials a:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 4px 15px var(--accent-glow);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  animation: fadeIn 1s 2s forwards;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
  white-space: nowrap;
  transition: opacity 0.4s ease;
  z-index: 2;
  margin-top: 0;
}
.hero-scroll-hint span {
  display: inline;
  width: auto;
  height: auto;
  background: none;
  animation: none;
}

/* ===========================
   ABOUT
   =========================== */

.about-big-title {
  font-size: 5.5rem;
  font-weight: 800;
  line-height: 1.05;
  color: var(--text-light);
  margin-bottom: 2.5rem;
  letter-spacing: -0.03em;
  white-space: normal;
  overflow: visible;
}
.about-big-title--accent {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 700;
  color: var(--accent);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 4rem;
  align-items: center;
}

/* Force 2-col above mobile regardless of other rules */
@media (min-width: 769px) {
  .about-grid {
    grid-template-columns: 1fr 340px !important;
  }
  .radar-wrap {
    justify-self: end;
    grid-column: 2;
    grid-row: 1;
  }
  .about-text {
    grid-column: 1;
    grid-row: 1;
  }
}

.about-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  z-index: 1;
}

/* clipped container */
.radar-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 5;
}
.radar-ring--outer {
  inset: -18px;
  border: 1px dashed rgba(0,200,220,0.20);
  animation: radarRotate 18s linear infinite;
}
@keyframes radarRotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* clipped container */
.radar-clip {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  z-index: 1;
}
.radar-clip .about-photo { border-radius: 0; }

/* grid overlay inside clip */
.radar-grid {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 2;
  pointer-events: none;
  opacity: 0.12;
}

/* scanning line */
.radar-scan {
  position: absolute;
  left: 0; right: 0;
  top: 5%;
  height: 1.5px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(0,220,255,0.8) 50%,
    transparent 100%
  );
  z-index: 3;
  animation: radarScanMove 3s ease-in-out infinite;
  pointer-events: none;
}
@keyframes radarScanMove {
  0%,100% { top: 5%;  opacity: 0.3; }
  50%      { top: 95%; opacity: 1;   }
}

/* badges */
.radar-badge {
  position: absolute;
  z-index: 6;
  background: rgba(0,0,0,0.80);
  border: 1px solid rgba(0,210,220,0.6);
  color: rgba(0,220,240,1);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}
.radar-badge--top    { top: 14%; right: -35px; }
.radar-badge--bottom { bottom: 14%; left: -10px; }
.radar-badge--purple {
  border-color: rgba(160,80,255,0.7);
  color: rgba(180,100,255,1);
}

.radar-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
  flex-shrink: 0;
  animation: dotPulse 2s ease-in-out infinite;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
}

.about-hobbies { margin-top: 2rem; }
.about-hobbies h4 {
  font-size: 0.85rem;
  font-family: var(--font-mono);
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hobby-chips { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.chip {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.chip:hover {
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.about-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
  padding: 2rem;
}

.avatar-placeholder {
  width: 110px; height: 110px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  box-shadow: 0 0 30px var(--accent-glow);
  letter-spacing: 0.05em;
}

.about-info-list { width: 100%; display: flex; flex-direction: column; gap: 1rem; }
.info-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.info-item svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }

/* ===========================
   TIMELINE
   =========================== */
.timeline {
  position: relative;
  padding-left: 2.5rem;
}

/* Track — always visible, dark */
.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0; bottom: 0;
  width: 2px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
}

/* Progress line */
.timeline-line {
  position: absolute;
  left: 8px;
  top: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom,
    transparent 0%,
    var(--accent) 10%,
    var(--accent) 90%,
    transparent 100%
  );
  transform-origin: top;
  transform: scaleY(0);
  pointer-events: none;
  z-index: 1;
  border-radius: 2px;
  box-shadow:
    0 0 6px 1px rgba(0, 220, 255, 0.7),
    0 0 18px 3px rgba(0, 180, 255, 0.35),
    0 0 40px 6px rgba(0, 130, 255, 0.15);
}

/* Items */
.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  opacity: 1;
  transform: none;
}

/* Dot — centered on line at left:8px from .timeline edge
   .timeline-item starts at padding-left:40px
   dot center = 8px+1px from timeline = -(40-9)=31px from item left */
.timeline-dot {
  position: absolute;
  left: -2.5rem;
  top: 1.2rem;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--bg-deep);
  border: 2px solid rgba(255,255,255,0.15);
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  z-index: 2;
}

.timeline-item.dot-active .timeline-dot {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow:
    0 0 0 4px rgba(0,200,255,0.15),
    0 0 12px 4px rgba(0,200,255,0.5),
    0 0 28px 8px rgba(0,150,255,0.2);
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% {
    box-shadow:
      0 0 0 4px rgba(0,200,255,0.15),
      0 0 12px 4px rgba(0,200,255,0.5),
      0 0 28px 8px rgba(0,150,255,0.2);
    transform: scale(1);
  }
  50% {
    box-shadow:
      0 0 0 7px rgba(0,200,255,0.08),
      0 0 20px 8px rgba(0,200,255,0.7),
      0 0 45px 14px rgba(0,150,255,0.3);
    transform: scale(1.15);
  }
}

/* ── Card cursor glow ── */
.timeline-content,
.skill-category,
.about-card {
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.8rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

/* The glow spot — injected as a pseudo, driven by CSS vars set by JS */
.timeline-content::before,
.skill-category::before,
.about-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    400px circle at var(--mx, -999px) var(--my, -999px),
    rgba(0, 170, 255, 0.10),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  border-radius: inherit;
  z-index: 0;
}

.timeline-content:hover::before,
.skill-category:hover::before,
.about-card:hover::before {
  opacity: 1;
}

/* Make sure card children sit above the glow layer */
.timeline-content > *,
.skill-category > *,
.about-card > * {
  position: relative;
  z-index: 1;
}

/* Header row: texto izq, logos der */
.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.timeline-logos {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.company-logo {
  height: 32px;
  width: auto;
  max-width: 80px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.75;
  transition: opacity var(--transition);
}
.timeline-content:hover .company-logo { opacity: 1; }

/* Logo watermark — posicionado absolutamente dentro de .timeline-content */
.company-logo--bg {
  position: absolute;
  right: 1.5rem;
  top: 1.2rem;
  transform: none;
  height: auto;
  width: 130px;
  max-width: 150px;
  opacity: 0.07;
  filter: brightness(0) invert(1);
  pointer-events: none;
  transition: opacity var(--transition);
}
.timeline-content:hover .company-logo--bg { opacity: 0.14; }

.company-logo--sap    { width: 180px; max-width: 200px; top: 0.1rem; }
.company-logo--softtek { width: 190px; max-width: 210px; }
.company-logo--roffo  { top: 0.7rem; }
.company-logo--utn-bg { width: 160px; max-width: 180px; filter: brightness(0) invert(1); top: -0.2rem; }

#timeline-edu .timeline-content { min-height: 130px; }
.company-logo--utn-cert { top: 0.8rem; }

/* Botón ver certificado */
.btn-cert {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: -0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  border: 1px solid rgba(0,200,255,0.35);
  background: rgba(0,200,255,0.07);
  border-radius: 4px;
  padding: 0.3rem 0.8rem;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}
.btn-cert::before { content: '↗'; }
.btn-cert:hover {
  background: rgba(0,200,255,0.15);
  border-color: var(--accent);
}

/* Modal certificado */
.cert-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.cert-modal-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}
.cert-modal-img {
  display: block;
  max-width: 100%;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 0 40px rgba(0,200,255,0.2);
}
.cert-modal-close {
  position: absolute;
  top: -1rem;
  right: -1rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--bg-deep);
  border: 1px solid rgba(0,200,255,0.35);
  color: var(--accent);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Badge "ACTUAL" en card de puesto vigente */
.badge-current {
  display: none;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  animation: dotPulse 2s ease-in-out infinite;
}

/* UTN es SVG negro → no necesita invert, le ponemos color blanco directamente */
.company-logo--utn {
  filter: brightness(0) invert(1);
  height: 36px;
}

/* Logos en skills */
.skill-logo {
  height: 20px;
  width: 20px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}
.skill-logo--lg { height: 36px; width: 36px; }
.skill-logo--xl { height: 44px; width: 44px; }
.skill-logo--xxl { height: 72px; width: 72px; }
.skill-logo--color { filter: none; opacity: 1; }

/* Expand section */
.timeline-expand {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  margin-top: 0.5rem;
}
.timeline-expand.open { max-height: 600px; }

.timeline-expand-section {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin: 0.8rem 0 0.3rem;
}
.timeline-expand-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.timeline-expand-list li {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding-left: 1rem;
  position: relative;
}
.timeline-expand-list li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.btn-expand {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: rgba(180,100,255,1);
  border: 1px solid rgba(160,80,255,0.7);
  background: rgba(160,80,255,0.07);
  border-radius: 4px;
  padding: 0.25rem 0.7rem;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.btn-expand:hover { background: rgba(160,80,255,0.18); border-color: rgba(180,100,255,1); }
.btn-expand-arrow { transition: transform 0.3s ease; display: inline-block; }
.btn-expand.open .btn-expand-arrow { transform: rotate(180deg); }
  flex-shrink: 0;
}

.timeline-content:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 30px rgba(0, 100, 200, 0.15);
}

.timeline-content--current {
  animation: cardPulse 3s ease-in-out infinite;
}

@keyframes cardPulse {
  0%, 100% {
    border-color: rgba(0, 200, 255, 0.15);
    box-shadow: 0 4px 30px rgba(0, 100, 200, 0.1);
  }
  50% {
    border-color: rgba(0, 200, 255, 0.6);
    box-shadow:
      0 4px 30px rgba(0, 100, 200, 0.25),
      0 0 20px rgba(0, 200, 255, 0.15);
  }
}

.timeline-period {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 0.5rem;
}

.timeline-role {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 0.25rem;
}

.timeline-company {
  font-size: 0.95rem;
  color: var(--accent);
  font-weight: 500;
  display: block;
  margin-bottom: 0.8rem;
}

.timeline-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.timeline-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-top: 1rem; }
.tag {
  background: rgba(0, 100, 200, 0.15);
  border: 1px solid rgba(0, 170, 255, 0.3);
  color: var(--accent);
  padding: 0.2rem 0.7rem;
  border-radius: 4px;
  font-size: 0.78rem;
  font-family: var(--font-mono);
}

/* ===========================
   SKILLS
   =========================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.skills-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  height: 100%;
}

.skills-col .skill-category {
  flex: 1;
}

.skill-category {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color var(--transition), transform var(--transition);
}
.skill-category:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.skill-cat-title {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border);
}

.skill-items { display: flex; flex-direction: column; gap: 0.7rem; }
.skill-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-size: 0.95rem;
  flex-wrap: wrap;
}
.skill-icon { font-size: 1.1rem; }

.skill-bar {
  flex: 1;
  min-width: 80px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.skill-bar-fill {
  height: 100%;
  width: var(--pct);
  background: linear-gradient(90deg, var(--accent2), var(--accent));
  border-radius: 2px;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1s ease 0.3s;
}
.skill-item.bar-visible .skill-bar-fill {
  transform: scaleX(1);
}

/* ===========================
   CONTACT
   =========================== */
.contact-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}

/* Contact cards — 3 columns */
.contact-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.6rem;
  flex: 1 1 260px;
  color: var(--text);
  text-decoration: none;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.contact-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 24px rgba(0,170,255,0.12);
  transform: translateY(-2px);
  color: var(--text);
}
.contact-card svg {
  width: 22px; height: 22px;
  color: var(--accent);
  flex-shrink: 0;
}
.contact-card div { display: flex; flex-direction: column; gap: 0.2rem; }
.contact-card span:last-child { font-size: 0.9rem; color: var(--text-muted); }

.contact-label {
  display: block;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }

.form-group {
  position: relative;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1rem 0.5rem;
  color: var(--text-light);
  font-family: var(--font-main);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition);
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group label {
  position: absolute;
  left: 1rem;
  top: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  pointer-events: none;
  transition: all var(--transition);
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
  top: 0.2rem;
  font-size: 0.7rem;
  color: var(--accent);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: transparent; }

.form-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: -0.5rem;
}

/* ===========================
   FOOTER
   =========================== */
/* ── Contact rows (reference style) ── */
.contact-rows {
  display: flex;
  flex-direction: column;
  max-width: 500px;
}

.contact-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: var(--text-muted);          /* all grey by default */
  text-decoration: none;
  transition: color var(--transition), background var(--transition);
  gap: 0.8rem;
  border-radius: 6px;
  overflow: hidden;
}
.contact-rows .contact-row:first-child { border-top: 1px solid rgba(255,255,255,0.08); }

/* hover: text goes white, glow appears */
.contact-row:hover {
  color: var(--white);
}
.contact-row:hover .contact-row-arrow {
  opacity: 1;
  color: var(--accent);
  transform: translateX(0);
}

/* blur glow behind each row on hover */
.contact-row::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 100% at 30% 50%,
    rgba(0,170,255,0.10) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
  border-radius: inherit;
}
.contact-row:hover::before { opacity: 1; }

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

.contact-row-icon {
  width: 20px; height: 20px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: color var(--transition);
}
.contact-row:hover .contact-row-icon { color: var(--accent); }

/* remove accent override — all equal grey now */
.contact-row--accent .contact-row-icon,
.contact-row--accent .contact-row-label,
.contact-row--accent .contact-row-value { color: inherit; }

.contact-row-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
  min-width: 70px;
}

.contact-row-value {
  font-size: 1rem;
  font-weight: 400;
  color: inherit;
}

/* arrow tight to the right */
.contact-row-arrow {
  font-size: 1rem;
  color: rgba(255,255,255,0.25);
  opacity: 1;
  transition: color var(--transition), transform var(--transition);
  flex-shrink: 0;
  transform: translateX(-4px);
}

/* ── Footer bar ── */
.footer-bar {
  background: transparent;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 1.4rem 0;
  position: relative;
  z-index: 1;
}

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

.footer-name {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.footer-role {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.footer-role strong { color: var(--text-light); font-weight: 600; }

/* old footer tag hidden, footer-bar is the real one */
footer:not(.footer-bar) {
  display: none;
}

.footer-bar {
  display: block;
}

/* ===========================
   ANIMATIONS
   =========================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

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

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 0.8; }
  50%       { transform: scaleY(0.5); opacity: 0.3; }
}

/* ===========================
   RESPONSIVE
   =========================== */

/* Prevent horizontal scroll globally */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

/* Mobile blur overlay — makes particles less distracting on small screens */
@media (max-width: 768px) {
  body::after {
    content: '';
    position: fixed;
    inset: 0;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    pointer-events: none;
    z-index: 0;
  }
}

@media (max-width: 768px) {
  /* Navbar */
  #navbar {
    left: 1rem;
    right: 1rem;
    transform: none;
    min-width: unset;
    max-width: unset;
    width: auto;
    top: 0.6rem;
    padding: 0.5rem 1rem;
  }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: rgba(2, 8, 20, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    z-index: 9999;
  }
  .nav-links.open a {
    font-size: 1.4rem;
    letter-spacing: 0.08em;
    color: var(--text-light);
  }
  .nav-links.open a:hover { color: var(--accent); }
  /* Cuando el menú está abierto, quitar backdrop-filter del nav
     para que position:fixed en la ul no quede contenido dentro del nav */
  #navbar.menu-open {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .nav-burger { display: flex; position: relative; z-index: 10000; }

  /* Hero */
  #hero { flex-direction: column; justify-content: center; }
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 3rem;
    padding-bottom: 2rem;
  }
  .hero-photo { order: -1; }
  .hero-avatar { width: 180px; height: 180px; }
  .hero-cta { flex-direction: column; align-items: center; }
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-socials {
    justify-content: center;
    margin-top: 0.5rem;
  }
  .hero-scroll-hint {
    position: static;
    transform: none;
    left: auto;
    bottom: auto;
    opacity: 1;
    animation: none;
    margin-top: 1.5rem;
    align-self: center;
  }

  /* About — big title */
  #about h2 {
    font-size: 2.2rem !important;
    white-space: normal !important;
    line-height: 1.2 !important;
  }

  /* About — radar wrap */
  #about [style*="flex:0 0 320px"],
  #about [style*="flex: 0 0 320px"] {
    flex: 0 0 260px !important;
    width: 260px !important;
    height: 260px !important;
  }

  /* Skills grid: 1 column */
  .skills-grid {
    grid-template-columns: 1fr;
  }
  .skills-col {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .skills-col .skill-category {
    flex: 1 1 calc(50% - 0.75rem);
    min-width: 140px;
  }

  /* Tags wrap — button mismo nivel que tags */
  .timeline-tags {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .timeline-tags .btn-expand {
    margin-left: 0;
    margin-top: 0;
  }
  .timeline-dot { left: -2.5rem; }
  .timeline-tags { flex-wrap: wrap; }

  /* Cards */
  .timeline-content { padding: 1.2rem; }
  .company-logo--bg { display: none; }

  /* Contact */
  .about-grid { grid-template-columns: 1fr; }
  .about-card { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-rows { max-width: 100%; }
  .contact-row { padding: 1rem 0.8rem; justify-content: flex-start; gap: 1rem; }
  .contact-row-left { gap: 0.8rem; }
  .contact-row-value { display: none; }

  /* Gears — show 3 on mobile, above the blur overlay, more visible */
  .gears-bg { display: block; z-index: 1; }
  .gears-bg .gear { display: none; }
  .gears-bg .gear:nth-child(1),
  .gears-bg .gear:nth-child(2),
  .gears-bg .gear:nth-child(5) { display: block; }
  .gears-bg .gear:nth-child(1) { fill: rgba(0,180,220,0.18); width: 130px; }
  .gears-bg .gear:nth-child(2) { fill: rgba(0,180,220,0.14); width: 90px; }
  .gears-bg .gear:nth-child(5) { fill: rgba(0,180,220,0.12); width: 80px; }

  /* Badge radar */
  .radar-badge--top  { right: -30px; top: 8%; }
  .radar-badge--bottom { left: -5px; }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
  #about h2 {
    font-size: 3.2rem !important;
    white-space: normal !important;
  }

  .skills-grid { grid-template-columns: repeat(2, 1fr); }

  .hero-inner { grid-template-columns: 1fr 280px; gap: 2rem; }

  #about [style*="flex:0 0 320px"],
  #about [style*="flex: 0 0 320px"] {
    flex: 0 0 260px !important;
    width: 260px !important;
    height: 260px !important;
  }
}

@media (min-width: 769px) {
  .about-grid {
    grid-template-columns: 1fr 340px !important;
  }
  .radar-wrap {
    justify-self: end;
    grid-column: 2;
    grid-row: 1;
  }
  .about-text {
    grid-column: 1;
    grid-row: 1;
  }
}

/* ===========================
   GEARS BACKGROUND
   =========================== */
.gears-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.gear {
  position: absolute;
  fill: rgba(0, 180, 220, 0.04);
  transform-origin: center;
  will-change: transform;
}
