/* =====================
   QUOTE BANNER
   Sección full-width con imagen oscura y texto centrado
   ===================== */
.quote-banner {
  position: relative;
  overflow: hidden;
  padding-block: 143px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quote-banner__bg {
  position: absolute;
  inset: 0;
}

.quote-banner__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quote-banner__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.quote-banner__text {
  position: relative;
  z-index: 1;
  font-size: 30px;
  font-weight: var(--fw-regular);
  line-height: 51px;
  color: #fcfcfc;
  text-align: center;
  max-width: 1290px;
  width: 100%;
  margin: 0;
  padding-inline: var(--container-pad);
}

.quote-banner__text strong {
  font-weight: var(--fw-semibold);
}

/* =====================
   IMPACT CARDS — "Desglose Técnico de Impacto" (exclusivo Corporativo)
   Usa el mismo .products__swiper de las otras páginas de soluciones;
   .product-card (components.css) se extiende con un subtítulo.
   ===================== */
.products__desc {
  font-size: 24px;
  font-weight: var(--fw-regular);
  line-height: 42px;
  color: var(--color-navy);
  margin: 0;
}

.product-card__subtitle {
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  line-height: 38px;
  color: var(--color-white-pure);
  margin: 0;
}

/* =====================
   ECOSYSTEM — "Ecosistema Residencial" (exclusivo Residencial)
   Párrafo intro + 3 cards estáticas (no swiper). No es reutilizable.
   ===================== */
.ecosystem {
  padding-block: var(--space-3xl);
  background-color: var(--color-bg-white);
}

.ecosystem__inner {
  display: flex;
  flex-direction: column;
  gap: 44px;
  max-width: calc(var(--container-max) + 4rem);
  margin-inline: auto;
  padding-inline: calc(2rem + 30px);
}

.ecosystem__intro {
  font-size: 28px;
  font-weight: var(--fw-regular);
  line-height: 45px;
  color: var(--color-navy);
  text-align: center;
  max-width: 1090px;
  margin-inline: auto;
}

.ecosystem__intro strong {
  font-weight: var(--fw-semibold);
}

.ecosystem__swiper {
  width: 100%;
}

.ecosystem__swiper .swiper-wrapper {
  align-items: stretch;
}

.ecosystem__scrollbar-wrap {
  display: flex;
  justify-content: center;
  padding-block: 22px;
}

.ecosystem__scrollbar {
  position: relative !important;
  width: 900px;
  max-width: 100%;
  height: 8px;
  border-radius: 8px;
  background: #d9d9d9;
}

.ecosystem__scrollbar .swiper-scrollbar-drag {
  background: var(--color-orange);
  border-radius: 8px;
  cursor: grab;
}

.ecosystem__scrollbar .swiper-scrollbar-drag:active {
  cursor: grabbing;
}

.eco-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 528px;
  padding: 44px 24px;
  border-radius: 16px;
  overflow: hidden;
  isolation: isolate;
}

.eco-card__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.eco-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.eco-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    to bottom,
    rgba(102, 102, 102, 0) 0%,
    rgba(0, 0, 0, 0.9) 79.327%
  );
  pointer-events: none;
}

.eco-card__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.eco-card__title {
  font-size: 24px;
  font-weight: var(--fw-semibold);
  line-height: 56px;
  color: var(--color-white-pure);
  margin: 0;
}

.eco-card__text {
  font-size: var(--fs-md);
  font-weight: var(--fw-light);
  line-height: 30px;
  color: var(--color-white);
  margin: 0;
}

/* =====================
   APP PROMO — Descarga de la app (exclusivo Residencial)
   Panel claro con mockup + texto + badges de tienda. No es reutilizable.
   ===================== */
.app-promo {
  padding-block: var(--space-3xl);
  background-color: var(--color-bg-white);
}

.app-promo__inner {
  max-width: calc(var(--container-max) + 4rem);
  margin-inline: auto;
  padding-inline: calc(2rem + 30px);
}

.app-promo__card {
  position: relative;
  isolation: isolate;
  background-color: #fcfcfc;
  border-radius: 44px;
  overflow: hidden;
  min-height: 570px;
}

.app-promo__media {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 7%;
  width: 52%;
  z-index: 0;
}

.app-promo__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Paneles glass: el mockup flota esmerilado a ambos lados y se funde a #fcfcfc */
.app-promo__glass {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 1;
  pointer-events: none;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.app-promo__glass--left {
  left: 0;
  width: 14%;
  background: linear-gradient(
    90deg,
    #fcfcfc 0%,
    rgba(252, 252, 252, 0.85) 35%,
    rgba(252, 252, 252, 0) 100%
  );
}

.app-promo__glass--right {
  left: 33%;
  right: 0;
  background: linear-gradient(
    90deg,
    rgba(252, 252, 252, 0) 0%,
    rgba(252, 252, 252, 0.5) 22%,
    rgba(252, 252, 252, 0.88) 42%,
    #fcfcfc 58%
  );
}

.app-promo__content {
  position: relative;
  z-index: 2;
  width: 51.5%;
  margin-left: auto;
  min-height: 570px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 48px;
  text-align: center;
}

.app-promo__content .btn {
  align-self: center;
}

.app-promo__title {
  font-size: 24px;
  font-weight: var(--fw-semibold);
  line-height: 45px;
  color: var(--color-orange);
  max-width: 483px;
  margin: 0;
}

.app-promo__text {
  font-size: var(--fs-md);
  font-weight: var(--fw-light);
  line-height: 30px;
  color: #1a1a1a;
  max-width: 483px;
  margin: 0;
}

.app-promo__stores {
  display: flex;
  align-items: center;
  gap: 22px;
}

.app-promo__store-link {
  display: block;
  line-height: 0;
}

.app-promo__store-link img {
  height: 44px;
  width: auto;
}

/* =====================
   RESPONSIVE — INTERIOR
   ===================== */
@media (max-width: 991.98px) {
  .quote-banner {
    padding: 80px 40px;
  }
  .quote-banner__text {
    font-size: 24px;
    line-height: 40px;
  }
  .products__desc {
    font-size: 20px;
    line-height: 34px;
  }
  .ecosystem__intro {
    font-size: 22px;
    line-height: 34px;
  }
  .app-promo__card {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .app-promo__media {
    position: relative;
    inset: auto;
    width: 100%;
    flex-basis: auto;
    min-height: 320px;
  }
  .app-promo__glass {
    display: none;
  }
  .app-promo__content {
    position: static;
    width: 100%;
    margin-left: 0;
    min-height: 0;
    padding: 32px 24px;
  }
}

@media (max-width: 575.98px) {
  .quote-banner {
    padding: 64px 24px;
  }

  .quote-banner__text {
    font-size: 20px;
    line-height: 34px;
  }

  .ecosystem__intro {
    font-size: 18px;
    line-height: 28px;
  }

  .app-promo__card {
    border-radius: 24px;
  }

  .app-promo__media {
    min-height: 240px;
  }

  .app-promo__title {
    font-size: 20px;
    line-height: 32px;
  }

  .app-promo__stores {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ---- Reset mobile: el padding alineado al navbar (calc(2rem + 30px)) solo aplica en desktop; en mobile se usa el gutter estándar ---- */
@media (max-width: 991.98px) {
  .ecosystem__inner {
    padding-inline: var(--container-pad);
  }

  .app-promo__inner {
    padding-inline: var(--container-pad);
  }
}
