/* ============================================================
   cristianvaldebenito.com — Hub de marca personal
   Design System & Styles — Identidad Visual Unificada
   Inspirado en: UXR Portfolio, Territorio, Gestión24
   v3.0 — Ultra Premium Edition
   ============================================================ */

/* --- Google Fonts — Matching UXR Portfolio --- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

/* --- Design Tokens --- */
:root {
  /* Colors — Deep dark base with vibrant card accents */
  --color-bg: #0a0a0f;
  --color-bg-gradient: radial-gradient(ellipse at 20% 0%, #1a1a3e 0%, #0f0f1a 40%, #0a0a0f 100%);
  --color-surface: rgba(255, 255, 255, 0.05);
  --color-surface-hover: rgba(255, 255, 255, 0.10);
  --color-text: #f0f0f5;
  --color-text-secondary: #b0b0c0;
  --color-muted: #808090;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-hover: rgba(255, 255, 255, 0.20);
  --color-footer-bg: rgba(0, 0, 0, 0.5);

  /* Accent Colors */
  --color-primary: #6366f1;
  --color-primary-light: #818cf8;
  --color-primary-soft: rgba(99, 102, 241, 0.18);
  --color-primary-glow: rgba(99, 102, 241, 0.15);

  --color-blue: #60a5fa;
  --color-blue-soft: rgba(96, 165, 250, 0.15);
  --color-green: #34d399;
  --color-green-soft: rgba(52, 211, 153, 0.15);
  --color-amber: #fbbf24;
  --color-amber-soft: rgba(251, 191, 36, 0.15);
  --color-slate: #b0b0c0;
  --color-slate-soft: rgba(176, 176, 192, 0.12);
  --color-cyan: #22d3ee;
  --color-cyan-soft: rgba(34, 211, 238, 0.15);

  /* Brand gradients */
  --gradient-brand: linear-gradient(135deg, #6366f1, #818cf8);
  --gradient-brand-accent: linear-gradient(135deg, #6366f1, #22d3ee);
  --gradient-subtle: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(34, 211, 238, 0.08));
  --glow-primary: 0 0 60px rgba(99, 102, 241, 0.20);
  --glow-blue: 0 0 40px rgba(96, 165, 250, 0.18);

  /* Typography — Matching UXR Portfolio */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Cascadia Code', 'Consolas', monospace;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 500ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  background-image: var(--color-bg-gradient);
  background-attachment: fixed;
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow-x: hidden;
}

/* ---- Ambient Background Orbs ---- */
body::before {
  content: '';
  position: fixed;
  top: -20%;
  left: -10%;
  width: 65%;
  height: 65%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.18) 0%, rgba(99, 102, 241, 0.06) 40%, transparent 65%);
  pointer-events: none;
  z-index: 0;
  animation: orbDrift1 18s ease-in-out infinite alternate;
}

body::after {
  content: '';
  position: fixed;
  bottom: -15%;
  right: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.14) 0%, rgba(34, 211, 238, 0.04) 40%, transparent 65%);
  pointer-events: none;
  z-index: 0;
  animation: orbDrift2 22s ease-in-out infinite alternate;
}

/* Noise texture overlay for depth */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* Floating orb particles — much more visible */
.orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(80px);
}

.orb--1 {
  width: 450px;
  height: 450px;
  background: rgba(99, 102, 241, 0.20);
  top: 5%;
  left: 55%;
  animation: orbFloat1 25s ease-in-out infinite;
}

.orb--2 {
  width: 350px;
  height: 350px;
  background: rgba(34, 211, 238, 0.16);
  top: 50%;
  left: 10%;
  animation: orbFloat2 20s ease-in-out infinite;
}

.orb--3 {
  width: 380px;
  height: 380px;
  background: rgba(52, 211, 153, 0.14);
  top: 65%;
  right: 5%;
  animation: orbFloat3 30s ease-in-out infinite;
}

/* Grid line decoration — more visible */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 40%, rgba(0,0,0,0.6) 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, rgba(0,0,0,0.6) 0%, transparent 75%);
}

/* === ANIMATIONS === */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.7), 0 0 24px rgba(99, 102, 241, 0.25);
  }
  50% {
    opacity: 0.5;
    box-shadow: 0 0 4px rgba(99, 102, 241, 0.4), 0 0 40px rgba(99, 102, 241, 0.12);
  }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-3px); }
}

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

@keyframes orbDrift1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, 30px) scale(1.15); }
}

