/* ============================================================
   DIGLOX — Landing Page Design System & Styles
   ============================================================ */

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

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Colors — Primary */
  --cyan: #06B6D4;
  --blue: #3B82F6;
  --gradient-primary: linear-gradient(135deg, var(--cyan), var(--blue));
  --gradient-hero: linear-gradient(160deg, #0F172A 0%, #1E293B 50%, #0F172A 100%);
  --gradient-cta: linear-gradient(160deg, #0B1120 0%, #162032 50%, #0B1120 100%);

  /* Colors — Dark palette */
  --dark-900: #0B1120;
  --dark-800: #0F172A;
  --dark-700: #1E293B;
  --dark-600: #334155;

  /* Colors — Light palette */
  --light-50: #F8FAFC;
  --light-100: #F1F5F9;
  --light-200: #E2E8F0;
  --light-300: #CBD5E1;
  --light-400: #94A3B8;
  --light-500: #64748B;
  --light-600: #475569;
  --light-700: #334155;

  /* Colors — Accent / UI */
  --success: #10B981;
  --warning: #F59E0B;
  --error: #EF4444;
  --glow-cyan: rgba(6, 182, 212, 0.25);
  --glow-blue: rgba(59, 130, 246, 0.20);

  /* Typography */
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Sizing */
  --max-width: 1200px;
  --nav-height: 110px;

  /* Borders & Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
  --shadow-glow: 0 0 40px var(--glow-cyan), 0 0 80px var(--glow-blue);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 200ms var(--ease-out);
  --transition-base: 350ms var(--ease-out);
  --transition-slow: 600ms var(--ease-out);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--light-400); /* Dark theme text */
  background-color: var(--dark-900); /* Dark Background */
  overflow-x: hidden;
}

.canvas-3d {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  opacity: 0.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul, ol {
  list-style: none;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p { max-width: 680px; }

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

/* ---------- Layout Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-5xl) 0;
}

.section--dark {
  background: var(--gradient-hero); /* We still keep this gradient here */
  color: var(--light-100);
}

.section--dark p,
.section--dark .section__subtitle {
  color: var(--light-400);
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
  background: rgba(6, 182, 212, 0.12); /* Dark adapted */
  color: var(--cyan);
  border: 1px solid rgba(6, 182, 212, 0.25);
}

.section__title {
  margin-bottom: var(--space-md);
  color: #fff; /* White title for all sections */
}

.section__subtitle {
  font-size: 1.1rem;
  color: var(--light-400); /* Dark theme subtitle */
  max-width: 600px;
  margin: 0 auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 14px 32px;
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn--primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.35);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(6, 182, 212, 0.5);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--outline {
  background: rgba(255,255,255,0.03);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.25);
}

.btn--outline:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.45);
  transform: translateY(-2px);
}

.btn--large {
  padding: 18px 40px;
  font-size: 1.05rem;
}

.btn__icon {
  font-size: 1.2em;
  transition: transform var(--transition-fast);
}

.btn:hover .btn__icon {
  transform: translateX(3px);
}

/* ---------- Navigation ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: all var(--transition-base);
}

.navbar.scrolled {
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 4px 30px rgba(0,0,0,0.2);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
}

.navbar__brand-img {
  height: 90px;
  width: auto;
  /* La magia para la imagen que enviaste: vuelve transparente el fondo negro manteniendo el resplandor */
  mix-blend-mode: screen;
  transition: transform var(--transition-fast);
  /* Escala visual para romper los moldes de los márgenes vacíos de la imagen */
  transform: scale(2.2);
  transform-origin: left center;
}

.navbar__brand-img:hover {
  transform: scale(2.3);
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.navbar__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--light-300);
  transition: color var(--transition-fast);
  position: relative;
}

.navbar__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 1px;
  transition: width var(--transition-base);
}

.navbar__link:hover {
  color: #fff;
}

