/*! Code Repair Tech - Premium UI System v3.0 | WCAG AAA | Apple HIG + Material Design */
/* Design System: Glassmorphism + Aurora + Spring Physics */

/* ==========================================================================
   CSS Custom Properties - Design Tokens
   ========================================================================== */

:root {
  /* Escala de colores principales - WCAG AAA compliant */
  --color-bg-primary: #0a0c10;
  --color-bg-secondary: #111318;
  --color-bg-tertiary: #181b21;
  --color-bg-elevated: #1e2128;
  --color-bg-card: rgba(24, 27, 33, 0.85);

  /* Texto - Contraste 7:1 mínimo para AAA */
  --color-text-primary: #ffffff;
  --color-text-secondary: rgba(255, 255, 255, 0.87);
  --color-text-tertiary: rgba(255, 255, 255, 0.60);
  --color-text-muted: rgba(255, 255, 255, 0.38);

  /* Acentos - Vibrantes y accesibles */
  --color-accent-blue: #60a5fa;
  --color-accent-blue-dark: #3b82f6;
  --color-accent-cyan: #22d3ee;
  --color-accent-orange: #fb923c;
  --color-accent-orange-soft: #fdba74;
  --color-accent-purple: #a78bfa;

  /* Estados semánticos */
  --color-success: #4ade80;
  --color-warning: #fbbf24;
  --color-error: #f87171;
  --color-info: #60a5fa;

  /* Gradientes premium */
  --gradient-primary: linear-gradient(135deg, #60a5fa 0%, #a78bfa 50%, #fb923c 100%);
  --gradient-hero: linear-gradient(135deg, rgba(96, 165, 250, 0.15) 0%, rgba(167, 139, 250, 0.1) 50%, rgba(251, 146, 60, 0.08) 100%);
  --gradient-glow: radial-gradient(circle at 50% 50%, rgba(96, 165, 250, 0.4) 0%, transparent 70%);
  --gradient-border: linear-gradient(135deg, rgba(96, 165, 250, 0.5) 0%, rgba(251, 146, 60, 0.3) 100%);

  /* Elevación y sombras */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.24);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 10px 10px -5px rgba(0, 0, 0, 0.4);
  --shadow-glow-blue: 0 0 40px rgba(96, 165, 250, 0.4), 0 0 80px rgba(96, 165, 250, 0.2);
  --shadow-glow-orange: 0 0 40px rgba(251, 146, 60, 0.4), 0 0 80px rgba(251, 146, 60, 0.2);
  --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.3);

  /* Espaciado - 8dp grid system */
  --space-1: 0.25rem;  /* 4px */
  --space-2: 0.5rem;   /* 8px */
  --space-3: 0.75rem;  /* 12px */
  --space-4: 1rem;     /* 16px */
  --space-5: 1.25rem;  /* 20px */
  --space-6: 1.5rem;   /* 24px */
  --space-8: 2rem;     /* 32px */
  --space-10: 2.5rem;  /* 40px */
  --space-12: 3rem;    /* 48px */
  --space-16: 4rem;    /* 64px */
  --space-20: 5rem;    /* 80px */
  --space-24: 6rem;    /* 96px */

  /* Tipografía - Scale 1.25 Major Third */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --text-xs: 0.75rem;    /* 12px */
  --text-sm: 0.875rem;   /* 14px */
  --text-base: 1rem;     /* 16px */
  --text-lg: 1.125rem;   /* 18px */
  --text-xl: 1.25rem;    /* 20px */
  --text-2xl: 1.5rem;    /* 24px */
  --text-3xl: 1.875rem;  /* 30px */
  --text-4xl: 2.25rem;   /* 36px */
  --text-5xl: 3rem;      /* 48px */
  --text-6xl: 3.75rem;   /* 60px */

  /* Line height */
  --leading-none: 1;
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 2;

  /* Tracking */
  --tracking-tight: -0.025em;
  --tracking-normal: 0;
  --tracking-wide: 0.025em;
  --tracking-wider: 0.05em;
  --tracking-widest: 0.1em;

  /* Radios */
  --radius-sm: 0.375rem;   /* 6px */
  --radius-md: 0.5rem;     /* 8px */
  --radius-lg: 0.75rem;    /* 12px */
  --radius-xl: 1rem;       /* 16px */
  --radius-2xl: 1.5rem;    /* 24px */
  --radius-full: 9999px;

  /* Timing functions - Spring physics */
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-in-out-sine: cubic-bezier(0.37, 0, 0.63, 1);

  /* Duraciones */
  --duration-instant: 0ms;
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 350ms;
  --duration-slower: 500ms;

  /* Z-index scale */
  --z-behind: -1;
  --z-base: 0;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-popover: 600;
  --z-tooltip: 700;
  --z-toast: 800;

  /* Focus ring - accesibilidad */
  --focus-ring-width: 3px;
  --focus-ring-color: rgba(96, 165, 250, 0.5);
  --focus-ring-offset: 2px;
}

