:root {
  /* Paleta Mangoo Oficial */
  --mangoo-orange: #F68D2E;
  --mangoo-yellow: #F7D338;
  --mangoo-deep-orange: #E65F26;
  --mangoo-green-light: #7BC141;
  --mangoo-green-dark: #3E8A2E;

  /* TEMA CLARO - SaaS Premium (Ultra limpio y frío) */
  --bg-main: #FFFFFF;
  /* Blanco puro absoluto */
  --bg-soft: #F8FAFC;
  /* Gris Slate 50 - Limpieza técnica */
  --bg-softer: #F1F5F9;
  /* Gris Slate 100 */
  --bg-gradient-1: #FFFFFF;
  --bg-gradient-2: #F8FAFC;

  --primary: var(--mangoo-orange);
  --primary-soft: rgba(246, 141, 46, 0.08);
  --secondary: var(--mangoo-green-light);
  /* El nuevo acento de confianza */

  /* Textos más oscuros para mayor contraste y legibilidad */
  --text-main: #0F172A;
  /* Slate 900 - Casi negro */
  /* Hacemos el texto secundario un tono más oscuro para pasar el validador */
  --text-muted: #475569;
  /* Slate 500 */
  --border-subtle: #E2E8F0;
  /* Slate 200 */

  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-soft: 0 10px 40px -10px rgba(15, 23, 42, 0.08);
  --max-width: 1160px;
}

/* TEMA OSCURO - Tech SaaS (Azul noche en lugar de café/naranja) */
:root[data-theme="dark"] {
  --bg-main: #0B1120;
  --bg-soft: #0F172A;
  --bg-softer: #1E293B;
  --bg-gradient-1: #0B1120;
  --bg-gradient-2: #0F172A;

  --primary: var(--mangoo-orange);
  --primary-soft: rgba(246, 141, 46, 0.15);
  --secondary: var(--mangoo-green-light);

  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --border-subtle: #1E293B;

  --shadow-soft: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  /* En claro: fondo casi blanco liso */
  background: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  scroll-behavior: smooth;
  transition: background 0.25s ease, color 0.25s ease;
}

/* En oscuro, sí usamos el degradado de fondo */
:root[data-theme="dark"] body {
  background:
    radial-gradient(circle at top left, var(--bg-gradient-1) 0, var(--bg-main) 48%),
    radial-gradient(circle at bottom right, var(--bg-gradient-2) 0, var(--bg-main) 55%);
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* TOP BAR */
.top-bar {
  font-size: 0.8rem;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

:root[data-theme="dark"] .top-bar {
  background: rgba(18, 15, 16, 0.96);
  border-bottom: 1px solid rgba(199, 199, 199, 0.25);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.4rem 0;
}

.top-bar-left,
.top-bar-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
}

.top-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.top-pill span.icon {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(247, 211, 56, 0.8);
}

.top-link {
  opacity: 0.85;
}

.top-link:hover {
  opacity: 1;
}

/* EL MENÚ QUE SIGUE AL SCROLL */
header {
  position: sticky !important;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95) !important;
  /* Blanco ligeramente translúcido */
  backdrop-filter: blur(10px);
  /* Efecto cristal */
  z-index: 1000;
  border-bottom: 1px solid #f1f5f9 !important;
  /* Línea separadora elegante */
}

