/* Página Provider: espacios verticales más compactos, alineados con la portada. */
.theme-provider .section {
  padding-top: 52px !important;
  padding-bottom: 52px !important;
}

.theme-provider .section-head {
  margin-bottom: 36px !important;
}

.theme-provider .product-collection-head {
  padding-top: 64px !important;
  padding-bottom: 46px !important;
}

.theme-provider .product-feature-content {
  padding-top: 76px !important;
  padding-bottom: 76px !important;
}

.theme-provider .channel-cta {
  padding-top: 52px !important;
  padding-bottom: 52px !important;
}

/* Imagen lateral aprobada: archivo SVG real, sin reconstrucción por JavaScript. */
.theme-provider .provider-platform .section-head {
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr);
  align-items: start;
  gap: clamp(48px, 6vw, 88px);
}

.theme-provider .provider-platform-side {
  display: grid;
  gap: 20px;
}

.theme-provider .provider-platform-visual {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(7, 26, 43, .12);
  border-radius: 18px;
  background: #071a2b url("assets/premium/provider-platform-approved.svg") center / cover no-repeat;
  box-shadow: 0 24px 60px rgba(7, 26, 43, .13);
}

.theme-provider .provider-platform-visual img {
  display: none;
}

.theme-provider .provider-platform-side > p {
  max-width: 620px;
  margin: 0;
  color: var(--premium-muted);
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.75;
}

/* Seis tarjetas basadas en la maqueta aprobada. */
.theme-provider .provider-platform {
  background: #f3f3f1;
}

.theme-provider .provider-platform .service-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 22px !important;
  align-items: stretch !important;
}

.theme-provider .provider-platform .service-card {
  position: relative !important;
  min-height: 318px !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 0 27px 18px !important;
  overflow: hidden !important;
  border: 1px solid rgba(7, 26, 43, .08) !important;
  border-radius: 9px !important;
  background: #fbfaf7 !important;
  box-shadow: 0 13px 30px rgba(7, 26, 43, .10) !important;
  transform: none !important;
  transition: transform .25s ease, box-shadow .25s ease !important;
}

.theme-provider .provider-platform .service-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 18px 38px rgba(7, 26, 43, .13) !important;
}

.theme-provider .provider-platform .service-card::before {
  content: "";
  display: block;
  flex: 0 0 158px;
  width: auto;
  height: 158px;
  margin: 0 -27px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  image-rendering: auto;
  filter: contrast(1.045) saturate(1.025);
  transform: translateZ(0);
  backface-visibility: hidden;
}

.theme-provider .provider-platform .service-card::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: 119px;
  left: 0;
  width: 56%;
  height: 52px;
  border-top-right-radius: 64px 46px;
  background: #fbfaf7;
  pointer-events: none;
}

.theme-provider .provider-platform .service-card:nth-child(1)::before {
  background-image: url("assets/premium/provider-card-insumos.svg");
}

.theme-provider .provider-platform .service-card:nth-child(2)::before {
  background-image: url("assets/premium/provider-card-equipamiento.svg");
}

.theme-provider .provider-platform .service-card:nth-child(3)::before {
  background-image: url("assets/premium/provider-card-formacion.svg");
}

.theme-provider .provider-platform .service-card:nth-child(4)::before {
  background-image: url("assets/premium/provider-card-guias.svg");
}

.theme-provider .provider-platform .service-card:nth-child(5)::before {
  background-image: url("assets/premium/provider-card-operacion.svg");
}

.theme-provider .provider-platform .service-card:nth-child(6)::before {
  background-image: url("assets/premium/provider-card-marketing.svg");
}

.theme-provider .provider-platform .service-card > * {
  position: relative;
  z-index: 2;
}

.theme-provider .provider-platform .service-icon {
  width: auto !important;
  height: auto !important;
  display: block !important;
  place-items: initial !important;
  margin: -8px 0 10px !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 1 !important;
}

.theme-provider .provider-platform .service-icon::before {
  display: block;
  color: #078ca8;
  font-family: "Manrope", sans-serif;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .20em;
  text-transform: uppercase;
}

.theme-provider .provider-platform .service-card:nth-child(1) .service-icon::before { content: "Suministros"; }
.theme-provider .provider-platform .service-card:nth-child(2) .service-icon::before { content: "Equipamiento"; }
.theme-provider .provider-platform .service-card:nth-child(3) .service-icon::before { content: "Formación"; }
.theme-provider .provider-platform .service-card:nth-child(4) .service-icon::before { content: "Documentación"; }
.theme-provider .provider-platform .service-card:nth-child(5) .service-icon::before { content: "Operación"; }
.theme-provider .provider-platform .service-card:nth-child(6) .service-icon::before { content: "Crecimiento"; }

.theme-provider .provider-platform .service-card h3 {
  max-width: 235px !important;
  margin: 0 0 10px !important;
  color: #081b2d !important;
  font-family: "DM Serif Display", Georgia, serif !important;
  font-size: clamp(28px, 1.8vw, 30px) !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  letter-spacing: -.025em !important;
}

.theme-provider .provider-platform .service-card p {
  max-width: 355px !important;
  margin: 0 0 12px !important;
  color: #4f6472 !important;
  font-size: 11px !important;
  line-height: 1.55 !important;
}

.theme-provider .provider-platform .service-card a {
  position: relative !important;
  align-self: flex-start !important;
  margin-top: auto !important;
  padding: 0 0 10px !important;
  color: #078ca8 !important;
  font-size: 9px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  letter-spacing: .14em !important;
  text-transform: uppercase !important;
}

.theme-provider .provider-platform .service-card a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 132px;
  height: 2px;
  background: #078ca8;
}

@media (max-width: 1100px) {
  .theme-provider .provider-platform .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 900px) {
  .theme-provider .provider-platform .section-head {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 760px) {
  .theme-provider .section,
  .theme-provider .channel-cta {
    padding-top: 38px !important;
    padding-bottom: 38px !important;
  }

  .theme-provider .section-head {
    margin-bottom: 26px !important;
  }

  .theme-provider .product-collection-head {
    padding-top: 44px !important;
    padding-bottom: 34px !important;
  }

  .theme-provider .product-feature-content {
    padding-top: 54px !important;
    padding-bottom: 54px !important;
  }
}

@media (max-width: 700px) {
  .theme-provider .provider-platform .service-grid {
    grid-template-columns: 1fr !important;
    gap: 22px !important;
  }

  .theme-provider .provider-platform .service-card {
    width: 100% !important;
    max-width: 520px !important;
    min-height: 318px !important;
    margin-inline: auto !important;
    padding-inline: 24px !important;
  }

  .theme-provider .provider-platform .service-card::before {
    margin-inline: -24px;
  }

  .theme-provider .provider-platform .service-card h3 {
    font-size: 29px !important;
  }
}

@media (max-width: 560px) {
  .theme-provider .provider-platform-visual {
    border-radius: 14px;
  }
}
