/* ============================================================
   InformaticoBCN - Stylesheet Principal
   ============================================================
   Diseño: Dark/Light theme · #2563eb blue accent
   Objetivo: Profesional, conversión, autónomos y pymes
   ============================================================ */

/* --- Reset & Variables --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Colores */
  --bg: #0a0f0d;
  --bg-card: #111916;
  --bg-card-hover: #15201c;
  --bg-elevated: #161f1a;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-glow: rgba(37, 99, 235, 0.25);
  --accent-soft: rgba(37, 99, 235, 0.1);
  --text-primary: #e8ecef;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --danger: #ef4444;
  --warning: #f59e0b;
  --info: #3b82f6;
  --purple: #8b5cf6;
  --pink: #ec4899;
  --orange: #f97316;

  /* Tipografía */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Espaciados */
  --section-gap: 80px;
  --container-max: 1200px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-sm: 8px;

  /* Transiciones */
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

/* Light mode variables */
.light-mode {
  --bg: #f0f4f8;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-elevated: #f8fafc;
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --border: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.15);
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-glow: rgba(37, 99, 235, 0.2);
  --accent-soft: rgba(37, 99, 235, 0.08);
}

.light-mode .preloader {
  background: #f0f4f8;
}

.light-mode .glitch {
  color: #1e293b;
}

.light-mode .hero-grid-bg {
  background-image:
    linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px);
}

.light-mode .hero-dashboard {
  background: #fff;
  border-color: rgba(0,0,0,0.08);
}

.light-mode .dash-header {
  background: rgba(0,0,0,0.02);
}