:root[data-theme="dark"] header {
  background-color: transparent !important;
  border-bottom: none !important;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background:
    radial-gradient(circle at top, var(--mangoo-yellow), var(--mangoo-deep-orange) 65%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: #3b1a06;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.25);
}

:root[data-theme="dark"] .brand-logo {
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.75);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.brand-title {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.brand-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.9rem;
}

.nav-links a {
  position: relative;
  color: var(--text-muted);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.18s ease;
}

.nav-links a:hover {
  color: var(--text-main);
}

.nav-links a:hover::after {
  width: 100%;
}

/* ESTADO ACTIVO DEL MENÚ (Scroll Spy) */
.nav-links a.active {
  color: var(--text-main);
  font-weight: 600;
}

.nav-links a.active::after {
  width: 100%;
  background: var(--secondary);
  /* Usamos el verde de confianza */
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.btn {
  border-radius: 999px;
  padding: 0.55rem 1.3rem;
  border: 1px solid transparent;
  font-size: 0.86rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  cursor: pointer;
  background: transparent;
  color: var(--text-main);
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

/* BOTÓN PRINCIPAL (Para Agendar Llamada / Formulario) */
.btn-primary {
  background: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 8px 20px rgba(246, 141, 46, 0.3);
}

:root[data-theme="dark"] .btn-primary {
  color: #FFFFFF;
  box-shadow: 0 8px 20px rgba(246, 141, 46, 0.15);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(246, 141, 46, 0.45);
  background: var(--mangoo-deep-orange);
}

/* NUEVO BOTÓN WHATSAPP (Secundario pero reconocible) */
.btn-whatsapp {
  background: #F0FDF4;
  color: #16A34A;
  border: 1px solid #BBF7D0;
}

.btn-whatsapp:hover {
  background: #25D366;
  color: #FFFFFF;
  border-color: #25D366;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
  transform: translateY(-1px);
}

:root[data-theme="dark"] .btn-whatsapp {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.2);
  color: #4ADE80;
}

.btn-ghost {
  border-color: rgba(148, 163, 184, 0.45);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-muted);
}

:root[data-theme="dark"] .btn-ghost {
  background: rgba(18, 15, 16, 0.9);
  border-color: rgba(199, 199, 199, 0.45);
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--text-main);
  background: rgba(255, 255, 255, 1);
}

:root[data-theme="dark"] .btn-ghost:hover {
  background: rgba(18, 15, 16, 1);
}

.btn-small {
  padding: 0.3rem 0.9rem;
  font-size: 0.8rem;
}

/* Botón de tema */
.theme-toggle {
  width: 32px;
  padding: 0.3rem;
  border-radius: 999px;
  justify-content: center;
  min-width: 32px;
}

.theme-icon {
  font-size: 0.95rem;
  line-height: 1;
}

.burger {
  display: none;
  width: 24px;
  height: 24px;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
}

.burger span {
  height: 2px;
  width: 100%;
  border-radius: 999px;
  background: #111827;
  transition: transform 0.18s ease, opacity 0.18s ease, background 0.18s ease;
}

:root[data-theme="dark"] .burger span {
  background: #f5f5f5;
}

.burger.open span:nth-child(1) {
  /* La matemática exacta: baja 6px para llegar al centro exacto y gira */
  transform: translateY(6px) rotate(45deg);
}

.burger.open span:nth-child(2) {
  opacity: 0;
}

.burger.open span:nth-child(3) {
  /* La matemática exacta: sube 6px para cruzar la primera línea */
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  padding-bottom: 0.75rem;
}

/* ========================================= */
/* MENÚ MÓVIL PREMIUM CON FONDO "AURORA"     */
/* ========================================= */
.mobile-menu-inner {
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  /* Hacemos el fondo blanco un poco más translúcido (0.90) para que pase la luz de los colores */
  background: rgba(255, 255, 255, 0.90);
  padding: 0.7rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
  /* Encierra los colores para que no se salgan del cuadro */
  z-index: 1;
}

/* La malla de colores mágicos (Naranja, Verde, Amarillo) */
.mobile-menu-inner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 0% 0%, rgba(246, 141, 46, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(123, 193, 65, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 100% 0%, rgba(247, 211, 56, 0.08) 0%, transparent 60%);
  z-index: -1;
  /* Lo mandamos detrás del texto */
  animation: aurora-breathe 6s ease-in-out infinite alternate;
}

:root[data-theme="dark"] .mobile-menu-inner {
  background: rgba(18, 15, 16, 0.90);
  border-color: rgba(199, 199, 199, 0.25);
}

:root[data-theme="dark"] .mobile-menu-inner::before {
  background:
    radial-gradient(circle at 0% 0%, rgba(246, 141, 46, 0.12) 0%, transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(123, 193, 65, 0.12) 0%, transparent 60%),
    radial-gradient(circle at 100% 0%, rgba(247, 211, 56, 0.12) 0%, transparent 60%);
}