.navbar__link:hover::after {
  width: 100%;
}

.navbar__cta {
  padding: 10px 24px;
  font-size: 0.85rem;
}

.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.navbar__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all var(--transition-base);
}

.navbar__hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.navbar__hamburger.active span:nth-child(2) {
  opacity: 0;
}

.navbar__hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero); /* Dark gradient for hero */
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Oscurecimiento lateral para proteger el texto manteniendo la visibilidad de la imagen a la derecha */
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--dark-900) 20%, transparent 70%);
  z-index: 2;
  pointer-events: none;
}

.hero__bg-image {
  position: absolute;
  right: -12%; /* Un poco más hacia el centro para que se vea mejor */
  top: 50%;
  transform: translateY(-50%);
  width: 62%; /* Un poco más grande */
  max-width: 900px;
  opacity: 0.48; /* Mucho más visible (antes 0.28) */
  mask-image: linear-gradient(to left, black 20%, transparent 90%);
  -webkit-mask-image: linear-gradient(to left, black 20%, transparent 90%);
  z-index: 1;
}

.hero__glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  pointer-events: none;
}

.hero__glow--cyan {
  background: var(--cyan);
  top: 10%;
  left: 20%;
}

.hero__glow--blue {
  background: var(--blue);
  bottom: 10%;
  right: 15%;
  opacity: 0.1;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin-top: -12vh;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.25);
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  letter-spacing: 0.03em;
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.5); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(6, 182, 212, 0); }
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-md);
  color: #fff;
}

/* ---------- HERO PROMO (High Impact Subtitle) ---------- */
.hero__promo {
  margin-bottom: var(--space-2xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  max-width: 750px;
}

.hero__promo-main {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  color: var(--light-100);
  line-height: 1.6;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.hero__promo-main strong {
  color: #fff;
  font-weight: 700;
  background: rgba(255,255,255,0.05);
  padding: 0 4px;
  border-radius: 4px;
}

.hero__promo-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-md);
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2), inset 0 0 20px rgba(255,255,255,0.02);
  width: fit-content;
  transition: all var(--transition-base);
}

.hero__promo-badge:hover {
  transform: translateY(-2px);
  border-color: rgba(6, 182, 212, 0.3);
  background: rgba(255, 255, 255, 0.05);
}

.hero__promo-icon {
  font-size: 1.2rem;
  filter: drop-shadow(0 0 8px var(--cyan));
}

.hero__promo-text {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--light-200);
}

.hero__promo-text .text-gradient-ia {
  font-weight: 700;
  background: linear-gradient(135deg, #fff 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 10px rgba(6, 182, 212, 0.4));
}

.hero__actions {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
}

.hero__trust {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.hero__trust-item {
  display: flex;
  flex-direction: column;
}

.hero__trust-number {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
}

.hero__trust-label {
  font-size: 0.78rem;
  color: var(--light-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- PROBLEM SECTION ---------- */
.problem {
  background: transparent; /* Transparent for 3D bg */
}

.problem__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.problem__card {
  position: relative;
  padding: var(--space-2xl);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.03); /* Glass dark */
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  transition: all var(--transition-base);
  overflow: hidden;
}

.problem__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.problem__card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.05); /* Lighter on hover */
  border-color: rgba(6, 182, 212, 0.4);
}

.problem__card:hover::before {
  opacity: 1;
}

.problem__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(239, 68, 68, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  font-size: 1.5rem;
}

.problem__card-title {
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: var(--space-sm);
}

.problem__card-text {
  font-size: 0.95rem;
  color: var(--light-400); /* Dark theme */
  line-height: 1.65;
}

/* ---------- SOLUTION SECTION ---------- */
.solution {
  background: transparent;
}

.solution__wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.solution__visual {
  position: relative;
}

.solution__before-after {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.solution__state {
  padding: var(--space-2xl);
  border-radius: var(--radius-lg);
  position: relative;
  backdrop-filter: blur(10px);
}

.solution__state--before {
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.15);
}

.solution__state--after {
  background: rgba(6, 182, 212, 0.08); /* More glow feeling */
  color: #fff;
  border: 1px solid rgba(6, 182, 212, 0.3);
  box-shadow: var(--shadow-glow);
}

.solution__state-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
}

