/* ============================================
   HerGonz AI Agency - Futuristic Design System
   Premium SaaS Landing Page
   ============================================ */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700;800&display=swap');

/* ---- CSS Custom Properties ---- */
:root {
  /* Primary Brand Colors */
  --cyan: #63e9f5;
  --cyan-light: #8ef0f9;
  --cyan-dark: #4bc8d4;
  --blue-deep: #36658f;
  --blue-navy: #1a3a5c;

  /* Backgrounds */
  --bg-primary: #050a15;
  --bg-secondary: #0a1020;
  --bg-tertiary: #0d1630;
  --bg-card: rgba(13, 22, 48, 0.6);
  --bg-glass: rgba(255, 255, 255, 0.03);
  --bg-glass-strong: rgba(255, 255, 255, 0.06);

  /* Borders */
  --border-glass: rgba(99, 233, 245, 0.08);
  --border-glass-hover: rgba(99, 233, 245, 0.2);
  --border-subtle: rgba(255, 255, 255, 0.06);

  /* Accent Colors */
  --accent-violet: #a78bfa;
  --accent-emerald: #10b981;
  --accent-rose: #f43f5e;
  --accent-orange: #f59e0b;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #63e9f5, #36658f);
  --gradient-primary-reverse: linear-gradient(135deg, #36658f, #63e9f5);
  --gradient-cyan-glow: linear-gradient(135deg, #63e9f5, #4bc8d4);
  --gradient-hero: linear-gradient(180deg, rgba(5, 10, 21, 0.2) 0%, rgba(5, 10, 21, 0.7) 50%, #050a15 100%);
  --gradient-glow-radial: radial-gradient(ellipse at center, rgba(99, 233, 245, 0.08), transparent 70%);

  /* Text Colors */
  --text-primary: #f0f6fc;
  --text-secondary: #8b9ec2;
  --text-muted: #4a6080;
  --text-accent: #63e9f5;

  /* Typography */
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --section-padding: 120px 0;
  --container-width: 1200px;
  --card-radius: 20px;
  --btn-radius: 14px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Shadows */
  --shadow-glow-sm: 0 0 20px rgba(99, 233, 245, 0.15);
  --shadow-glow-md: 0 0 40px rgba(99, 233, 245, 0.2);
  --shadow-glow-lg: 0 0 80px rgba(99, 233, 245, 0.15);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-card-hover: 0 20px 60px rgba(0, 0, 0, 0.4);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---- Particle Canvas ---- */
#particleCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}

/* ---- Global Utilities ---- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 18px;
}

.section-label::before {
  content: '';
  width: 32px;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.section-title .gradient-text,
.hero__title .gradient-text,
.cta-section__title .gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 650px;
  line-height: 1.8;
}

.section-header {
  text-align: center;
  margin-bottom: 72px;
}

.section-header .section-subtitle {
  margin: 0 auto;
}

/* Section background glow */
.section-glow {
  position: absolute;
  top: 50%;
  left: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 233, 245, 0.06), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  transform: translateY(-50%);
  z-index: 0;
}

.section-glow--right {
  left: auto;
  right: -200px;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  background: rgba(5, 10, 21, 0.88);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border-glass);
  padding: 12px 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.navbar__logo img {
  height: 42px;
  width: auto;
  border-radius: 10px;
}

.navbar__logo-text {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.navbar__logo-text span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-left: 2px;
}

.navbar__links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 36px;
}

.navbar__links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-fast);
  position: relative;
}

.navbar__links a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--gradient-primary);
  transition: var(--transition-smooth);
  border-radius: 2px;
}

.navbar__links a:hover {
  color: var(--cyan);
}

.navbar__links a:hover::after {
  width: 100%;
}

/* Navbar CTA */
.navbar__cta {
  text-decoration: none;
  padding: 10px 26px;
  background: var(--gradient-primary);
  color: white !important;
  border-radius: var(--btn-radius);
  font-weight: 600;
  font-size: 0.88rem;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 20px rgba(99, 233, 245, 0.25);
  border: none;
}

.navbar__cta::after {
  display: none !important;
}

.navbar__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(99, 233, 245, 0.4);
}

/* Mobile Menu Toggle */
.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.navbar__toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: var(--gradient-primary);
  color: white;
  text-decoration: none;
  border-radius: var(--btn-radius);
  font-weight: 700;
  font-size: 1.02rem;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 25px rgba(99, 233, 245, 0.3);
  position: relative;
  overflow: hidden;
  font-family: var(--font-body);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: 0.6s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 40px rgba(99, 233, 245, 0.45);
}

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

@keyframes btn-glow-pulse {

  0%,
  100% {
    box-shadow: 0 4px 25px rgba(99, 233, 245, 0.3);
  }

  50% {
    box-shadow: 0 4px 40px rgba(99, 233, 245, 0.5), 0 0 60px rgba(99, 233, 245, 0.15);
  }
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: rgba(99, 233, 245, 0.04);
  color: var(--text-primary);
  text-decoration: none;
  border-radius: var(--btn-radius);
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid var(--border-glass);
  cursor: pointer;
  transition: var(--transition-smooth);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  border-color: var(--cyan);
  background: rgba(99, 233, 245, 0.08);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(99, 233, 245, 0.1);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 80px;
  background: var(--bg-primary);
}

/* Hero Grid Lines (digital circuit overlay) */
.hero__grid-lines {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(99, 233, 245, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 233, 245, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 50% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 20%, transparent 70%);
}

/* Hero Ambient Orbs */
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

.hero__orb--1 {
  width: 500px;
  height: 500px;
  background: var(--cyan);
  top: -100px;
  right: -100px;
  opacity: 0.12;
  animation: orb-float 12s ease-in-out infinite;
}

.hero__orb--2 {
  width: 400px;
  height: 400px;
  background: var(--blue-deep);
  bottom: -50px;
  left: -50px;
  opacity: 0.15;
  animation: orb-float 15s ease-in-out infinite reverse;
}

.hero__orb--3 {
  width: 300px;
  height: 300px;
  background: var(--accent-violet);
  top: 40%;
  left: 30%;
  opacity: 0.06;
  animation: orb-float 18s ease-in-out infinite;
}

@keyframes orb-float {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(30px, -30px) scale(1.05);
  }

  66% {
    transform: translate(-20px, 20px) scale(0.95);
  }
}

/* Hero Layout */
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero__content {
  animation: fadeInUp 0.8s ease-out;
}

/* Hero Badge */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  background: rgba(99, 233, 245, 0.06);
  border: 1px solid rgba(99, 233, 245, 0.15);
  border-radius: 50px;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--cyan);
  margin-bottom: 28px;
  backdrop-filter: blur(10px);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-emerald);
  border-radius: 50%;
  animation: pulse 2s infinite;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.live-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-emerald);
  border-radius: 50%;
  display: inline-block;
  animation: pulse 2s infinite;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.5);
}

/* Hero Title */
.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

/* Hero Subtitle */
.hero__subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.8;
  max-width: 520px;
}

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

/* Hero Actions */
.hero__actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 48px;
}

/* Hero Stats */
.hero__stats {
  display: flex;
  gap: 32px;
  align-items: center;
}