/* La animación de respiración fluida */
@keyframes aurora-breathe {
  0% {
    opacity: 0.6;
    transform: scale(1);
  }

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

.mobile-menu-inner a {
  color: var(--text-muted);
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.mobile-menu-inner a:hover {
  color: var(--primary);
  background: rgba(246, 141, 46, 0.05);
  /* Pequeño destello al tocar un link */
  transform: translateX(4px);
  /* Micro-interacción: se mueve a la derecha */
}

/* HERO */
/* ------------------------------ */
/* FONDO 3D VANTA (ESTILO STRIPE) */
/* ------------------------------ */
/* ELIMINAMOS EL EXCESO DE AIRE DEL HERO */
.hero {
  position: relative;
  padding-top: 2rem;
  /* Redujimos drásticamente el aire superior */
  padding-bottom: 2rem;
  /* Redujimos el aire inferior */
}

.relative-z {
  position: relative;
  z-index: 10;
  /* Obligamos al texto a estar por encima del 3D */
}

/* ------------------------------ */
/* ------------------------------ */
/* EVIDENCIA VISUAL (DASHBOARD ANIMADO) */
/* ------------------------------ */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

/* El contenedor maestro que flota y aplica el difuminado a ambas imágenes */
.mockup-wrapper {
  position: relative;
  width: 160%;
  /* Hacemos las imágenes más grandes */
  max-width: 1050px;
  margin-right: -20%;
  /* Compensamos el tamaño empujando un poco más a la derecha */

  /* Animación de flotación constante */
  animation: float-mockup 6s ease-in-out infinite;

  /* Máscara radial con el centro desplazado a la izquierda (40%), forzando mucho más difuminado en el lado derecho */
  -webkit-mask-image: radial-gradient(ellipse at 40% 20%, black 15%, transparent 75%);
  mask-image: radial-gradient(ellipse at 40% 20%, black 15%, transparent 75%);
}

.hero-mockup-img {
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
  /* Quita el fondo blanco */
  filter: drop-shadow(0 25px 45px rgba(15, 23, 42, 0.12));
}

/* ESTADO INICIAL Y ANIMACIONES */
.img-desktop {
  display: block;
  /* Animación de 10 segundos infinita */
  animation: slide-desktop 10s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.img-mobile {
  position: absolute;
  /* Se coloca exactamente encima de la de escritorio */
  top: 0;
  left: 0;
  opacity: 0;
  /* Misma duración para que se sincronicen perfecto */
  animation: slide-mobile 10s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* KEYFRAMES: La coreografía del carrusel */
@keyframes slide-desktop {

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

  /* Visible y quieta */
  45%,
  95% {
    opacity: 0;
    transform: translateX(40px) scale(0.96);
  }

  /* F1 premium: Se desliza a la derecha y se apaga */
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }

  /* Regresa a su lugar */
}

@keyframes slide-mobile {

  0%,
  40% {
    opacity: 0;
    transform: translateX(-40px) scale(0.96);
  }

  /* Escondida a la izquierda */
  45%,
  95% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }

  /* Entra a escena y se queda */
  100% {
    opacity: 0;
    transform: translateX(-40px) scale(0.96);
  }

  /* Se va a su escondite */
}

@keyframes float-mockup {
  0% {
    transform: translateY(0px);
  }

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

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



:root[data-theme="dark"] .hero {
  /* En oscuro dejamos que el fondo general haga el trabajo */
  background: transparent;
}

.hero-grid {
  display: grid;
  /* ¡Damos más poder a la derecha! */
  /* Menos espacio al texto (1 parte), más a la imagen (1.3 partes) */
  grid-template-columns: 1fr 1.3fr;
  gap: 4rem;
  /* Separación generosa */
  align-items: center;
}

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.hero-title {
  font-size: 2.4rem;
  line-height: 1.15;
  margin-bottom: 0.9rem;
  opacity: 1 !important;
  transform: none !important;
}

.hero-title span {
  background: linear-gradient(135deg, var(--mangoo-deep-orange), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

:root[data-theme="dark"] .hero-title span {
  background: linear-gradient(135deg, #FFFFFF, var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 0.98rem;
  max-width: 34rem;
  margin-bottom: 1.6rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.4rem;
}

/* BLOQUE DE MÉTRICAS DE CONFIANZA EN EL HERO */
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 1.5rem;
  align-items: center;
}

.hero-stat-box {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding-left: 1.2rem;
  border-left: 2px solid var(--border-subtle);
}

/* Caja resaltada para los 14 años */
.hero-stat-box.highlight {
  border-left: 3px solid var(--primary);
  background: linear-gradient(to right, var(--primary-soft), transparent);
  padding: 0.6rem 1.2rem 0.6rem 1rem;
  border-radius: 0 12px 12px 0;
}

.stat-big {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  color: var(--primary);
  letter-spacing: -0.03em;
}

.stat-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.badge-soft {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #FFF9F2;
  font-size: 0.72rem;
  color: var(--text-muted);
}

:root[data-theme="dark"] .badge-soft {
  background: rgba(18, 15, 16, 0.96);
  border-color: rgba(199, 199, 199, 0.45);
}

.badge-soft-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--secondary);
  box-shadow: 0 0 8px rgba(123, 193, 65, 0.8);
}

/* ------------------------------ */

/* ------------------------------ */
/* ESPACIADO QUIRÚRGICO DE SECCIONES (VERSIÓN COMPACTA) */
/* ------------------------------ */

/* 1. Regla Maestra: Reducimos el colchón a la mitad */
section {
  /* 2.5rem arriba y 2.5rem abajo (Juntas formarán 5rem totales, el espacio ideal) */
  padding: 2.5rem 0 !important;
}

/* 3. Acercamos los Títulos a sus respectivas tarjetas */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  margin-bottom: 2rem !important;
  /* Reducido para que la lectura baje directo a la información */
}

.section-title {
  font-size: 1.5rem;
  margin-bottom: 0.3rem;
}

.section-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 32rem;
}

.tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--primary);
  margin-bottom: 0.45rem;
}

