/* Variables globales - Paleta Kexe Refinada para Profesionalismo y Legibilidad */
:root {
  /* --- COLORES DE MARCA REFINADOS --- */
  /* Morado principal: Más profundo y serio para autoridad */
  --primary-color: #7c3aed;
  --primary-light: #8b5cf6;
  --primary-dark: #6d28d9;
  
  /* Naranja de acento: Vibrante pero usado con moderación (solo botones/iconos) */
  --secondary-color: #f97316;
  --secondary-light: #fb923c;
  --secondary-dark: #ea580c;

  /* --- FONDOS Y BASES --- */
  /* Dark BG: Azul nocturno muy oscuro (Premium feel) */
  --dark-bg: #0f172a;
  --light-bg: #f8fafc;
  --white: #ffffff;
  
  /* --- TIPOGRAFÍA Y LEGIBILIDAD (CRÍTICO) --- */
  /* Text Dark: Azul muy oscuro, mucho más nítido que negro puro */
  --text-dark: #1e293b;
  /* Text Light: Gris azulado medio. Mucho más legible */
  --text-light: #475569;
  --text-medium: #334155;

  /* --- DECORACIÓN --- */
  /* Sombras con color (Glow): Sensación de tecnología */
  --shadow-color: rgba(124, 58, 237, 0.15);
  --border-light: rgba(148, 163, 184, 0.2);

  /* --- GRADIENTES MEJORADOS --- */
  /* Gradiente suave para fondos claros */
  --bg-gradient: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  --bg-gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  --bg-gradient-light: linear-gradient(135deg, rgba(124, 58, 237, 0.05) 0%, rgba(249, 115, 22, 0.05) 100%);
  /* Hero Gradient: Más profundo y elegante */
  --hero-gradient: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%);
  /* Text Gradient: Morado a Azul Eléctrico (muy tech) */
  --text-gradient: linear-gradient(to right, #7c3aed, #2563eb);
}

/* ========== UTILIDADES MODERNAS ========== */

