/* ============================================================
   TEKIA — styles.css
   Primary Color: #dfcec6 (Warm Champagne Beige)
   Dark Luxury Aesthetic
   ============================================================ */

/* ---- GOOGLE FONTS ---- */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

/* ---- CSS VARIABLES ---- */
:root {
  /* Primary — Warm Champagne Beige #dfcec6 */
  --primary-50: #faf8f6;
  --primary-100: #f4ede9;
  --primary-200: #ece0da;
  --primary-300: #e8d8d1;
  --primary-400: #e4d0c8;
  --primary-500: #dfcec6;
  /* BASE */
  --primary-600: #c9b5ac;
  --primary-700: #a8928a;
  --primary-800: #7d6a64;
  --primary-900: #4a3d38;

  /* Primary RGB for rgba() usage */
  --primary-rgb: 223, 206, 198;

  /* Backgrounds */
  --bg-primary: #000000;
  --bg-secondary: #09090B;
  --bg-tertiary: #18181B;
  --bg-card: #111113;

  /* Text */
  --text-primary: #FFFFFF;
  --text-secondary: #E4E4E7;
  --text-tertiary: #A1A1AA;
  --text-quaternary: #71717A;

  /* Accents */
  --success: #22C55E;
  --info: #3B82F6;
  --warning: #F59E0B;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary-700) 0%, var(--primary-500) 50%, var(--primary-300) 100%);
  --gradient-card: linear-gradient(135deg, rgba(var(--primary-rgb), 0.06) 0%, rgba(var(--primary-rgb), 0.02) 100%);

  /* Spacing */
  --section-padding: 6rem 0;

  /* Typography */
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Borders */
  --border-glow: rgba(var(--primary-rgb), 0.2);
  --border-subtle: rgba(var(--primary-rgb), 0.1);
}

/* ---- RESET & BASE ---- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

ul {
  list-style: none;
}

/* ---- CONTAINER ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ---- SECTION PADDING ---- */
.section-padding {
  padding: var(--section-padding);
}

/* ============================================================
   PARTICLES
   ============================================================ */
.particles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(var(--primary-rgb), 0.5);
  animation: float-particle 20s infinite ease-in-out;
  will-change: transform, opacity;
}

@keyframes float-particle {

  0%,
  100% {
    transform: translate(0, 0);
    opacity: 0.3;
  }

  25% {
    transform: translate(80px, -120px);
    opacity: 0.7;
  }

  50% {
    transform: translate(-40px, -250px);
    opacity: 0.5;
  }

  75% {
    transform: translate(-90px, -100px);
    opacity: 0.7;
  }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(32px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scale-in {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  25% {
    transform: translateY(-18px) rotate(1.5deg);
  }

  50% {
    transform: translateY(-8px) rotate(-1.5deg);
  }

  75% {
    transform: translateY(-26px) rotate(0.8deg);
  }
}

@keyframes pulse-glow {

  0%,
  100% {
    box-shadow:
      0 0 0 1px rgba(var(--primary-rgb), 0.5),
      0 4px 24px rgba(var(--primary-rgb), 0.4),
      0 0 60px rgba(var(--primary-rgb), 0.2);
  }

  50% {
    box-shadow:
      0 0 0 2px rgba(var(--primary-rgb), 0.8),
      0 8px 40px rgba(var(--primary-rgb), 0.6),
      0 0 80px rgba(var(--primary-rgb), 0.4);
  }
}

@keyframes gradient-shift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

@keyframes scroll-bounce {

  0%,
  100% {
    transform: translateY(0);
    opacity: 1;
  }

  50% {
    transform: translateY(10px);
    opacity: 0.4;
  }
}

@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.animate-fade-up {
  opacity: 0;
  animation: fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-scale {
  opacity: 0;
  animation: scale-in 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.6s forwards;
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.delay-1 {
  animation-delay: 0.15s;
}

.delay-2 {
  animation-delay: 0.3s;
}

.delay-3 {
  animation-delay: 0.5s;
}

.delay-4 {
  animation-delay: 0.7s;
}

/* Scroll reveal */
.reveal-item {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--delay, 0s);
}

.reveal-item.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.15;
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glow-text {
  text-shadow:
    0 0 10px rgba(var(--primary-rgb), 0.6),
    0 0 20px rgba(var(--primary-rgb), 0.375),
    0 0 40px rgba(var(--primary-rgb), 0.225);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-500);
  background: rgba(var(--primary-rgb), 0.1);
  border: 1px solid rgba(var(--primary-rgb), 0.25);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-tertiary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--primary-800) 0%, var(--primary-600) 40%, var(--primary-500) 70%, var(--primary-400) 100%);
  background-size: 200% 200%;
  animation: gradient-shift 5s ease infinite;
  color: #000000;
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 0.95rem;
  padding: 0.875rem 1.75rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  box-shadow:
    0 0 0 1px rgba(var(--primary-rgb), 0.4),
    0 4px 24px rgba(var(--primary-rgb), 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: gradient-shift 5s ease infinite, pulse-glow 3s ease-in-out infinite;
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.1);
  box-shadow:
    0 0 0 2px rgba(var(--primary-rgb), 0.8),
    0 8px 40px rgba(var(--primary-rgb), 0.55);
}