@keyframes orbDrift2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-30px, -20px) scale(1.2); }
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(30px, -40px); }
  50% { transform: translate(-20px, -60px); }
  75% { transform: translate(-40px, -20px); }
}

@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(40px, 30px); }
  66% { transform: translate(-30px, 50px); }
}

@keyframes orbFloat3 {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-30px, 20px); }
  50% { transform: translate(20px, 40px); }
  75% { transform: translate(40px, -10px); }
}

@keyframes dotBreath {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 8px color-mix(in srgb, var(--card-color) 50%, transparent);
  }
  50% {
    transform: scale(1.4);
    box-shadow: 0 0 16px color-mix(in srgb, var(--card-color) 70%, transparent),
                0 0 30px color-mix(in srgb, var(--card-color) 30%, transparent);
  }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes typingCursor {
  0%, 100% { border-right-color: var(--color-primary-light); }
  50% { border-right-color: transparent; }
}

@keyframes lineExpand {
  from {
    transform: scaleX(0);
    opacity: 0;
  }
  to {
    transform: scaleX(1);
    opacity: 1;
  }
}

@keyframes revealCard {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0px);
  }
}

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

@keyframes rotateGradient {
  0% { --angle: 0deg; }
  100% { --angle: 360deg; }
}

@keyframes borderRotate {
  0% { --border-angle: 0deg; }
  100% { --border-angle: 360deg; }
}

@keyframes heroGlow {
  0%, 100% {
    text-shadow: 0 0 40px rgba(99, 102, 241, 0.3), 0 0 80px rgba(99, 102, 241, 0.1);
  }
  50% {
    text-shadow: 0 0 60px rgba(99, 102, 241, 0.5), 0 0 120px rgba(34, 211, 238, 0.15);
  }
}

/* --- Layout --- */
.hub {
  width: 100%;
  max-width: 1320px;
  padding: 4.5rem 2.5rem 0rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  z-index: 1;
}

/* --- Hero Section --- */
.hero {
  margin-bottom: 0;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--color-border);
  position: relative;
  animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

/* Animated divider line — brighter */
.hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.7), rgba(34, 211, 238, 0.5), transparent);
  animation: lineExpand 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.6s both;
  transform-origin: center;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.3), 0 0 40px rgba(34, 211, 238, 0.15);
}

.hero__top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
  width: 100%;
}

.hero__label {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 500;
  font-family: var(--font-body);
  letter-spacing: 0.08em;
  color: var(--color-muted);
  position: relative;
  padding-left: 1.1rem;
  text-transform: uppercase;
  animation: fadeIn 0.6s ease 0.2s both;
}

.hero__label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary-light);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.8), 0 0 30px rgba(99, 102, 241, 0.4);
  animation: pulse 2.5s ease-in-out infinite;
}

.hero__name {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--color-text);
  margin-bottom: 0.35rem;
  /* Animated gradient text — more vivid */
  background: linear-gradient(135deg, #ffffff 0%, #818cf8 30%, #22d3ee 50%, #34d399 70%, #ffffff 100%);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both,
             gradientShift 6s ease-in-out infinite;
  filter: drop-shadow(0 0 30px rgba(99, 102, 241, 0.2));
}

.hero__role {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
  animation: fadeInUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.45s both;
}

.hero__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
  animation: fadeInUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.55s both;
}

.hero__tagline {
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--color-muted);
  line-height: 1.65;
  flex: 1;
}

/* --- Content Middle Group --- */
.content-group {
  display: flex;
  flex-direction: column;
  margin: 1.25rem 0;
}

/* --- Section Title --- */
.section__title {
  font-family: var(--font-heading);
  font-size: 1.12rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-top: 3rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
  animation: fadeInUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.6s both;
}

/* --- Cards Grid --- */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  margin-bottom: 0;
  perspective: 1000px;
}

/* --- Card — Premium Glassmorphism with Animated Borders --- */
.card {
  display: flex;
  flex-direction: column;
  min-height: 265px;
  padding: 1.4rem 1.35rem 1.15rem;
  background: var(--card-bg, rgba(255, 255, 255, 0.05));
  border: 1px solid var(--card-border, rgba(255, 255, 255, 0.10));
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(30px) saturate(1.4);
  -webkit-backdrop-filter: blur(30px) saturate(1.4);
  transition:
    border-color 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  animation: revealCard 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
  transform-style: preserve-3d;
  will-change: transform, box-shadow;
  /* Inner glow always present */
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 4px 24px rgba(0, 0, 0, 0.3);
}