.light-mode .dash-dots span { background: #2563eb; }

.light-mode .metric-card {
  background: rgba(0,0,0,0.02);
  border-color: rgba(0,0,0,0.06);
}

.light-mode .nav-link.nav-cta {
  color: #fff;
}

.light-mode .footer {
  border-top-color: rgba(0,0,0,0.08);
}

.light-mode .footer-bottom {
  border-top-color: rgba(0,0,0,0.08);
}

.light-mode .testimonial-card {
  background: #fff;
  border-color: rgba(0,0,0,0.08);
}

.light-mode .price-card {
  background: #fff;
  border-color: rgba(0,0,0,0.08);
}

.light-mode .service-card {
  background: #fff;
  border-color: rgba(0,0,0,0.08);
}

.light-mode .service-card:hover {
  background: #f8fafc;
}

.light-mode .form-card {
  background: #fff;
  border-color: rgba(0,0,0,0.08);
}

.light-mode .form-group input,
.light-mode .form-group select,
.light-mode .form-group textarea {
  background: #f8fafc;
  color: #1e293b;
  border-color: rgba(0,0,0,0.12);
}

.light-mode .form-group label {
  color: #475569;
}

.light-mode .how-it-works {
  background: #f8fafc;
}

.light-mode .auditoria {
  background: #f8fafc;
}

.light-mode .auditoria-visual {
  background: #fff;
  border-color: rgba(0,0,0,0.08);
}

.light-mode .audit-dashboard {
  background: #f8fafc;
}

.light-mode .cta-banner {
  background: #1e293b;
}

.light-mode .contact-item {
  color: #475569;
}

.light-mode .nav-link:hover,
.light-mode .nav-link.active {
  background: rgba(0,0,0,0.06);
  color: #1e293b;
}
/* Theme switch toggle */
.theme-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.theme-switch-track {
  width: 52px;
  height: 26px;
  background: var(--border);
  border-radius: 13px;
  position: relative;
  transition: background 0.3s ease;
  flex-shrink: 0;
}

.theme-switch-thumb {
  position: absolute;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.theme-switch-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.light-mode .theme-switch-track {
  background: var(--accent);
}

.light-mode .theme-switch-thumb {
  transform: translateX(26px);
}

.light-mode .theme-switch-label {
  color: var(--accent);
}

/* Logo SVG in light mode */
.light-mode .logo-icon svg path.bg-shield {
  fill: #f0f4f8;
}
.light-mode .logo-icon svg path.stroke-element,
.light-mode .logo-icon svg circle,
.light-mode .logo-icon svg rect {
  stroke: #2563eb;
}
.light-mode .logo-icon svg path.checkmark {
  stroke: #22c55e;
}

/* Trust icon fix for light mode */
.light-mode .trust-item svg {
  stroke: #1e40af !important;
}

/* Hero buttons visible in light mode */
.light-mode .hero .btn-outline {
  color: #64748b;
  border-color: rgba(0,0,0,0.18);
}
.light-mode .hero .btn-outline:hover {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
}

/* CTA banner fixes for light mode */

.light-mode .cta-content h2 {
  color: #f1f5f9;
}
.light-mode .cta-content p {
  color: #94a3b8;
}

.light-mode .cta-banner .btn-outline {
  color: #93c5fd;
  border-color: rgba(147,197,253,0.35);
}
.light-mode .cta-banner .btn-outline:hover {
  color: #fff;
  border-color: #93c5fd;
  background: rgba(37,99,235,0.15);
}

/* Loading bar in light mode */
.light-mode .loading-progress {
  background: linear-gradient(90deg, var(--accent), #60a5fa);
}

/* Navbar scrolled light mode */
.light-mode .navbar.scrolled {
  background: rgba(240,244,248,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: rgba(0,0,0,0.08);
}

/* Nav links light mode */
.light-mode .nav-link:hover,
.light-mode .nav-link.active {
  background: rgba(0,0,0,0.06);
  color: #1e293b;
}

/* Price note, stats, metric labels */
.light-mode .pricing-note span {
  color: #64748b;
}

.light-mode .hero-section {
  position: relative;
}
.light-mode .hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(240,244,248,0.6);
  pointer-events: none;
  z-index: 0;
}
.light-mode .hero-content {
  position: relative;
  z-index: 1;
}

.light-mode .stat-label,
.light-mode .metric-label {
  color: #64748b;
}
.light-mode .service-features li::before {
  color: #2563eb;
}
.light-mode .service-link {
  color: #2563eb;
}
.light-mode .glitch::before {
  color: #1e293b;
}
.light-mode .glitch::after {
  color: #3b82f6;
}



.light-mode .hero-subtitle strong {
  color: #2563eb;
}

}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: #93c5fd;
  text-shadow: 0 0 8px rgba(147,197,253,0.3);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* --------------------------------------------------------------
   REUSABLE COMPONENTS
   -------------------------------------------------------------- */

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, var(--accent), #60a5fa, var(--accent));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Section tag */
.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 16px;
  border-radius: 50px;
  border: 1px solid var(--accent-glow);
  margin-bottom: 16px;
}

/* Section header */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 60px;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 16px;
  color: var(--text-primary);
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn .btn-arrow {
  transition: transform var(--transition);
  font-size: 1.1rem;
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #0a0f0d;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px var(--accent-glow);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1rem;
  border-radius: var(--radius);
}

.btn-glow {
  animation: pulseGlow 2.5s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 4px 20px var(--accent-glow); }
  50% { box-shadow: 0 4px 35px var(--accent-glow), 0 0 60px rgba(16,185,129,0.1); }
@keyframes pulseGlowLight {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,99,235,0.3); }
  50% { box-shadow: 0 4px 35px rgba(37,99,235,0.4), 0 0 60px rgba(37,99,235,0.1); }
}

}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* Badges inline */
.badge-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: 50px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-glow);
}

/* Preloader */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-inner {
  text-align: center;
}

.glitch {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--accent);
  position: relative;
  letter-spacing: 0.1em;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch::before {
  color: #fff;
  animation: glitch-1 2s infinite linear alternate-reverse;
  clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
}

.glitch::after {
  color: #34d399;
  animation: glitch-2 3s infinite linear alternate-reverse;
  clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
}

@keyframes glitch-1 {
  0% { transform: translate(0); }
  20% { transform: translate(-2px, 2px); }
  40% { transform: translate(2px, -2px); }
  60% { transform: translate(-1px, 1px); }
  80% { transform: translate(1px, -1px); }
  100% { transform: translate(0); }
}

@keyframes glitch-2 {
  0% { transform: translate(0); }
  20% { transform: translate(2px, -1px); }
  40% { transform: translate(-1px, 2px); }
  60% { transform: translate(1px, 1px); }
  80% { transform: translate(-2px, -1px); }
  100% { transform: translate(0); }
}

.loading-bar {
  width: 200px;
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  margin-top: 20px;
  overflow: hidden;
}