.btn-sm {
  padding: 0.6rem 1.25rem;
  font-size: 0.85rem;
  border-radius: 8px;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 0.95rem;
  padding: 0.875rem 1.75rem;
  border-radius: 12px;
  border: 1px solid rgba(var(--primary-rgb), 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  border-color: rgba(var(--primary-rgb), 0.7);
  color: var(--primary-500);
  background: rgba(var(--primary-rgb), 0.07);
  transform: translateY(-1px);
}

.btn-outline-sm {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  color: var(--primary-400);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.6rem 1.1rem;
  border-radius: 8px;
  border: 1px solid rgba(var(--primary-rgb), 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: auto;
}

.btn-outline-sm:hover {
  border-color: rgba(var(--primary-rgb), 0.7);
  background: rgba(var(--primary-rgb), 0.08);
}

/* ============================================================
   GLASS CARD
   ============================================================ */
.glass-card {
  background: linear-gradient(135deg,
      rgba(var(--primary-rgb), 0.06) 0%,
      rgba(var(--primary-rgb), 0.02) 50%,
      rgba(var(--primary-rgb), 0.05) 100%);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(var(--primary-rgb), 0.14);
  border-radius: 20px;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.4),
    0 2px 4px -2px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  border-color: rgba(var(--primary-rgb), 0.3);
  box-shadow:
    0 25px 50px -12px rgba(var(--primary-rgb), 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: translateY(-3px);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: all 0.35s ease;
}

.navbar.scrolled {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(var(--primary-rgb), 0.1);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
  padding: 1rem 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.logo-img {
  height: 40px;
  width: 40px;
  object-fit: contain;
  border-radius: 8px;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-tertiary);
  position: relative;
  padding-bottom: 2px;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-500);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--primary-400);
}

.nav-link:hover::after {
  width: 100%;
}

/* "Explorar +" special accent nav item */
.nav-link-plus {
  color: var(--primary-400) !important;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.nav-link-plus::after {
  background: var(--primary-400) !important;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary-500);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu {
  display: none;
  padding: 1.5rem 2rem;
  background: rgba(0, 0, 0, 0.95);
  border-top: 1px solid rgba(var(--primary-rgb), 0.1);
}

.mobile-menu.open {
  display: block;
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-menu .nav-link {
  font-size: 1rem;
  color: var(--text-secondary);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 4rem;
  overflow: hidden;
}

.hero-bg-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse at center,
      rgba(var(--primary-rgb), 0.1) 0%,
      rgba(var(--primary-rgb), 0.04) 40%,
      transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-400);
  background: rgba(var(--primary-rgb), 0.08);
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  padding: 0.45rem 1rem;
  border-radius: 100px;
  width: fit-content;
}

.label-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-500);
  box-shadow: 0 0 8px rgba(var(--primary-rgb), 0.8);
  animation: pulse-glow 2s infinite;
}

.hero-title {
  font-size: clamp(3rem, 5.5vw, 4.75rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-tertiary);
  line-height: 1.75;
  max-width: 520px;
}

.hero-subtitle strong {
  color: var(--primary-400);
  font-weight: 600;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-metrics {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: rgba(var(--primary-rgb), 0.04);
  border: 1px solid rgba(var(--primary-rgb), 0.1);
  border-radius: 16px;
  margin-top: 0.5rem;
}

.metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.metric-value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary-400);
}

.metric-unit {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-600);
  vertical-align: super;
}