.card:nth-child(1) { animation-delay: 0.15s; }
.card:nth-child(2) { animation-delay: 0.25s; }
.card:nth-child(3) { animation-delay: 0.35s; }
.card:nth-child(4) { animation-delay: 0.45s; }

/* Mouse spotlight effect — brighter */
.card__spotlight {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 0;
  border-radius: inherit;
  background: radial-gradient(
    400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(255, 255, 255, 0.08) 0%,
    transparent 100%
  );
}

.card:hover .card__spotlight {
  opacity: 1;
}

/* Card top accent line — always partially visible */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--card-gradient, var(--card-color));
  transform: scaleX(0.3);
  transform-origin: left;
  opacity: 0.6;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
}

/* Card ambient glow — always slightly visible */
.card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 0%, var(--card-glow, transparent) 0%, transparent 60%);
  opacity: 0.4;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.card:hover::before,
.card:focus-visible::before {
  transform: scaleX(1);
  opacity: 1;
}

.card:hover::after,
.card:focus-visible::after {
  opacity: 1;
}

.card:hover,
.card:focus-visible {
  border-color: var(--card-border-hover, rgba(255, 255, 255, 0.22));
  transform: translateY(-5px) scale(1.015);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    0 16px 64px rgba(0, 0, 0, 0.5),
    0 0 1px rgba(255, 255, 255, 0.15),
    var(--card-shadow, 0 0 0 transparent);
  background: var(--card-bg-hover, rgba(255, 255, 255, 0.09));
}

.card:focus-visible {
  outline: 2px solid var(--card-color);
  outline-offset: 2px;
}

/* Card color variants — More vivid backgrounds & glows */
.card--blue {
  --card-color: #818cf8;
  --card-gradient: linear-gradient(90deg, #6366f1, #818cf8, #22d3ee);
  --card-glow: rgba(99, 102, 241, 0.20);
  --card-shadow: 0 8px 48px rgba(99, 102, 241, 0.25);
  --card-bg: rgba(99, 102, 241, 0.08);
  --card-bg-hover: rgba(99, 102, 241, 0.14);
  --card-border: rgba(99, 102, 241, 0.16);
  --card-border-hover: rgba(99, 102, 241, 0.35);
}

.card--green {
  --card-color: #34d399;
  --card-gradient: linear-gradient(90deg, #10b981, #34d399, #6ee7b7);
  --card-glow: rgba(52, 211, 153, 0.18);
  --card-shadow: 0 8px 48px rgba(52, 211, 153, 0.22);
  --card-bg: rgba(52, 211, 153, 0.07);
  --card-bg-hover: rgba(52, 211, 153, 0.13);
  --card-border: rgba(52, 211, 153, 0.14);
  --card-border-hover: rgba(52, 211, 153, 0.32);
}

.card--amber {
  --card-color: #fbbf24;
  --card-gradient: linear-gradient(90deg, #f59e0b, #fbbf24, #fcd34d);
  --card-glow: rgba(251, 191, 36, 0.15);
  --card-shadow: 0 8px 48px rgba(251, 191, 36, 0.20);
  --card-bg: rgba(251, 191, 36, 0.06);
  --card-bg-hover: rgba(251, 191, 36, 0.12);
  --card-border: rgba(251, 191, 36, 0.14);
  --card-border-hover: rgba(251, 191, 36, 0.30);
}

.card--gray {
  --card-color: #b0b0c0;
  --card-gradient: linear-gradient(90deg, #71717a, #a1a1aa, #c0c0d0);
  --card-glow: rgba(176, 176, 192, 0.14);
  --card-shadow: 0 8px 48px rgba(176, 176, 192, 0.16);
  --card-bg: rgba(176, 176, 192, 0.06);
  --card-bg-hover: rgba(176, 176, 192, 0.12);
  --card-border: rgba(176, 176, 192, 0.14);
  --card-border-hover: rgba(176, 176, 192, 0.30);
}

/* Card internals */
.card__header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: 0.25rem;
  position: relative;
  z-index: 1;
}

.card__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--card-color);
  flex-shrink: 0;
  box-shadow: 0 0 8px color-mix(in srgb, var(--card-color) 50%, transparent),
              0 0 20px color-mix(in srgb, var(--card-color) 20%, transparent);
  animation: dotBreath 3s ease-in-out infinite;
}

.card:nth-child(1) .card__dot { animation-delay: 0s; }
.card:nth-child(2) .card__dot { animation-delay: 0.75s; }
.card:nth-child(3) .card__dot { animation-delay: 1.5s; }
.card:nth-child(4) .card__dot { animation-delay: 2.25s; }

.card__tag {
  font-family: var(--font-body);
  font-size: 0.688rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--card-color);
  position: relative;
  z-index: 1;
}