/* GRID HELPERS */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
}

/* ------------------------------ */
/* CARDS ESTILO STRIPE ("Qué hacemos") */
/* ------------------------------ */
.card {
  background: #FFFFFF;
  border-radius: 20px;
  /* Bordes más suaves y modernos */
  padding: 2.2rem 1.8rem;
  /* Mucho más aire interior para que respire el texto */
  border: 1px solid var(--border-subtle);
  /* Sombra base ultra sutil de 2 capas */
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.02), 0 4px 6px rgba(15, 23, 42, 0.02);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

/* La magia: Una línea de gradiente superior oculta */
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* El efecto al pasar el ratón (Hover) */
.card:hover {
  transform: translateY(-6px);
  /* Se levanta suavemente */
  /* Sombra de elevación premium */
  box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  border-color: transparent;
}

.card:hover::before {
  opacity: 1;
  /* Revelamos el gradiente superior */
}

:root[data-theme="dark"] .card {
  background: #171219;
  border-color: rgba(199, 199, 199, 0.24);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.6);
}

.card h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.card-footer {
  margin-top: 0.7rem;
  font-size: 0.78rem;
  color: var(--primary);
}

/* ------------------------------ */
/* ÍCONOS PREMIUM PARA LAS CARDS  */
/* ------------------------------ */
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  transition: transform 0.3s ease;
}

/* Colores corporativos de Mangoo para cada ícono */
/* 1. Fábrica (Naranja) */
.card:nth-child(1) .card-icon {
  background: rgba(246, 141, 46, 0.12);
  color: var(--mangoo-orange);
}

/* 2. Web (Verde) */
.card:nth-child(2) .card-icon {
  background: rgba(123, 193, 65, 0.15);
  color: var(--mangoo-green-dark);
}

/* 3. Productos (Amarillo/Dorado) */
.card:nth-child(3) .card-icon {
  background: rgba(247, 211, 56, 0.2);
  color: #B48A18;
}

/* Pequeño rebote del ícono al pasar el ratón por la tarjeta */
.card:hover .card-icon {
  transform: scale(1.1) rotate(-3deg);
}