.metric-label {
  font-size: 0.7rem;
  color: var(--text-quaternary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
  max-width: 90px;
  text-align: center;
}

.metric-divider {
  width: 1px;
  height: 36px;
  background: rgba(var(--primary-rgb), 0.15);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual-glow {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center,
      rgba(var(--primary-rgb), 0.2) 0%,
      rgba(var(--primary-rgb), 0.08) 40%,
      transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-img {
  width: 100%;
  max-width: 480px;
  border-radius: 24px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 30px rgba(var(--primary-rgb), 0.35)) drop-shadow(0 0 60px rgba(var(--primary-rgb), 0.2));
}

/* Particle canvas for hero stones */
.stones-canvas {
  width: 100%;
  max-width: 500px;
  aspect-ratio: 4 / 5;
  position: relative;
  z-index: 1;
  pointer-events: none;
  display: block;
  margin: 0 auto;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
}

.scroll-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-500);
  animation: scroll-bounce 2s ease-in-out infinite;
  box-shadow: 0 0 12px rgba(var(--primary-rgb), 0.6);
}

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar {
  border-top: 1px solid rgba(var(--primary-rgb), 0.08);
  border-bottom: 1px solid rgba(var(--primary-rgb), 0.08);
  padding: 2.5rem 0;
  background: rgba(var(--primary-rgb), 0.02);
  position: relative;
  z-index: 1;
}

.trust-label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-quaternary);
  margin-bottom: 1.5rem;
}

.trust-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-quaternary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.3s ease;
  cursor: default;
}

.trust-item:hover {
  color: var(--primary-400);
}

.trust-item svg {
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.trust-item:hover svg {
  opacity: 1;
}

/* ============================================================
   PROBLEM SECTION
   ============================================================ */
.problem-section {
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.problem-bg-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse at center,
      rgba(var(--primary-rgb), 0.1) 0%,
      rgba(var(--primary-rgb), 0.04) 45%,
      transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Zoom from behind entry animation for problem cards */
@keyframes zoom-from-behind {
  0% {
    opacity: 0;
    transform: scale(0.6) translateZ(-200px);
    filter: blur(8px);
  }
  60% {
    filter: blur(0px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateZ(0);
    filter: blur(0px);
  }
}

.zoom-from-behind {
  opacity: 0;
  transform: scale(0.6);
  transition: none;
}

.zoom-from-behind.revealed {
  animation: zoom-from-behind 1.4s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--delay, 0s);
}

.problems-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.problem-card {
  padding: 2rem;
}

.problem-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.problem-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  font-family: var(--font-display);
}

.problem-card p {
  font-size: 0.95rem;
  color: var(--text-tertiary);
  line-height: 1.7;
}

.problem-solution {
  text-align: center;
  padding: 2.5rem;
  background: rgba(var(--primary-rgb), 0.04);
  border: 1px solid rgba(var(--primary-rgb), 0.15);
  border-radius: 20px;
}

.solution-text {
  font-size: 1.3rem;
  color: var(--text-secondary);
  line-height: 1.7;
  font-weight: 500;
}

/* ============================================================
   SERVICES — FLIP CARDS
   ============================================================ */
.services-section {
  position: relative;
  z-index: 1;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* Flip Card Container */
.service-card-flip {
  perspective: 1200px;
  height: 380px;
  cursor: pointer;
}

.service-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.4, 0.2, 0.2, 1);
  transform-style: preserve-3d;
}

/* Only flip on hover for real hover-capable devices (not touch) */
@media (hover: hover) {
  .service-card-flip:hover .service-card-inner {
    transform: rotateY(180deg);
  }
}

/* Front face */
.service-card-front {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(var(--primary-rgb), 0.12);
}

.service-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

@media (hover: hover) {
  .service-card-flip:hover .service-img {
    transform: scale(1.05);
  }
}

/* CSS-based visuals for cards 5 & 6 */
.service-css-visual {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.crm-visual {
  background: radial-gradient(ellipse at center, rgba(var(--primary-rgb), 0.15) 0%, #09090B 70%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.crm-nodes {
  position: relative;
  width: 100%;
  height: 100%;
}

.crm-node {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(var(--primary-rgb), 0.12);
  border: 1px solid rgba(var(--primary-rgb), 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--primary-400);
  animation: float 4s ease-in-out infinite;
}

.node-1 {
  top: 25%;
  left: 20%;
  animation-delay: 0s;
}

.node-2 {
  top: 45%;
  left: 55%;
  animation-delay: 1s;
  width: 64px;
  height: 64px;
}

.node-3 {
  top: 65%;
  left: 25%;
  animation-delay: 2s;
  width: 80px;
  height: 80px;
  font-size: 0.9rem;
}

.crm-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--primary-rgb), 0.4), transparent);
  animation: gradient-shift 3s ease infinite;
}