.hero__stat {
  text-align: left;
}

.hero__stat-number {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.hero__stat-divider {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, transparent, rgba(99, 233, 245, 0.2), transparent);
}

/* ---- Holographic Dashboard Card ---- */
.hero__visual {
  position: relative;
  animation: fadeInUp 0.8s ease-out 0.3s backwards;
}

.hero__holo-card {
  background: rgba(10, 16, 32, 0.7);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card), 0 0 60px rgba(99, 233, 245, 0.05);
}

.hero__holo-card-glow {
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0.8;
}

.hero__holo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.hero__holo-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
}

.hero__holo-live {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--accent-emerald);
  font-weight: 600;
  padding: 4px 12px;
  background: rgba(16, 185, 129, 0.08);
  border-radius: 20px;
  border: 1px solid rgba(16, 185, 129, 0.15);
}

/* Automation Rows */
.hero__auto-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(99, 233, 245, 0.03);
  border: 1px solid rgba(99, 233, 245, 0.06);
  border-radius: 14px;
  margin-bottom: 10px;
  transition: var(--transition-smooth);
}

.hero__auto-row:hover {
  background: rgba(99, 233, 245, 0.06);
  border-color: rgba(99, 233, 245, 0.12);
  transform: translateX(4px);
}

.hero__auto-row--blue {
  background: rgba(54, 101, 143, 0.05);
  border-color: rgba(54, 101, 143, 0.1);
}

.hero__auto-row--blue:hover {
  background: rgba(54, 101, 143, 0.08);
  border-color: rgba(54, 101, 143, 0.18);
}

.hero__auto-row--violet {
  background: rgba(167, 139, 250, 0.04);
  border-color: rgba(167, 139, 250, 0.08);
}

.hero__auto-row--violet:hover {
  background: rgba(167, 139, 250, 0.07);
  border-color: rgba(167, 139, 250, 0.15);
}

.hero__auto-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(99, 233, 245, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero__auto-icon--blue {
  background: rgba(54, 101, 143, 0.15);
}

.hero__auto-icon--violet {
  background: rgba(167, 139, 250, 0.12);
}

.hero__auto-info {
  flex: 1;
}

.hero__auto-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.hero__auto-detail {
  font-size: 0.73rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.hero__auto-badge {
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  flex-shrink: 0;
}

.hero__auto-badge--active {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.15);
}

/* Holo Mini Stats */
.hero__holo-stats {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.hero__holo-stat {
  flex: 1;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
}

.hero__holo-stat-value {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__holo-stat-value--emerald {
  background: linear-gradient(135deg, var(--accent-emerald), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__holo-stat-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Floating Cards */
.floating-card {
  position: absolute;
  background: rgba(10, 16, 32, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: float 6s ease-in-out infinite;
  box-shadow: var(--shadow-card);
  z-index: 3;
}

.floating-card--1 {
  top: -16px;
  right: -16px;
  animation-delay: 0s;
}

.floating-card--2 {
  bottom: 50px;
  left: -30px;
  animation-delay: 2s;
}

.floating-card--3 {
  bottom: -10px;
  right: 50px;
  animation-delay: 4s;
}

.floating-card__icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.floating-card__icon--green {
  background: rgba(16, 185, 129, 0.12);
}

.floating-card__icon--cyan {
  background: rgba(99, 233, 245, 0.1);
}

.floating-card__icon--violet {
  background: rgba(167, 139, 250, 0.12);
}

.floating-card__text {
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--text-primary);
}

.floating-card__sub {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ============================================
   SERVICIOS SECTION
   ============================================ */
.services {
  padding: var(--section-padding);
  position: relative;
  background: var(--bg-secondary);
  overflow: hidden;
}

.services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-glow-radial);
  pointer-events: none;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  position: relative;
}

/* Service Card */
.service-card {
  position: relative;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--card-radius);
  padding: 40px 32px;
  transition: var(--transition-smooth);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-card__glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: radial-gradient(ellipse at 50% 0%, rgba(99, 233, 245, 0.04), transparent 70%);
  pointer-events: none;
  transition: var(--transition-smooth);
  opacity: 0;
}

.service-card:hover .service-card__glow {
  opacity: 1;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: var(--transition-smooth);
  transform-origin: left;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  border-color: var(--border-glass-hover);
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hover), 0 0 40px rgba(99, 233, 245, 0.05);
}

.service-card__number {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 3px;
  margin-bottom: 20px;
  opacity: 0.6;
}

.service-card__icon-wrapper {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: rgba(99, 233, 245, 0.06);
  border: 1px solid rgba(99, 233, 245, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  position: relative;
  transition: var(--transition-smooth);
}

.service-card:hover .service-card__icon-wrapper {
  box-shadow: 0 0 30px rgba(99, 233, 245, 0.1);
  border-color: rgba(99, 233, 245, 0.2);
}

.service-card__icon-wrapper--violet {
  background: rgba(167, 139, 250, 0.06);
  border-color: rgba(167, 139, 250, 0.1);
}

.service-card:hover .service-card__icon-wrapper--violet {
  box-shadow: 0 0 30px rgba(167, 139, 250, 0.1);
  border-color: rgba(167, 139, 250, 0.2);
}

.service-card__icon-wrapper--emerald {
  background: rgba(16, 185, 129, 0.06);
  border-color: rgba(16, 185, 129, 0.1);
}

.service-card:hover .service-card__icon-wrapper--emerald {
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.2);
}

.service-card__icon-wrapper--blue {
  background: rgba(54, 101, 143, 0.08);
  border-color: rgba(54, 101, 143, 0.12);
}

.service-card:hover .service-card__icon-wrapper--blue {
  box-shadow: 0 0 30px rgba(54, 101, 143, 0.15);
  border-color: rgba(54, 101, 143, 0.25);
}

.service-card__title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.service-card__desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.7;
}

.service-card__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
}

.service-card__features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.service-card__features li::before {
  content: '✓';
  color: var(--cyan);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.service-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(99, 233, 245, 0.05);
  border: 1px solid rgba(99, 233, 245, 0.1);
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--cyan);
  margin-top: 20px;
  width: fit-content;
}

/* ============================================
   PROCESO SECTION
   ============================================ */
.process {
  padding: var(--section-padding);
  position: relative;
  background: var(--bg-primary);
}

.process__timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.process__timeline::before {
  content: '';
  position: absolute;
  top: 50px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--blue-deep), var(--accent-violet), var(--accent-emerald));
  z-index: 0;
  opacity: 0.5;
}

.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 0 16px;
}

.process-step__number {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  position: relative;
  transition: var(--transition-smooth);
}

.process-step__number-inner {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  transition: var(--transition-smooth);
  box-shadow: 0 0 30px rgba(99, 233, 245, 0.15);
}

.process-step:hover .process-step__number {
  border-color: var(--cyan);
  box-shadow: 0 0 50px rgba(99, 233, 245, 0.15);
}

.process-step:hover .process-step__number-inner {
  transform: scale(1.1);
  box-shadow: 0 0 40px rgba(99, 233, 245, 0.3);
}

