/* Slider de inicio: reutiliza el hero existente sin modificar sus estilos. */
.home-slider {
  min-width: 0;
  background: #fff;
  scroll-margin-top: 10rem;
}
.home-slider__slide[hidden] {
  display: none;
}

.home-slider__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 0.7rem 1rem;
  color: #123b76;
  background:  linear-gradient(
            90deg,
            rgba(3, 18, 35, .96) 0%,
            rgba(5, 28, 52, .88) 45%,
            rgba(5, 28, 52, 0.904) 100%
        );
}
.home-slider__controls[hidden] {
  display: none;
}
.home-slider__arrow {
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid #cfdfef;
  border-radius: 50%;
  background: white;
  color: inherit;
  font-size: 1.4rem;
  cursor: pointer;
}
.home-slider__dots {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}
.home-slider__dot {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.home-slider__dot::before {
  content: "";
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: #b5cbe2;
}
.home-slider__dot[aria-current="true"]::before {
  width: 0.85rem;
  height: 0.85rem;
  background: var(--color-primary);
}
.home-slider :is(button, a):focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: -3px;
}
.home-slider__status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Ambas diapositivas participan en el cálculo de altura: no hay saltos de contenido. */
.home-slider__viewport {
  display: grid;
  isolation: isolate;
  overflow: hidden;
  background: #edf6ff;
}
.home-slider__viewport > .home-slider__slide {
  grid-area: 1 / 1;
  min-width: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(2rem);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease,
    visibility 0s 0.65s;
}
.home-slider__viewport > .home-slider__slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
  transition-delay: 0s;
  z-index: 1;
}
.home-slider__viewport > #home-slide-mobile {
  display: grid;
  align-items: center;
  background: #edf6ff;
}
.home-slider__controls {
  flex-wrap: wrap;
}
.home-slider__toggle {
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  border: 1px solid #cfdfef;
  border-radius: 2rem;
  background: #fff;
  color: inherit;
  cursor: pointer;
  font-size: 0.8rem;
}
@media (prefers-reduced-motion: reduce) {
  .home-slider__viewport > .home-slider__slide {
    transition: none;
    transform: none;
  }
}