.card__icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.75rem auto 0.9rem;
  padding: 11px;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--card-color) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--card-color) 18%, transparent);
  color: var(--card-color);
  position: relative;
  z-index: 1;
  transition: background 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
}

.card__icon svg {
  width: 100%;
  height: 100%;
}

.card:hover .card__icon {
  background: color-mix(in srgb, var(--card-color) 20%, transparent);
  transform: scale(1.08);
  box-shadow: 0 0 20px color-mix(in srgb, var(--card-color) 25%, transparent);
}

.card__title {
  font-family: var(--font-heading);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.25rem;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 1;
  transition: color var(--transition-base), text-shadow var(--transition-base);
}

.card:hover .card__title {
  color: #ffffff;
  text-shadow: 0 0 20px color-mix(in srgb, var(--card-color) 30%, transparent);
}

.card__desc {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--color-muted);
  line-height: 1.55;
  flex: 1;
  position: relative;
  z-index: 1;
  transition: color var(--transition-base);
}

.card:hover .card__desc {
  color: var(--color-text-secondary);
}

.card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.85rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--color-border);
  position: relative;
  z-index: 1;
  transition: border-color var(--transition-base);
}

.card:hover .card__footer {
  border-top-color: color-mix(in srgb, var(--card-color) 25%, transparent);
}

.card__url {
  font-size: 0.72rem;
  color: var(--color-muted);
  font-family: var(--font-mono);
  opacity: 0.75;
  transition: opacity var(--transition-base), color var(--transition-base);
}

.card:hover .card__url {
  opacity: 1;
  color: var(--color-text-secondary);
}

.card__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition:
    background 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.4s ease;
}

.card__arrow svg {
  width: 15px;
  height: 15px;
  stroke: var(--color-muted);
  transition: stroke var(--transition-base), transform 0.3s ease;
}

.card:hover .card__arrow {
  background: var(--card-color);
  border-color: var(--card-color);
  transform: translateX(4px);
  box-shadow: 0 0 20px color-mix(in srgb, var(--card-color) 40%, transparent);
}

.card:hover .card__arrow svg {
  stroke: #0a0a0f;
  transform: scale(1.1);
}

/* --- Card: Coming Soon State --- */
.card--soon {
  opacity: 0.5;
  pointer-events: none;
  cursor: default;
}

.card--soon::before,
.card--soon::after {
  display: none;
}

/* Badge "Próximamente" — posicionado arriba dentro de la card */
.card__badge-soon {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-amber);
  background: var(--color-amber-soft);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(251, 191, 36, 0.28);
  animation: badgePulse 3s ease-in-out infinite;
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.15);
}

/* --- Tags Cloud / Hashtags Section --- */
.tags-cloud {
  margin-top: auto;
  margin-bottom: auto;
  padding: 1rem 1.75rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.65s both;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Subtle top gradient accent on tags cloud */
.tags-cloud::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.4), rgba(34, 211, 238, 0.3), transparent);
}

.tags-cloud__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 10px;
}

/* Base Tag / Hashtag Pill */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 5px 13px;
  font-family: var(--font-body);
  font-size: 0.785rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 9px;
  background: var(--tag-bg, rgba(255, 255, 255, 0.04));
  border: 1px solid var(--tag-border, rgba(255, 255, 255, 0.10));
  color: var(--tag-color, var(--color-text-secondary));
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease,
    box-shadow 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  position: relative;
}

