@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #0f0f1a;
  --bg-card: #13131f;
  --accent: #7c3aed;
  --accent-soft: rgba(124, 58, 237, 0.12);
  --accent-glow: rgba(124, 58, 237, 0.4);
  --accent-2: #06b6d4;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #475569;
  --border: rgba(255,255,255,0.07);
  --border-hover: rgba(124, 58, 237, 0.5);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* NAVBAR */
.navbar {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  transition: all 0.3s ease;
}

.navbar-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--text-primary) !important;
  letter-spacing: -0.3px;
}

.navbar-brand .accent { color: var(--accent); }

.nav-link {
  color: var(--text-secondary) !important;
  font-size: 14px;
  font-weight: 500;
  margin: 0 2px;
  padding: 8px 14px !important;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: var(--text-primary) !important;
  background: var(--accent-soft);
}

/* Language Switcher */
.lang-switcher {
  position: relative;
  display: inline-block;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-soft);
  border: 1px solid var(--border-hover);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.lang-btn:hover {
  background: rgba(124, 58, 237, 0.22);
  border-color: var(--accent);
}

.lang-btn i { font-size: 14px; color: var(--accent); }

.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px;
  min-width: 160px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.6);
  z-index: 9999;
}

.lang-dropdown.open { display: block; }

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 14px;
  color: var(--text-secondary);
  transition: all 0.15s ease;
}

.lang-option:hover {
  background: var(--accent-soft);
  color: var(--text-primary);
}

.lang-option.active {
  color: var(--accent);
  background: var(--accent-soft);
  font-weight: 600;
}

.lang-flag { font-size: 18px; }

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 40%, rgba(124, 58, 237, 0.1) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 15% 75%, rgba(6, 182, 212, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 10%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 10%, transparent 80%);
  pointer-events: none;
  opacity: 0.35;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-soft);
  border: 1px solid var(--border-hover);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 28px;
}

.hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(40px, 5.5vw, 68px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, #a855f7, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-role {
  font-size: 16px;
  color: var(--text-secondary);
  font-weight: 400;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-role .sep { color: var(--accent); font-weight: 300; }

.hero-desc {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 490px;
  line-height: 1.75;
  margin-bottom: 44px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: white;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  border: 2px solid var(--accent);
}

.btn-cta:hover {
  background: transparent;
  color: var(--accent);
  box-shadow: 0 0 28px var(--accent-glow);
  transform: translateY(-2px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-primary);
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  border: 2px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* Hero right card */
.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 44px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.hero-card-icon {
  width: 80px;
  height: 80px;
  background: var(--accent-soft);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.hero-card-icon i { font-size: 40px; color: var(--accent); }

.hero-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.hero-card p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 28px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 24px;
}

.tag {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 50px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 50px;
  padding: 7px 16px;
  font-size: 13px;
  color: #10b981;
  font-weight: 500;
}

.pulse {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse-anim 2s infinite;
}

@keyframes pulse-anim {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

/* SECTIONS */
.section { padding: 100px 0; }
.section-dark { background: var(--bg-secondary); }

.section-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-eyebrow::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.section-heading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 700;
  letter-spacing: -0.8px;
  margin-bottom: 14px;
}

.section-heading span { color: var(--accent); }

.section-sub {
  color: var(--text-secondary);
  font-size: 17px;
  max-width: 500px;
  line-height: 1.7;
  margin-bottom: 60px;
}

/* SKILLS */
/* ══ HABILIDADES ═══════════════════════════════════════════════ */
.skills-section { background: var(--bg-secondary); }
.skills-header { margin-bottom: 64px; }

.sk-group { margin-bottom: 48px; }

/* Título categoría — línea con texto centrado */
.sk-group-label {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
}
.sk-group-label::before,
.sk-group-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.sk-group-label span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0 18px;
  white-space: nowrap;
}

/* Pills centradas */
.sk-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

/* Pill: logo + texto */
.sk-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 9px 16px 9px 11px;
  cursor: default;
  transition: all 0.2s cubic-bezier(0.4,0,0.2,1);
  position: relative;
  overflow: hidden;
}
.sk-pill::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent-soft);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.sk-pill:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(124,58,237,0.13);
}
.sk-pill:hover::before { opacity: 1; }