/* ==========================================================================
   Base Styles - Reset & Typography
   ========================================================================== */

*,
*::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;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  font-family: var(--font-family);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Aurora Background Effect */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 40%, rgba(96, 165, 250, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(251, 146, 60, 0.08) 0%, transparent 45%),
    radial-gradient(ellipse 50% 30% at 50% 100%, rgba(167, 139, 250, 0.06) 0%, transparent 40%),
    radial-gradient(ellipse 40% 60% at 90% 20%, rgba(34, 211, 238, 0.05) 0%, transparent 35%);
  z-index: var(--z-behind);
  pointer-events: none;
  animation: aurora-drift 25s ease-in-out infinite;
}

@keyframes aurora-drift {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  25% {
    transform: translate(2%, -1%) scale(1.02);
  }
  50% {
    transform: translate(-1%, 2%) scale(0.98);
  }
  75% {
    transform: translate(-2%, -1%) scale(1.01);
  }
}

/* Selection - WCAG AAA */
::selection {
  background: rgba(96, 165, 250, 0.3);
  color: var(--color-text-primary);
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--color-accent-blue), var(--color-accent-orange));
  border-radius: var(--radius-full);
  border: 2px solid var(--color-bg-secondary);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--color-accent-cyan), var(--color-accent-orange-soft));
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text-primary);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
  margin: 0;
  color: var(--color-text-secondary);
}

/* ==========================================================================
   Hero Section - Premium Glassmorphism
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
  overflow: hidden;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 12, 16, 0.4) 0%, rgba(10, 12, 16, 0.8) 50%, rgba(10, 12, 16, 0.95) 100%),
    radial-gradient(circle at 30% 20%, rgba(96, 165, 250, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(251, 146, 60, 0.1) 0%, transparent 45%);
  z-index: 0;
  animation: hero-fade-in 1.5s var(--ease-out-expo);
}

@keyframes hero-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  padding: var(--space-10);
  border-radius: var(--radius-2xl);
  background: linear-gradient(145deg,
    rgba(30, 33, 40, 0.8) 0%,
    rgba(24, 27, 33, 0.9) 50%,
    rgba(17, 19, 24, 0.95) 100%);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    var(--shadow-xl),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  animation: hero-content-enter 1s var(--ease-spring) 0.3s both;
}

@keyframes hero-content-enter {
  from {
    opacity: 0;
    transform: translateY(60px) scale(0.95);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* Tag con efecto typing */
.hero__tag {
  display: inline-block;
  margin-bottom: var(--space-6);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-accent-orange);
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.15) 0%, rgba(251, 146, 60, 0.05) 100%);
  border: 1px solid rgba(251, 146, 60, 0.2);
  border-radius: var(--radius-full);
  animation: tag-glow 3s ease-in-out infinite;
}

@keyframes tag-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(251, 146, 60, 0.2);
    border-color: rgba(251, 146, 60, 0.2);
  }
  50% {
    box-shadow: 0 0 30px rgba(251, 146, 60, 0.4);
    border-color: rgba(251, 146, 60, 0.4);
  }
}

/* Logo */
.hero__logo {
  width: min(400px, 70vw);
  height: auto;
  margin: 0 auto var(--space-6);
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
  animation: logo-enter 1.2s var(--ease-spring) 0.5s both;
}