.loading-progress {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), #34d399);
  border-radius: 3px;
  animation: loading 1.5s ease-out forwards;
}

@keyframes loading {
  0% { width: 0%; }
  100% { width: 100%; }
}

/* Cursor glow */
#cursor-glow {
  position: fixed;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

body:not(.mobile) #cursor-glow {
  opacity: 1;
}

/* --------------------------------------------------------------
   NAVBAR
   -------------------------------------------------------------- */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(10, 15, 13, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
}

.logo-icon {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 1.1rem;
}

.logo-text {
  font-family: var(--font-sans);
  letter-spacing: -0.02em;
}

.logo-accent {
  color: var(--accent);
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 6px;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background: var(--bg-card);
}

.nav-link.nav-cta {
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
}

.nav-link.nav-cta:hover {
  background: var(--accent-hover);
  color: var(--bg);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --------------------------------------------------------------
   HERO SECTION — CORREGIDO: flexbox layout
   -------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 50% at 20% 50%, rgba(37,99,235,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(139,92,246,0.04) 0%, transparent 60%),
    var(--bg);
}

.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 70%);
}

/* ✅ FIX HERO: Centrado cohesivo + efecto de conexión suave */
.hero-body {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  max-width: 1140px;
  margin: 0 auto;
  width: 100%;
  padding: 0 24px;
}

.hero-body::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 200px;
  height: 200px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(16,185,129,0.07) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.hero:hover::after {
  opacity: 1;
}

.hero-content {
  flex: 0 1 500px;
  min-width: 0;
}

.hero-visual {
  flex: 0 0 440px;
  max-width: 440px;
  animation: floatIn 0.8s ease-out both;
}

@keyframes floatIn {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 8px 16px;
  border-radius: 50px;
  border: 1px solid var(--accent-glow);
  margin-bottom: 24px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  color: var(--text-primary);
  margin-bottom: 20px;
  line-height: 1.15;
}

.hero-highlight {
  background: linear-gradient(135deg, var(--accent), #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 540px;
  line-height: 1.7;
}

.hero-subtitle strong {
  color: var(--accent);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}

/* Hero stats row */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-number {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Hero dashboard mockup */
.hero-dashboard {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 40px var(--accent-glow);
  animation: dashPulse 4s ease-in-out infinite;
}

@keyframes dashPulse {
  0%, 100% { box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 40px var(--accent-glow); }
  50% { box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 60px var(--accent-glow); }
}

.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}

.dash-dots { display: flex; gap: 6px; }
.dash-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dash-dots span:nth-child(1) { background: #ef4444; }
.dash-dots span:nth-child(2) { background: #f59e0b; }
.dash-dots span:nth-child(3) { background: #2563eb; }

.dash-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dash-body { padding: 20px; }

.dash-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.metric-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
}

.metric-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.metric-bar {
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 6px;
}

.metric-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 2s ease;
}

.metric-fill.green { background: var(--accent); }
.metric-fill.yellow { background: var(--warning); }

.metric-value {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-primary);
  font-weight: 600;
}

/* Network nodes */
.dash-network {
  position: relative;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.network-node {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--bg);
  position: absolute;
  animation: networkPulse 3s ease-in-out infinite;
}

.network-node.main {
  width: 16px;
  height: 16px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  animation: none;
}

.network-node:nth-child(2) { top: 0; left: 20%; animation-delay: 0s; }
.network-node:nth-child(3) { top: 0; right: 20%; animation-delay: 0.5s; }
.network-node:nth-child(4) { bottom: 0; left: 35%; animation-delay: 1s; }
.network-node:nth-child(5) { bottom: 0; right: 35%; animation-delay: 1.5s; }

@keyframes networkPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); }
}

/* --------------------------------------------------------------
   TRUST BAR
   -------------------------------------------------------------- */

.trust-bar {
  padding: 24px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(17, 25, 22, 0.8);
}

.trust-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
}

.trust-item svg { flex-shrink: 0; color: var(--accent); }

/* --------------------------------------------------------------
   SERVICES
   -------------------------------------------------------------- */

.services {
  padding: var(--section-gap) 0;
  position: relative;
}

.services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 200px;
 /* background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  pointer-events: none; */
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  border-color: var(--accent-glow);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.service-icon-wrap {
  position: relative;
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
}

.service-icon {
  width: 100%;
  height: 100%;
}

