/* Estilos específicos para la subpágina soluciones.html (NO Tailwind - CSS puro) */

.nav a.active {
  color: #244CEC;
  font-weight: 700;
}

/* Page Hero para Soluciones */
.page-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(16, 28, 61, 0.93) 0%, rgba(36, 76, 236, 0.85) 100%), url('../images/img_demo/003.png');
  background-size: cover;
  background-position: center;
  overflow: hidden;
  padding-top: 80px;
}

.page-hero .hero-content {
  color: #fff;
  max-width: 800px;
}

.page-hero .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 18px;
}

.page-hero p {
  font-size: 1.2rem;
  opacity: 0.92;
  margin-bottom: 28px;
  max-width: 680px;
  line-height: 1.6;
}

/* Filtros / Tab de soluciones (Navegación interna rápida) */
.sol-nav-bar {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 8vh;
  z-index: 90;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.sol-nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 0;
  flex-wrap: wrap;
}

.sol-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #475569;
  text-decoration: none;
  background: #f1f5f9;
  transition: all 0.25s ease;
  border: 1px solid transparent;
}

.sol-nav-btn:hover, .sol-nav-btn.active {
  background: #244CEC;
  color: #fff;
  border-color: #244CEC;
  box-shadow: 0 4px 12px rgba(36, 76, 236, 0.2);
}

/* Ancla de sección: compensa header fijo (8vh) + subbarra sticky (~52px) */
.section-anchor {
  position: relative;
  scroll-margin-top: calc(8vh + 52px);
}

/* Grilla de Pilares del Portafolio */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}

.pillar-card {
  background: #fff;
  border-radius: 14px;
  padding: 36px 28px;
  border: 1px solid #e2e8f0;
  transition: all 0.35s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.pillar-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #244CEC, #1a3ab8);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.pillar-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(36, 76, 236, 0.12);
  border-color: #cbd5e1;
}

.pillar-card:hover::before {
  opacity: 1;
}

.pillar-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.pillar-icon {
  width: 56px;
  height: 56px;
  background: rgba(36, 76, 236, 0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pillar-icon svg {
  width: 28px;
  height: 28px;
  stroke: #244CEC;
}

.pillar-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
}

.pillar-desc {
  font-size: 0.96rem;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 24px;
  flex-grow: 1;
}

.pillar-partners-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 700;
  color: #94a3b8;
  margin-bottom: 10px;
}

.pillar-partners-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.partner-tag {
  background: #f1f5f9;
  color: #1e293b;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

/* Sección de Soluciones Detalladas por Partner */
.partners-detail-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 50px;
}

.partner-detail-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  padding: 40px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  transition: all 0.3s ease;
}

.partner-detail-card:hover {
  box-shadow: 0 16px 40px rgba(36, 76, 236, 0.08);
  border-color: #93c5fd;
}

.partner-detail-card.reverse {
  grid-template-columns: 0.9fr 1.1fr;
}

.partner-detail-card.reverse .partner-detail-info {
  order: 2;
}

.partner-detail-card.reverse .partner-detail-visual {
  order: 1;
}

.partner-badge-accent {
  display: inline-block;
  background: rgba(36, 76, 236, 0.1);
  color: #244CEC;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.partner-detail-info h3 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 12px;
}

.partner-detail-info p.lead {
  font-size: 1.05rem;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 24px;
}

.partner-feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px 0;
}

.partner-feature-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 14px;
  font-size: 0.95rem;
  color: #334155;
  line-height: 1.6;
}

.partner-feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #244CEC;
  font-weight: 800;
  font-size: 1.05rem;
}

.partner-feature-list li strong {
  color: #0f172a;
}

.metric-highlight-box {
  background: linear-gradient(135deg, rgba(36, 76, 236, 0.06), rgba(36, 76, 236, 0.12));
  border-left: 4px solid #244CEC;
  padding: 16px 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.metric-highlight-box svg {
  width: 24px;
  height: 24px;
  stroke: #244CEC;
  flex-shrink: 0;
}

.metric-highlight-box span {
  font-size: 0.92rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.5;
}

/* Tarjeta visual derecha / izquierda */
.partner-visual-box {
  background: #0f172a;
  background-image: radial-gradient(circle at top right, rgba(36,76,236,0.35), transparent 70%);
  border-radius: 12px;
  padding: 36px 28px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  min-height: 280px;
  border: 1px solid rgba(255,255,255,0.1);
  position: relative;
  overflow: hidden;
}

.partner-visual-box::after {
  content: "";
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  background: rgba(36, 76, 236, 0.15);
  border-radius: 50%;
  filter: blur(20px);
}

.partner-visual-logo-text {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: #fff;
  margin-bottom: 8px;
}

.partner-visual-sub {
  font-size: 0.88rem;
  color: #94a3b8;
  margin-bottom: 24px;
}

.partner-bullets-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill-item {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  color: #e2e8f0;
  font-weight: 500;
}

/* Sección Servicio Gestionado (Help Desk + Redes) */
.managed-services-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  padding: 90px 0;
  position: relative;
  overflow: hidden;
}

.managed-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 50px;
}

.managed-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 36px 30px;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.managed-card:hover {
  transform: translateY(-6px);
  border-color: #244CEC;
  background: rgba(255, 255, 255, 0.08);
}

.managed-icon {
  width: 52px;
  height: 52px;
  background: rgba(36, 76, 236, 0.3);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.managed-icon svg {
  width: 26px;
  height: 26px;
  stroke: #60a5fa;
}

.managed-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
}

.managed-card p {
  font-size: 0.96rem;
  color: #94a3b8;
  line-height: 1.7;
  margin-bottom: 20px;
}

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

.managed-list li {
  padding-left: 24px;
  position: relative;
  font-size: 0.9rem;
  color: #cbd5e1;
  margin-bottom: 10px;
  line-height: 1.5;
}

.managed-list li::before {
  content: "•";
  color: #60a5fa;
  font-size: 1.4rem;
  position: absolute;
  left: 6px;
  top: -4px;
}

/* Call to Action CTA Banner */
.sol-cta-box {
  background: linear-gradient(135deg, #244CEC 0%, #1a3ab8 100%);
  border-radius: 16px;
  padding: 50px 40px;
  color: #fff;
  text-align: center;
  margin-top: 60px;
  box-shadow: 0 16px 40px rgba(36, 76, 236, 0.25);
}

.sol-cta-box h3 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.sol-cta-box p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 650px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .partner-detail-card,
  .partner-detail-card.reverse {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .partner-detail-card.reverse .partner-detail-info {
    order: 1;
  }

  .partner-detail-card.reverse .partner-detail-visual {
    order: 2;
  }

  .managed-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-hero h1 {
    font-size: 2.2rem;
  }

  .page-hero p {
    font-size: 1rem;
  }

  .pillars-grid {
    grid-template-columns: 1fr;
  }

  .partner-detail-card {
    padding: 24px;
  }

  .sol-nav-inner {
    justify-content: flex-start;
    overflow-x: auto;
    padding: 10px 16px;
    white-space: nowrap;
  }

  .sol-cta-box {
    padding: 32px 20px;
  }

  .sol-cta-box h3 {
    font-size: 1.5rem;
  }
}
