/* =====================================================
   STATIKA DIGITAL - Premium Dark Mode Stylesheet
   Colores: Primario #ef72fd (Magenta) | Secundario #01f9fe (Cian)
   ===================================================== */

/* --- 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&family=JetBrains+Mono:wght@400;500&display=swap');

/* --- CSS Variables --- */
:root {
  /* Fondos */
  --bg-primary: #000000;
  --bg-secondary: #09090B;
  --bg-tertiary: #18181B;

  /* Color primario - Magenta */
  --primary-50: #fdf0ff;
  --primary-100: #f9d0fe;
  --primary-200: #f3a2fc;
  --primary-300: #ec72f9;
  --primary-400: #e84ef6;
  --primary-500: #ef72fd;
  --primary-600: #d44de0;
  --primary-700: #a838b0;
  --primary-800: #7a2580;
  --primary-900: #4d1550;
  --primary-rgb: 239, 114, 253;

  /* Color secundario - Cian */
  --secondary-500: #01f9fe;
  --secondary-400: #33faff;
  --secondary-600: #00d4d8;
  --secondary-rgb: 1, 249, 254;

  /* Textos */
  --text-primary: #FFFFFF;
  --text-secondary: #E4E4E7;
  --text-tertiary: #A1A1AA;
  --text-quaternary: #71717A;

  /* Acentos */
  --success: #22C55E;
  --info: #3B82F6;
  --warning: #F59E0B;

  /* Tipografía */
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing */
  --section-padding: 120px 0;
  --container-max: 1280px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.7;
}

/* --- Container --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Typography Scale --- */
h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
}

h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
}

p {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
}

.body-large {
  font-size: 1.25rem;
  line-height: 1.6;
}

.label-text {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* --- Gradient Text --- */
.gradient-text {
  background: linear-gradient(135deg, var(--primary-500) 0%, var(--secondary-500) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glow-text {
  text-shadow:
    0 0 10px rgba(var(--primary-rgb), 0.8),
    0 0 20px rgba(var(--primary-rgb), 0.6),
    0 0 40px rgba(var(--primary-rgb), 0.4);
}

/* =====================================================
   GLASSMORPHISM CARD
   ===================================================== */
.glass-card {
  background: linear-gradient(135deg,
      rgba(var(--primary-rgb), 0.06) 0%,
      rgba(var(--secondary-rgb), 0.04) 50%,
      rgba(var(--primary-rgb), 0.06) 100%);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(var(--primary-rgb), 0.15);
  border-radius: 24px;
  padding: 32px;
  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 0 rgba(255, 255, 255, 0.05);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  border-color: rgba(var(--primary-rgb), 0.35);
  box-shadow:
    0 25px 50px -12px rgba(var(--primary-rgb), 0.25),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.08);
  transform: translateY(-4px);
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-500) 40%, var(--secondary-500) 100%);
  background-size: 200% 200%;
  animation: gradient-shift 4s ease infinite;
  color: #000000;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 16px 32px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow:
    0 0 0 1px rgba(var(--primary-rgb), 0.5),
    0 4px 24px rgba(var(--primary-rgb), 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 0 0 2px rgba(var(--primary-rgb), 0.8),
    0 8px 40px rgba(var(--primary-rgb), 0.5),
    0 0 60px rgba(var(--secondary-rgb), 0.3);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: 15px 31px;
  border-radius: 12px;
  border: 1px solid rgba(var(--primary-rgb), 0.4);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  border-color: var(--primary-500);
  background: rgba(var(--primary-rgb), 0.08);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.3);
}

.btn-glow {
  animation: pulse-glow 3s ease-in-out infinite;
}

/* =====================================================
   NAVBAR
   ===================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.3s 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.12);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
  padding: 14px 0;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.navbar-logo img {
  height: 44px;
  width: auto;
}

.navbar-logo-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-link {
  text-decoration: none;
  color: var(--text-tertiary);
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-500), var(--secondary-500));
  border-radius: 2px;
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-cta {
  background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
  color: #000;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 10px;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.5);
}

.nav-cta::after {
  display: none;
}

/* --- Mobile Menu --- */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary-500);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.97);
  backdrop-filter: blur(20px);
  z-index: 1010;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.mobile-nav.active {
  display: flex;
}

.mobile-nav .nav-link {
  font-size: 1.5rem;
  color: var(--text-secondary);
}