.icon-glow {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: var(--accent-glow);
  opacity: 0;
  transition: opacity var(--transition);
  z-index: -1;
}

.service-card:hover .icon-glow { opacity: 0.6; }
.glow-purple { background: rgba(139,92,246,0.2) !important; }
.glow-green { background: var(--accent-glow) !important; }
.glow-blue { background: rgba(59,130,246,0.2) !important; }
.glow-orange { background: rgba(249,115,22,0.2) !important; }
.glow-pink { background: rgba(236,72,153,0.2) !important; }

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.service-card > p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: 16px;
  flex-grow: 1;
}

.service-features {
  list-style: none;
  margin-bottom: 20px;
}

.service-features li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-features li::before {
  content: '→';
  color: var(--accent);
  font-weight: 700;
  font-size: 0.8rem;
}

.service-link {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: auto;
  transition: all var(--transition);
}

.service-card:hover .service-link {
  padding-left: 8px;
}

/* Featured card */
.featured-card {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(37,99,235,0.08), rgba(37,99,235,0.02));
  box-shadow: 0 0 30px rgba(37,99,235,0.1), inset 0 0 30px rgba(37,99,235,0.03);
}

.featured-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, var(--accent), #60a5fa);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 14px;
  border-radius: 6px;
  z-index: 1;
  box-shadow: 0 2px 12px rgba(37,99,235,0.4);
}

/* --------------------------------------------------------------
   HOW IT WORKS — CORREGIDO: flex horizontal, no grid
   -------------------------------------------------------------- */

.how-it-works {
  padding: var(--section-gap) 0;
  background: var(--bg-card);
  position: relative;
}

.how-it-works::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(139,92,246,0.06), transparent 70%);
  pointer-events: none;
}

/* ✅ FIX: steps-wrapper es flex, los conectores no rompen el layout */
.steps-wrapper {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.step {
  flex: 0 1 220px;
  text-align: center;
  padding: 28px 20px;
  position: relative;
}

.step-number {
  font-family: var(--font-mono);
  font-size: 2.8rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent), #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 14px;
  display: block;
}

.step-content h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.step-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 200px;
  margin: 0 auto;
}

.step-connector {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 40px;
}

.step-connector svg {
  color: var(--accent);
  opacity: 0.5;
}

/* --------------------------------------------------------------
   AUDITORÍA SECTION
   -------------------------------------------------------------- */

.auditoria {
  padding: var(--section-gap) 0;
  position: relative;
  overflow: hidden;
}

.auditoria::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(16,185,129,0.06), transparent 60%);
  pointer-events: none;
}

.auditoria-wrapper {
  display: flex;
  gap: 60px;
  align-items: center;
  flex-wrap: wrap;
}

.auditoria-content {
  flex: 1 1 420px;
  min-width: 0;
}

.auditoria-content .section-tag {
  margin-bottom: 12px;
}

.auditoria-content h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-bottom: 16px;
}

.big-text {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.auditoria-content > p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-size: 1rem;
}

.auditoria-checklist {
  list-style: none;
  margin-bottom: 32px;
}

.auditoria-checklist li {
  padding: 8px 0;
  font-size: 1rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 12px;
}

.check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* Audit dashboard */
.auditoria-visual {
  flex: 0 1 400px;
}

.audit-dashboard {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.audit-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}

.audit-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.audit-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.audit-results { padding: 24px; }

.audit-item {
  margin-bottom: 18px;
}

.audit-item:last-child { margin-bottom: 0; }

.audit-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
}

.audit-bar {
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 4px;
}

.audit-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 1.5s ease;
}