@keyframes logo-enter {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.hero__subtitle {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto var(--space-8);
  animation: subtitle-enter 1s var(--ease-out-expo) 0.7s both;
}

@keyframes subtitle-enter {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Botones - Premium Magnetic Effect
   ========================================================================== */

.hero__button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  color: var(--color-text-primary);
  text-decoration: none;
  background: var(--gradient-primary);
  background-size: 200% 100%;
  background-position: 0% 50%;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  overflow: hidden;
  box-shadow:
    0 4px 14px rgba(96, 165, 250, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition:
    transform var(--duration-normal) var(--ease-spring),
    box-shadow var(--duration-normal) var(--ease-smooth),
    background-position var(--duration-slow) var(--ease-smooth);
  will-change: transform, box-shadow;
  /* Touch target: 48px mínimo */
  min-height: 48px;
  min-width: 48px;
}

.hero__button::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: translateX(-100%);
  transition: transform var(--duration-slow) var(--ease-smooth);
}

.hero__button:hover {
  transform: translateY(-3px) scale(1.02);
  background-position: 100% 50%;
  box-shadow:
    0 8px 25px rgba(251, 146, 60, 0.4),
    0 0 40px rgba(96, 165, 250, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.15);
}

.hero__button:hover::before {
  transform: translateX(100%);
}

.hero__button:active {
  transform: translateY(-1px) scale(0.98);
  transition-duration: var(--duration-fast);
}

/* Focus visible - WCAG AAA */
.hero__button:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 var(--focus-ring-offset) var(--color-bg-primary),
    0 0 0 calc(var(--focus-ring-offset) + var(--focus-ring-width)) var(--focus-ring-color),
    0 8px 25px rgba(251, 146, 60, 0.4);
}

.hero__button svg {
  width: 20px;
  height: 20px;
  transition: transform var(--duration-normal) var(--ease-spring);
}

.hero__button:hover svg {
  transform: translateX(4px);
}

/* ==========================================================================
   Secciones
   ========================================================================== */

.section {
  position: relative;
  padding: var(--space-24) var(--space-6);
}

.section--contact {
  padding-top: var(--space-12);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.container--narrow {
  max-width: 800px;
}

/* Eyebrow text */
.section__eyebrow {
  display: inline-block;
  margin-bottom: var(--space-4);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-accent-orange);
  position: relative;
}

.section__eyebrow::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-slow) var(--ease-out-expo);
}

.reveal.is-visible .section__eyebrow::after {
  transform: scaleX(1);
}

.section h2 {
  text-align: center;
  margin-bottom: var(--space-12);
  background: linear-gradient(135deg, var(--color-text-primary) 0%, var(--color-text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section__description {
  text-align: center;
  font-size: var(--text-lg);
  color: var(--color-text-tertiary);
  max-width: 600px;
  margin: calc(var(--space-12) * -1) auto var(--space-12);
}

/* ==========================================================================
   About Section - Premium Cards
   ========================================================================== */

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  align-items: stretch;
}

@media (max-width: 768px) {
  .about {
    grid-template-columns: 1fr;
  }
}

.about__intro,
.about__stats {
  padding: var(--space-8);
  background: var(--color-bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  transition:
    transform var(--duration-normal) var(--ease-spring),
    box-shadow var(--duration-normal) var(--ease-smooth),
    border-color var(--duration-normal) var(--ease-smooth);
}

.about__intro:hover,
.about__stats:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-xl);
}

.about__intro h2 {
  text-align: left;
  margin-bottom: var(--space-6);
  font-size: var(--text-2xl);
}

.about__intro p {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text-tertiary);
}

.about__intro p + p {
  margin-top: var(--space-4);
}

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

.about__stats {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* Pills premium */
.about__pill {
  position: relative;
  padding: var(--space-5);
  background: linear-gradient(135deg,
    rgba(96, 165, 250, 0.1) 0%,
    rgba(251, 146, 60, 0.05) 100%);
  border: 1px solid rgba(96, 165, 250, 0.15);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition:
    transform var(--duration-normal) var(--ease-spring),
    border-color var(--duration-normal) var(--ease-smooth),
    box-shadow var(--duration-normal) var(--ease-smooth);
  cursor: default;
}

.about__pill::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-border);
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-smooth);
  z-index: -1;
  padding: 1px;
  border-radius: inherit;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.about__pill::after {
  content: '';
  position: absolute;
  inset: -2px;
  background: var(--gradient-glow);
  opacity: 0;
  filter: blur(20px);
  z-index: -2;
  transition: opacity var(--duration-normal) var(--ease-smooth);
}

.about__pill:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(96, 165, 250, 0.3);
}

.about__pill:hover::before,
.about__pill:hover::after {
  opacity: 1;
}