/* SERVICES SECTION (Fábrica / Web / Productos) */
.services-compact {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* SOLUCIONES ERP/CRM/... */
.solutions-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

/* ------------------------------ */
/* TARJETAS DE SOLUCIONES ("Bento Box" Style) */
/* ------------------------------ */
.solution-item {
  background: var(--bg-soft);
  /* Fondo gris ultra claro para dar contraste */
  border-radius: 16px;
  padding: 1.8rem 1.6rem;
  border: 1px solid var(--border-subtle);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
}

.solution-item:hover {
  background: #FFFFFF;
  transform: translateY(-3px);
  /* Sombra brillante con el naranja de Mangoo (Glow effect) */
  box-shadow: 0 14px 28px -8px rgba(246, 141, 46, 0.18);
  border-color: rgba(246, 141, 46, 0.3);
}

/* ------------------------------ */
/* MICRO-ÍCONOS PARA SOLUCIONES   */
/* ------------------------------ */
.solution-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(246, 141, 46, 0.1);
  /* Naranja muy transparente */
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.solution-icon svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

/* La magia al pasar el ratón: La tarjeta flota (ya lo hacía) y el ícono reacciona */
.solution-item:hover .solution-icon {
  background: var(--primary);
  /* Se vuelve naranja sólido */
  color: #FFFFFF;
  /* El ícono se vuelve blanco */
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 4px 12px rgba(246, 141, 46, 0.3);
}

.solution-item:hover .solution-icon svg {
  transform: scale(1.1);
}

:root[data-theme="dark"] .solution-item {
  border-color: rgba(199, 199, 199, 0.26);
  background: radial-gradient(circle at top left, rgba(35, 22, 15, 0.95), var(--bg-softer));
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.6);
}

.solution-item h3 {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

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

/* PROCESO */
.process-grid {
  display: grid;
  grid-template-columns: 1.4fr 1.6fr;
  gap: 1.8rem;
}

.process-steps {
  display: grid;
  gap: 0.9rem;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.6rem 0.9rem;
  align-items: flex-start;
}

.step-number {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  color: var(--primary);
  background: #FFF9F2;
}

:root[data-theme="dark"] .step-number {
  border-color: rgba(199, 199, 199, 0.5);
  background: rgba(18, 15, 16, 0.96);
}

.step h3 {
  font-size: 0.9rem;
  margin-bottom: 0.15rem;
}

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

/* STATS / RESULTADOS */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
}

.stat-card {
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  padding: 1rem 1.1rem;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

:root[data-theme="dark"] .stat-card {
  background: #171219;
  border-color: rgba(199, 199, 199, 0.24);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.6);
}