.solution__state--before .solution__state-label {
  background: rgba(239, 68, 68, 0.15);
  color: var(--error);
}

.solution__state--after .solution__state-label {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
}

.solution__state-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.solution__state-list li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.95rem;
}

.solution__state--before .solution__state-list li {
  color: var(--light-400); /* Dark theme */
}

.solution__state--after .solution__state-list li {
  color: #fff;
}

.solution__content-title {
  color: #fff;
  margin-bottom: var(--space-lg);
}

.solution__content-text {
  color: var(--light-400);
  margin-bottom: var(--space-xl);
  font-size: 1.05rem;
  line-height: 1.75;
}

.solution__features {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.solution__feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.solution__feature-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(6, 182, 212, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  font-size: 1.1rem;
}

.solution__feature-label {
  font-weight: 600;
  color: #fff;
  font-size: 0.95rem;
}

.solution__feature-desc {
  font-size: 0.88rem;
  color: var(--light-400); /* Dark theme */
}

/* ---------- SERVICES ---------- */
.services {
  background: transparent;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

.service-card {
  position: relative;
  background: rgba(255,255,255,0.03); /* Glass dark */
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  transition: all var(--transition-base);
}

.service-card:hover {
  transform: translateY(-6px);
  background: rgba(255,255,255,0.05);
  border-color: rgba(6, 182, 212, 0.4);
}

.service-card__visual {
  width: 100%;
  height: 220px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  background: rgba(15, 23, 42, 0.5); /* Deep dark base */
}

.visual-glow {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.35;
  transition: all var(--transition-slow);
}

.service-card:hover .visual-glow {
  transform: scale(1.5);
  opacity: 0.6;
}

.service-card__visual--automation .visual-glow { background: var(--cyan); }
.service-card__visual--crm .visual-glow { background: var(--blue); }
.service-card__visual--invoice .visual-glow { background: var(--success); }
.service-card__visual--ai .visual-glow { background: #8B5CF6; /* Purple AI */ }

.visual-icon {
  width: 72px;
  height: 72px;
  color: #fff;
  z-index: 1;
  opacity: 0.85;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.6));
  transition: transform var(--transition-base);
}

.service-card:hover .visual-icon {
  transform: scale(1.15) translateY(-5px);
  opacity: 1;
}

.service-card__body {
  padding: var(--space-xl) var(--space-2xl) var(--space-2xl);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(6, 182, 212, 0.15); /* More vibrant internally */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: var(--space-md);
  margin-top: calc(-1 * var(--space-3xl));
  position: relative;
  border: 3px solid var(--dark-800); /* Match dark background overlay somewhat */
  box-shadow: var(--shadow-sm);
}

.service-card__title {
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: var(--space-sm);
}

.service-card__text {
  font-size: 0.92rem;
  color: var(--light-400); /* Dark theme */
  line-height: 1.65;
}

.service-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: var(--space-md);
}

.service-card__tag {
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.08); /* Dark Glass Tag */
  color: var(--light-300);
  font-size: 0.75rem;
  font-weight: 500;
}

/* ---------- BENEFITS ---------- */
.benefits {
  background: var(--gradient-hero);
  color: #fff;
  overflow: hidden;
}

.benefits__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

.benefit-card {
  text-align: center;
  padding: var(--space-2xl);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  transition: all var(--transition-base);
}

.benefit-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(6, 182, 212, 0.3);
  transform: translateY(-4px);
}

.benefit-card__icon {
  font-size: 2rem;
  margin-bottom: var(--space-md);
}