.audit-fill.critical { background: linear-gradient(90deg, var(--danger), #f87171); }
.audit-fill.warning { background: linear-gradient(90deg, var(--warning), #fbbf24); }
.audit-fill.good { background: linear-gradient(90deg, var(--accent), #34d399); }

.audit-score {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: right;
}

.audit-verdict {
  margin-top: 20px;
  padding: 14px 20px;
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--warning);
  font-weight: 500;
}

.verdict-icon { font-size: 1.2rem; }

/* --------------------------------------------------------------
   PRICING
   -------------------------------------------------------------- */

.pricing {
  padding: var(--section-gap) 0;
  position: relative;
}

.pricing::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 200px;
  background: radial-gradient(circle, rgba(139,92,246,0.06), transparent 70%);
  pointer-events: none;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.price-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}

.price-card.featured {
  border-color: var(--accent);
  background: linear-gradient(160deg, rgba(16,185,129,0.06), rgba(16,185,129,0.01));
}

.price-badge {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.featured-badge {
  background: linear-gradient(135deg, var(--accent), #34d399);
  color: var(--bg);
  padding: 4px 16px;
  border-radius: 50px;
  font-size: 0.72rem;
  text-align: center;
}

.price-amount {
  margin-bottom: 28px;
}

.currency {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  vertical-align: super;
  margin-right: 4px;
}

.amount {
  font-family: var(--font-mono);
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1;
}

.period {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-left: 2px;
}

.price-features {
  list-style: none;
  margin-bottom: 28px;
  flex-grow: 1;
}

.price-features li {
  padding: 7px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.li-check {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.95rem;
}

.li-cross {
  color: var(--text-muted);
}

.price-features .disabled {
  opacity: 0.4;
}

.price-card .btn {
  margin-top: auto;
}

.pricing-note {
  text-align: center;
  margin-top: 32px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------
   TESTIMONIALS
   -------------------------------------------------------------- */

.testimonials {
  padding: var(--section-gap) 0;
  background: var(--bg-card);
  position: relative;
}

.testimonials::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 200px;
  background: radial-gradient(circle, rgba(139,92,246,0.05), transparent 70%);
  pointer-events: none;
}

.testimonials-slider {
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
}

.testimonial-card {
  display: none;
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.5s ease;
  text-align: center;
  padding: 0 20px;
  max-width: 680px;
  margin: 0 auto;
}

.testimonial-card.active {
  display: block;
  opacity: 1;
  transform: translateX(0);
}

.testimonial-stars {
  font-size: 1.2rem;
  color: var(--warning);
  margin-bottom: 20px;
  letter-spacing: 2px;
}

.testimonial-card blockquote {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.7;
  margin-bottom: 24px;
  position: relative;
  padding: 0 20px;
}

.testimonial-card blockquote::before {
  content: '"';
  font-size: 4rem;
  font-family: Georgia, serif;
  color: var(--accent);
  opacity: 0.2;
  position: absolute;
  top: -20px;
  left: -12px;
  line-height: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #34d399);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--bg);
  flex-shrink: 0;
}

.testimonial-author strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.testimonial-author span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.test-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--transition);
}

.test-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.test-dots {
  display: flex;
  gap: 8px;
}

.test-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: all var(--transition);
}

.test-dot.active {
  background: var(--accent);
  transform: scale(1.3);
}

/* --------------------------------------------------------------
   CTA BANNER
   -------------------------------------------------------------- */

.cta-banner {
  position: relative;
  padding: 100px 0;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 50% at 50% 50%, rgba(16,185,129,0.08), transparent 60%),
    var(--bg);
}

.cta-particle-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
}

.cta-content > p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.cta-banner .hero-actions {
  justify-content: center;
}

/* --------------------------------------------------------------
   CONTACT
   -------------------------------------------------------------- */

.contact {
  padding: var(--section-gap) 0;
  position: relative;
}

.contact::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(139,92,246,0.05), transparent 70%);
  pointer-events: none;
}

.contact-grid {
  display: flex;
  gap: 60px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.contact-info {
  flex: 1 1 380px;
  min-width: 0;
}

.contact-info h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.contact-info > p {
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.contact-item svg {
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 2px;
}

.contact-item strong {
  display: block;
  font-size: 0.85rem;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.contact-item span {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.service-areas {
  margin-top: 32px;
}

.service-areas h4 {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.area-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-block;
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.tag:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Form card */
.contact-form-wrap {
  flex: 0 1 480px;
}

.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
}

.form-card h3 {
  font-size: 1.3rem;
  margin-bottom: 28px;
  text-align: center;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: all var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  margin-top: 2px;
  flex-shrink: 0;
}

.checkbox-group label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.checkbox-group a {
  color: var(--accent);
  text-decoration: underline;
}

#form-success {
  display: none;
  text-align: center;
  padding: 20px;
  background: rgba(16,185,129,0.08);
  border: 1px solid var(--accent-glow);
  border-radius: var(--radius);
  margin-top: 16px;
}

#form-success.visible {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-weight: 500;
}

/* --------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------- */

.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col .footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  margin-bottom: 16px;
}

.footer-col p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 0.88rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition);
}