/* Gradiente de Texto - Power Gradient para títulos */
.text-gradient {
  background: var(--text-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

/* Estilos generales */
body {
  font-family: 'Inter', 'Helvetica Neue', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  background: var(--light-bg);
  color: var(--text-dark);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-weight: 400;
  font-size: 16px; /* Tamaño base para legibilidad móvil */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Mejoras de tipografía para legibilidad */
p {
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

h1 {
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

h2 {
  font-size: 1.75rem;
  line-height: 1.3;
  font-weight: 600;
  margin-bottom: 0.875rem;
  color: var(--text-dark);
}

h3 {
  font-size: 1.5rem;
  line-height: 1.3;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

h4 {
  font-size: 1.25rem;
  line-height: 1.4;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

h5 {
  font-size: 1.125rem;
  line-height: 1.4;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Efecto de partículas flotantes en el fondo */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(2px 2px at 20px 30px, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.2), transparent),
    radial-gradient(1px 1px at 90px 40px, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(1px 1px at 130px 80px, rgba(255, 255, 255, 0.2), transparent),
    radial-gradient(2px 2px at 160px 30px, rgba(255, 255, 255, 0.3), transparent);
  background-repeat: repeat;
  background-size: 200px 100px;
  animation: float 20s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Contenedor principal para el contenido */
.main-content {
  position: relative;
  z-index: 1;
  background: transparent;
}

/* Estilos de navegación */
.navbar {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(132, 76, 232, 0.2);
  transition: all 0.3s ease;
  box-shadow: 0 2px 20px rgba(132, 76, 232, 0.1);
  position: relative;
  z-index: 1000;
}

.navbar-brand {
  color: var(--primary-color) !important;
  font-weight: 700;
  font-size: 1.5rem;
}

.navbar-logo {
  height: 40px;
  width: auto;
  transition: all 0.3s ease;
}

.navbar-logo:hover {
  transform: scale(1.05);
}

.navbar-nav .nav-link {
  position: relative;
  transition: all 0.3s ease;
  color: #333 !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  margin: 0 0.25rem;
  border-radius: 8px;
}

.navbar-nav .nav-link:hover {
  color: var(--primary-color) !important;
  background: rgba(132, 76, 232, 0.1);
}

.navbar-nav .nav-link.active {
  color: var(--primary-color) !important;
  background: rgba(132, 76, 232, 0.15);
  font-weight: 600;
}

/* Estilos de botones - Optimizados para móvil */
.btn-primary {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  border-color: #6d28d9;
  border-radius: 12px;
  padding: 14px 28px; /* Aumentado para mejor área táctil */
  min-height: 48px; /* Mínimo 48px para accesibilidad táctil */
  min-width: 120px;
  font-weight: 600;
  font-size: 16px; /* Tamaño legible en móvil */
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent; /* Eliminar highlight azul en iOS */
}

.btn-primary:hover,
.btn-primary:focus {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(124, 58, 237, 0.4);
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  border-color: #7c3aed;
  outline: none;
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(132, 76, 232, 0.3);
  background: var(--primary-dark);
}

.btn-outline-primary {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  border-radius: 12px;
  padding: 14px 28px;
  min-height: 48px;
  min-width: 120px;
  font-weight: 600;
  font-size: 16px;
  background: transparent;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background: var(--primary-color);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(132, 76, 232, 0.4);
  outline: none;
}

.btn-outline-primary:active {
  transform: translateY(0);
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  padding: 14px 28px;
  min-height: 48px;
  min-width: 120px;
  font-weight: 600;
  font-size: 16px;
  background: transparent;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.btn-outline-light:hover,
.btn-outline-light:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff;
  outline: none;
}

/* Espaciado entre botones */
.btn + .btn {
  margin-left: 12px;
}

/* Botones en grupos flex */
.btn-group .btn,
.d-flex .btn {
  margin: 8px;
}

/* Estilos del hero modernizado */
.hero-section-modern {
  background: var(--bg-gradient-dark);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--hero-gradient);
  opacity: 0.9;
  z-index: 1;
}

.hero-section-modern .container {
  position: relative;
  z-index: 2;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.dashboard-mockup {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 100%;
}

.dashboard-header {
  margin-bottom: 1.5rem;
}

.dashboard-nav {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  flex-wrap: wrap;
}

.dashboard-nav .nav-item {
  padding: 0.5rem 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
  font-size: 0.9rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.dashboard-nav .nav-item.active {
  color: var(--secondary-color);
  border-bottom-color: var(--secondary-color);
}

.metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.metric-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 1rem;
  border-radius: 12px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.metric-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 0.25rem;
}

.metric-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
}

.chart-placeholder {
  background: rgba(255, 255, 255, 0.1);
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  height: 120px;
  display: flex;
  align-items: end;
  justify-content: center;
}

.chart-bars {
  display: flex;
  align-items: end;
  gap: 0.5rem;
  height: 80px;
}

.bar {
  width: 20px;
  background: linear-gradient(to top, var(--primary-color), var(--secondary-color));
  border-radius: 2px 2px 0 0;
  animation: growUp 1s ease-out;
}

@keyframes growUp {
  from { height: 0; }
  to { height: var(--height, 60%); }
}

/* Estilos para métricas del hero */
.hero-metrics {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-metric {
  text-align: center;
  flex: 1;
}

.hero-metric .metric-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-metric .metric-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Estilos para el carrusel de imágenes de fondo en la sección de inicio */
.hero-carousel {
  top: 0;
  left: 0;
  z-index: 0;
}

.hero-carousel .carousel,
.hero-carousel .carousel-inner,
.hero-carousel .carousel-item {
  height: 100%;
}

.hero-carousel .carousel-item img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  filter: brightness(0.3) contrast(1.2);
}

/* Overlay para mejorar la legibilidad del texto sobre las imágenes */
.carousel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(132, 76, 232, 0.7),
    rgba(154, 92, 240, 0.7)
  );
  z-index: 1;
}

/* Asegurar que el contenido esté por encima del carrusel */
.hero-section .container {
  z-index: 2;
  position: relative;
}

/* Mejoras para la legibilidad de los textos en la sección de inicio */
.hero-section h1 {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  font-weight: 700;
  letter-spacing: 0.5px;
  font-size: 3.5rem;
}

.hero-section .lead {
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
  font-weight: 500;
  letter-spacing: 0.3px;
  font-size: 1.25rem;
}

/* Ajustes para los controles del carrusel */
.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
  z-index: 2;
  width: 5%;
  opacity: 0.7;
}

.hero-carousel .carousel-control-prev:hover,
.hero-carousel .carousel-control-next:hover {
  opacity: 1;
}

/* Ajustes para dispositivos móviles */
@media (max-width: 768px) {
  .hero-carousel .carousel-control-prev,
  .hero-carousel .carousel-control-next {
    display: none;
  }
  
  .hero-section h1 {
    font-size: 2.5rem;
  }
}

/* Estilos del footer */

/* Botón flotante de WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--primary-color);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  text-align: center;
  box-shadow: 0 8px 25px rgba(132, 76, 232, 0.4);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  padding: 0;
  overflow: hidden;
}

.whatsapp-float:hover {
  background: var(--primary-light);
  transform: scale(1.1) translateY(-5px);
  box-shadow: 0 12px 35px rgba(132, 76, 232, 0.5);
}

.whatsapp-icon {
  width: 35px;
  height: 35px;
  object-fit: contain;
}

/* Animación de pulso para el botón de WhatsApp */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(132, 76, 232, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(132, 76, 232, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(132, 76, 232, 0);
  }
}

.whatsapp-float {
  animation: pulse 2s infinite;
}

/* Estilos para ocultar completamente el icono de reCAPTCHA */
.grecaptcha-badge,
iframe[src*="recaptcha"],
iframe[src*="google.com/recaptcha"],
iframe[title*="recaptcha"],
iframe[title*="reCAPTCHA"],
div[class*="grecaptcha"],
div[id*="grecaptcha"],
div[class*="recaptcha"],
div[id*="recaptcha"] {
  visibility: hidden !important;
  opacity: 0 !important;
  position: absolute !important;
  bottom: -9999px !important;
  right: -9999px !important;
  width: 0 !important;
  height: 0 !important;
  display: none !important;
  pointer-events: none !important;
}

/* Asegurarse de que el botón de WhatsApp esté por encima */
.whatsapp-float {
  z-index: 9999 !important;
}

/* Estilos para el carrusel de partners */
#partnersCarousel {
  padding: 2rem 0;
}

.partner-logo {
  max-height: 100px;
  object-fit: contain;
  transition: transform 0.3s ease;
  filter: grayscale(100%);
  opacity: 0.7;
}

.partner-logo:hover {
  transform: scale(1.1);
  filter: grayscale(0%);
  opacity: 1;
}

.carousel-control-prev,
.carousel-control-next {
  width: 5%;
  color: var(--primary-color);
}

.carousel-indicators button {
  background-color: var(--primary-color);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin: 0 5px;
}

.carousel-item {
  padding: 1rem 0;
}

/* Estilos para las tarjetas de servicios */
.service-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  border: 1px solid rgba(132, 76, 232, 0.2);
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 25px rgba(132, 76, 232, 0.15);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(132, 76, 232, 0.25) !important;
}

.service-icon {
  background: var(--primary-color);
  border-radius: 20px;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
  overflow: hidden;
  padding: 0;
  position: relative;
  box-shadow: 0 8px 25px rgba(132, 76, 232, 0.3);
}

.service-icon img {
  width: 60%;
  height: 60%;
  object-fit: contain;
  transition: all 0.3s ease;
  filter: brightness(0) invert(1);
}

.service-card:hover .service-icon {
  transform: scale(1.1);
  box-shadow: 0 12px 35px rgba(132, 76, 232, 0.4);
}

.service-card:hover .service-icon img {
  transform: scale(1.1);
}

.service-card .card-title {
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.service-card .card-text {
  color: #666;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.service-card .btn {
  border-radius: 12px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.service-card .btn:hover {
  background: var(--primary-color);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(132, 76, 232, 0.4);
}

/* Animaciones para la barra de navegación */
.navbar.scrolled {
  box-shadow: 0 5px 15px rgba(132, 76, 232, 0.2);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

/* Animaciones para el botón de WhatsApp */
.whatsapp-float {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

.whatsapp-float.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Animaciones para las secciones */
section {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  margin: 2rem 0;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(132, 76, 232, 0.15);
}

/* Animación de escritura para el título principal */
.typing-animation {
  display: inline-block;
  overflow: hidden;
  border-right: 3px solid var(--secondary-color);
  white-space: nowrap;
  animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
  animation-delay: 0.5s;
  animation-fill-mode: both;
}

.highlight-word {
  display: inline-block;
  position: relative;
  animation: highlightPulse 2s ease-in-out infinite;
  animation-delay: 2s;
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: var(--secondary-color); }
}

@keyframes highlightPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Indicador de scroll */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.8);
  animation: bounce 2s infinite;
  cursor: pointer;
  z-index: 10;
}

.scroll-arrow {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.scroll-indicator:hover .scroll-arrow {
  border-color: var(--secondary-color);
  color: var(--secondary-color);
  transform: scale(1.1);
}

.scroll-text {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* Efecto de parallax sutil para las imágenes de fondo */
.hero-carousel .carousel-item img {
  transform: scale(1.05);
  transition: transform 0.5s ease;
}

.hero-carousel .carousel-item.active img {
  transform: scale(1);
}

/* Animaciones para los títulos de sección */
section h2 {
  position: relative;
  display: inline-block;
  color: var(--primary-color);
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

section h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  width: 50px;
  height: 3px;
  background: var(--primary-color);
  transform: translateX(-50%);
  transition: width 0.5s ease;
  border-radius: 2px;
}

section:hover h2::after {
  width: 100px;
}

/* Animaciones para las imágenes en las secciones de servicios */
.service-card img {
  transition: transform 0.5s ease;
}

.service-card:hover img {
  transform: scale(1.1);
}

/* Animaciones para los botones */
.btn {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.btn:hover::after {
  transform: translateX(0);
}

/* Animaciones para los formularios */
.form-control {
  transition: all 0.3s ease;
  border: 2px solid rgba(132, 76, 232, 0.2);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  padding: 12px 16px;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(132, 76, 232, 0.25);
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 1);
}

/* Animaciones para las alertas */
.alert {
  animation: fadeIn 0.5s ease;
  border-radius: 12px;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animaciones para los elementos AOS personalizados */
[data-aos="custom-fade-up"] {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.215, 0.61, 0.355, 1);
}

[data-aos="custom-fade-up"].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

[data-aos="custom-fade-left"] {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.8s cubic-bezier(0.215, 0.61, 0.355, 1);
}

[data-aos="custom-fade-left"].aos-animate {
  opacity: 1;
  transform: translateX(0);
}

[data-aos="custom-fade-right"] {
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.8s cubic-bezier(0.215, 0.61, 0.355, 1);
}

[data-aos="custom-fade-right"].aos-animate {
  opacity: 1;
  transform: translateX(0);
}

[data-aos="custom-zoom-in"] {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.8s cubic-bezier(0.215, 0.61, 0.355, 1);
}

[data-aos="custom-zoom-in"].aos-animate {
  opacity: 1;
  transform: scale(1);
}

/* Estilos para el texto en secciones */
section p {
  color: var(--text-light);
  font-size: 1.1rem;
  line-height: 1.7;
}

section .lead {
  color: var(--text-medium);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.6;
}

/* Estilos para listas */
section ul {
  color: var(--text-light);
}

section ul li {
  margin-bottom: 0.75rem;
  position: relative;
  padding-left: 1.5rem;
  line-height: 1.6;
}

section ul li::before {
  content: '•';
  color: var(--primary-color);
  font-weight: bold;
  position: absolute;
  left: 0;
  font-size: 1.2em;
}

/* Estilos para el footer */
footer {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #666;
  border-top: 1px solid rgba(132, 76, 232, 0.2);
}

footer h5 {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 1rem;
}

footer a {
  color: #666;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* Estilos para la sección de beneficios */
.benefits-section {
  background: var(--light-bg);
  padding: 6rem 0;
}

.benefits-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 3rem;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.benefit-icon {
  background: var(--primary-color);
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.benefit-content h4 {
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.benefit-content p {
  color: var(--text-light);
  margin: 0;
}

.metrics-visual {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem;
}

.metric-card-large {
  background: var(--white);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(141, 74, 238, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.metric-card-large:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.metric-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}

.metric-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.metric-description {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Estilos para servicios modernizados */
.service-card-modern {
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-light);
  height: 100%;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.service-card-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card-modern:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(124, 58, 237, 0.15), 0 0 1px rgba(0, 0, 0, 0.08);
  border-color: rgba(124, 58, 237, 0.3);
}

.service-card-modern:hover::before {
  width: 100%;
  height: 3px;
}

.service-icon-modern {
  background: #f3e8ff;
  color: var(--primary-color);
  width: 70px;
  height: 70px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 2.2rem;
}

.service-card-modern:hover .service-icon-modern {
  background: var(--primary-color);
  color: white;
  transform: scale(1.1) rotate(3deg);
}

.service-card-modern h3 {
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.service-card-modern p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.service-features {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.service-features li {
  color: var(--text-light);
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.5rem;
}

.service-features li::before {
  content: '✓';
  color: var(--primary-color);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.service-cta {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.service-cta:hover {
  color: var(--secondary-color);
  gap: 0.75rem;
}

.service-cta::after {
  content: '→';
  transition: transform 0.3s ease;
}

.service-cta:hover::after {
  transform: translateX(3px);
}

/* Optimizaciones de performance */
* {
  box-sizing: border-box;
}

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

/* Responsive design optimizado */
@media (max-width: 1200px) {
  .container {
    max-width: 1140px;
  }
  
  .hero-section-modern h1 {
    font-size: 3rem;
  }
}

@media (max-width: 992px) {
  .hero-section-modern h1 {
    font-size: 2.5rem;
  }
  
  .hero-section-modern .display-4 {
    font-size: 2.2rem;
  }
  
  .dashboard-mockup {
    max-width: 100%;
    padding: 1.5rem;
  }
  
  .metrics-visual {
    padding: 1.5rem;
  }
  
  .metric-card-large {
    padding: 1.5rem;
  }
  
  .metric-number {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .hero-section-modern h1 {
    font-size: 2rem;
    line-height: 1.2;
  }
  
  .hero-section-modern .display-4 {
    font-size: 1.8rem;
  }
  
  .hero-section-modern .lead {
    font-size: 1.1rem;
  }
  
  .dashboard-mockup {
    max-width: 100%;
    padding: 1rem;
    margin-top: 2rem;
  }
  
  .metrics-visual {
    padding: 1rem;
  }
  
  .metric-card-large {
    padding: 1.5rem;
  }
  
  .metric-number {
    font-size: 2rem;
  }
  
  .benefits-grid {
    gap: 1.5rem;
  }
  
  .benefit-item {
    flex-direction: column;
    text-align: center;
  }
  
  .service-card-modern {
    padding: 1.5rem;
  }
  
  .process-section {
    padding: 4rem 0;
  }
  
  .case-study-card {
    padding: 1.5rem;
  }
  
  .case-icon {
    width: 64px;
    height: 64px;
  }
  
  .case-metric .metric-number {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  /* Tipografía optimizada para móvil */
  body {
    font-size: 16px;
    line-height: 1.6;
  }

  h1 {
    font-size: 1.75rem; /* 28px */
    line-height: 1.3;
    margin-bottom: 1rem;
  }

  h2 {
    font-size: 1.5rem; /* 24px */
    line-height: 1.3;
    margin-bottom: 0.875rem;
  }

  h3 {
    font-size: 1.25rem; /* 20px */
    line-height: 1.4;
    margin-bottom: 0.75rem;
  }

  h4 {
    font-size: 1.125rem; /* 18px */
    line-height: 1.4;
  }

  p {
    font-size: 16px;
    line-height: 1.6; /* 1.5x el tamaño de fuente */
    margin-bottom: 1rem;
  }

  .lead {
    font-size: 17px;
    line-height: 1.6;
  }

  /* Hero section móvil */
  .hero-section-modern h1 {
    font-size: 1.75rem;
    line-height: 1.3;
  }
  
  .hero-section-modern .display-4 {
    font-size: 1.75rem;
    line-height: 1.3;
  }
  
  .hero-section-modern .lead {
    font-size: 17px;
    line-height: 1.6;
  }
  
  /* Botones optimizados para móvil */
  .btn,
  .btn-primary,
  .btn-outline-primary,
  .btn-outline-light {
    width: 100%;
    max-width: 100%;
    min-height: 48px;
    padding: 14px 24px;
    font-size: 16px;
    margin: 8px 0;
  }

  .hero-section-modern .btn-lg {
    font-size: 16px;
    padding: 14px 24px;
    min-height: 48px;
    width: 100%;
  }

  /* Espaciado entre botones en móvil */
  .d-flex.flex-wrap {
    flex-direction: column;
    width: 100%;
  }

  .d-flex.flex-wrap .btn {
    width: 100%;
    margin: 8px 0;
  }

  /* Contenedores con padding adecuado */
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  section {
    padding: 3rem 0;
    margin: 1rem 0;
  }

  .py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  
  /* Dashboard y métricas */
  .dashboard-mockup {
    padding: 1rem;
    margin-top: 2rem;
  }

  /* Ajustes específicos para navegación del dashboard en móvil */
  .dashboard-nav {
    gap: 0.25rem;
    justify-content: space-between;
  }

  .dashboard-nav .nav-item {
    padding: 0.4rem 0.5rem;
    font-size: 0.8rem;
    flex: 1;
    text-align: center;
    min-width: 0;
  }

  .dashboard-nav .nav-item:last-child {
    flex: 1;
  }
  
  .metric-card-large {
    padding: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .metric-number {
    font-size: 2rem;
  }

  /* Tarjetas de servicio */
  .service-card-modern {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .service-icon-modern {
    width: 64px;
    height: 64px;
  }

  /* Proceso */
  .process-section {
    padding: 3rem 0;
  }

  .step-content {
    padding: 1.5rem;
  }

  /* Formulario de contacto */
  .contact-form-container {
    padding: 1.5rem;
    margin-top: 1.5rem;
  }

  .contact-info {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }

  .form-control {
    font-size: 16px; /* Evita zoom en iOS */
    min-height: 48px;
    padding: 12px 16px;
  }

  textarea.form-control {
    min-height: 120px;
  }

  /* Footer */
  .footer {
    padding: 2.5rem 0;
  }

  .footer .col-lg-4,
  .footer .col-lg-2,
  .footer .col-md-6 {
    margin-bottom: 2rem;
  }
  
  .social-links,
  .social-links-footer {
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
  }

  /* Métricas del hero */
  .hero-metrics {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .hero-metric {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 12px;
    width: 100%;
  }

  .hero-metric .metric-number {
    font-size: 1.75rem;
  }

  .hero-metric .metric-label {
    font-size: 0.875rem;
  }

  /* Navegación móvil */
  .navbar-nav {
    padding: 1rem 0;
  }

  .navbar-nav .nav-link {
    padding: 12px 16px !important;
    margin: 4px 0;
    font-size: 16px;
  }

  /* Indicador de scroll */
  .scroll-indicator {
    bottom: 20px;
  }

  .scroll-text {
    display: none; /* Ocultar texto en móvil para ahorrar espacio */
  }

  /* Casos de éxito */
  .case-study-card {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .case-icon {
    width: 64px;
    height: 64px;
  }

  /* Testimonios */
  .testimonial-card {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }

  /* Partners */
  .partner-logo {
    max-height: 80px;
    margin: 1rem 0;
  }

  /* WhatsApp flotante */
  .whatsapp-float {
    width: 56px;
    height: 56px;
    bottom: 20px;
    right: 20px;
  }

  .whatsapp-icon {
    width: 32px;
    height: 32px;
  }
}

/* Breakpoint extra para pantallas muy pequeñas */
@media (max-width: 360px) {
  .dashboard-nav .nav-item {
    font-size: 0.75rem;
    padding: 0.3rem 0.4rem;
  }
  
  .dashboard-mockup {
    padding: 0.75rem;
  }
}

/* Estilos para la sección de proceso */
.process-section {
  background: var(--dark-bg);
  color: var(--white);
  padding: 6rem 0;
}

.process-timeline {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.process-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
  transform: translateX(-50%);
}

.process-step {
  position: relative;
  margin-bottom: 4rem;
  display: flex;
  align-items: center;
}

.process-step:nth-child(odd) {
  flex-direction: row;
}

.process-step:nth-child(even) {
  flex-direction: row-reverse;
}

.step-number {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  z-index: 2;
  border: 4px solid var(--white);
  box-shadow: 0 4px 15px rgba(141, 74, 238, 0.3);
}

.step-content {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 2rem;
  width: calc(50% - 40px);
  position: relative;
  transition: all 0.3s ease;
}

.step-content:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.step-icon {
  background: rgba(141, 74, 238, 0.15);
  color: white;
  width: 64px;
  height: 64px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
  font-size: 1.8rem;
}

.step-content:hover .step-icon {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  transform: scale(1.1);
}

.step-content h3 {
  color: var(--white);
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.step-content p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.step-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.step-features li {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.9rem;
}

.step-features li::before {
  content: '✓';
  color: var(--secondary-color);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Responsive para proceso */
@media (max-width: 768px) {
  .process-timeline::before {
    left: 30px;
  }
  
  .process-step {
    flex-direction: row !important;
    padding-left: 80px;
  }
  
  .step-number {
    left: 30px;
    width: 50px;
    height: 50px;
    font-size: 1rem;
  }
  
  .step-content {
    width: 100%;
    padding: 1.5rem;
  }
  
  .step-icon {
    width: 48px;
    height: 48px;
  }
}

/* Estilos para casos de éxito */
.case-study-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-light);
  height: 100%;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.case-study-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.case-study-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(124, 58, 237, 0.15), 0 0 1px rgba(0, 0, 0, 0.08);
  border-color: rgba(124, 58, 237, 0.3);
}

.case-study-card:hover::before {
  width: 100%;
  height: 3px;
}

.case-icon {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  width: 80px;
  height: 80px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.case-metric {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.case-metric .metric-number {
  font-size: 3.5rem;
  font-weight: 700;
  background: var(--text-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.case-metric .metric-label {
  font-size: 1rem;
  color: var(--text-light);
  font-weight: 500;
}

.case-study-card h3 {
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.case-description {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.case-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.feature-tag {
  background: rgba(141, 74, 238, 0.1);
  color: var(--primary-color);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(141, 74, 238, 0.2);
}

/* Estilos para ¿Por qué Kexe? */
.why-kexe-item {
  text-align: center;
  padding: 1.5rem;
}

.why-icon {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.why-kexe-item h4 {
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.why-kexe-item p {
  color: var(--text-light);
  margin: 0;
  line-height: 1.6;
}

/* Responsive para casos de éxito */
@media (max-width: 768px) {
  .case-study-card {
    padding: 1.5rem;
  }
  
  .case-icon {
    width: 64px;
    height: 64px;
  }
  
  .case-metric .metric-number {
    font-size: 2rem;
  }
  
  .why-kexe-item {
    padding: 1rem;
  }
}

/* Estilos para el formulario de contacto modernizado */
.contact-info {
  padding: 2rem;
}

.contact-info h3 {
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 1rem;
}

.contact-info p {
  color: var(--text-light);
  line-height: 1.6;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
    margin-bottom: 2rem;
  }

.contact-method {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-method:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.contact-icon {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-details h4 {
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.contact-details p {
  color: var(--text-light);
  margin: 0;
  font-size: 0.9rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  background: var(--primary-color);
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--secondary-color);
  color: white;
  transform: translateY(-2px);
}

.contact-form-container {
  background: var(--white);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(141, 74, 238, 0.1);
}

.form-label {
  color: var(--text-dark);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.form-control {
  border: 2px solid rgba(141, 74, 238, 0.1);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  background: var(--white);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(141, 74, 238, 0.25);
  transform: translateY(-1px);
}

.form-control::placeholder {
  color: #999;
}

.form-check {
  margin-top: 1rem;
}

.form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.form-check-label {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.4;
}

.form-check-label a {
  color: var(--primary-color);
  text-decoration: none;
}

.form-check-label a:hover {
  text-decoration: underline;
}

.btn-loading {
  display: none;
}

.btn-primary:disabled .btn-text {
  display: none;
}

.btn-primary:disabled .btn-loading {
  display: inline !important;
}

/* Responsive para formulario de contacto */
@media (max-width: 768px) {
  .contact-info {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .contact-form-container {
    padding: 1.5rem;
  }
  
  .contact-method {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
  
  .social-links {
    justify-content: center;
  }
}

/* Estilos para el footer modernizado */
.footer {
  background: var(--dark-bg) !important;
  color: var(--white) !important;
  margin-top: 2rem;
  position: relative;
  z-index: 1000;
}

.footer h5 {
  color: var(--white);
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-logo {
  height: 50px;
  width: auto;
  margin-bottom: 1rem;
}

.footer p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.footer ul {
  list-style: none;
  padding: 0;
}

.footer ul li {
  margin-bottom: 0.5rem;
}

.footer ul li a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer ul li a:hover {
  color: var(--secondary-color);
}

.social-links-footer {
  display: flex;
  gap: 1rem;
}

.social-link-footer {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link-footer:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-contact {
  display: flex;
  flex-direction: column;
}

.contact-item {
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.contact-item svg {
  color: var(--secondary-color);
  flex-shrink: 0;
}

.footer hr {
  border-color: rgba(255, 255, 255, 0.2);
}

.footer a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

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

/* ========================================
   MEJORAS DE ACCESIBILIDAD Y CONTRASTE
   ======================================== */

/* Focus visible mejorado para navegación por teclado */
*:focus-visible {
  outline: 3px solid var(--primary-color);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Eliminar outline por defecto pero mantenerlo para teclado */
*:focus:not(:focus-visible) {
  outline: none;
}

/* Focus en botones */
.btn:focus-visible,
button:focus-visible {
  outline: 3px solid var(--primary-color);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(141, 74, 238, 0.2);
}

/* Focus en links */
a:focus-visible {
  outline: 3px solid var(--primary-color);
  outline-offset: 2px;
  text-decoration: underline;
}

/* Focus en inputs */
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--primary-color);
  outline-offset: 2px;
  border-color: var(--primary-color);
}

/* Mejorar contraste de texto en todos los elementos */
.text-muted {
  color: var(--text-light) !important;
}

/* Enlaces con mejor contraste */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover,
a:focus {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Skip to main content para lectores de pantalla */
.skip-to-main {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-color);
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  z-index: 10000;
  border-radius: 0 0 4px 0;
}

.skip-to-main:focus {
  top: 0;
  outline: 3px solid white;
  outline-offset: 2px;
}

/* ========== MEJORAR CONTRASTE EN SECCIONES OSCURAS (CRÍTICO) ========== */
.hero-section-modern,
.process-section,
footer.footer {
  color: white !important;
}

.hero-section-modern p,
.process-section p,
footer.footer p {
  color: #e2e8f0 !important; /* Blanco-gris suave, muy legible */
}

.hero-section-modern h1,
.hero-section-modern h2,
.hero-section-modern h3,
.process-section h2,
.process-section h3,
footer.footer h3,
footer.footer h4 {
  color: white !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Enlaces en secciones oscuras: más visibles y accesibles */
.hero-section-modern a,
.process-section a,
footer.footer a {
  color: #dbeafe !important; /* Azul cielo pálido para accesibilidad */
}

.hero-section-modern a:hover,
.process-section a:hover,
footer.footer a:hover {
  color: #93c5fd !important;
  text-shadow: 0 0 8px rgba(124, 58, 237, 0.5);
}

/* Asegurar texto legible en tarjetas (secciones claras) */
.card,
.service-card-modern,
.case-study-card,
.testimonial-card {
  background: white;
  color: var(--text-dark);
}

.card p,
.service-card-modern p,
.case-study-card p,
.testimonial-card p {
  color: var(--text-light);
}

/* Contraste mejorado en botones */
.btn-outline-primary {
  color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: white;
}

/* Mejoras de touch target para móvil */
@media (hover: none) and (pointer: coarse) {
  /* Aumentar área táctil en dispositivos touch */
  .nav-link,
  .btn,
  button,
  a,
  input,
  select,
  textarea {
    min-height: 44px;
    min-width: 44px;
  }

  /* Eliminar efectos hover en táctil */
  .btn:hover,
  .nav-link:hover,
  a:hover {
    transform: none;
  }

  /* Mejorar feedback táctil */
  .btn:active,
  button:active {
    transform: scale(0.97);
    transition: transform 0.1s ease;
  }
}

/* Estilos para testimonios */
.testimonial-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(141, 74, 238, 0.1);
  height: 100%;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.testimonial-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.quote-icon {
  color: var(--primary-color);
  margin-bottom: 1rem;
  opacity: 0.7;
}

.testimonial-text {
  color: var(--text-dark);
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.testimonial-author {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(141, 74, 238, 0.1);
}

.author-info h5 {
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.author-info span {
  color: var(--text-light);
  font-size: 0.9rem;
}

.rating {
  color: #ffc107;
  font-size: 1rem;
}

/* ========== PARTNERS SECTION - LOGOS CON FILTRO ========== */

.partner-card {
  transition: all 0.3s ease;
}

.partner-card img {
  filter: grayscale(100%) opacity(0.6);
  transition: filter 0.3s ease, opacity 0.3s ease;
  max-width: 100%;
  height: auto;
}

.partner-card:hover img {
  filter: grayscale(0%) opacity(1);
}


/* Responsive para testimonios */
@media (max-width: 768px) {
  .testimonial-card {
    padding: 1.5rem;
  }
  
  .testimonial-author {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* Sistema de notificaciones toast */
.toast-custom {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(141, 74, 238, 0.2);
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.toast-custom.success {
  border-left: 4px solid #28a745;
}

.toast-custom.error {
  border-left: 4px solid #dc3545;
}

.toast-custom .toast-header {
  background: transparent;
  border-bottom: 1px solid rgba(141, 74, 238, 0.1);
  border-radius: 12px 12px 0 0;
}

.toast-custom .toast-body {
  color: var(--text-dark);
  font-weight: 500;
} 