.about__pill strong {
  display: block;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-accent-orange-soft);
  margin-bottom: var(--space-2);
}

.about__pill span {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--color-text-tertiary);
}

/* ==========================================================================
   Services Grid - Premium Cards con 3D Tilt
   ========================================================================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
}

.card {
  position: relative;
  padding: var(--space-6);
  background: linear-gradient(145deg,
    rgba(30, 33, 40, 0.6) 0%,
    rgba(24, 27, 33, 0.8) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition:
    transform var(--duration-normal) var(--ease-spring),
    box-shadow var(--duration-normal) var(--ease-smooth),
    border-color var(--duration-normal) var(--ease-smooth);
  will-change: transform;
  /* Touch target considerations */
  min-height: 200px;
}

/* Animated border gradient */
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg,
    rgba(96, 165, 250, 0.5) 0%,
    rgba(167, 139, 250, 0.3) 50%,
    rgba(251, 146, 60, 0.4) 100%);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--duration-slow) var(--ease-smooth);
}

/* Shimmer effect */
.card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg at 50% 50%,
    transparent 0deg,
    rgba(96, 165, 250, 0.1) 60deg,
    rgba(251, 146, 60, 0.15) 120deg,
    rgba(167, 139, 250, 0.1) 180deg,
    transparent 240deg
  );
  animation: card-shimmer 10s linear infinite;
  opacity: 0;
  transition: opacity var(--duration-slow) var(--ease-smooth);
  pointer-events: none;
}

@keyframes card-shimmer {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.card:hover {
  transform: translateY(-8px);
  border-color: rgba(96, 165, 250, 0.2);
  box-shadow:
    var(--shadow-xl),
    0 0 60px rgba(96, 165, 250, 0.15);
}

.card:hover::before,
.card:hover::after {
  opacity: 1;
}

.card__icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin-bottom: var(--space-5);
  background: linear-gradient(135deg,
    rgba(96, 165, 250, 0.2) 0%,
    rgba(251, 146, 60, 0.1) 100%);
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: var(--radius-lg);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 4px 12px rgba(96, 165, 250, 0.2);
  transition:
    transform var(--duration-normal) var(--ease-spring),
    box-shadow var(--duration-normal) var(--ease-smooth);
  position: relative;
  overflow: hidden;
}

.card__icon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(96, 165, 250, 0.3) 0%,
    rgba(251, 146, 60, 0.2) 100%);
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-smooth);
}

.card:hover .card__icon {
  transform: translateY(-4px) scale(1.05);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 8px 24px rgba(96, 165, 250, 0.3);
}

.card:hover .card__icon::before {
  opacity: 1;
}

.card__icon svg {
  width: 28px;
  height: 28px;
  fill: var(--color-accent-blue);
  transition: all var(--duration-normal) var(--ease-spring);
  position: relative;
  z-index: 1;
}

.card:hover .card__icon svg {
  fill: var(--color-accent-cyan);
  filter: drop-shadow(0 0 8px rgba(96, 165, 250, 0.8));
  transform: scale(1.1);
}

.card h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-3);
  color: var(--color-text-primary);
}

.card p {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: var(--color-text-tertiary);
}

/* ==========================================================================
   Steps Grid
   ========================================================================== */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-5);
}

.step {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--color-bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-xl);
  transition:
    transform var(--duration-normal) var(--ease-spring),
    border-color var(--duration-normal) var(--ease-smooth),
    box-shadow var(--duration-normal) var(--ease-smooth);
  overflow: hidden;
}

.step::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: var(--gradient-primary);
  border-radius: 0 2px 2px 0;
  transition: height var(--duration-slow) var(--ease-out-expo);
}

.step:hover {
  transform: translateY(-4px);
  border-color: rgba(96, 165, 250, 0.2);
  box-shadow: var(--shadow-lg);
}

.step:hover::before {
  height: 60%;
}

.step span {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-accent-blue);
  background: linear-gradient(135deg,
    rgba(96, 165, 250, 0.2) 0%,
    rgba(251, 146, 60, 0.1) 100%);
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: var(--radius-lg);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 4px 12px rgba(96, 165, 250, 0.15);
  transition: all var(--duration-normal) var(--ease-spring);
}