/* Promoción editable: fondo fotográfico, texto HTML e iconos SVG. */
.home-slider__viewport > #home-slide-mobile.home-mobile,
.home-mobile {
  container-type: inline-size;
  position: relative;
  background: #f2f8ff
    url("../../assets/images/banners/movil-para-todos-fondo.png") center right /
    cover no-repeat;
  color: #093975;
  align-items: center;
}
.home-mobile__content {
  position: relative;
  width: 65%;
  padding: clamp(1.25rem, 3cqw, 3rem);
  padding-bottom: clamp(3rem, 6cqw, 6rem);
}
.home-mobile__brands {
  display: flex;
  align-items: center;
  gap: 1.5cqw;
  margin-bottom: 2cqw;
}
.home-mobile__brand {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 0.5cqw;
}
.home-mobile__brand img {
  width: 8cqw;
  height: auto;
  mix-blend-mode: multiply;
}
.home-mobile__brand strong {
  display: block;
  color: #1179af;
  font-size: clamp(1.3rem, 3.2cqw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.1;
}
.home-mobile__brand strong span {
  font-size: 0.3em;
  letter-spacing: 0;
}
.home-mobile__brand small {
  display: block;
  font-size: clamp(0.38rem, 0.73cqw, 0.75rem);
  color: #172b45;
  letter-spacing: -0.03em;
}
.home-mobile__partner {
  position: relative;
  flex-shrink: 0;
  border-left: 1px solid #17649d;
  padding-left: 1.5cqw;
  padding-right: 4cqw;
  font-size: clamp(1.1rem, 2.7cqw, 2.75rem);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.05em;
}
.home-mobile__partner span {
  display: block;
}
.home-mobile__partner span:first-child,
.home-mobile__partner span:last-of-type {
  color: #ff5807;
}
.home-mobile__partner span:nth-child(2) {
  padding-left: 1cqw;
}
.home-mobile__partner span:last-of-type {
  padding-left: 3cqw;
}
.home-mobile__partner i {
  position: absolute;
  right: 0.5cqw;
  top: 1cqw;
  width: 1.6cqw;
  height: 1.6cqw;
  border-radius: 50%;
  background: #ff5807;
  box-shadow:
    -1cqw 2cqw 0 0.15cqw #093975,
    1.3cqw 2.5cqw 0 -0.2cqw #ff5807,
    1.1cqw -1cqw 0 -0.45cqw #093975;
}
.home-mobile__title {
  font-size: clamp(1.8rem, 4.8cqw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 800;
}
.home-mobile__title > span {
  color: #ff5708;
}
.home-mobile__description {
  margin-top: 0.7rem;
  font-size: clamp(0.9rem, 1.6cqw, 1.5rem);
  line-height: 1.4;
  font-weight: 600;
  color: #253247;
}
.home-mobile__benefits {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 1.5rem 0;
}
.home-mobile__benefits li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  text-align: center;
  font-size: clamp(0.65rem, 1.25cqw, 1.1rem);
  font-weight: 700;
  line-height: 1.2;
  padding-inline: 0.35rem;
  border-right: 1px solid #95b1ce;
}
.home-mobile__benefits li:last-child {
  border: 0;
}
.home-mobile__icon {
  display: grid;
  place-items: center;
  width: clamp(2.5rem, 5.4cqw, 5rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(140deg, #059ae8, #003394);
  color: white;
}
.home-mobile__benefits li:nth-child(even) .home-mobile__icon {
  background: linear-gradient(140deg, #ff9e28, #ff4c05);
}
.home-mobile__icon svg {
  width: 58%;
  height: 58%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.home-mobile__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.7rem 1.4rem;
  border-radius: 5rem;
  color: white;
  background: linear-gradient(100deg, #ff8c00, #ff4b06);
  font-size: clamp(0.8rem, 1.6cqw, 1.4rem);
  font-weight: 700;
  text-decoration: none;
}
.home-mobile__cta > span {
  display: grid;
  place-items: center;
  width: 1.7em;
  height: 1.7em;
  border-radius: 50%;
  background: white;
  color: #ff690b;
  font-size: 1.2em;
}
.home-mobile__cta:hover {
  background: #e64b00;
}
@container (max-width: 650px) {
  .home-mobile__content {
    width: 100%;
    /* height: 100%; */
    padding: 2rem 1rem 3rem;
    background: linear-gradient(90deg, #fffffff5, #ffffffd9 65%, #ffffffa6);
  }
  .home-mobile__brand img {
    width: 12cqw;
  }
  .home-mobile__brand strong {
    font-size: 5cqw;
  }
  .home-mobile__brand small {
    font-size: 1.25cqw;
  }
  .home-mobile__partner {
    font-size: 4.7cqw;
  }
  .home-mobile__title {
    margin-top: 1.5rem;
    font-size: clamp(1.75rem, 7.4cqw, 3rem);
  }
  .home-mobile__benefits {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem 0.3rem;
  }
  .home-mobile__benefits li {
    border: 0;
    font-size: 0.75rem;
  }
  .home-mobile__cta {
    font-size: 0.8rem;
    padding: 0.65rem 0.85rem;
    gap: 0.6rem;
  }
}

/* En teléfonos usamos la composición vertical proporcionada para el banner de telefonía.
   La imagen horizontal de escritorio conserva su configuración original. */
@media (max-width: 40.625rem) {
  .home-slider__viewport > #home-slide-mobile.home-mobile,
.home-mobile {
    background-image: url("../../assets/images/banners/movil-para-todos-vertical.png");
    background-position: center;
    background-size: cover;
  }
}