.stat-value {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.1rem;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ------------------------------ */
/* CARRUSEL INFINITO DE CLIENTES  */
/* ------------------------------ */
.clients-marquee {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 1.5rem 0;
  /* Efecto de difuminado en los bordes (fade) */
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.clients-track {
  display: flex;
  align-items: center;
  gap: 5rem;
  /* Separación entre logos */
  width: max-content;
  animation: scroll-logos 40s linear infinite;
  /* 40s es la velocidad, ajústala si quieres */
}

/* Opcional: Pausar el carrusel si el usuario pone el mouse encima */
.clients-track:hover {
  animation-play-state: paused;
}

.client-logo {
  height: 130px;
  /* ¡Subimos el tamaño casi al doble! */
  width: auto;
  max-width: 180px;
  /* Damos más espacio a lo ancho */
  object-fit: contain;
  /* Los hacemos más visibles (65% de opacidad en lugar de 45%) */
  filter: grayscale(100%) opacity(65%);
  transition: filter 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}

/* Al pasar el mouse: Revela su color original */
.client-logo:hover {
  filter: grayscale(0%) opacity(100%);
  transform: scale(1.05);
}

/* Ajustes para que se vean bien en Modo Oscuro */
:root[data-theme="dark"] .client-logo {
  filter: grayscale(100%) brightness(200%) opacity(70%);
  /* Más legibles en oscuro */
}

:root[data-theme="dark"] .client-logo:hover {
  filter: grayscale(0%) brightness(100%) opacity(100%);
}

/* Animación del Loop */
@keyframes scroll-logos {
  to {
    /* Se mueve exactamente a la mitad del contenedor (por eso duplicamos las imágenes) */
    transform: translateX(calc(-50% - 2.5rem));
  }
}

/* CTA FINAL */
.cta-section {
  padding-bottom: 3.5rem !important;
  margin-top: 0 !important;
  position: relative;
  z-index: 10;
}

.cta-box {
  border-radius: 24px;
  border: 1px solid var(--border-subtle);
  background:
    radial-gradient(circle at top left, rgba(246, 141, 46, 0.12), #FFFFFF 60%);
  padding: 2rem 1.8rem;
  display: grid;
  grid-template-columns: 1.7fr 1.3fr;
  gap: 1.8rem;
  align-items: center;
  box-shadow: var(--shadow-soft);
}

:root[data-theme="dark"] .cta-box {
  background:
    radial-gradient(circle at top left, var(--primary-soft), transparent 55%),
    rgba(18, 15, 16, 0.98);
  border-color: rgba(199, 199, 199, 0.35);
}

.cta-box h2 {
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}

.cta-box p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.cta-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.cta-highlights span {
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: #FFF9F2;
}

:root[data-theme="dark"] .cta-highlights span {
  border-color: rgba(199, 199, 199, 0.35);
  background: rgba(18, 15, 16, 0.9);
}

.cta-form {
  display: grid;
  gap: 0.7rem;
}

.cta-form label {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.cta-form input,
.cta-form textarea {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: #F9FAFB;
  color: var(--text-main);
  font-size: 0.85rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

:root[data-theme="dark"] .cta-form input,
:root[data-theme="dark"] .cta-form textarea {
  background: rgba(15, 12, 13, 0.96);
  border-color: rgba(199, 199, 199, 0.4);
  color: #f9fafb;
}

.cta-form textarea {
  resize: vertical;
  min-height: 90px;
}

.cta-form input:focus,
.cta-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(246, 141, 46, 0.75);
}

/* ------------------------------ */
/* FOOTER ENTERPRISE (ESTILO STRIPE) */
/* ------------------------------ */
.footer-dark {
  background: #F8FAFC;
  /* Gris ultra suave, continuidad perfecta */
  color: #64748B;
  /* Texto gris medio (Slate 500) */
  padding: 4rem 0 2rem;
  border-top: 1px solid #E2E8F0;
  /* Línea separadora muy fina */
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  margin-bottom: 1rem;
}

.brand-text-footer {
  font-size: 1.4rem;
  font-weight: 800;
  color: #0F172A;
  /* Texto oscuro corporativo */
  letter-spacing: -0.02em;
}

.brand-text-footer span {
  font-weight: 400;
  color: var(--primary);
  margin-left: 0.3rem;
}

.footer-desc {
  font-size: 0.85rem;
  line-height: 1.6;
  max-width: 90%;
  margin-bottom: 1.5rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #E2E8F0;
  /* Botón gris claro */
  color: #475569;
  /* Ícono gris oscuro */
  transition: all 0.2s ease;
}

.social-links a:hover {
  background: var(--primary);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.footer-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  color: #0F172A;
  /* Títulos oscuros */
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-links a,
.contact-item {
  display: block;
  margin-bottom: 0.8rem;
  font-size: 0.85rem;
  color: #64748B;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid #E2E8F0;
  font-size: 0.75rem;
  color: #94A3B8;
  /* Letras chiquitas más tenues */
}

.legal-links {
  display: flex;
  gap: 1.5rem;
}

.legal-links a {
  color: #94A3B8;
  transition: color 0.2s ease;
}

.legal-links a:hover {
  color: var(--primary);
}

/* Adaptación para el Modo Oscuro del usuario */
:root[data-theme="dark"] .footer-dark {
  background: #0B1120;
  border-top-color: #1E293B;
  color: #94A3B8;
}

:root[data-theme="dark"] .brand-text-footer,
:root[data-theme="dark"] .footer-title {
  color: #F8FAFC;
}

:root[data-theme="dark"] .footer-bottom {
  border-top-color: #1E293B;
}

:root[data-theme="dark"] .social-links a {
  background: #1E293B;
  color: #F8FAFC;
}

:root[data-theme="dark"] .social-links a:hover {
  background: var(--primary);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* RESPONSIVE */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cta-box {
    grid-template-columns: minmax(0, 1fr);
  }

  .process-grid {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .solutions-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .nav-links {
    display: none;
  }

  .burger {
    display: flex;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 2.7rem;
  }

  .hero-title {
    font-size: 1.9rem;
  }

  .stats,
  .solutions-list,
  .grid-3,
  .grid-4,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cta-box {
    padding: 1.6rem 1.4rem;
  }

  .top-bar-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Fuera del media query */
.brand-logo-img {
  height: 60px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* Reset del borde interno de foco nativo en botones */
button::-moz-focus-inner,
.btn::-moz-focus-inner,
button::-webkit-focus-inner,
.btn::-webkit-focus-inner {
  border: 0;
}

/* Estado de foco personalizado en botones */
button:focus,
button:focus-visible,
.btn:focus,
.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(246, 141, 46, 0.35);
  /* glow naranja suave */
  border-color: var(--primary);
}

/* ------------------------------ */
/* ANIMACIONES DE PASOS DEL PROCESO */
/* ------------------------------ */

/* Contenedor general */
.step {
  cursor: pointer;
  padding: 0.45rem 0.2rem;
  border-radius: 10px;
  transition: transform 0.18s ease, background 0.25s ease, box-shadow 0.22s ease;
}

/* Número */
.step-number {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--bg-soft);
  border: 1px solid rgba(148, 163, 184, 0.45);
  color: var(--primary);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

/* Título */
.step h3 {
  transition: color 0.25s ease, transform 0.18s ease;
}

/* ------------------------------ */
/* EFECTO HOVER */
/* ------------------------------ */
.step:hover {
  transform: translateX(4px);
  background: rgba(246, 141, 46, 0.08);
  /* Primary soft */
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

.step:hover .step-number {
  transform: scale(1.12);
  background: linear-gradient(135deg, var(--mangoo-deep-orange), var(--accent));
  color: #2b1304;
  box-shadow: 0 4px 14px rgba(246, 141, 46, 0.45);
}

.step:hover h3 {
  color: var(--primary);
  transform: translateY(-1px);
}

/* ------------------------------ */
/* ESTADO ACTIVO (CUANDO EL USUARIO HACE CLIC) */
/* ------------------------------ */

.step.is-active {
  background: #FFFFFF;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  border-left: 3px solid var(--secondary);
  transform: translateX(6px);
}

:root[data-theme="dark"] .step.is-active {
  background: #0F172A;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.step.is-active .step-number {
  background: linear-gradient(135deg, var(--mangoo-deep-orange), var(--accent));
  color: #2b1304;
  transform: scale(1.15);
  box-shadow: 0 4px 18px rgba(246, 141, 46, 0.55);
}

.step.is-active h3 {
  color: var(--primary);
  font-weight: 600;
  transform: translateY(-1.5px);
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    /* Una columna en móvil */
    text-align: center;
  }

  .hero-visual {
    margin-top: 2.5rem;
    /* Separamos un poco de las métricas */
    margin-bottom: -1.5rem;
    /* Acercamos la sección "Qué hacemos" */
    overflow: hidden;
    /* Evitamos que el desbordamiento cree scroll horizontal */
  }

  .mockup-wrapper {
    width: 140%;
    /* Empujamos los cortes rectos fuera de la pantalla */
    margin-left: -20%;
    /* Centramos el desbordamiento */
    margin-right: -20%;

    /* Difuminado circular perfecto: Sólido en el centro, transparente a los bordes */
    -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 40%, transparent 75%);
    mask-image: radial-gradient(ellipse at 50% 50%, black 40%, transparent 75%);
  }

  .hero-mockup-img {
    max-width: 100%;
    transform: scale(1) translateY(0);
    /* Reseteamos escalas raras */
  }
}

/* 2. Excepciones de Layout */
.hero {
  padding-top: 2rem !important;
  /* Casi pegado al siguiente bloque para que el 14+ y "Qué hacemos" formen un puente visual */
  padding-bottom: 1rem !important;
}

/* ========================================= */
/* AJUSTES QUIRÚRGICOS PARA MÓVILES (CENTRADOS) */
/* ========================================= */

@media (max-width: 992px) {

  /* 1. Centrar los botones del Hero */
  .hero-actions {
    justify-content: center;
    width: 100%;
  }

  /* 2. Centrar las métricas (14+ años y Sectores) */
  .hero-meta {
    justify-content: center;
    flex-direction: column;
    /* Apilamos las métricas para que no se aprieten */
    gap: 1.5rem;
  }

  .hero-stat-box {
    align-items: center;
    text-align: center;
    border-left: none;
    /* Quitamos la línea lateral (se ve rara centrada) */
    border-top: 2px solid var(--border-subtle);
    /* La pasamos arriba como separador */
    padding: 1rem 0 0 0;
    width: 100%;
  }

  .hero-stat-box.highlight {
    border-top: 3px solid var(--primary);
    border-left: none;
    background: linear-gradient(to bottom, var(--primary-soft), transparent);
    border-radius: 0 0 12px 12px;
    /* Redondeamos hacia abajo */
    padding: 1.2rem;
  }
}

@media (max-width: 640px) {

  /* 3. Centrar la Top Bar (Ubicación, Teléfono, Correo) */
  .top-bar-inner {
    align-items: center !important;
    justify-content: center;
    text-align: center;
    gap: 0.6rem;
  }

  .top-bar-left,
  .top-bar-right {
    justify-content: center;
    width: 100%;
  }

  /* Bono CRO: Botones a todo el ancho en celulares para facilitar el clic */
  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

/* ========================================= */
/* MEJORAS DE CONTRASTE (ACCESIBILIDAD)      */
/* ========================================= */
.tag,
.badge-soft {
  color: #C04B0A !important;
  /* Naranja quemado para contraste */
  font-weight: 700;
}

/* ========================================= */
/* CENTRAR CABECERAS DE SECCIÓN EN MÓVILES   */
/* ========================================= */
@media (max-width: 960px) {
  .section-header {
    align-items: center !important;
    text-align: center;
  }

  /* Centramos el subtítulo evitando que su max-width lo recargue a la izquierda */
  .section-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  /* Bono CRO: Centramos también los textos del bloque naranja de contacto final */
  .cta-box>div:first-child {
    text-align: center;
  }

  .cta-highlights {
    justify-content: center;
  }
}

/* ========================================= */
/* HACK DE ACCESIBILIDAD (WCAG) PARA EL 100% */
/* ========================================= */

/* 1. BOTONES: Oscurecemos el fondo un 10% para que el texto blanco pase la prueba matemática */
.btn-primary,
button[type="submit"].btn-primary {
  background-color: #DF6800 !important;
  border-color: #DF6800 !important;
  color: #FFFFFF !important;
}

.btn-whatsapp {
  background-color: #1A9A4A !important;
  color: #FFFFFF !important;
}

/* 2. TEXTOS NARANJAS: Más "quemados" para resaltar en fondo blanco */
.eyebrow {
  color: #B94A00 !important;
  font-weight: 700;
}

/* 3. TEXTOS GRISES: Un gris pizarra profundo y legible */
.card-footer,
.card p,
.step,
.step-text,
body {
  color: #334155 !important;
}

/* 4. FOOTER CLARO: Gris oscuro profundo para legibilidad total en fondo blanco */
.footer-dark,
.footer-dark p,
.footer-desc,
.copyright,
.footer-dark a,
.copyright a,
.footer-links a,
.contact-item,
footer a,
footer p {
  color: #334155 !important;
  /* Gris pizarra oscuro y profesional */
  font-weight: 500;
}

/* Efecto interactivo: Naranja Mangoo al pasar el mouse */
.footer-dark a:hover,
.copyright a:hover,
.footer-links a:hover,
footer a:hover {
  color: #DF6800 !important;
}