.step:hover span {
  transform: scale(1.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 6px 16px rgba(96, 165, 250, 0.25);
}

.step h3 {
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-1);
  color: var(--color-text-primary);
}

.step p {
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
  line-height: var(--leading-relaxed);
}

/* ==========================================================================
   Contact Form - Premium
   ========================================================================== */

.contact-form {
  position: relative;
  padding: var(--space-8);
  background: linear-gradient(145deg,
    rgba(30, 33, 40, 0.7) 0%,
    rgba(24, 27, 33, 0.85) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(12px);
}

.contact-form::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg,
    rgba(96, 165, 250, 0.3) 0%,
    transparent 50%,
    rgba(251, 146, 60, 0.3) 100%);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.5;
  pointer-events: none;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
  position: relative;
  z-index: 1;
}

@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.form__field {
  position: relative;
}

.form__field--full {
  grid-column: 1 / -1;
}

.form__field label {
  display: block;
  margin-bottom: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color var(--duration-normal) var(--ease-smooth);
}

.form__field:focus-within label {
  color: var(--color-accent-blue);
}

.form__field input,
.form__field select,
.form__field textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  font-family: inherit;
  color: var(--color-text-primary);
  background: rgba(10, 12, 16, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  transition:
    border-color var(--duration-normal) var(--ease-smooth),
    box-shadow var(--duration-normal) var(--ease-smooth),
    background-color var(--duration-normal) var(--ease-smooth);
  /* Touch target: 48px mínimo */
  min-height: 48px;
}

.form__field input:hover,
.form__field select:hover,
.form__field textarea:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(10, 12, 16, 0.8);
}

.form__field input:focus,
.form__field select:focus,
.form__field textarea:focus {
  outline: none;
  border-color: var(--color-accent-blue);
  background: rgba(10, 12, 16, 0.9);
  box-shadow:
    0 0 0 3px rgba(96, 165, 250, 0.15),
    0 0 20px rgba(96, 165, 250, 0.1);
}

/* Focus visible para accesibilidad */
.form__field input:focus-visible,
.form__field select:focus-visible,
.form__field textarea:focus-visible {
  outline: none;
  border-color: var(--color-accent-blue);
  box-shadow:
    0 0 0 var(--focus-ring-offset) var(--color-bg-primary),
    0 0 0 calc(var(--focus-ring-offset) + var(--focus-ring-width)) var(--focus-ring-color);
}

.form__field input::placeholder,
.form__field textarea::placeholder {
  color: var(--color-text-muted);
}

.form__field textarea {
  min-height: 140px;
  resize: vertical;
}

.form__hint {
  display: block;
  margin-top: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  transition: color var(--duration-normal) var(--ease-smooth);
}

.form__field:focus-within .form__hint {
  color: var(--color-text-tertiary);
}

.contact-form .hero__button {
  width: 100%;
  margin-top: var(--space-6);
}

/* Form feedback */
.form__feedback {
  margin-top: var(--space-6);
  padding: var(--space-4);
  font-size: var(--text-sm);
  border-radius: var(--radius-lg);
  border: 1px solid;
  animation: feedback-enter var(--duration-normal) var(--ease-out-expo);
}