/* Logo img (SimpleIcons CDN) */
.sk-pill img.sk-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  filter: brightness(0.88) saturate(1.1);
  transition: filter 0.2s ease;
}
.sk-pill:hover img.sk-logo { filter: brightness(1.05) saturate(1.2); }

/* Logo SVG inline */
.sk-pill svg.sk-logo {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}
.sk-pill:hover svg.sk-logo { opacity: 1; }

/* Texto */
.sk-pill span {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  z-index: 1;
  transition: color 0.2s ease;
  white-space: nowrap;
}
.sk-pill:hover span { color: var(--text-primary); }

@media (max-width: 640px) {
  .sk-pills { gap: 8px; }
  .sk-pill { padding: 8px 13px 8px 9px; border-radius: 10px; }
  .sk-pill img.sk-logo, .sk-pill svg.sk-logo { width: 17px; height: 17px; }
  .sk-pill span { font-size: 13px; }
}

/* ABOUT */
.about-avatar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.about-avatar-ring {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 2px solid var(--border-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 0 40px var(--accent-glow);
}

.about-avatar-ring::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px dashed rgba(124,58,237,0.3);
  animation: spin-slow 12s linear infinite;
}

@keyframes spin-slow {
  to { transform: rotate(360deg); }
}

.about-avatar-ring i {
  font-size: 80px;
  color: var(--accent);
}

.about-location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--text-secondary);
}

.about-location i { color: var(--accent); font-size: 12px; }

.about-text {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.about-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 8px 16px;
  font-size: 14px;
  color: var(--text-secondary);
}

.about-tag i { color: var(--accent); font-size: 14px; }

/* STATS */
.stats-row {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 56px 40px;
  margin-top: 70px;
  position: relative;
  overflow: hidden;
}

.stats-row::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-2), transparent);
}

/* Glow difuso detrás de los números */
.stats-row::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(124,58,237,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.stat-item {
  flex: 1;
  min-width: 150px;
  text-align: center;
  padding: 20px 28px;
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.stat-item.count-visible {
  opacity: 1;
  transform: translateY(0);
}

.stat-item:nth-child(1) { transition-delay: 0s; }
.stat-item:nth-child(3) { transition-delay: 0.1s; }
.stat-item:nth-child(5) { transition-delay: 0.2s; }
.stat-item:nth-child(7) { transition-delay: 0.3s; }

.stat-number-wrap {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  line-height: 1;
  margin-bottom: 10px;
}

.stat-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(44px, 5vw, 62px);
  font-weight: 700;
  background: linear-gradient(135deg, #c084fc, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  display: inline-block;
  /* Animación de brillo al contar */
  filter: drop-shadow(0 0 12px rgba(168,85,247,0.4));
}

.stat-plus {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
  padding-top: 6px;
  margin-left: 2px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.stat-divider {
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--border), transparent);
  flex-shrink: 0;
  align-self: stretch;
  margin: 10px 0;
}

/* Animación de "ping" cuando termina de contar */
@keyframes stat-ping {
  0%   { filter: drop-shadow(0 0 4px rgba(168,85,247,0.2)); }
  50%  { filter: drop-shadow(0 0 20px rgba(168,85,247,0.7)); }
  100% { filter: drop-shadow(0 0 8px rgba(168,85,247,0.3)); }
}

.stat-number.done {
  animation: stat-ping 0.6s ease forwards;
}

@media (max-width: 576px) {
  .stat-divider { display: none; }
  .stat-item { min-width: 50%; border-bottom: 1px solid var(--border); padding: 20px 16px; }
  .stat-item:last-child { border-bottom: none; }
  .stats-row { padding: 36px 16px; }
}


/* WORKS */
.work-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  height: 100%;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  cursor: default;
}

/* Línea top animada */
.work-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.4s ease;
}

/* Glow de fondo al hover */
.work-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(124,58,237,0.06) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.work-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(124, 58, 237, 0.12), 0 8px 20px rgba(0,0,0,0.3);
}

.work-card:hover::after { width: 100%; }
.work-card:hover::before { opacity: 1; }