.line-1 {
  top: 40%;
  left: 20%;
  width: 40%;
  transform: rotate(-10deg);
}

.line-2 {
  top: 58%;
  left: 38%;
  width: 20%;
  transform: rotate(30deg);
}

.analytics-visual {
  background: radial-gradient(ellipse at bottom, rgba(var(--primary-rgb), 0.15) 0%, #09090B 70%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 2rem;
  gap: 0.5rem;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 180px;
  width: 100%;
}

.bar {
  flex: 1;
  height: var(--h);
  background: linear-gradient(to top, rgba(var(--primary-rgb), 0.6), rgba(var(--primary-rgb), 0.2));
  border-radius: 4px 4px 0 0;
  border: 1px solid rgba(var(--primary-rgb), 0.3);
  animation: bar-grow 1.5s ease forwards;
  transform-origin: bottom;
}

@keyframes bar-grow {
  from {
    transform: scaleY(0);
  }

  to {
    transform: scaleY(1);
  }
}

/* Overlay on front card */
.service-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 70%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.service-icon-small {
  font-size: 1.25rem;
}

.service-title-front {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.flip-hint {
  font-size: 0.7rem;
  color: var(--primary-400);
  opacity: 0.7;
}

/* Back face */
.service-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: rotateY(180deg);
  border-radius: 20px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.service-card-back:hover {
  transform: rotateY(180deg) translateY(0);
}

.service-back-icon {
  font-size: 2rem;
}

.service-card-back h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-400);
  line-height: 1.3;
}

.service-card-back p {
  font-size: 0.9rem;
  color: var(--text-tertiary);
  line-height: 1.7;
  flex: 1;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: 100px;
  background: rgba(var(--primary-rgb), 0.1);
  border: 1px solid rgba(var(--primary-rgb), 0.25);
  color: var(--primary-400);
  letter-spacing: 0.03em;
}

/* ============================================================
   RESULTS SECTION
   ============================================================ */
.results-section {
  position: relative;
  z-index: 1;
  background: linear-gradient(to bottom,
      transparent,
      rgba(var(--primary-rgb), 0.03) 30%,
      rgba(var(--primary-rgb), 0.03) 70%,
      transparent);
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.result-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.result-before-after {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.result-before,
.result-after {
  flex: 1;
}

.ba-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  color: var(--text-quaternary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

.ba-label.after {
  color: var(--primary-400);
  border-color: rgba(var(--primary-rgb), 0.3);
}

.result-before p,
.result-after p {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  line-height: 1.5;
}

.result-after p {
  color: var(--text-secondary);
}

.ba-arrow {
  color: var(--primary-500);
  font-size: 1.25rem;
  margin-top: 1.5rem;
  flex-shrink: 0;
}

.result-stat {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(var(--primary-rgb), 0.1);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--primary-500);
  line-height: 1;
}

.stat-unit {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-600);
}

.stat-desc {
  display: block;
  font-size: 0.8rem;
  color: var(--text-quaternary);
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ============================================================
   MICRO EXPERIENCES
   ============================================================ */
.micro-section {
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.micro-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(ellipse at center,
      rgba(var(--primary-rgb), 0.12) 0%,
      transparent 70%);
  pointer-events: none;
}

.micro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.micro-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
}

.micro-featured {
  border-color: rgba(var(--primary-rgb), 0.35) !important;
  background: linear-gradient(135deg,
      rgba(var(--primary-rgb), 0.12) 0%,
      rgba(var(--primary-rgb), 0.05) 100%) !important;
}

.micro-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 100px;
  background: rgba(var(--primary-rgb), 0.1);
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  color: var(--primary-400);
  width: fit-content;
}

.featured-tag {
  background: rgba(var(--primary-rgb), 0.2);
  border-color: rgba(var(--primary-rgb), 0.5);
  color: var(--primary-300);
}

.micro-icon {
  font-size: 2.5rem;
}

.micro-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.micro-card p {
  font-size: 0.9rem;
  color: var(--text-tertiary);
  line-height: 1.7;
}

.micro-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.micro-list li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

/* Guarantee */
.guarantee-section {
  margin-top: 1rem;
}

.guarantee-card {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 2rem 2.5rem;
}

.guarantee-icon {
  font-size: 3rem;
  flex-shrink: 0;
}

.guarantee-content h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-400);
  margin-bottom: 0.5rem;
}