.benefit-card__number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-xs);
}

.benefit-card__label {
  font-size: 0.95rem;
  color: var(--light-300);
  font-weight: 500;
}

.benefit-card__desc {
  font-size: 0.82rem;
  color: var(--light-500);
  margin-top: var(--space-sm);
  line-height: 1.5;
}

/* ---------- PROCESS ---------- */
.process {
  background: transparent;
}

.process__timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  position: relative;
}

.process__timeline::before {
  content: '';
  position: absolute;
  top: 50px;
  left: calc(16.66% + 20px);
  right: calc(16.66% + 20px);
  height: 2px;
  background: var(--gradient-primary);
  opacity: 0.15; /* Dimmer for dark mode */
}

.process__step {
  text-align: center;
  position: relative;
}

.process__step-number {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0 auto var(--space-xl);
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.3);
}

.process__step-title {
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: var(--space-sm);
}

.process__step-text {
  font-size: 0.92rem;
  color: var(--light-400); /* Dark theme */
  max-width: 280px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ---------- TESTIMONIALS ---------- */
.testimonials {
  background: transparent;
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.testimonial-card {
  background: rgba(255,255,255,0.03); /* Glass dark */
  padding: var(--space-2xl);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.08); /* Dark boundaries */
  backdrop-filter: blur(10px);
  transition: all var(--transition-base);
  position: relative;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.05); /* Hover highlight */
  border-color: rgba(6, 182, 212, 0.3);
}

.testimonial-card__stars {
  display: flex;
  gap: 2px;
  margin-bottom: var(--space-md);
  color: var(--warning);
  font-size: 0.9rem;
}

.testimonial-card__text {
  font-size: 0.95rem;
  color: var(--light-300); /* Lighter on dark bg */
  line-height: 1.7;
  margin-bottom: var(--space-xl);
  font-style: italic;
  position: relative;
}

.testimonial-card__text::before {
  content: '"';
  font-size: 3rem;
  font-family: Georgia, serif;
  color: var(--cyan);
  opacity: 0.3;
  position: absolute;
  top: -16px;
  left: -4px;
  line-height: 1;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.testimonial-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
}

.testimonial-card__name {
  font-weight: 600;
  color: #fff;
  font-size: 0.92rem;
}

.testimonial-card__role {
  font-size: 0.8rem;
  color: var(--light-500);
}

.testimonial-card__metric {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.08);
  color: var(--success);
  font-size: 0.78rem;
  font-weight: 600;
  margin-top: var(--space-sm);
}

/* ---------- FINAL CTA ---------- */
.cta-final {
  background: var(--gradient-cta);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-final__glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.12;
  pointer-events: none;
}

.cta-final__glow--1 {
  background: var(--cyan);
  top: -20%;
  left: 30%;
}

.cta-final__glow--2 {
  background: var(--blue);
  bottom: -20%;
  right: 20%;
}

.cta-final__content {
  position: relative;
  z-index: 1;
}

.cta-final__title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: var(--space-lg);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-final__subtitle {
  font-size: 1.1rem;
  color: var(--light-400);
  max-width: 550px;
  margin: 0 auto var(--space-2xl);
}

.cta-final__form-container {
  max-width: 440px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.03);
  padding: var(--space-2xl);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.form-group {
  margin-bottom: var(--space-md);
}

.phone-group {
  display: flex;
  gap: var(--space-sm);
}

.form-select {
  width: 125px;
  flex-shrink: 0;
  padding: 16px 12px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.2); 
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.form-select:focus {
  outline: none;
  border-color: var(--cyan);
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2);
}

.form-select option {
  background: var(--dark-800);
  color: #fff;
}

.lead-form input {
  width: 100%;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.2); 
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.lead-form input:focus {
  outline: none;
  border-color: var(--cyan);
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2);
}

.lead-form input::placeholder {
  color: var(--light-500);
}