.work-icon {
  width: 56px;
  height: 56px;
  background: var(--accent-soft);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  transition: all 0.3s ease;
}

.work-card:hover .work-icon {
  background: rgba(124,58,237,0.2);
  box-shadow: 0 0 20px rgba(124,58,237,0.3);
  transform: scale(1.08);
}

.work-icon i { font-size: 26px; color: var(--accent); }

.work-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.work-card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.75;
}


/* CONTACT */
.contact-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  max-width: 600px;
  margin: 0 auto;
}

.contact-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 35% at 50% 0%, rgba(124,58,237,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.contact-box h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}

.contact-box p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 36px;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: white;
  padding: 16px 36px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-whatsapp:hover {
  background: #1aad52;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(37,211,102,0.28);
}

/* FOOTER */
footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  padding: 32px 0;
  color: var(--text-muted);
  font-size: 14px;
}

footer .accent { color: var(--accent); }

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--text-primary);
  margin: 0;
}

.footer-name span { color: var(--accent); }

.footer-copy { font-size: 13px; color: var(--text-muted); margin: 0; }

.footer-socials { display: flex; gap: 12px; }
.footer-socials a { color: var(--text-muted); font-size: 17px; text-decoration: none; transition: color 0.2s ease; }
.footer-socials a:hover { color: var(--accent); }

/* ══ FOTO: sin borde blanco + anillo doble visible ══════════════ */
.about-avatar-ring {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(124,58,237,0.06);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 0 auto 20px;
  box-shadow:
    0 0 0 3px rgba(124,58,237,0.7),
    0 0 28px rgba(124,58,237,0.3),
    0 0 60px rgba(124,58,237,0.12);
}

/* Anillo sólido giratorio — grueso y brillante */
.about-avatar-ring::before {
  content: '';
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: #a855f7;
  border-right-color: #06b6d4;
  animation: ring-spin 2.5s linear infinite;
  z-index: 2;
}

/* Anillo punteado exterior — gira al revés, más lento */
.about-avatar-ring::after {
  content: '';
  position: absolute;
  inset: -15px;
  border-radius: 50%;
  border: 2px dashed rgba(124,58,237,0.4);
  animation: ring-spin 9s linear infinite reverse;
  z-index: 1;
}

@keyframes ring-spin {
  to { transform: rotate(360deg); }
}

/* multiply: el blanco se vuelve transparente sobre fondo oscuro */
.about-avatar-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  mix-blend-mode: multiply;
  filter: contrast(1.1) brightness(0.95) saturate(1.05);
  position: relative;
  z-index: 3;
}

/* Social buttons */
.about-socials { display: flex; gap: 10px; justify-content: center; margin-top: 16px; }
.social-btn {
  width: 40px; height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary); font-size: 16px; text-decoration: none;
  transition: all 0.22s ease;
}
.social-btn:hover { background: var(--accent-soft); border-color: var(--border-hover); color: var(--accent); transform: translateY(-3px); }

/* CV button */
.btn-cv { font-size: 14px; padding: 12px 22px; }

/* ══ CONTACTO REDISEÑADO — sin datos expuestos ════════════════ */
.contact-section {
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}
.contact-glow-left {
  position: absolute; top: 5%; left: -180px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(124,58,237,0.13) 0%, transparent 70%);
  pointer-events: none;
}
.contact-glow-right {
  position: absolute; bottom: 0; right: -180px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(6,182,212,0.09) 0%, transparent 70%);
  pointer-events: none;
}
.contact-lead {
  color: var(--text-secondary);
  font-size: 18px; max-width: 520px;
  line-height: 1.7; margin-bottom: 52px;
}

/* Grid 2x2 */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 48px;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 28px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