.tag::before {
  content: '#';
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85em;
  opacity: 0.65;
  color: var(--tag-color, var(--color-primary-light));
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.tag:hover {
  transform: translateY(-3px) scale(1.05);
  background: var(--tag-bg-hover, rgba(255, 255, 255, 0.12));
  border-color: var(--tag-color, #ffffff);
  color: #ffffff;
  box-shadow:
    0 6px 20px var(--tag-glow, rgba(99, 102, 241, 0.3)),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.tag:hover::before {
  opacity: 1;
  transform: rotate(-10deg) scale(1.1);
}

/* Tag Color Variations */
.tag--gray {
  --tag-color: #cbd5e1;
  --tag-bg: rgba(148, 163, 184, 0.08);
  --tag-bg-hover: rgba(148, 163, 184, 0.18);
  --tag-border: rgba(148, 163, 184, 0.18);
  --tag-glow: rgba(148, 163, 184, 0.25);
}

.tag--blue {
  --tag-color: #93c5fd;
  --tag-bg: rgba(96, 165, 250, 0.08);
  --tag-bg-hover: rgba(96, 165, 250, 0.18);
  --tag-border: rgba(96, 165, 250, 0.22);
  --tag-glow: rgba(96, 165, 250, 0.35);
}

.tag--green {
  --tag-color: #6ee7b7;
  --tag-bg: rgba(52, 211, 153, 0.08);
  --tag-bg-hover: rgba(52, 211, 153, 0.18);
  --tag-border: rgba(52, 211, 153, 0.22);
  --tag-glow: rgba(52, 211, 153, 0.35);
}

.tag--amber {
  --tag-color: #fcd34d;
  --tag-bg: rgba(251, 191, 36, 0.08);
  --tag-bg-hover: rgba(251, 191, 36, 0.18);
  --tag-border: rgba(251, 191, 36, 0.22);
  --tag-glow: rgba(251, 191, 36, 0.35);
}

.tag--purple {
  --tag-color: #c084fc;
  --tag-bg: rgba(192, 132, 252, 0.08);
  --tag-bg-hover: rgba(192, 132, 252, 0.18);
  --tag-border: rgba(192, 132, 252, 0.22);
  --tag-glow: rgba(192, 132, 252, 0.35);
}

.tag--cyan {
  --tag-color: #38bdf8;
  --tag-bg: rgba(56, 189, 248, 0.08);
  --tag-bg-hover: rgba(56, 189, 248, 0.18);
  --tag-border: rgba(56, 189, 248, 0.22);
  --tag-glow: rgba(56, 189, 248, 0.35);
}



/* --- Hero Socials --- */
.hero__socials {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.hero__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--color-muted);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  position: relative;
  transition:
    color 0.3s ease,
    background 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s ease;
}

.hero__social-link::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  background: var(--gradient-brand-accent);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.hero__social-link:hover {
  color: var(--color-text);
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.30);
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.25);
}

.hero__social-link:active {
  transform: translateY(-1px) scale(1.02);
}

.hero__social-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  transition: transform 0.3s ease;
}

.hero__social-link:hover svg {
  transform: scale(1.15);
}

/* --- Footer --- */
.footer {
  width: 100%;
  max-width: 1280px;
  padding: 1.5rem 2rem 2.5rem;
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.8s both;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.6rem;
  border-top: 1px solid var(--color-border);
  position: relative;
}

/* Footer divider glow */
.footer__inner::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.4), transparent);
}

.footer__copy {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--color-muted);
  letter-spacing: 0.02em;
}

.footer__copy span {
  color: var(--color-primary-light);
}

.footer__made-with {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--color-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.footer__made-with .heart {
  color: #ef4444;
  font-size: 0.85rem;
  animation: float 2s ease-in-out infinite;
}

/* --- Custom Cursor --- */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background-color: var(--color-primary-light);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(129, 140, 248, 0.6);
  pointer-events: none;
  z-index: 9999;
  transform: translate3d(-50%, -50%, 0);
  transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease;
  mix-blend-mode: exclusion;
}

.cursor-follower {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(129, 140, 248, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate3d(-50%, -50%, 0);
  transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.cursor.cursor--active {
  width: 0;
  height: 0;
}

.cursor-follower.follower--active {
  width: 60px;
  height: 60px;
  background-color: rgba(129, 140, 248, 0.12);
  border-color: rgba(129, 140, 248, 0.8);
  backdrop-filter: blur(2px);
}

/* Hide default cursor only if not touch device */
@media (pointer: fine) {
  body {
    cursor: none;
  }
  a, button, .card {
    cursor: none;
  }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }
}

@media (max-width: 768px) {
  .hub {
    padding: 5rem 1.5rem 1rem;
  }

  .hero {
    margin-bottom: var(--space-2xl);
    padding-bottom: var(--space-xl);
  }

  .hero__name {
    font-size: 2.5rem;
  }

  .hero__role {
    font-size: 1.15rem;
  }

  .hero__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    perspective: none;
  }

  .tags-cloud {
    padding: 1.5rem 1.25rem;
    margin-top: 4rem;
  }

  .orb { display: none; }
  
  .footer__inner {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hub {
    padding: 4.5rem 1.25rem 1rem;
  }

  .hero__name {
    font-size: 2.15rem;
  }

  .hero__role {
    font-size: 1.05rem;
  }

  .hero__tagline {
    font-size: 0.95rem;
  }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