.guarantee-content p {
  color: var(--text-tertiary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.guarantee-content strong {
  color: var(--primary-400);
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-section {
  position: relative;
  z-index: 1;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.stars {
  color: var(--primary-400);
  font-size: 1.1rem;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-secondary);
  font-style: italic;
  flex: 1;
}

.testimonial-text::before {
  content: '"';
}

.testimonial-text::after {
  content: '"';
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-800), var(--primary-600));
  border: 2px solid rgba(var(--primary-rgb), 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #000;
  flex-shrink: 0;
}

.testimonial-author strong {
  display: block;
  font-size: 0.875rem;
  color: var(--text-primary);
}

.testimonial-author span {
  font-size: 0.75rem;
  color: var(--text-quaternary);
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-section {
  position: relative;
  z-index: 1;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 5rem;
  align-items: center;
}

.about-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.about-img-wrapper {
  position: relative;
  width: 240px;
  height: 240px;
}

.about-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  border: 2px solid rgba(var(--primary-rgb), 0.3);
  background: rgba(var(--primary-rgb), 0.05);
  padding: 2rem;
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(var(--primary-rgb), 0.4));
}

.about-glow {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center,
      rgba(var(--primary-rgb), 0.2) 0%,
      transparent 70%);
  z-index: -1;
}

.about-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.875rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary-400);
  border-radius: 100px;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.about-content p {
  color: var(--text-tertiary);
  line-height: 1.8;
  font-size: 1rem;
}

.about-content strong {
  color: var(--primary-400);
  font-weight: 600;
}

.about-content em {
  color: var(--text-secondary);
  font-style: italic;
}

.about-pillars {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.5rem;
}

.pillar {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.pillar-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-500);
  box-shadow: 0 0 12px rgba(var(--primary-rgb), 0.6);
  margin-top: 6px;
  flex-shrink: 0;
}

.pillar strong {
  display: block;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: var(--font-display);
  font-weight: 700;
}

.pillar p {
  color: var(--text-quaternary);
  font-size: 0.85rem;
  margin: 0;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.cta-glow-bg {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 700px;
  background: radial-gradient(ellipse at top,
      rgba(var(--primary-rgb), 0.14) 0%,
      rgba(var(--primary-rgb), 0.06) 40%,
      transparent 70%);
  pointer-events: none;
}

.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
  position: relative;
}

.cta-title {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  max-width: 700px;
}

.cta-subtitle {
  font-size: 1.1rem;
  color: var(--text-tertiary);
  max-width: 580px;
  line-height: 1.75;
}

.cta-subtitle strong {
  color: var(--primary-400);
}

/* Contact Form */
.cta-form {
  width: 100%;
  max-width: 700px;
  padding: 2.5rem;
  text-align: left;
}

.cta-form h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  text-align: center;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(var(--primary-rgb), 0.04);
  border: 1px solid rgba(var(--primary-rgb), 0.15);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(var(--primary-rgb), 0.5);
  background: rgba(var(--primary-rgb), 0.07);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-quaternary);
}

.form-group select option {
  background: #18181B;
}

.btn-cta {
  width: 100%;
  justify-content: center;
  margin-top: 1rem;
  padding: 1rem 2rem;
  font-size: 1rem;
  border-radius: 12px;
}

.form-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-quaternary);
  margin-top: 0.75rem;
}

.cta-guarantees {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.cta-guarantee-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid rgba(var(--primary-rgb), 0.1);
  background: rgba(var(--primary-rgb), 0.02);
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding: 3.5rem 0 2.5rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary-400);
}

.footer-logo-img {
  height: 32px;
  width: 32px;
  object-fit: contain;
  border-radius: 6px;
}

.footer-tagline {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-600);
  font-style: italic;
}

.footer-desc {
  font-size: 0.875rem;
  color: var(--text-quaternary);
  line-height: 1.7;
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(var(--primary-rgb), 0.07);
  border: 1px solid rgba(var(--primary-rgb), 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-quaternary);
  transition: all 0.3s ease;
}

.social-link:hover {
  background: rgba(var(--primary-rgb), 0.15);
  border-color: rgba(var(--primary-rgb), 0.4);
  color: var(--primary-400);
  transform: translateY(-2px);
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col ul li a {
  font-size: 0.875rem;
  color: var(--text-quaternary);
  transition: color 0.3s ease;
}

.footer-col ul li a:hover {
  color: var(--primary-400);
}

.footer-bottom {
  border-top: 1px solid rgba(var(--primary-rgb), 0.06);
  padding: 1.25rem 0;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-quaternary);
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  font-size: 0.8rem;
  color: var(--text-quaternary);
  transition: color 0.3s ease;
}