.mobile-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero-bg-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(var(--primary-rgb), 0.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(var(--secondary-rgb), 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(var(--primary-rgb), 0.08);
  border: 1px solid rgba(var(--primary-rgb), 0.25);
  border-radius: 100px;
  padding: 6px 16px;
  margin-bottom: 24px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  animation: fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}

.hero-label-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-500);
  animation: blink 2s ease-in-out infinite;
}

.hero-title {
  margin-bottom: 20px;
  animation: fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
  opacity: 0;
}

.hero-subtitle {
  color: var(--text-tertiary);
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 520px;
  animation: fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
  opacity: 0;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.45s forwards;
  opacity: 0;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  animation: fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
  opacity: 0;
}

.hero-stat-value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

.hero-stat-label {
  font-size: 0.8rem;
  color: var(--text-quaternary);
  display: block;
  margin-top: 2px;
}

/* --- Hero Visual --- */
.hero-visual-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fade-in-rotate 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}

.hero-image {
  width: 100%;
  max-width: 560px;
  border-radius: 32px;
  animation: float 6s ease-in-out infinite;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 40px rgba(var(--primary-rgb), 0.4)) drop-shadow(0 0 80px rgba(var(--secondary-rgb), 0.2));
}

.hero-glow {
  position: absolute;
  width: 70%;
  height: 70%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(var(--primary-rgb), 0.2) 0%, transparent 70%);
  filter: blur(60px);
  z-index: 1;
}

.hero-glow-2 {
  position: absolute;
  width: 50%;
  height: 50%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(var(--secondary-rgb), 0.15) 0%, transparent 70%);
  filter: blur(50px);
  z-index: 1;
  top: 60%;
  right: 0;
}

/* --- Particles --- */
.particles-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--primary-500);
  opacity: 0.5;
  animation: float-particle 20s infinite ease-in-out;
}

.particle:nth-child(even) {
  background: var(--secondary-500);
  width: 2px;
  height: 2px;
}

/* =====================================================
   SOCIAL PROOF STRIP
   ===================================================== */
.social-proof {
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.social-proof-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.social-proof-text {
  color: var(--text-quaternary);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  flex-shrink: 0;
}

.tech-stack {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.tech-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-tertiary);
  transition: all 0.3s ease;
  cursor: default;
}

.tech-badge:hover {
  border-color: rgba(var(--primary-rgb), 0.35);
  color: var(--primary-400);
  background: rgba(var(--primary-rgb), 0.06);
}

.tech-badge .tech-icon {
  font-size: 1rem;
}

/* =====================================================
   SECTION HEADERS
   ===================================================== */
.section-header {
  text-align: center;
  margin-bottom: 72px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(var(--primary-rgb), 0.08);
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  border-radius: 100px;
  padding: 5px 14px;
  margin-bottom: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-400);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.section-title {
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-tertiary);
  max-width: 560px;
  margin: 0 auto;
}

/* =====================================================
   SERVICES - FLIP CARDS
   ===================================================== */
.services {
  padding: var(--section-padding);
  background: var(--bg-secondary);
  position: relative;
}

.services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(600px, 100%);
  height: 300px;
  background: radial-gradient(ellipse, rgba(var(--primary-rgb), 0.07) 0%, transparent 70%);
  pointer-events: none;
  overflow: hidden;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Flip Card */
.service-card-flip {
  perspective: 1200px;
  height: 340px;
}

.service-card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 24px;
}

.service-card-flip:hover .service-card-inner {
  transform: rotateY(180deg);
}

.service-card-front,
.service-card-back {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
}

/* Front face */
.service-card-front {
  background: var(--bg-tertiary);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.service-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card-flip:hover .service-image {
  transform: scale(1.05);
}

.service-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
}

.service-title-front {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  font-family: var(--font-display);
}

/* CSS Fallback for services without images */
.service-card-front .service-icon-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 3.5rem;
  background: linear-gradient(135deg, var(--bg-tertiary) 0%, rgba(var(--primary-rgb), 0.08) 100%);
  position: relative;
}

.service-card-front .service-icon-fallback::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(var(--primary-rgb), 0.12) 0%, transparent 70%);
}

/* Back face */
.service-card-back {
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1) 0%, rgba(var(--secondary-rgb), 0.06) 100%);
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  backdrop-filter: blur(20px);
}