/* Línea top que se desliza al hover */
.contact-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 0%; height: 2px;
  transition: width 0.4s ease;
}
.contact-card--whatsapp::before { background: linear-gradient(90deg, #25D366, #128c3e); }
.contact-card--email::before    { background: linear-gradient(90deg, #7c3aed, #a855f7); }
.contact-card--linkedin::before { background: linear-gradient(90deg, #0077b5, #00a0dc); }
.contact-card--github::before   { background: linear-gradient(90deg, #6e40c9, #9c6bd8); }
.contact-card:hover::before { width: 100%; }

.contact-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: 0 24px 56px rgba(0,0,0,0.28);
}

/* Ícono grande con color propio */
.contact-card__icon {
  width: 60px; height: 60px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.contact-card--whatsapp .contact-card__icon { background: rgba(37,211,102,0.1); color: #25D366; border: 1px solid rgba(37,211,102,0.2); }
.contact-card--email    .contact-card__icon { background: var(--accent-soft); color: var(--accent); border: 1px solid var(--border-hover); }
.contact-card--linkedin .contact-card__icon { background: rgba(0,119,181,0.1); color: #0077b5; border: 1px solid rgba(0,119,181,0.2); }
.contact-card--github   .contact-card__icon { background: rgba(110,64,201,0.1); color: #9c6bd8; border: 1px solid rgba(110,64,201,0.2); }
.contact-card:hover .contact-card__icon { transform: scale(1.12); }

.contact-card__body { flex: 1; }
.contact-card__label {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted); margin: 0 0 6px;
}
/* Hint grande y legible — sin datos personales expuestos */
.contact-card__hint {
  font-size: 15px; font-weight: 500;
  color: var(--text-secondary);
  margin: 0;
  transition: color 0.25s ease;
}
.contact-card:hover .contact-card__hint { color: var(--text-primary); }

/* CTA buttons */
.contact-cta {
  display: flex; gap: 16px; justify-content: center;
  flex-wrap: wrap; margin-top: 8px;
}
.btn-whatsapp-big {
  display: inline-flex; align-items: center; gap: 10px;
  background: #25D366; color: white;
  padding: 18px 40px; border-radius: 50px;
  font-size: 16px; font-weight: 700; text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 8px 24px rgba(37,211,102,0.3);
}
.btn-whatsapp-big:hover { background: #1aad52; color: white; transform: translateY(-3px); box-shadow: 0 14px 36px rgba(37,211,102,0.45); }
.btn-email-outline {
  display: inline-flex; align-items: center; gap: 10px;
  background: transparent; color: var(--text-primary);
  padding: 18px 36px; border-radius: 50px;
  font-size: 16px; font-weight: 600; text-decoration: none;
  border: 2px solid var(--border); transition: all 0.25s ease;
}
.btn-email-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-3px); }

/* ANIMATIONS */
.fade-up { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* MOBILE */
@media (max-width: 768px) {
  .hero { padding: 100px 0 60px; }
  .hero h1 { font-size: 36px; letter-spacing: -0.8px; }
  .hero-desc { font-size: 15px; }
  .hero-actions { flex-direction: column; }
  .hero-card { margin-top: 40px; }
  .section { padding: 70px 0; }
  .section-heading { font-size: 28px; }
  .lang-dropdown { right: 0; min-width: 150px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .contact-cards { grid-template-columns: 1fr; max-width: 400px; }
  .contact-card { padding: 20px; }
  .btn-whatsapp-big, .btn-email-outline { width: 100%; justify-content: center; }
  .about-avatar-ring { width: 160px; height: 160px; }
  .stats-row { padding: 36px 16px; }
}
@media (max-width: 480px) {
  .contact-card__hint { font-size: 14px; }
}

/* WhatsApp flotante */
.whatsapp-float {
  position: fixed;
  bottom: 32px; right: 32px;
  width: 60px; height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; color: white; text-decoration: none;
  box-shadow: 0 6px 24px rgba(37,211,102,0.45);
  z-index: 9999;
  transition: all 0.25s ease;
  animation: float-pulse 3s infinite;
}
.whatsapp-float:hover { background: #1aad52; color: white; transform: scale(1.1); box-shadow: 0 10px 32px rgba(37,211,102,0.6); }
.whatsapp-float:active { transform: scale(0.88); }
.whatsapp-float.clicked { animation: pop-click 0.4s ease forwards; }

@keyframes float-pulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(37,211,102,0.45); }
  50%       { box-shadow: 0 6px 36px rgba(37,211,102,0.75); }
}
@keyframes pop-click {
  0%   { transform: scale(1); }
  30%  { transform: scale(0.82); }
  70%  { transform: scale(1.15); }
  100% { transform: scale(1); }
}