.footer-legal a:hover {
  color: var(--primary-400);
}

/* ============================================================
   TOAST NOTIFICATION
   ============================================================ */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: rgba(var(--primary-rgb), 0.15);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(var(--primary-rgb), 0.3);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-primary);
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-icon {
  font-size: 1.25rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    align-items: center;
  }

  .hero-visual {
    order: -1;
  }

  .hero-img {
    max-width: 380px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .results-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .about-visual {
    order: -1;
  }

  .about-pillars {
    align-items: center;
  }

  .pillar {
    justify-content: center;
  }

  .problems-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .micro-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 767px) {
  :root {
    --section-padding: 4rem 0;
  }

  .nav-links,
  .navbar>.container>.btn-primary {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-img {
    max-width: 280px;
  }

  .hero-metrics {
    flex-direction: column;
    gap: 1rem;
  }

  .metric-divider {
    width: 40px;
    height: 1px;
  }

  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }

  .hero-ctas .btn-primary,
  .hero-ctas .btn-outline {
    width: 100%;
    justify-content: center;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card-flip {
    height: 340px;
  }

  /* Mobile: tap to flip */
  .service-card-flip.flipped .service-card-inner {
    transform: rotateY(180deg);
  }

  .results-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .micro-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-group.full-width {
    grid-column: span 1;
  }

  .cta-guarantees {
    flex-direction: column;
    gap: 0.75rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }

  .problems-grid {
    grid-template-columns: 1fr;
  }

  .guarantee-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* Reduce particles on mobile */
  .particle:nth-child(n+20) {
    display: none;
  }

  .section-title {
    font-size: 1.85rem;
  }

  .trust-logos {
    gap: 1.5rem;
  }
}

/* ============================================================
   LOGO — Integrated blending with dark background
   ============================================================ */
.logo-img {
  mix-blend-mode: lighten;
  filter: brightness(0.9) contrast(1.1);
}

.footer-logo-img {
  mix-blend-mode: lighten;
  filter: brightness(0.9) contrast(1.1);
}

.about-logo-img {
  mix-blend-mode: lighten;
  filter: brightness(1.1) drop-shadow(0 0 20px rgba(var(--primary-rgb), 0.5));
}

/* ============================================================
   EXPECTATIONS / TESTIMONIALS OVERRIDES (5-card wrap)
   ============================================================ */
.testimonials-grid {
  grid-template-columns: repeat(3, 1fr) !important;
}

@media (max-width: 1024px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 767px) {
  .testimonials-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ============================================================
   PRE-FOOTER DISCOVER SECTION
   ============================================================ */
.discover-section {
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: linear-gradient(to bottom,
      transparent,
      rgba(var(--primary-rgb), 0.04) 30%,
      rgba(var(--primary-rgb), 0.06) 70%,
      transparent);
}

.discover-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse at center,
      rgba(var(--primary-rgb), 0.15) 0%,
      transparent 70%);
  pointer-events: none;
}

.discover-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.discover-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.discover-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.discover-pill {
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-400);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.discover-pill:hover {
  border-color: rgba(var(--primary-rgb), 0.35);
  background: rgba(var(--primary-rgb), 0.08);
  transform: translateY(-2px);
}

/* ============================================================
   SERVICE POPUP MODAL
   ============================================================ */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fade-in-up 0.3s ease forwards;
}

.popup-card {
  width: 100%;
  max-width: 500px;
  padding: 2.5rem;
  position: relative;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.popup-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary-400);
}

.popup-sub {
  font-size: 0.9rem;
  color: var(--text-tertiary);
  margin-bottom: 0.25rem;
}

.popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(var(--primary-rgb), 0.1);
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  border-radius: 8px;
  color: var(--text-tertiary);
  width: 32px;
  height: 32px;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.popup-close:hover {
  background: rgba(var(--primary-rgb), 0.2);
  color: var(--primary-400);
}

.popup-card form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Responsive tweaks */
@media (max-width: 1024px) {
  .discover-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 767px) {
  .discover-pillars {
    grid-template-columns: 1fr 1fr;
  }
}

/* Fix problem section container to sit above glow */
.problem-section > .container {
  position: relative;
  z-index: 1;
}