.service-title-back {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  font-family: var(--font-display);
  background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.service-description {
  font-size: 0.9rem;
  color: var(--text-tertiary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.service-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feature-tag {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(var(--primary-rgb), 0.12);
  border: 1px solid rgba(var(--primary-rgb), 0.25);
  color: var(--primary-400);
}

.feature-tag.cyan {
  background: rgba(var(--secondary-rgb), 0.1);
  border-color: rgba(var(--secondary-rgb), 0.25);
  color: var(--secondary-400);
}

/* Mobile tap indicator */
.tap-hint {
  display: none;
  position: absolute;
  bottom: 12px;
  right: 12px;
  font-size: 0.65rem;
  color: var(--text-quaternary);
  background: rgba(0, 0, 0, 0.6);
  padding: 3px 8px;
  border-radius: 6px;
}

/* =====================================================
   SHOWCASE / METRICS
   ===================================================== */
.showcase {
  padding: var(--section-padding);
  background: var(--bg-primary);
  position: relative;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 80px;
}

.metric-card {
  text-align: center;
  padding: 40px 24px;
}

.metric-value {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: 8px;
}

.metric-label {
  font-size: 0.9rem;
  color: var(--text-tertiary);
}

/* Dashboard Preview */
.dashboard-preview {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(var(--primary-rgb), 0.15);
  box-shadow:
    0 0 60px rgba(var(--primary-rgb), 0.1),
    0 0 120px rgba(var(--secondary-rgb), 0.06);
  position: relative;
}

.dashboard-header {
  background: var(--bg-tertiary);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dashboard-dots {
  display: flex;
  gap: 6px;
}

.dashboard-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dashboard-dot.red {
  background: #ff5f57;
}

.dashboard-dot.yellow {
  background: #ffbd2e;
}

.dashboard-dot.green {
  background: #28c840;
}

.dashboard-title-bar {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  height: 24px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-size: 0.75rem;
  color: var(--text-quaternary);
}

.dashboard-body {
  background: var(--bg-secondary);
  padding: 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.dashboard-card {
  background: var(--bg-tertiary);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.dashboard-card-title {
  font-size: 0.75rem;
  color: var(--text-quaternary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.dashboard-card-value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.dashboard-bar-wrap {
  height: 6px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 3px;
  overflow: hidden;
}

.dashboard-bar {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--primary-500), var(--secondary-500));
  transform-origin: left;
  animation: grow-bar 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* =====================================================
   TESTIMONIALS
   ===================================================== */
.testimonials {
  padding: var(--section-padding);
  background: var(--bg-secondary);
  position: relative;
}

.testimonials::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(var(--secondary-rgb), 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonial-card {
  padding: 36px;
  position: relative;
}

.testimonial-quote {
  font-size: 3rem;
  line-height: 1;
  font-family: Georgia, serif;
  color: var(--primary-500);
  margin-bottom: 16px;
  opacity: 0.7;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
}

.star {
  color: #f59e0b;
  font-size: 0.9rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: #000;
  flex-shrink: 0;
  border: 2px solid rgba(var(--primary-rgb), 0.4);
}

.testimonial-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.testimonial-role {
  font-size: 0.8rem;
  color: var(--text-quaternary);
}

/* =====================================================
   PROCESS / HOW IT WORKS
   ===================================================== */
.process {
  padding: var(--section-padding);
  background: var(--bg-primary);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: calc(12.5% + 28px);
  right: calc(12.5% + 28px);
  height: 1px;
  background: linear-gradient(90deg, var(--primary-500), var(--secondary-500));
  opacity: 0.3;
  z-index: 0;
}

.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.15), rgba(var(--secondary-rgb), 0.1));
  border: 1px solid rgba(var(--primary-rgb), 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  background-clip: text;
  position: relative;
}

.step-number-inner {
  background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
}

.step-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  font-family: var(--font-display);
}

.step-desc {
  font-size: 0.85rem;
  color: var(--text-quaternary);
  line-height: 1.6;
}

/* =====================================================
   ABOUT / EMPRESA
   ===================================================== */
.about {
  padding: var(--section-padding);
  background: var(--bg-secondary);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 72px;
  align-items: center;
}

.about-image-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.about-logo-circle {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.15), rgba(var(--secondary-rgb), 0.1));
  border: 2px solid rgba(var(--primary-rgb), 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 60px rgba(var(--primary-rgb), 0.2),
    0 0 120px rgba(var(--secondary-rgb), 0.1);
  animation: float 8s ease-in-out infinite;
}

.about-logo-circle img {
  width: 70%;
  height: 70%;
  object-fit: contain;
}

.about-ring {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 1px dashed rgba(var(--primary-rgb), 0.2);
  animation: spin-slow 20s linear infinite;
}

.about-label {
  margin-bottom: 12px;
}

.about-title {
  margin-bottom: 20px;
}

.about-description {
  color: var(--text-tertiary);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-values {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.about-value-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(var(--primary-rgb), 0.08);
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-400);
}

/* =====================================================
   CTA FINAL
   ===================================================== */
.cta-section {
  padding: 100px 0;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(800px, 100%);
  height: 400px;
  background: radial-gradient(ellipse, rgba(var(--primary-rgb), 0.15) 0%, rgba(var(--secondary-rgb), 0.08) 40%, transparent 70%);
  pointer-events: none;
}

.cta-label {
  margin: 0 auto 20px;
}

.cta-title {
  margin-bottom: 16px;
}

.cta-subtitle {
  font-size: 1.1rem;
  color: var(--text-tertiary);
  max-width: 480px;
  margin: 0 auto 40px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-note {
  margin-top: 20px;
  font-size: 0.8rem;
  color: var(--text-quaternary);
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand img {
  height: 40px;
  margin-bottom: 16px;
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

.footer-brand-desc {
  font-size: 0.875rem;
  color: var(--text-quaternary);
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 280px;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(var(--primary-rgb), 0.08);
  border: 1px solid rgba(var(--primary-rgb), 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: rgba(var(--primary-rgb), 0.2);
  border-color: var(--primary-500);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
}

.footer-col-title {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-quaternary);
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  text-decoration: none;
  font-size: 0.875rem;
  color: var(--text-tertiary);
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary-400);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copyright {
  font-size: 0.8rem;
  color: var(--text-quaternary);
}

.footer-made {
  font-size: 0.8rem;
  color: var(--text-quaternary);
}

.footer-made span {
  background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

/* =====================================================
   SCROLL REVEAL
   ===================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =====================================================
   ANIMATIONS
   ===================================================== */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scale-in {
  from {
    opacity: 0;
    transform: scale(0.8);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fade-in-rotate {
  from {
    opacity: 0;
    transform: perspective(800px) rotateY(-15deg) translateY(30px);
  }

  to {
    opacity: 1;
    transform: perspective(800px) rotateY(0deg) translateY(0);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  25% {
    transform: translateY(-16px) rotate(1.5deg);
  }

  50% {
    transform: translateY(-8px) rotate(-1.5deg);
  }

  75% {
    transform: translateY(-22px) rotate(1deg);
  }
}

@keyframes float-particle {

  0%,
  100% {
    transform: translate(0, 0);
    opacity: 0.3;
  }

  25% {
    transform: translate(80px, -120px);
    opacity: 0.7;
  }

  50% {
    transform: translate(-40px, -200px);
    opacity: 0.5;
  }

  75% {
    transform: translate(-80px, -80px);
    opacity: 0.7;
  }
}

@keyframes gradient-shift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

@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(--secondary-rgb), 0.3);
  }
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes grow-bar {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

/* =====================================================
   RESPONSIVE BREAKPOINTS
   ===================================================== */
@media (max-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-steps::before {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-ctas {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-visual-wrap {
    display: none;
  }

  .about-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .about-values {
    justify-content: center;
  }

  .social-proof-inner {
    justify-content: center;
  }
}

@media (max-width: 767px) {
  :root {
    --section-padding: 80px 0;
  }

  h1 {
    font-size: 2.4rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .nav-links {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card-flip {
    height: 300px;
    /* Snappy tap response, no 300ms delay */
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    cursor: pointer;
  }

  /* Let taps pass through image/overlay to the parent wrapper */
  .service-image,
  .service-overlay,
  .service-card-front {
    pointer-events: none;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-body {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .tap-hint {
    display: block;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
  }

  /* Flip via click on mobile */
  .service-card-flip.flipped .service-card-inner {
    transform: rotateY(180deg);
  }

  .service-card-flip:hover .service-card-inner {
    transform: none;
  }

  /* Safety net: clip any element that bleeds past the viewport */
  .hero,
  .social-proof,
  .services,
  .showcase,
  .testimonials,
  .process,
  .about,
  .cta-section,
  .footer {
    overflow-x: hidden;
  }

  /* Contain about ring on mobile */
  .about-ring {
    width: min(280px, 90vw);
    height: min(280px, 90vw);
  }

  /* Wrap social proof text on very narrow screens */
  .social-proof-text {
    white-space: normal;
  }
}

@media (min-width: 1440px) {
  .container {
    padding: 0 32px;
  }

  :root {
    --container-max: 1366px;
  }
}