.process-step__title {
  font-family: var(--font-heading);
  font-size: 1.12rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.process-step__text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================
   MÉTRICAS SECTION
   ============================================ */
.metrics {
  padding: var(--section-padding);
  position: relative;
  background: var(--bg-secondary);
  overflow: hidden;
}

.metrics__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.metric-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--card-radius);
  padding: 32px 28px;
  text-align: center;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(99, 233, 245, 0.04), transparent 60%);
  opacity: 0;
  transition: var(--transition-smooth);
  pointer-events: none;
}

.metric-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glass-hover);
  box-shadow: var(--shadow-glow-sm);
}

.metric-card:hover::before {
  opacity: 1;
}

.metric-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  position: relative;
}

.metric-card--cyan .metric-card__icon {
  background: rgba(99, 233, 245, 0.08);
  border: 1px solid rgba(99, 233, 245, 0.12);
}

.metric-card--blue .metric-card__icon {
  background: rgba(54, 101, 143, 0.1);
  border: 1px solid rgba(54, 101, 143, 0.15);
}

.metric-card--emerald .metric-card__icon {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.12);
}

.metric-card--violet .metric-card__icon {
  background: rgba(167, 139, 250, 0.08);
  border: 1px solid rgba(167, 139, 250, 0.12);
}

.metric-card__amount {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1;
}

.metric-card--cyan .metric-card__amount {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.metric-card--blue .metric-card__amount {
  background: linear-gradient(135deg, #36658f, #63e9f5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.metric-card--emerald .metric-card__amount {
  background: linear-gradient(135deg, #10b981, #63e9f5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.metric-card--violet .metric-card__amount {
  background: linear-gradient(135deg, #a78bfa, #63e9f5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.metric-card__label {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.metric-card__desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

/* Progress bar */
.metric-card__bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  overflow: hidden;
}

.metric-card__bar-fill {
  height: 100%;
  width: 0;
  background: var(--gradient-primary);
  border-radius: 4px;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.metric-card__bar-fill--blue {
  background: linear-gradient(90deg, #36658f, #63e9f5);
}

.metric-card__bar-fill--emerald {
  background: linear-gradient(90deg, #10b981, #63e9f5);
}

.metric-card__bar-fill--violet {
  background: linear-gradient(90deg, #a78bfa, #63e9f5);
}

.metric-card__bar-fill.animate {
  width: var(--fill-width);
}

/* ============================================
   BENEFICIOS SECTION
   ============================================ */
.benefits {
  padding: var(--section-padding);
  position: relative;
  overflow: hidden;
  background: var(--bg-primary);
}

.benefits__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.benefit-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--card-radius);
  padding: 36px;
  transition: var(--transition-smooth);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.benefit-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(99, 233, 245, 0.03), transparent 60%);
  opacity: 0;
  transition: var(--transition-smooth);
  pointer-events: none;
}

.benefit-card:hover {
  border-color: var(--border-glass-hover);
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover), 0 0 40px rgba(99, 233, 245, 0.04);
}

.benefit-card:hover::before {
  opacity: 1;
}

.benefit-card__icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(99, 233, 245, 0.06);
  border: 1px solid rgba(99, 233, 245, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: var(--transition-smooth);
}

.benefit-card:hover .benefit-card__icon {
  box-shadow: 0 0 25px rgba(99, 233, 245, 0.1);
  border-color: rgba(99, 233, 245, 0.2);
}

.benefit-card__title {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.benefit-card__text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================
   CTA FINAL SECTION
   ============================================ */
.cta-section {
  padding: var(--section-padding);
  position: relative;
  background: var(--bg-secondary);
  overflow: hidden;
}

.cta-section__wrapper {
  position: relative;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 32px;
  padding: 80px;
  overflow: hidden;
}

.cta-section__bg-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 20%, rgba(99, 233, 245, 0.06), transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(54, 101, 143, 0.06), transparent 50%);
  pointer-events: none;
}

.cta-section__content {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.cta-section__text {
  max-width: 500px;
}

.cta-section__title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

.cta-section__subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.8;
}

.cta-section__bonus {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  background: rgba(99, 233, 245, 0.04);
  border: 1px solid rgba(99, 233, 245, 0.1);
  border-radius: 14px;
  margin-top: 28px;
}

.cta-section__bonus-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.cta-section__bonus-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.cta-section__bonus-text strong {
  color: var(--cyan);
  display: block;
  margin-bottom: 4px;
}

/* Contact Form */
.cta-form {
  background: rgba(5, 10, 21, 0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-glass);
  border-radius: var(--card-radius);
  padding: 40px;
  box-shadow: var(--shadow-card);
}

.cta-form__title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
  text-align: center;
}

.cta-form__subtitle {
  font-size: 0.86rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 28px;
}

.cta-form .form-group {
  margin-bottom: 16px;
}

.cta-form label {
  display: block;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.cta-form input,
.cta-form select {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-fast);
  outline: none;
}

.cta-form input::placeholder {
  color: var(--text-muted);
}

.cta-form input:focus,
.cta-form select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(99, 233, 245, 0.08), 0 0 20px rgba(99, 233, 245, 0.05);
}

.cta-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238b9ec2' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.cta-form select option {
  background: var(--bg-primary);
  color: var(--text-primary);
}

.cta-form .btn-primary {
  width: 100%;
  padding: 16px;
  justify-content: center;
  font-size: 1rem;
  margin-top: 8px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 64px 0 32px;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-glass);
  position: relative;
  z-index: 2;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer__brand {
  max-width: 320px;
}

.footer__brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  text-decoration: none;
}

.footer__brand-logo img {
  height: 38px;
  border-radius: 8px;
}

.footer__brand-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.footer__brand-name span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-left: 1px;
}