/* ============================================================
   OUTCOMES CAROUSEL SECTION
   ============================================================ */
.outcomes-section {
  position: relative;
  z-index: 1;
}

.outcomes-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 -1rem;
  padding: 1.5rem 0;
}

/* The scrollable track */
.outcomes-track {
  display: flex;
  align-items: stretch;
  gap: 1.5rem;
  overflow: hidden;
  flex: 1;
  padding: 1rem 0.5rem;
}

/* Each outcome card */
.outcome-card {
  flex: 0 0 calc(20% - 1.2rem);
  min-width: 0;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.5s ease,
              filter 0.5s ease;
  cursor: default;
  position: relative;
}

/* Active (center) card */
.outcome-card.is-active {
  flex: 0 0 calc(28% - 1.2rem);
  transform: scale(1.06);
  z-index: 3;
  box-shadow: 0 20px 60px rgba(var(--primary-rgb), 0.3),
              0 0 0 1px rgba(var(--primary-rgb), 0.35);
}

/* Side cards */
.outcome-card.is-side {
  opacity: 0.7;
  filter: brightness(0.75);
}

/* Far side cards (2 each side if visible) */
.outcome-card.is-far {
  opacity: 0.45;
  filter: brightness(0.5);
}

/* Hidden cards */
.outcome-card.is-hidden {
  opacity: 0;
  pointer-events: none;
  position: absolute;
}

.outcome-img-wrap {
  width: 100%;
  height: 180px;
  overflow: hidden;
  flex-shrink: 0;
}

.outcome-card.is-active .outcome-img-wrap {
  height: 200px;
}

.outcome-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.outcome-card.is-active .outcome-img {
  transform: scale(1.04);
}

.outcome-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.outcome-icon {
  font-size: 1.5rem;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.outcome-body h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-400);
  line-height: 1.3;
}

.outcome-card.is-active .outcome-body h3 {
  font-size: 1.05rem;
  color: var(--primary-300);
}

.outcome-body p {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  line-height: 1.6;
}

