/* ==========================================================================
   VARIABLES CORPORATIVAS DE TELWARE (UI SYSTEM)
   ========================================================================== */
:root {
  --bg-dark-deep: #020617;       /* Fondo profundo ultra oscuro */
  --bg-dark-surface: #0f172a;    /* Color de tarjetas primarias */
  --bg-dark-accent: #070c1e;     /* Variación de fondo para secciones alternas */
  --primary: #3b82f6;            /* Azul tecnológico principal */
  --primary-glow: rgba(59, 130, 246, 0.15);
  --primary-hover: #1d4ed8;
  --accent-success: #10b981;     /* Verde de confirmación/estabilidad */
  --text-pure: #ffffff;
  --text-secondary: #94a3b8;
  --border-light: rgba(255, 255, 255, 0.06);
  --radius-lg: 16px;
  --radius-md: 10px;
  --easing: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-speed: 0.3s;
}

/* Reset y Contenedor Base para Soluciones */
.container {
  width: 92%;
  max-width: 1200px;
  margin: 0 auto;
}

.section {
  padding: 100px 0;
  background-color: var(--bg-dark-deep);
}

.section-dark {
  background-color: var(--bg-dark-accent);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

/* Cabeceras de Secciones */
.section-header {
  text-align: center;
  margin-bottom: 70px;
}

.section-header h2 {
  font-size: 34px;
  font-weight: 800;
  color: var(--text-pure);
  letter-spacing: -0.02em;
  margin-bottom: 15px;
}

.section-header p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto;
}

/* Sistema de Grillas (4 columnas fluidas) */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

/* Estilo Base de las Tarjetas (Cards) */
.card {
  background: var(--bg-dark-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 35px 30px;
  transition: all var(--transition-speed) var(--easing);
  position: relative;
}

/* ==========================================================================
   HERO PRINCIPAL (SOLUCIONES)
   ========================================================================== */
.hero-main {
  padding: 140px 0 110px 0;
  background: radial-gradient(ellipse at top right, rgba(59, 130, 246, 0.12), transparent 60%),
              radial-gradient(circle at bottom left, #070c1e, var(--bg-dark-deep) 80%);
  border-bottom: 1px solid var(--border-light);
}

.hero-container {
  display: flex;
  justify-content: flex-start;
}

.hero-content {
  max-width: 780px;
}

.hero-content h1 {
  font-size: 52px;
  font-weight: 800;
  color: var(--text-pure);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-top: 15px;
}

.hero-content p {
  font-size: 19px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 25px 0 40px 0;
}

.hero-actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* ==========================================================================
   COMPONENTE: BOTONES PROFESIONALES
   ========================================================================== */
.btn-primary, .btn-secondary, .btn-secondary-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: all var(--transition-speed) var(--easing);
  cursor: pointer;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--text-pure);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.35);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(59, 130, 246, 0.5);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-pure);
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

.btn-secondary-outline {
  background: transparent;
  color: var(--text-pure);
  border: 2px solid var(--text-pure);
}

.btn-secondary-outline:hover {
  background: var(--text-pure);
  color: var(--bg-dark-deep);
}

.badge {
  display: inline-block;
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ==========================================================================
   SECCIÓN 1: SECCIÓN DE SERVICIOS (TARJETAS FOCUS DE CONVERSIÓN)
   ========================================================================== */
.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card .card-icon {
  color: var(--primary);
  margin-bottom: 25px;
  transition: transform var(--transition-speed) var(--easing);
}

.service-card h3 {
  font-size: 21px;
  font-weight: 700;
  color: var(--text-pure);
  margin-bottom: 15px;
}

.service-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  flex-grow: 1; /* Empuja el botón/link hacia abajo para alineación perfecta */
  margin-bottom: 25px;
}

.card-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: color var(--transition-speed);
  display: inline-block;
}

/* Hover de Servicios */
.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 20px var(--primary-glow);
}

.service-card:hover .card-icon {
  transform: scale(1.1);
}

.service-card:hover .card-link {
  color: var(--text-pure);
  text-decoration: underline;
}

/* ==========================================================================
   SECCIÓN 2: BENEFICIOS (CON ACENTOS VISUALES)
   ========================================================================== */
.benefit-card {
  background: rgba(255, 255, 255, 0.02);
}

.benefit-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.bullet-accent {
  width: 6px;
  height: 18px;
  background-color: var(--accent-success);
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
}

.benefit-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-pure);
}

.benefit-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.benefit-card:hover {
  border-color: rgba(16, 185, 129, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

/* ==========================================================================
   SECCIÓN 3: PROCESO CONECTADO (UI STEPPERS)
   ========================================================================== */
.process {
  position: relative;
}

.process-card {
  background: transparent;
  border-color: transparent;
  padding: 20px 15px;
}

.step-wrapper {
  margin-bottom: 25px;
  position: relative;
  display: inline-block;
}

.step {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary);
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 0 15px var(--primary-glow);
}

.process-card h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-pure);
  margin-bottom: 12px;
}

.process-card p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* Efecto de línea de conexión en pantallas grandes */
@media (min-width: 993px) {
  .process-card:not(:last-child) .step-wrapper::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 60px;
    width: calc(100vw / 5.5); /* Línea adaptativa entre pasos */
    height: 1px;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.4), transparent);
    z-index: 1;
  }
}

/* ==========================================================================
   SECCIÓN 4: CTA FINAL DE VENTAS
   ========================================================================== */
.cta {
  padding: 110px 20px;
  background: linear-gradient(135deg, #070c1e 0%, #0c1e4a 60%, var(--bg-dark-deep) 100%);
  border-top: 1px solid rgba(59, 130, 246, 0.25);
  text-align: center;
}

.cta-container {
  max-width: 800px;
  margin: 0 auto;
}

.cta h2 {
  font-size: 40px;
  font-weight: 800;
  color: var(--text-pure);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  line-height: 1.2;
}

.cta p {
  font-size: 18px;
  line-height: 1.6;
  color: #cbd5e1;
  margin-bottom: 45px;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================================================
   MEDIA QUERIES (OPTIMIZACIÓN RESPONSIVE FLUIDA)
   ========================================================================== */
@media (max-width: 992px) {
  .hero-main {
    padding: 100px 0 70px 0;
    text-align: center;
  }
  .hero-container {
    justify-content: center;
  }
  .hero-content h1 {
    font-size: 40px;
  }
  .hero-content p {
    font-size: 18px;
  }
  .hero-actions {
    justify-content: center;
  }
  .section-header {
    margin-bottom: 50px;
  }
  .section-header h2 {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 70px 0;
  }
  .grid-4 {
    grid-template-columns: 1fr; /* Una columna en celulares para perfecta lectura */
    gap: 20px;
  }
  .cta h2 {
    font-size: 30px;
  }
  .cta p {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 32px;
  }
  .btn-primary, .btn-secondary, .btn-secondary-outline {
    width: 100%; /* Botones de ancho completo en móviles pequeños para facilitar clics */
  }
  .card {
    padding: 30px 20px;
  }
}