@keyframes feedback-enter {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form__feedback[hidden] {
  display: none;
}

.form__feedback:not([hidden]) {
  display: block;
  background: linear-gradient(135deg,
    rgba(74, 222, 128, 0.1) 0%,
    rgba(74, 222, 128, 0.05) 100%);
  border-color: rgba(74, 222, 128, 0.3);
  color: var(--color-success);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  position: relative;
  padding: var(--space-12) var(--space-6);
  background: linear-gradient(180deg,
    rgba(10, 12, 16, 0.8) 0%,
    var(--color-bg-primary) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 2px;
  background: var(--gradient-primary);
  opacity: 0.5;
}

.footer__content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer__brand {
  margin-bottom: var(--space-2);
}

.footer__brand strong {
  font-size: var(--text-xl);
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer__tagline {
  display: block;
  margin-top: var(--space-1);
  font-size: var(--text-sm);
  color: var(--color-text-tertiary);
}

.footer__copy {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* ==========================================================================
   Scroll Indicator
   ========================================================================== */

.scroll-indicator {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  opacity: 0;
  animation: scroll-indicator-enter 1s var(--ease-out-expo) 1.5s forwards;
  z-index: 1;
}

@keyframes scroll-indicator-enter {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.scroll-indicator__mouse {
  width: 26px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 13px;
  position: relative;
}

.scroll-indicator__wheel {
  width: 4px;
  height: 8px;
  background: var(--color-accent-orange);
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll-wheel 1.5s ease-in-out infinite;
}

@keyframes scroll-wheel {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateX(-50%) translateY(8px);
    opacity: 0.3;
  }
}

.scroll-indicator__text {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
}

/* ==========================================================================
   Back to Top Button
   ========================================================================== */

.back-to-top {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--color-bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  color: var(--color-text-secondary);
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  transition:
    opacity var(--duration-normal) var(--ease-smooth),
    transform var(--duration-normal) var(--ease-spring),
    border-color var(--duration-normal) var(--ease-smooth),
    box-shadow var(--duration-normal) var(--ease-smooth);
  z-index: var(--z-fixed);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.back-to-top:hover {
  border-color: var(--color-accent-blue);
  box-shadow: var(--shadow-glow-blue);
  transform: translateY(-2px) scale(1.05);
}

.back-to-top:focus-visible {
  outline: none;
  border-color: var(--color-accent-blue);
  box-shadow:
    0 0 0 var(--focus-ring-offset) var(--color-bg-primary),
    0 0 0 calc(var(--focus-ring-offset) + var(--focus-ring-width)) var(--focus-ring-color);
}

.back-to-top svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-accent-blue);
  transition: transform var(--duration-normal) var(--ease-spring);
}

.back-to-top:hover svg {
  transform: translateY(-2px);
}

/* ==========================================================================
   Reveal Animation
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity var(--duration-slower) var(--ease-out-expo),
    transform var(--duration-slower) var(--ease-out-expo);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Reduced Motion - Accesibilidad
   ========================================================================== */

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

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  body::before {
    animation: none;
  }

  .scroll-indicator {
    display: none;
  }
}

/* ==========================================================================
   Responsive Design - Mobile First
   ========================================================================== */

/* Tipografía fluida con clamp() para escalado suave entre breakpoints */
.hero h1,
.hero h2 {
  font-size: clamp(1.5rem, 4vw + 1rem, 3rem);
}

.section h2 {
  font-size: clamp(1.5rem, 3vw + 0.5rem, 2.25rem);
}

.hero__subtitle {
  font-size: clamp(0.95rem, 1vw + 0.75rem, 1.125rem);
}

/* Hero optimizado para móvil: padding reducido y altura mínima dinámica */
@media (max-width: 768px) {
  .hero {
    padding: var(--space-4);
    min-height: 100svh; /* svh = small viewport height, mejor que dvh en móvil */
  }

  .hero__content {
    padding: var(--space-5);
    border-radius: var(--radius-xl);
    width: calc(100% - var(--space-4) * 2);
    margin: 0 auto;
  }

  .hero__logo {
    width: min(320px, 65vw);
    margin: 0 auto var(--space-4);
  }

  .hero__tag {
    font-size: var(--text-xs);
    padding: var(--space-1) var(--space-3);
    margin-bottom: var(--space-4);
  }

  .hero__subtitle {
    margin-bottom: var(--space-5);
  }

  .hero__button {
    margin: 0 auto;
  }
}

/* Pantallas muy pequeñas (iPhone SE 375px, Galaxy Fold cover, etc.) */
@media (max-width: 380px) {
  .hero {
    padding: var(--space-3);
    min-height: 100svh;
  }

  .hero__content {
    padding: var(--space-4);
    border-radius: var(--radius-lg);
  }

  .hero__logo {
    width: min(240px, 60vw);
  }

  .hero__subtitle {
    font-size: 0.875rem;
  }
}

/* Base mobile-first (ya cubierto por estilos arriba) */
/* Tableta: >= 480px */
@media (min-width: 480px) {
  :root {
    --text-5xl: 2.5rem;
    --text-4xl: 2rem;
    --text-3xl: 1.625rem;
    --text-2xl: 1.375rem;
  }

  .hero__content {
    padding: var(--space-8);
  }

  .hero__subtitle {
    font-size: var(--text-base);
  }

  .step {
    flex-direction: row;
    text-align: left;
  }

  .step span {
    margin: 0;
  }

  .hero__button {
    width: auto;
    justify-content: flex-start;
  }
}

/* Tablet portrait: >= 640px */
@media (min-width: 640px) {
  :root {
    --text-5xl: 2.75rem;
    --text-4xl: 2.125rem;
    --text-3xl: 1.75rem;
  }

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

  .section {
    padding: var(--space-20) var(--space-6);
  }
}

/* Tablet landscape / desktop pequeño: >= 768px */
@media (min-width: 768px) {
  :root {
    --text-5xl: 3rem;
    --text-4xl: 2.25rem;
    --text-3xl: 1.875rem;
  }

  .hero {
    padding: var(--space-8);
  }

  .hero__content {
    padding: var(--space-10);
  }

  .hero__subtitle {
    font-size: var(--text-lg);
  }

  .section {
    padding: var(--space-24) var(--space-6);
  }

  .about {
    grid-template-columns: 1fr 1fr;
  }

  .about__intro,
  .about__stats {
    padding: var(--space-8);
  }

  .card {
    padding: var(--space-6);
  }

  .contact-form {
    padding: var(--space-8);
  }

  .back-to-top {
    bottom: var(--space-6);
    right: var(--space-6);
    width: 48px;
    height: 48px;
  }

  .scroll-indicator {
    display: flex;
  }
}

/* Desktop: >= 1024px */
@media (min-width: 1024px) {
  :root {
    --text-5xl: 3rem;
    --text-4xl: 2.25rem;
    --text-3xl: 1.875rem;
    --text-2xl: 1.5rem;
  }

  .hero__subtitle {
    font-size: var(--text-lg);
  }

  .section {
    padding: var(--space-24) var(--space-6);
  }
}

/* Desktop grande: >= 1280px */
@media (min-width: 1280px) {
  .container {
    max-width: 1200px;
  }
}

/* Breakpoint adicional para pantallas muy pequeñas (iPhone SE, etc.) */
@media (max-width: 380px) {
  :root {
    --text-5xl: 1.75rem;
    --text-4xl: 1.5rem;
    --text-3xl: 1.25rem;
    --text-2xl: 1.125rem;
    --text-xl: 1rem;
  }

  .hero {
    padding: var(--space-4);
  }

  .hero__content {
    padding: var(--space-4);
  }

  .hero__logo {
    width: min(280px, 70vw);
  }

  .hero__button {
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-sm);
  }

  .section {
    padding: var(--space-12) var(--space-3);
  }

  .card,
  .contact-form,
  .about__intro,
  .about__stats {
    padding: var(--space-4);
  }

  .form-grid {
    gap: var(--space-3);
  }

  .form__field input,
  .form__field select,
  .form__field textarea {
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-sm);
  }

  .footer {
    padding: var(--space-8) var(--space-3);
  }
}