.footer__brand-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* Social Links */
.footer__social {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.footer__social-link {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.footer__social-link:hover {
  border-color: var(--cyan);
  background: rgba(99, 233, 245, 0.08);
  color: var(--cyan);
  transform: translateY(-3px);
  box-shadow: 0 4px 20px rgba(99, 233, 245, 0.15);
}

.footer__social-link svg {
  stroke: currentColor;
}

.footer__col-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.86rem;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer__links a svg {
  flex-shrink: 0;
  opacity: 0.6;
}

.footer__links a:hover {
  color: var(--cyan);
  transform: translateX(4px);
}

.footer__bottom {
  padding-top: 28px;
  border-top: 1px solid var(--border-glass);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__copyright {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer__legal {
  display: flex;
  gap: 24px;
}

.footer__legal a {
  text-decoration: none;
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.footer__legal a:hover {
  color: var(--cyan);
}

/* ============================================
   WHATSAPP FLOATING BUTTON
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: var(--transition-smooth);
}

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 8px 35px rgba(37, 211, 102, 0.5);
}

.whatsapp-float__pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.4);
  animation: whatsapp-pulse 2s ease-out infinite;
  z-index: -1;
}

@keyframes whatsapp-pulse {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }

  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-12px);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.5);
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__subtitle {
    max-width: 100%;
    margin: 0 auto 40px;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__stats {
    justify-content: center;
  }

  .hero__visual {
    max-width: 500px;
    margin: 0 auto;
  }

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

  .process__timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .process__timeline::before {
    display: none;
  }

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

  .cta-section__content {
    grid-template-columns: 1fr;
  }

  .cta-section__text {
    text-align: center;
    max-width: 100%;
  }

  .cta-section__wrapper {
    padding: 60px 40px;
  }

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

@media (max-width: 768px) {
  .video-bg-container video {
    display: none;
  }

  .navbar {
    background: rgba(81, 179, 204, 0);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  :root {
    --section-padding: 80px 0;
  }

  .video-bg-container {
    width: 100vw;
    height: 50vh;
    overflow: hidden;
    position: relative;
    margin-left: calc(-50vw + 50%);
    /* rompe cualquier contenedor limitado */
  }

  .video-bg-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    /* centra el contenido del video */
    display: block;
  }

  .navbar__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(5, 10, 21, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border-glass);
  }

  .navbar__links.active {
    display: flex;
  }

  .navbar__toggle {
    display: flex;
  }

  .hero__title {
    font-size: clamp(2rem, 7vw, 3rem);
  }

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

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

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

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

  .hero__actions {
    flex-direction: column;
  }

  .hero__stats {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .hero__stat-divider {
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 233, 245, 0.2), transparent);
  }

  .cta-section__wrapper {
    padding: 40px 24px;
  }

  .footer__top {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .floating-card--1,
  .floating-card--2,
  .floating-card--3 {
    display: none;
  }

  .cta-section__bonus {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* ============================================
   SAAS MOCKUPS (SERVICES)
   ============================================ */
.saas-mockup {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  overflow: hidden;
  margin: 20px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  transition: var(--transition-smooth);
  position: relative;
}

.service-card:hover .saas-mockup {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(99, 233, 245, 0.2) inset;
  border-color: rgba(99, 233, 245, 0.3);
}

.saas-mockup__header {
  background: rgba(255, 255, 255, 0.03);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border-glass);
}

.saas-mockup__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.saas-mockup__dot--red {
  background: #ff5f56;
}

.saas-mockup__dot--yellow {
  background: #ffbd2e;
}

.saas-mockup__dot--green {
  background: #27c93f;
}

.saas-mockup__title {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-body);
  margin-left: auto;
  font-weight: 500;
}

.saas-mockup__body {
  height: 200px;
  position: relative;
  overflow: hidden;
}

/* 1. Automatizaciones Mockup */
.saas-mockup__body--auto {
  background: radial-gradient(circle at center, rgba(99, 233, 245, 0.05) 0%, transparent 70%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mockup-nodes {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 85%;
  position: relative;
}

.mockup-node-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
  opacity: 0;
  animation: node-fade-in 0.5s forwards;
}

.mockup-node {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(10, 16, 32, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  transition: all 0.3s ease;
}

.mockup-node::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 14px;
  border: 1px solid transparent;
  animation: node-pulse-border 2s infinite;
}

.mockup-node--lead::after {
  border-color: rgba(99, 233, 245, 0.5);
}

.mockup-node--crm::after {
  border-color: rgba(167, 139, 250, 0.5);
  animation-delay: 0.5s;
}

.mockup-node--msg::after {
  border-color: rgba(16, 185, 129, 0.5);
  animation-delay: 1s;
}

.mockup-node svg {
  width: 22px;
  height: 22px;
}

.mockup-node--lead svg {
  stroke: var(--cyan);
}

.mockup-node--crm svg {
  stroke: var(--accent-violet);
}

.mockup-node--msg svg {
  stroke: var(--accent-emerald);
}

.mockup-node-label {
  font-size: 0.65rem;
  color: var(--text-secondary);
  font-weight: 600;
  white-space: nowrap;
}

.mockup-connection {
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.05);
  margin: 0 -10px;
  margin-top: -22px;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.mockup-connection-fill {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  transform: translateX(-100%);
  animation: connection-flow 2s infinite;
}

.mockup-data-particle {
  position: absolute;
  top: calc(50% - 22px);
  left: 0;
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 10px #fff, 0 0 20px var(--cyan);
  z-index: 3;
  animation: particle-travel 4s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes node-fade-in {
  to {
    opacity: 1;
  }
}

@keyframes node-pulse-border {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.15);
    opacity: 0;
  }
}

@keyframes connection-flow {
  100% {
    transform: translateX(100%);
  }
}

@keyframes particle-travel {
  0% {
    left: 0;
    opacity: 0;
    transform: scale(0.5);
  }

  5% {
    opacity: 1;
    transform: scale(1);
  }

  45% {
    left: 50%;
  }

  90% {
    left: 100%;
    opacity: 1;
    transform: scale(1);
  }

  95% {
    opacity: 0;
    transform: scale(0.5);
  }

  100% {
    left: 100%;
    opacity: 0;
  }
}

/* 2. Agentes Autónomos Mockup */
.saas-mockup__body--agent {
  background: #000;
  padding: 16px;
  font-family: 'Space Grotesk', monospace;
}

.mockup-terminal {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.75rem;
  line-height: 1.4;
}

.mockup-term-line {
  opacity: 0;
  animation: term-seq 10s infinite;
}

.mockup-term-line:nth-child(1) {
  animation-delay: 0s;
}

.mockup-term-line:nth-child(2) {
  animation-delay: 1.5s;
}

.mockup-term-line:nth-child(3) {
  animation-delay: 3.5s;
}

.mockup-term-line:nth-child(4) {
  animation-delay: 5s;
}

.mockup-term-line:nth-child(5) {
  animation-delay: 6s;
}

.term-time {
  color: #555;
  margin-right: 8px;
}

.term-info {
  color: var(--cyan);
  font-weight: 600;
  margin-right: 4px;
}

.term-success {
  color: var(--accent-emerald);
  font-weight: 600;
  margin-right: 4px;
}

.term-wait {
  color: var(--text-muted);
}

.term-cursor {
  display: inline-block;
  width: 6px;
  height: 12px;
  background: var(--text-primary);
  margin-left: 4px;
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}

@keyframes term-seq {
  0% {
    opacity: 0;
  }

  2%,
  90% {
    opacity: 1;
  }

  95%,
  100% {
    opacity: 0;
  }
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* 3. Chatbots Mockup (WhatsApp Style) */
.saas-mockup__header--whatsapp {
  background: #075E54;
  border-bottom: none;
  justify-content: space-between;
}

.wa-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wa-avatar img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.wa-info {
  display: flex;
  flex-direction: column;
}

.wa-name {
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.1;
}

.wa-status {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.65rem;
}

.wa-header-right svg {
  width: 18px;
  height: 18px;
  stroke: #fff;
}

.saas-mockup__body--chat {
  background: #0b141a url('https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png');
  background-size: cover;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.mockup-chat {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.mockup-msg {
  max-width: 85%;
  padding: 8px 12px 20px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  position: relative;
  color: #e9edef;
  line-height: 1.4;
  box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.13);
  opacity: 0;
  animation-duration: 12s;
  animation-iteration-count: infinite;
}

.mockup-msg:nth-child(1) {
  animation-name: msg-seq-1;
}

.mockup-msg:nth-child(2) {
  animation-name: msg-seq-2;
}

.mockup-msg--typing {
  animation-name: msg-seq-typing;
}

.mockup-msg--final {
  animation-name: msg-seq-final;
}

.mockup-msg--left {
  align-self: flex-start;
  background: #202c33;
  border-top-left-radius: 0;
}

.mockup-msg--left::before {
  content: '';
  position: absolute;
  top: 0;
  left: -8px;
  width: 0;
  height: 0;
  border-top: 10px solid #202c33;
  border-left: 10px solid transparent;
}

.mockup-msg--right {
  align-self: flex-end;
  background: #005c4b;
  border-top-right-radius: 0;
}

.mockup-msg--right::before {
  content: '';
  position: absolute;
  top: 0;
  right: -8px;
  width: 0;
  height: 0;
  border-top: 10px solid #005c4b;
  border-right: 10px solid transparent;
}

.wa-options {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wa-option {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 6px;
  font-weight: 500;
  color: var(--cyan);
}

.msg-time {
  position: absolute;
  bottom: 4px;
  right: 8px;
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  gap: 2px;
}

.msg-check {
  width: 12px;
  height: 12px;
  color: #53bdeb;
}

.mockup-msg--typing {
  padding: 12px 16px;
}

.mockup-msg--typing .msg-time {
  display: none;
}

@keyframes msg-seq-1 {

  0%,
  5% {
    opacity: 0;
    transform: translateY(10px);
  }

  8%,
  95% {
    opacity: 1;
    transform: translateY(0);
  }

  98%,
  100% {
    opacity: 0;
    transform: translateY(-10px);
  }
}

@keyframes msg-seq-2 {

  0%,
  25% {
    opacity: 0;
    transform: translateY(10px);
  }

  28%,
  95% {
    opacity: 1;
    transform: translateY(0);
  }

  98%,
  100% {
    opacity: 0;
    transform: translateY(-10px);
  }
}

@keyframes msg-seq-typing {

  0%,
  40% {
    opacity: 0;
    transform: translateY(10px);
    display: block;
    position: relative;
  }

  43%,
  65% {
    opacity: 1;
    transform: translateY(0);
    display: block;
    position: relative;
  }

  66%,
  100% {
    opacity: 0;
    position: absolute;
    pointer-events: none;
    transform: scale(0);
  }
}

@keyframes msg-seq-final {

  0%,
  65% {
    opacity: 0;
    transform: translateY(10px);
  }

  68%,
  95% {
    opacity: 1;
    transform: translateY(0);
  }

  98%,
  100% {
    opacity: 0;
    transform: translateY(-10px);
  }
}

.mockup-typing {
  display: flex;
  gap: 4px;
  align-items: center;
}

.mockup-typing span {
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  animation: bounce-typing 1.4s infinite;
}

.mockup-typing span:nth-child(2) {
  animation-delay: 0.2s;
}

.mockup-typing span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes bounce-typing {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

/* 4. Llamadas Mockup */
.saas-mockup__body--call {
  background: linear-gradient(180deg, rgba(5, 10, 21, 1) 0%, rgba(13, 22, 48, 1) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.mockup-call {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.mockup-call-visualizer {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 10px;
}

.mockup-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-deep), var(--cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.mockup-avatar--pulse::before,
.mockup-avatar--pulse::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  border: 1px solid var(--cyan);
  animation: call-ripple 2s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

.mockup-avatar--pulse::after {
  animation-delay: 1s;
}

.mockup-avatar svg {
  width: 28px;
  height: 28px;
  stroke: #fff;
  z-index: 2;
}

.mockup-waves {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 30px;
}

.mockup-wave {
  width: 4px;
  background: var(--cyan);
  border-radius: 2px;
  height: 4px;
}

.mockup-waves--active .mockup-wave {
  animation: voice-wave 1.2s infinite alternate ease-in-out;
}

.mockup-waves--active .mockup-wave:nth-child(1) {
  animation-delay: 0.1s;
}

.mockup-waves--active .mockup-wave:nth-child(2) {
  animation-delay: 0.4s;
}

.mockup-waves--active .mockup-wave:nth-child(3) {
  animation-delay: 0.2s;
}

.mockup-waves--active .mockup-wave:nth-child(4) {
  animation-delay: 0.7s;
}

.mockup-waves--active .mockup-wave:nth-child(5) {
  animation-delay: 0.3s;
}

.mockup-waves--active .mockup-wave:nth-child(6) {
  animation-delay: 0.6s;
}

.mockup-waves--active .mockup-wave:nth-child(7) {
  animation-delay: 0.2s;
}

.mockup-waves--active .mockup-wave:nth-child(8) {
  animation-delay: 0.5s;
}

.mockup-waves--active .mockup-wave:nth-child(9) {
  animation-delay: 0.1s;
}

.mockup-call-transcript {
  height: 70px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  overflow: hidden;
  position: relative;
}

.transcript-line {
  font-size: 0.7rem;
  color: var(--text-secondary);
  line-height: 1.3;
  position: absolute;
  bottom: 12px;
  left: 16px;
  right: 16px;
  background: var(--bg-primary);
  opacity: 0;
  pointer-events: none;
}

.transcript-line:nth-child(1) {
  animation: line-seq-1 9s infinite;
}

.transcript-line:nth-child(2) {
  animation: line-seq-2 9s infinite;
}

.transcript-line:nth-child(3) {
  animation: line-seq-3 9s infinite;
}

.transcript-speaker {
  font-weight: 700;
}

.transcript-line--ai .transcript-speaker {
  color: var(--cyan);
}

.transcript-line--user .transcript-speaker {
  color: var(--accent-violet);
}

.transcript-line--typing .typing-text {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid var(--cyan);
  animation: type-text 3s steps(40, end) infinite, blink-caret 0.75s step-end infinite;
  max-width: 100%;
  vertical-align: bottom;
}

@keyframes call-ripple {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }

  100% {
    transform: scale(2);
    opacity: 0;
  }
}

@keyframes voice-wave {
  0% {
    height: 4px;
  }

  100% {
    height: 28px;
  }
}

@keyframes line-seq-1 {

  0%,
  30% {
    opacity: 1;
    z-index: 2;
  }

  31%,
  100% {
    opacity: 0;
    z-index: 0;
  }
}

@keyframes line-seq-2 {

  0%,
  31% {
    opacity: 0;
    z-index: 0;
  }

  32%,
  55% {
    opacity: 1;
    z-index: 2;
  }

  56%,
  100% {
    opacity: 0;
    z-index: 0;
  }
}

@keyframes line-seq-3 {

  0%,
  56% {
    opacity: 0;
    z-index: 0;
  }

  57%,
  95% {
    opacity: 1;
    z-index: 2;
  }

  96%,
  100% {
    opacity: 0;
    z-index: 0;
  }
}

@keyframes type-text {
  from {
    width: 0
  }

  to {
    width: 100%
  }
}

@keyframes blink-caret {

  from,
  to {
    border-color: transparent
  }

  50% {
    border-color: var(--cyan);
  }
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
  width: 6px;
}

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

::-webkit-scrollbar-thumb {
  background: rgba(99, 233, 245, 0.2);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(99, 233, 245, 0.4);
}

/* Selection */
::selection {
  background: rgba(99, 233, 245, 0.2);
  color: var(--text-primary);
}

/* ===================== PROOF BAR ANIMATION ===================== */
.proof-bar {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(0, 212, 255, 0.1);
  border-bottom: 1px solid rgba(0, 212, 255, 0.1);
  padding: 12px 0;
  overflow: hidden;
}

.proof-track {
  display: flex;
  /* Ajusta este valor: entre 20px y 30px es el punto óptimo */
  gap: 25px;
  align-items: center;
  width: fit-content;
  animation: proofScroll 30s linear infinite;
  will-change: transform;
}

.proof-item {
  display: flex;
  align-items: center;
  gap: 8px;
  /* Menos espacio entre el punto y el texto */
  font-size: 12px;
  /* Un tamaño un poco más pequeño ayuda a la compacidad */
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
  /* CORREGIDO: ahora el texto no se romperá */
  text-transform: uppercase;
  /* Para que luzca como tu referencia */
}

.proof-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(99, 233, 245, 0.6);
  display: inline-block;
  margin-right: 8px;
}

@keyframes proofScroll {
  from {
    transform: translateX(0);
  }

  to {
    /* Al moverte exactamente -50%, el final de la segunda 
           copia coincide con el inicio de la primera */
    transform: translateX(-50%);
  }
}


.contenido {
  position: relative;
  z-index: 1;
  /* Encima del video */
}

.video-bg-container {
  width: 100%;
  overflow: hidden;
  /* evita que el video se salga */
}

.video-bg-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* elimina el espacio extra debajo del video */
}

/* ============================================
   WEB CREATION SECTION (PREMIUM SERVICE)
   ============================================ */
.web-creation {
  padding: var(--section-padding);
  position: relative;
  overflow: hidden;
  background: var(--bg-primary);
  border-top: 1px solid rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.web-creation__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 992px) {
  .web-creation__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* --- Left Content --- */
.web-creation__content .section-title {
  margin-bottom: 16px;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
}

.web-creation__content .section-subtitle {
  margin-bottom: 32px;
  font-size: 1.05rem;
}

.web-creation__benefits {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

.wc-benefit {
  display: flex;
  align-items: center;
  gap: 16px;
}

.wc-benefit__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(99, 233, 245, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  flex-shrink: 0;
  border: 1px solid rgba(99, 233, 245, 0.15);
  box-shadow: 0 0 15px rgba(99, 233, 245, 0.1);
}

.wc-benefit__text {
  font-weight: 500;
  color: var(--text-primary);
  font-size: 1.05rem;
}

.web-creation__actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

/* --- Right Content: Visual Mockup --- */
.web-creation__visual {
  position: relative;
  width: 100%;
}

.wc-mockup-container {
  background: rgba(10, 16, 32, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
  height: 450px;
  display: flex;
  flex-direction: column;
}

.wc-mockup-body {
  flex: 1;
  position: relative;
  background: var(--bg-secondary);
  overflow: hidden;
}

/* Flow Indicator */
.wc-flow-indicator {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
}

.wc-flow-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.3s;
}

.wc-flow-dot.active {
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

.wc-flow-line {
  width: 30px;
  height: 2px;
  background: rgba(255, 255, 255, 0.05);
}

/* --- Animation Steps --- */
.wc-step {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wc-step.active {
  opacity: 1;
  pointer-events: auto;
}

/* Step 1: Chat */
.wc-chat {
  width: 80%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wc-chat__msg {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.9rem;
  max-width: 85%;
  line-height: 1.4;
}

.wc-chat__msg--client {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.wc-chat__msg--ai {
  background: rgba(99, 233, 245, 0.1);
  border: 1px solid rgba(99, 233, 245, 0.2);
  color: var(--cyan-light);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
  opacity: 0;
  transform: translateY(10px);
}

.wc-step.active .wc-chat__msg--ai.delayed-msg {
  animation: slideUpFade 0.5s ease forwards 1.5s;
}

@keyframes slideUpFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Step 2: Wireframe */
.wc-wireframe {
  width: 85%;
  height: 80%;
  border: 2px dashed rgba(99, 233, 245, 0.3);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

.wc-step.active .wc-wireframe::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(99, 233, 245, 0.1), transparent);
  transform: translateX(-100%);
  animation: shine 2s infinite;
}

@keyframes shine {
  to {
    transform: translateX(100%);
  }
}

.wc-wire-header {
  height: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.wc-wire-hero {
  flex: 1;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.wc-wire-title {
  width: 60%;
  height: 24px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
}

.wc-wire-subtitle {
  width: 40%;
  height: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.wc-wire-btn {
  width: 100px;
  height: 32px;
  background: rgba(99, 233, 245, 0.2);
  border-radius: 16px;
  margin-top: 10px;
}

.wc-wire-cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  height: 80px;
}

.wc-wire-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
}

/* Step 3: Code Layer */
.wc-code-layer {
  width: 90%;
  height: 85%;
  background: #0d1117;
  border-radius: 8px;
  padding: 20px;
  font-family: monospace;
  font-size: 0.85rem;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
  position: relative;
}

.code-keyword {
  color: #ff7b72;
}

.code-var {
  color: #79c0ff;
}

.code-string {
  color: #a5d6ff;
}

.code-prop {
  color: #d2a8ff;
}

.code-number {
  color: #f2cc60;
}

.code-func {
  color: #d2a8ff;
  font-weight: bold;
}

.wc-code-line {
  margin-bottom: 6px;
  opacity: 0;
}

.wc-step.active .wc-code-line {
  animation: typeLine 0.1s forwards;
}

.wc-step.active .wc-code-line:nth-child(1) {
  animation-delay: 0.1s;
}

.wc-step.active .wc-code-line:nth-child(2) {
  animation-delay: 0.3s;
}

.wc-step.active .wc-code-line:nth-child(3) {
  animation-delay: 0.5s;
}

.wc-step.active .wc-code-line:nth-child(4) {
  animation-delay: 0.7s;
}

.wc-step.active .wc-code-line:nth-child(5) {
  animation-delay: 0.9s;
}

.wc-step.active .wc-code-line:nth-child(6) {
  animation-delay: 1.1s;
}

.wc-step.active .wc-code-line:nth-child(8) {
  animation-delay: 1.3s;
}

@keyframes typeLine {
  to {
    opacity: 1;
  }
}

.wc-progress-bar {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.wc-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

.wc-step.active .wc-progress-fill {
  animation: fillProgress 1.5s ease-in-out forwards 1.5s;
}

@keyframes fillProgress {
  to {
    width: 100%;
  }
}

/* Step 4: Mobile & Speed */
.wc-mobile-opt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  width: 100%;
}

.wc-mobile-frame {
  width: 140px;
  height: 280px;
  border: 6px solid #2a2a35;
  border-radius: 24px;
  background: #050a15;
  position: relative;
  overflow: hidden;
}

.wc-mobile-content {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wc-mobile-header {
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 6px;
}

.wc-mobile-box {
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
}

.wc-perf-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.circular-chart {
  display: block;
  margin: 0 auto;
  width: 100px;
  height: 100px;
}

.circle-bg {
  fill: none;
  stroke: rgba(16, 185, 129, 0.1);
  stroke-width: 3.8;
}

.circle {
  fill: none;
  stroke: var(--accent-emerald);
  stroke-width: 2.8;
  stroke-linecap: round;
  transition: stroke-dasharray 1s ease-out;
}

.percentage {
  fill: #fff;
  font-family: var(--font-heading);
  font-size: 8px;
  font-weight: bold;
  text-anchor: middle;
}

.wc-step.active .circle {
  stroke-dasharray: 100, 100;
  animation: circleFill 1.5s ease-out forwards;
}

@keyframes circleFill {
  from {
    stroke-dasharray: 0, 100;
  }

  to {
    stroke-dasharray: 100, 100;
  }
}

/* Step 5: Final Result */
.wc-final-web {
  width: 100%;
  height: 100%;
  background: #0a0f1d;
  display: flex;
  flex-direction: column;
  position: relative;
}

.wc-final-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--accent-emerald);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.wc-final-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(99, 233, 245, 0.1) 0%, transparent 70%);
}

.wc-final-hero-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  text-align: center;
  line-height: 1.2;
  margin-bottom: 20px;
}

.wc-final-hero-btn {
  background: var(--gradient-primary);
  color: #fff;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 4px 15px rgba(99, 233, 245, 0.3);
}

.wc-final-elements {
  height: 60px;
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 0 20px 20px;
}

.wc-final-el {
  width: 60px;
  height: 40px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
}

.wc-confetti {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-image: radial-gradient(var(--cyan) 1px, transparent 1px), radial-gradient(var(--accent-violet) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: 0 0, 20px 20px;
  opacity: 0;
}

.wc-step.active .wc-final-web {
  animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.wc-step.active .wc-confetti {
  animation: confettiFall 2s ease-out forwards;
}

@keyframes popIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes confettiFall {
  0% {
    opacity: 1;
    background-position: 0 0, 20px 20px;
  }

  100% {
    opacity: 0;
    background-position: 0 100px, 20px 120px;
  }
}

/* ============================================
   WEB CREATION SECTION
   ============================================ */
.web-creation {
  position: relative;
  padding: var(--section-padding);
  background: var(--bg-primary);
  overflow: hidden;
}

.web-creation__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.web-creation__content .section-title {
  margin-bottom: 24px;
}

.web-creation__benefits {
  list-style: none;
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.web-creation__benefits li {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1.05rem;
  color: var(--text-primary);
  background: rgba(99, 233, 245, 0.03);
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid rgba(99, 233, 245, 0.08);
  transition: var(--transition-smooth);
}

.web-creation__benefits li:hover {
  transform: translateX(8px);
  background: rgba(99, 233, 245, 0.06);
  border-color: rgba(99, 233, 245, 0.2);
}

.benefit-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(99, 233, 245, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  flex-shrink: 0;
}

.benefit-icon svg {
  width: 20px;
  height: 20px;
}

.web-creation__visual {
  position: relative;
  z-index: 2;
}

/* Mockup Container */
.wc-mockup {
  background: rgba(10, 16, 32, 0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-card), 0 0 60px rgba(99, 233, 245, 0.05);
  height: 380px;
  display: flex;
  flex-direction: column;
}

.wc-mockup-header {
  height: 44px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 16px;
}

.wc-mockup-dots {
  display: flex;
  gap: 6px;
}

.wc-mockup-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot-red {
  background: #ff5f56;
}

.dot-yellow {
  background: #ffbd2e;
}

.dot-green {
  background: #27c93f;
}

.wc-mockup-url {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 4px 12px;
  font-family: monospace;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  margin-right: 48px;
}

.wc-mockup-body {
  flex: 1;
  position: relative;
  padding: 24px;
  overflow: hidden;
}

/* Steps */
.wc-step {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.wc-step.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Step 1: Chat */
.wc-chat {
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wc-msg {
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.9rem;
  max-width: 85%;
  animation: slideUpFade 0.4s ease forwards;
  opacity: 0;
  transform: translateY(10px);
}

.wc-msg-user {
  background: var(--gradient-primary);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  animation-delay: 0.2s;
}

.wc-msg-ai {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.wc-typing {
  animation-delay: 1.2s;
}

.wc-msg-final {
  animation-delay: 2.5s;
}

.wc-step-1.active .wc-typing {
  animation: slideUpFade 0.4s ease forwards 1.2s, fadeOut 0.4s ease forwards 2.4s;
}

.wc-typing span {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--text-muted);
  border-radius: 50%;
  margin: 0 2px;
  animation: typingBounce 1s infinite;
}

.wc-typing span:nth-child(2) {
  animation-delay: 0.2s;
}

.wc-typing span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingBounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
    height: 0;
    padding: 0;
    margin: 0;
  }
}

@keyframes slideUpFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Step 2: Wireframe */
.wc-wireframe {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wc-wireframe>* {
  background: rgba(99, 233, 245, 0.05);
  border: 1px dashed rgba(99, 233, 245, 0.3);
  border-radius: 8px;
}

.wc-wire-header {
  height: 30px;
}

.wc-wire-hero {
  height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.wc-wire-title {
  width: 60%;
  height: 16px;
  background: rgba(99, 233, 245, 0.2);
  border-radius: 4px;
}

.wc-wire-subtitle {
  width: 40%;
  height: 10px;
  background: rgba(99, 233, 245, 0.1);
  border-radius: 4px;
}

.wc-wire-btn {
  width: 80px;
  height: 24px;
  background: rgba(99, 233, 245, 0.3);
  border-radius: 12px;
  margin-top: 8px;
}

.wc-wire-grid {
  display: flex;
  gap: 12px;
  height: 80px;
  border: none !important;
  background: transparent !important;
}

.wc-wire-card {
  flex: 1;
  background: rgba(99, 233, 245, 0.05);
  border: 1px dashed rgba(99, 233, 245, 0.3);
  border-radius: 8px;
}

.wc-step-2.active .wc-wireframe>* {
  animation: pulseWire 2s infinite alternate;
}

@keyframes pulseWire {
  from {
    border-color: rgba(99, 233, 245, 0.1);
    background: rgba(99, 233, 245, 0.02);
  }

  to {
    border-color: rgba(99, 233, 245, 0.4);
    background: rgba(99, 233, 245, 0.08);
  }
}

/* Step 3: Code */
.wc-code {
  width: 100%;
  font-family: monospace;
  font-size: 0.9rem;
  color: var(--text-primary);
  line-height: 1.6;
}

.c-keyword {
  color: #ff7b72;
}

.c-string {
  color: #a5d6ff;
}

.c-func {
  color: #d2a8ff;
}

.c-boolean {
  color: #79c0ff;
}

.indent {
  padding-left: 20px;
}

.wc-code-line {
  opacity: 0;
  transform: translateX(-10px);
}

.wc-step-3.active .wc-code-line {
  animation: typeCode 0.1s forwards;
}

.wc-step-3.active .wc-code-line:nth-child(1) {
  animation-delay: 0.2s;
}

.wc-step-3.active .wc-code-line:nth-child(2) {
  animation-delay: 0.5s;
}

.wc-step-3.active .wc-code-line:nth-child(3) {
  animation-delay: 0.8s;
}

.wc-step-3.active .wc-code-line:nth-child(4) {
  animation-delay: 1.1s;
}

.wc-step-3.active .wc-code-line:nth-child(5) {
  animation-delay: 1.4s;
}

.wc-step-3.active .wc-code-line:nth-child(6) {
  animation-delay: 1.7s;
}

.wc-step-3.active .wc-code-line:nth-child(7) {
  animation-delay: 2.0s;
}

.wc-build-bar {
  margin-top: 20px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  opacity: 0;
}

.wc-build-fill {
  height: 100%;
  width: 0%;
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
}

.wc-step-3.active .wc-build-bar {
  animation: slideUpFade 0.3s forwards 2.3s;
}

.wc-step-3.active .wc-build-fill {
  animation: buildProgress 1s ease-in-out forwards 2.5s;
}

@keyframes typeCode {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes buildProgress {
  to {
    width: 100%;
  }
}

/* Step 4: Result */
.wc-result {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  width: 100%;
}

.wc-result-device {
  width: 140px;
  height: 260px;
  border-radius: 24px;
  border: 6px solid #1a1a2e;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 40px rgba(99, 233, 245, 0.2);
  transform: translateY(20px);
  opacity: 0;
}

.wc-step-4.active .wc-result-device {
  animation: devicePop 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards 0.2s;
}

.wc-result-nav {
  height: 30px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.wc-result-hero {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.wc-result-badge {
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-emerald);
  font-size: 0.5rem;
  padding: 4px 8px;
  border-radius: 10px;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.wc-result-h1 {
  width: 80%;
  height: 8px;
  background: var(--cyan);
  border-radius: 4px;
  box-shadow: 0 0 10px var(--cyan);
}

.wc-result-metrics {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wc-metric {
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 12px 20px;
  border-radius: 12px;
  text-align: center;
  transform: translateX(20px);
  opacity: 0;
}

.wc-step-4.active .wc-metric:nth-child(1) {
  animation: slideLeftFade 0.5s forwards 0.8s;
}

.wc-step-4.active .wc-metric:nth-child(2) {
  animation: slideLeftFade 0.5s forwards 1.0s;
}

.wc-metric-val {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent-emerald);
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.wc-metric-lbl {
  font-size: 0.7rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

@keyframes devicePop {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideLeftFade {
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Flow Indicator */
.wc-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 32px;
  padding: 0 10px;
}

.wc-flow-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 2;
}

.wc-flow-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(99, 233, 245, 0.1);
  border: 2px solid rgba(99, 233, 245, 0.3);
  transition: all 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wc-flow-dot::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  opacity: 0;
  transform: scale(0);
  transition: all 0.4s ease;
}

.wc-flow-dot.active {
  border-color: var(--cyan);
  background: rgba(99, 233, 245, 0.2);
  box-shadow: 0 0 15px rgba(99, 233, 245, 0.3);
}

.wc-flow-dot.active::after {
  opacity: 1;
  transform: scale(1);
}

.wc-flow-item span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.4s ease;
}

.wc-flow-dot.active+span {
  color: var(--text-primary);
}

.wc-flow-line {
  flex: 1;
  height: 2px;
  background: rgba(99, 233, 245, 0.1);
  margin: 0 10px;
  position: relative;
  top: -10px;
  z-index: 1;
}

@media (max-width: 992px) {
  .web-creation__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

/* ---- Navbar Dropdown ---- */
.nav-item-dropdown {
  position: relative;
}

.nav-link-dropdown {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-dropdown-arrow {
  font-size: 0.8em;
  transition: transform 0.2s ease;
  display: inline-block;
}

/* Dropdown Menu */
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 270px;
  background: #0d1321;
  border: 1px solid rgba(0, 180, 216, 0.2);
  border-radius: 12px;
  padding: 12px 8px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 200ms ease, transform 200ms ease, visibility 200ms ease;
  z-index: 100;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Desktop Hover */
@media (min-width: 992px) {
  .nav-item-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-item-dropdown:hover .nav-dropdown-arrow {
    transform: rotate(180deg);
  }
}

.nav-dropdown-menu li {
  width: 100%;
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 16px;
  color: #ccd6f6;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-size: 0.9rem;
  text-decoration: none;
}

.navbar__links .nav-dropdown-menu a::after {
  display: none;
  /* overrides the default navbar underline */
}

.nav-dropdown-menu a:hover {
  background: rgba(0, 180, 216, 0.08);
  color: #00b4d8;
}

.nav-badge-nuevo {
  background: rgba(0, 180, 216, 0.15);
  color: #00b4d8;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 8px;
  font-weight: 600;
  vertical-align: middle;
  border: 1px solid rgba(0, 180, 216, 0.3);
}

/* Mobile behavior (Accordion suave) */
@media (max-width: 991px) {
  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    border: none;
    border-left: 1px solid rgba(99, 233, 245, 0.15);
    background: transparent;
    box-shadow: none;
    padding: 0 0 0 16px;
    margin-top: 8px;
    min-width: auto;
    /* Acordeón con max-height animado */
    display: flex;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.32s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.25s ease,
                padding 0.25s ease;
    opacity: 0;
    pointer-events: none;
  }

  .nav-item-dropdown.active .nav-dropdown-menu {
    max-height: 300px;
    opacity: 1;
    pointer-events: auto;
    padding: 8px 0 4px 16px;
  }

  .nav-item-dropdown.active .nav-dropdown-arrow {
    transform: rotate(180deg);
  }

  /* Separador visual del trigger en móvil */
  .nav-link-dropdown {
    width: 100%;
    justify-content: space-between;
    padding: 4px 0;
  }

  .nav-dropdown-arrow {
    transition: transform 0.28s ease;
  }

  /* Links del submenú en móvil */
  .nav-dropdown-menu a {
    font-size: 0.875rem;
    padding: 8px 12px;
    color: rgba(204, 214, 246, 0.8);
    border-radius: 6px;
  }

  .nav-dropdown-menu a:hover {
    background: rgba(99, 233, 245, 0.06);
    color: #63e9f5;
  }
}

/* ---- Video Overlays ---- */
.video-overlay-gradient {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 280px;
  background: linear-gradient(to bottom, transparent 0%, rgba(5,10,21,0.6) 50%, #050a15 80%);
  pointer-events: none;
  z-index: 1;
}

.video-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  z-index: 2;
  line-height: 0;
}

.video-wave path {
  fill: #050a15;
  filter: drop-shadow(0 -4px 8px rgba(99,233,245,0.3));
}


/* Y oculta la línea animada */
.video-animated-line {
  display: none;
}

.video-animated-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.video-animated-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, #00b4d8, #0077b6, transparent);
  box-shadow: 0 0 12px #00b4d8aa;
  animation: lineSweep 3s linear infinite;
}

@keyframes lineSweep {
  0% {
    left: -50%;
  }

  100% {
    left: 100%;
  }
}