.w-100 {
  width: 100%;
  justify-content: center;
}

.cta-final__note {
  margin-top: var(--space-xl);
  font-size: 0.82rem;
  color: var(--light-500);
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--dark-900); 
  color: var(--light-400);
  /* Padding extra para asegurar que el botón de WhatsApp no cubra el texto */
  padding: var(--space-3xl) 0 100px;
}

.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer__brand-img {
  height: 100px;
  width: auto;
  margin-bottom: var(--space-md);
  mix-blend-mode: screen;
  transform: scale(2.2);
  transform-origin: left center;
}

.footer__brand-desc {
  font-size: 0.88rem;
  color: var(--light-500);
  line-height: 1.65;
  max-width: 300px;
}

.footer__col-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--light-300);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-lg);
}

.footer__link {
  display: block;
  font-size: 0.88rem;
  color: var(--light-500);
  padding: var(--space-xs) 0;
  transition: color var(--transition-fast);
}

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

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-xl);
  font-size: 0.82rem;
  color: var(--light-600);
  flex-wrap: wrap;
  gap: var(--space-md);
}

/* ---------- WHATSAPP FLOATING BUTTON ---------- */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 30px;
  right: 30px;
  background-color: #25D366;
  color: #FFF;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 9999;
  transition: all var(--transition-base);
}

.whatsapp-float:hover {
  background-color: #128C7E;
  color: #FFF;
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

/* ---------- SCROLL ANIMATIONS ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

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

.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }
.reveal--delay-4 { transition-delay: 0.4s; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .benefits__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }

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

  /* Ajuste hero para tablets */
  .hero__bg-image {
    width: 70%;
    right: -25%;
    opacity: 0.25; /* Menos opacidad para no interferir con el texto sentado */
  }
}

@media (max-width: 768px) {
  .section {
    padding: var(--space-3xl) 0;
  }

  /* Navbar mobile */
  .navbar__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--dark-800);
    flex-direction: column;
    justify-content: center;
    gap: var(--space-xl);
    transition: right var(--transition-base);
    box-shadow: -10px 0 40px rgba(0,0,0,0.3);
  }

  .navbar__links.open {
    right: 0;
  }

  .navbar__hamburger {
    display: flex;
  }

  .navbar__cta {
    display: none;
  }

  /* Hero */
  .hero {
    min-height: auto;
    padding: calc(var(--nav-height) + var(--space-xl)) 0 var(--space-3xl);
    text-align: center;
  }
  
  .hero__content {
    margin-top: 0; 
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero__promo {
    align-items: center;
    max-width: 100%;
  }

  .hero__promo-main {
    font-size: 1.1rem;
  }

  .hero__promo-badge {
    padding: 10px 16px;
    flex-direction: column;
    text-align: center;
    gap: var(--space-xs);
  }

  .hero__bg-image {
    display: none;
  }

  .hero__bg::after {
    background: radial-gradient(circle at top, rgba(11, 17, 32, 0.6) 0%, var(--dark-900) 80%);
  }

  .hero__title {
    font-size: clamp(1.65rem, 8vw, 2.8rem);
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__trust {
    flex-direction: column;
    gap: var(--space-lg);
    border: none;
    background: rgba(255, 255, 255, 0.03);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    width: 100%;
  }

  /* Grids */
  .problem__grid,
  .services__grid,
  .testimonials__grid,
  .process__timeline,
  .benefits__grid {
    grid-template-columns: 1fr;
  }

  .process__timeline::before {
    display: none;
  }

  .process__step {
    padding-left: 0;
    text-align: center;
  }

  .process__step-number {
    position: static;
    margin: 0 auto var(--space-md);
  }

  .solution__wrapper {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  /* Footer */
  .footer__top {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-md);
  }

  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }

  .btn--large {
    padding: 14px 28px;
    font-size: 0.95rem;
    width: 100%;
    justify-content: center;
  }
}