.outcome-card.is-active .outcome-body p {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* Arrow Buttons */
.carousel-arrow {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(var(--primary-rgb), 0.1);
  border: 1px solid rgba(var(--primary-rgb), 0.3);
  color: var(--primary-400);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.carousel-arrow:hover {
  background: rgba(var(--primary-rgb), 0.2);
  border-color: rgba(var(--primary-rgb), 0.6);
  color: var(--primary-300);
  transform: scale(1.1);
}

/* Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(var(--primary-rgb), 0.25);
  border: 1px solid rgba(var(--primary-rgb), 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot.active {
  background: var(--primary-500);
  width: 24px;
  border-radius: 4px;
  box-shadow: 0 0 8px rgba(var(--primary-rgb), 0.5);
}

/* ============================================================
   CRM LEAD ANIMATION OVERLAY
   ============================================================ */
.crm-lead-anim {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1.5rem;
  pointer-events: none;
}

.lead-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(var(--primary-rgb), 0.15);
  border-radius: 8px;
  padding: 0.4rem 0.75rem;
  animation: lead-slide 3s ease-in-out infinite;
  backdrop-filter: blur(4px);
}

.lead-row-1 { animation-delay: 0s; }
.lead-row-2 { animation-delay: 1s; }
.lead-row-3 { animation-delay: 2s; }

@keyframes lead-slide {
  0%, 100% { transform: translateX(0); opacity: 0.85; }
  50% { transform: translateX(6px); opacity: 1; }
}

.lead-score {
  color: rgba(var(--primary-rgb), 0.6);
  font-size: 0.7rem;
}

.lead-score.hot {
  color: #f59e0b;
  filter: drop-shadow(0 0 4px #f59e0b);
}

.lead-tag {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-tertiary);
  letter-spacing: 0.03em;
}

.lead-tag.qualify {
  color: var(--primary-400);
  font-weight: 700;
}

.lead-tag.hot {
  color: #f59e0b;
}

.lead-tag.close {
  color: #22c55e;
}

.lead-arrow {
  color: rgba(var(--primary-rgb), 0.5);
  font-size: 0.75rem;
}

/* ============================================================
   PIE CHART SVG ANIMATION OVERLAY
   ============================================================ */
.pie-charts-anim {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 1.5rem;
  pointer-events: none;
}

.pie-chart-svg {
  width: 100px;
  height: 100px;
  filter: drop-shadow(0 0 12px rgba(var(--primary-rgb), 0.4));
  overflow: visible;
}

.pie-chart-svg.pie-sm {
  width: 70px;
  height: 70px;
}

.pie-bg {
  fill: none;
  stroke: rgba(var(--primary-rgb), 0.12);
  stroke-width: 8;
}

.pie-fill {
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
  transform-origin: center;
  transform: rotate(-90deg);
}

.pie-fill-1 {
  stroke: url(#pieGrad1);
  stroke: rgba(var(--primary-rgb), 0.8);
  animation: pie-draw 3s ease-in-out infinite alternate;
}

.pie-fill-2 {
  stroke: rgba(var(--primary-rgb), 0.6);
  animation: pie-draw 3s ease-in-out 1.5s infinite alternate;
}

@keyframes pie-draw {
  0% {
    stroke-dasharray: 20 80;
    opacity: 0.7;
  }
  100% {
    stroke-dasharray: 80 20;
    opacity: 1;
  }
}

.pie-label {
  fill: var(--primary-400);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  text-anchor: middle;
  dominant-baseline: middle;
}

/* Responsive for carousel */
@media (max-width: 1024px) {
  .outcome-card {
    flex: 0 0 calc(33.33% - 1rem);
  }
  .outcome-card.is-active {
    flex: 0 0 calc(40% - 1rem);
  }
}

@media (max-width: 768px) {
  .outcomes-carousel-wrapper {
    margin: 0;
  }
  .outcome-card.is-far {
    display: none;
  }
}

/* ============================================================
   LANGUAGE TOGGLE BUTTON
   ============================================================ */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(var(--primary-rgb), 0.1);
  border: 1px solid rgba(var(--primary-rgb), 0.3);
  color: var(--primary-400);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.4rem 0.85rem;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.lang-toggle:hover {
  background: rgba(var(--primary-rgb), 0.2);
  border-color: rgba(var(--primary-rgb), 0.6);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.2);
}

/* ============================================================
   MOBILE / DESKTOP FLIP HINTS — show the right one
   ============================================================ */

/* Desktop: show "Pasa el cursor", hide "Toca para voltear" */
.flip-hint-mobile {
  display: none;
}

.flip-hint-desktop {
  display: inline;
}

/* Services section desc: show desktop text, hide mobile text by default */
.services-desc-mobile {
  display: none;
}

.services-desc-desktop {
  display: block;
}

/* ============================================================
   MOBILE OVERRIDES — Flip hints + Services desc + Carousel
   ============================================================ */
@media (max-width: 767px) {
  /* Show mobile flip hint, hide desktop one */
  .flip-hint-desktop {
    display: none !important;
  }
  .flip-hint-mobile {
    display: inline !important;
    font-size: 0.75rem;
    color: var(--primary-400);
    opacity: 0.9;
    font-weight: 600;
    letter-spacing: 0.02em;
    animation: pulse-lang 2s ease-in-out infinite;
  }

  /* Show mobile services description, hide desktop one */
  .services-desc-desktop {
    display: none !important;
  }
  .services-desc-mobile {
    display: block !important;
  }

  /* ---- Improved Mobile Carousel (¿Qué puedes esperar?) ---- */
  .outcomes-section {
    padding-bottom: 3rem;
  }

  .outcomes-carousel-wrapper {
    gap: 0.5rem;
    margin: 0 -0.5rem;
    padding: 1rem 0.5rem;
  }

  /* Make the carousel arrows smaller and still visible */
  .carousel-arrow {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
  }

  /* Bigger active card on mobile for readability — sizes controlled by JS */

  /* Taller image area on active card for mobile */
  .outcome-card.is-active .outcome-img-wrap {
    height: 220px;
  }

  /* Better text size */
  .outcome-card.is-active .outcome-body h3 {
    font-size: 1.1rem;
  }
  .outcome-card.is-active .outcome-body p {
    font-size: 0.9rem;
    line-height: 1.65;
  }

  /* Fix the track height for mobile */
  #outcomesTrack {
    height: 430px !important;
  }
}

/* Tablet fixes for carousel */
@media (max-width: 1024px) and (min-width: 768px) {
  .outcome-card.is-active {
    flex: 0 0 calc(45% - 1rem) !important;
  }
  .outcome-card.is-side {
    flex: 0 0 calc(24% - 1rem) !important;
  }
}

/* ---- Pulsing animation hint for mobile flip ---- */
@keyframes pulse-lang {
  0%, 100% { opacity: 0.75; }
  50% { opacity: 1; }
}