/* Reglas preservadas del CSS original (max-width) */
@media (max-width: 480px) {
  .hero__button {
    width: 100%;
    justify-content: center;
  }

  .step {
    flex-direction: column;
    text-align: center;
  }

  .step span {
    margin: 0 auto;
  }
}

/* ==========================================================================
   Animaciones Adicionales Premium
   ========================================================================== */

/* Animated gradient text */
.animated-gradient-text {
  background: linear-gradient(90deg, #60a5fa, #a78bfa, #fb923c, #60a5fa);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 4s ease infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Floating animation */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

.float-animation {
  animation: float 6s ease-in-out infinite;
}

/* Pulse glow animation */
@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(96, 165, 250, 0.4), 0 0 40px rgba(96, 165, 250, 0.2);
  }
  50% {
    box-shadow: 0 0 40px rgba(96, 165, 250, 0.6), 0 0 80px rgba(96, 165, 250, 0.4);
  }
}

.pulse-glow {
  animation: pulse-glow 3s ease-in-out infinite;
}

/* Shake animation for errors */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake {
  animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

/* Bounce in animation */
@keyframes bounce-in {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.bounce-in {
  animation: bounce-in 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

/* Slide up fade animation */
@keyframes slide-up-fade {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-up-fade {
  animation: slide-up-fade 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Rotate in animation */
@keyframes rotate-in {
  from {
    opacity: 0;
    transform: rotate(-180deg) scale(0.5);
  }
  to {
    opacity: 1;
    transform: rotate(0) scale(1);
  }
}

.rotate-in {
  animation: rotate-in 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Wave animation for cards */
@keyframes wave {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-5px) rotate(1deg); }
  75% { transform: translateY(5px) rotate(-1deg); }
}

/* Cursor spotlight effect */
.cursor-spotlight {
  position: fixed;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
  transform: translate(-50%, -50%);
}

.cursor-spotlight.active {
  opacity: 1;
}

/* Particles container */
.particles-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(96, 165, 250, 0.6);
  border-radius: 50%;
  animation: particle-float 20s infinite linear;
}

@keyframes particle-float {
  0% {
    transform: translateY(100vh) translateX(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) translateX(100px) rotate(720deg);
    opacity: 0;
  }
}

/* Loading dots animation */
@keyframes loading-dots {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.loading-dots span {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin: 0 4px;
  background: var(--color-accent-blue);
  border-radius: 50%;
  animation: loading-dots 0.6s ease-in-out infinite;
}

.loading-dots span:nth-child(2) {
  animation-delay: 0.1s;
}

.loading-dots span:nth-child(3) {
  animation-delay: 0.2s;
}

/* Text scramble effect styles */
.text-scramble {
  display: inline-block;
  position: relative;
}

/* Glitch effect */
@keyframes glitch {
  0% {
    clip-path: inset(40% 0 61% 0);
    transform: translate(-2px, 2px);
  }
  20% {
    clip-path: inset(92% 0 1% 0);
    transform: translate(2px, -2px);
  }
  40% {
    clip-path: inset(43% 0 1% 0);
    transform: translate(-2px, 2px);
  }
  60% {
    clip-path: inset(25% 0 58% 0);
    transform: translate(2px, -2px);
  }
  80% {
    clip-path: inset(54% 0 7% 0);
    transform: translate(-2px, 2px);
  }
  100% {
    clip-path: inset(58% 0 43% 0);
    transform: translate(2px, -2px);
  }
}

.glitch-effect {
  position: relative;
}

.glitch-effect::before,
.glitch-effect::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.8;
}

.glitch-effect::before {
  color: #60a5fa;
  animation: glitch 2s infinite linear alternate-reverse;
}

.glitch-effect::after {
  color: #fb923c;
  animation: glitch 3s infinite linear alternate-reverse;
}

/* Morphing blob background */
@keyframes morph {
  0%, 100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
  25% {
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
  }
  50% {
    border-radius: 50% 60% 30% 60% / 30% 60% 70% 40%;
  }
  75% {
    border-radius: 60% 40% 60% 30% / 70% 30% 50% 60%;
  }
}

.morphing-blob {
  position: absolute;
  width: 500px;
  height: 500px;
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.2), rgba(251, 146, 60, 0.1));
  animation: morph 8s ease-in-out infinite;
  filter: blur(60px);
  z-index: -1;
}

/* Counter animation */
.counter {
  font-variant-numeric: tabular-nums;
}

/* SVG line draw animation */
@keyframes draw-line {
  to {
    stroke-dashoffset: 0;
  }
}

.animate-draw {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: draw-line 2s ease-out forwards;
}

/* Hover lift effect */
.hover-lift {
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Neon border animation */
@keyframes neon-pulse {
  0%, 100% {
    border-color: rgba(96, 165, 250, 0.5);
    box-shadow: 0 0 5px rgba(96, 165, 250, 0.5), inset 0 0 5px rgba(96, 165, 250, 0.5);
  }
  50% {
    border-color: rgba(96, 165, 250, 1);
    box-shadow: 0 0 20px rgba(96, 165, 250, 0.8), inset 0 0 10px rgba(96, 165, 250, 0.8);
  }
}

.neon-border {
  animation: neon-pulse 2s ease-in-out infinite;
}

/* Scroll progress indicator */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--gradient-primary);
  z-index: 9999;
  transition: width 0.1s linear;
}

/* Typing cursor blink */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.typing-cursor::after {
  content: '|';
  animation: blink 1s step-end infinite;
  color: var(--color-accent-blue);
  margin-left: 2px;
}

/* Parallax layers */
.parallax-layer {
  will-change: transform;
  transition: transform 0.1s linear;
}

/* Card hover shine effect */
.card-shine {
  position: relative;
  overflow: hidden;
}

.card-shine::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.card-shine:hover::before {
  left: 100%;
}

/* ==========================================================================
   Utilidades
   ========================================================================== */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hidden {
  display: none !important;
}