.footer-col ul li a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer-contact li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.5;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-bottom-right {
  display: flex;
  gap: 20px;
}

.footer-bottom-right a {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-bottom-right a:hover {
  color: var(--accent);
}

/* --------------------------------------------------------------
   WHATSAPP FLOAT
   -------------------------------------------------------------- */

.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px;
  height: 56px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  z-index: 999;
  transition: all var(--transition);
  animation: waPulse 2s ease-in-out infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37,211,102,0.6);
}

@keyframes waPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 4px 30px rgba(37,211,102,0.7); }
}

/* --------------------------------------------------------------
   BACK TO TOP
   -------------------------------------------------------------- */

.back-to-top {
  position: fixed;
  bottom: 28px;
  left: 28px;
  width: 44px;
  height: 44px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--bg-card-hover);
}

/* --------------------------------------------------------------
   ANIMATION CLASSES
   -------------------------------------------------------------- */

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Fade up variants */
[data-animate="fade-up"] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-animate="fade-up"].visible {
  opacity: 1;
  transform: translateY(0);
}

[data-animate="fade-right"] {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.7s ease 0.1s, transform 0.7s ease 0.1s;
}

[data-animate="fade-right"].visible {
  opacity: 1;
  transform: translateX(0);
}

[data-animate="fade-left"] {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.7s ease 0.1s, transform 0.7s ease 0.1s;
}

[data-animate="fade-left"].visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger children */
.stagger-children > *:nth-child(1) { transition-delay: 0s; }
.stagger-children > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children > *:nth-child(3) { transition-delay: 0.2s; }
.stagger-children > *:nth-child(4) { transition-delay: 0.3s; }
.stagger-children > *:nth-child(5) { transition-delay: 0.4s; }
.stagger-children > *:nth-child(6) { transition-delay: 0.5s; }

/* Metric bar animation */
.metric-fill.animate {
  transition: width 1.5s ease;
}

.audit-fill.animate {
  transition: width 1.5s ease 0.3s;
}

/* --------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------- */

/* Tablets */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-body {
    flex-direction: column;
    text-align: center;
  }

  .hero-content { flex: auto; }

  .hero-visual {
    flex: none;
    max-width: 100%;
    width: 100%;
  }

  .hero-subtitle { margin-left: auto; margin-right: auto; }

  .hero-actions { justify-content: center; }

  .hero-stats { justify-content: center; }

  .auditoria-wrapper {
    flex-direction: column;
    text-align: center;
  }

  .auditoria-content .big-text { text-align: center; }

  .contact-grid {
    flex-direction: column;
  }
}

/* Móviles */
@media (max-width: 768px) {
  :root { --section-gap: 60px; }

  .nav-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 15, 13, 0.98);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    z-index: 999;
  }

  .nav-menu.open {
    display: flex;
    animation: menuSlide 0.3s ease;
  }

  @keyframes menuSlide {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .nav-link {
    font-size: 1.2rem;
    padding: 12px 24px;
  }

  .nav-toggle {
    display: flex;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .hero { padding: 100px 0 60px; }

  .hero h1 { font-size: 1.9rem; }
  .hero-subtitle { font-size: 1rem; }

  .steps-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .step {
    text-align: center;
    padding: 24px 16px;
  }

  .step-connector {
    transform: rotate(90deg);
    padding: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-info { flex: auto; }
  .contact-form-wrap { flex: auto; width: 100%; }

  .hero-stats {
    justify-content: center;
    gap: 16px;
  }

  .stat-divider { display: none; }

  .trust-container {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .hero-dashboard {
    max-width: 100%;
  }

  .price-card { padding: 28px 20px; }
}

/* Móvil pequeño */
@media (max-width: 400px) {
  .hero h1 { font-size: 1.6rem; }
  .section-header h2 { font-size: 1.6rem; }
  .cta-content h2 { font-size: 1.6rem; }
}

/* --------------------------------------------------------------
   UTILITIES
   -------------------------------------------------------------- */

.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mb-16 { margin-bottom: 16px; }
.mt-24 { margin-top: 24px; }
.hidden { display: none !important; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2a3530; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }