:root {
  --carousel-duration: 5000ms;
}

.planes-contenedor-desktop {
  display: none;
}

.modulo-planes-luz {
  display: flex;
  padding: 40px var(--360-575-page-margin, 16px);
  flex-direction: column;
  align-items: center;
  gap: 40px;
  align-self: stretch;
  border-radius: 0 0 24px 24px;
  background: #FFF;
}

.planes-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--size-space-12, 12px);
  align-self: stretch;
}

.planes-titulo {
  color: var(--Color-Content-General-1, #2C2C2C);
  text-align: center;
  font-feature-settings: 'liga' off, 'clig' off;
  margin: 0;
  padding: 0;
  
}

.planes-subtitulo {
  color: var(--Color-Content-General-1, #2C2C2C);
  text-align: center !important;
  font-feature-settings: 'liga' off, 'clig' off;
  margin: 0;
}

.planes-slider-wrapper {
  /* padding-left: 16px; */
  overflow: visible;
}

.planes-contenedor {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
}

.card-plan {
  position: relative;
  width: 314px !important;
  height: 320px;
  border-radius: 24px;
  overflow: visible;
}

.card-plan-image {
  width: 100%;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: #ddd;
  align-items: flex-end;
}

.card-plan-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;

}

.card-plan-info {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  opacity: 1 !important;
  visibility: visible !important;
  padding: var(--size-space-12, 12px) var(--size-space-16, 16px);
  flex-direction: column;
  align-items: center;
  align-self: stretch;
  border-radius: 16px;
  background: var(--Color-Surface-General-1, #FFF);
}


.card-plan.swiper-slide-active {
  opacity: 1 !important;
  height: 374px !important;
  width: 304px !important;
  z-index: 10;
  align-items: flex-end;
}

.card-plan.swiper-slide-active .card-plan-info {
  width: 280px;
  height: 128px;
  display: flex;
  padding: var(--size-space-12, 12px) var(--size-space-16, 16px);
  flex-direction: column;
  align-items: center;
  gap: 8px 16px;
  align-self: stretch;
  border-radius: 16px;
}

.plan-nombre {
  font-size: 16px;
  font-weight: 700;
  color: #2C2C2C;
  margin: 0;
  padding: 0;
}

.plan-detalle {
  font-size: 13px;
  color: #666666;
  margin: 0 0 12px 0;
}

.plan-link {
  color: #2F6852;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

.card-plan .plan-textos-ocultos,
.card-plan .plan-detalle,
.card-plan .plan-link {
  display: none !important;
}

.card-plan.swiper-slide-active .plan-textos-ocultos,
.card-plan.swiper-slide-active .plan-detalle,
.card-plan.swiper-slide-active .plan-link {
  display: block !important;
  margin: 0px;
}

.planes-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: auto;
  width: 100%;
}

.planes-capsule-indicators {
  display: flex;
  height: 32px;
  padding: 0 16px;
  justify-content: center;
  align-items: center;
  border-radius: 100px;
  border: 1px solid #C8D9D0;
  background: #FFF;
}

.planes-pagination-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.planes-indicators.swiper-pagination-horizontal {
  display: flex !important;
  align-items: center !important;
  gap: 8px;
  position: relative !important;
  bottom: auto !important;
}

.planes-bullet {
  position: relative !important;
  background: transparent !important;
  border: none !important;
  width: 32px !important;
  height: 32px !important;
  cursor: pointer;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  outline: none;
}

.planes-ring {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) rotate(90deg) scaleX(-1) !important;
  /* Desaparece arriba en sentido horario */
  width: 32px !important;
  height: 32px !important;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.planes-bullet.swiper-bullet-active .planes-ring {
  opacity: 1;
}

.planes-ring-bg {
  fill: none;
  stroke: #F5F5F5;
  stroke-width: 2.5;
}

.planes-ring-fill {
  fill: none;
  stroke: #00875a;
  stroke-width: 2.5;
  stroke-dasharray: 88;
  stroke-dashoffset: 88;
}

.planes-bullet.swiper-bullet-active .planes-ring-fill.run {
  animation: planesCountdown var(--carousel-duration) linear forwards;
  /* âœ… usa la variable */
}

.modulo-planes-luz.paused .planes-bullet.swiper-bullet-active .planes-ring-fill.run {
  animation-play-state: paused;
}

@keyframes planesCountdown {
  0% {
    stroke-dashoffset: 0;
  }

  100% {
    stroke-dashoffset: 88;
  }
}

.planes-icon-dot-empty,
.planes-icon-dot-filled {
  position: absolute;
  width: 10px;
  height: 10px;
  z-index: 2;
  transition: opacity 0.3s ease;
}

.planes-bullet .planes-icon-dot-empty {
  opacity: 1;
}

.planes-bullet .planes-icon-dot-filled {
  opacity: 0;
}

.planes-bullet.swiper-bullet-active .planes-icon-dot-empty {
  opacity: 0;
}

.planes-bullet.swiper-bullet-active .planes-icon-dot-filled {
  opacity: 1;
}

.planes-pause-btn {
  display: flex;
  width: 32px;
  height: 32px;
  padding: var(--size-space-8, 8px);
  justify-content: center;
  align-items: center;
  gap: 10px;
  aspect-ratio: 1/1;
  border-radius: var(--border-radius-xxl, 100px);
  border: var(--border-width-s, 1px) solid var(--Color-Border-General-1, #C8D9D0);
  background: var(--Color-Surface-General-1, #FFF);
}

.planes-icon-pause {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  pointer-events: none;
}

.planes-banner-content {
  display: flex;
  width: 328px;
  padding: var(--size-space-24, 24px);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  border-radius: var(--border-radius-l, 16px);
  border: 1px solid var(--Color-Border-General-1, #C8D9D0);
}


.planes-banner-texto {
  display: flex;
  align-items: center;
  gap: 16px;
}


.planes-icon-lupa {
  display: none;
  color: #00875a;
  flex-shrink: 0;
}

.banner-titulo {
  color: var(--Color-Form-Content-Active, #2C2C2C);
  font-feature-settings: 'liga' off, 'clig' off;
  font-family: IberPangea;
  font-size: 24px;
  font-style: normal;
  font-weight: 600;
  line-height: 32px; /* 133.333% */
  text-align: center;
}

.banner-subtitulo {
  align-self: stretch;
  color: var(--Color-Form-Content-Active, #2C2C2C);
  font-feature-settings: 'liga' off, 'clig' off;
  font-family: "IberPangea Text";
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 18px; /* 128.571% */
  text-align: center;
}

.planes-btn-comparar {
  display: inline-flex;
  background: #2F6852;
  color: #FFFFFF;
  padding: 12px 40px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 16px;
  width: 212px;
  text-align: center;
  height: 56px;
  text-align: center;
  justify-content: center;
  align-items: center;
}


@media (min-width: 576px) {
  .modulo-planes-luz {
    padding: 40px 42px;
  }

  .card-plan {
    width: 314px !important;
  }

  .card-plan.swiper-slide-active {
    width: 314px !important;
  }

  .planes-banner-content {
    min-width: 492px;
    width: 100%;
  }

}

@media (min-width: 768px) {
  .modulo-planes-luz {
    padding: 40px 48px;
  }

  .planes-banner-content {
    min-width: 674px;
    width: 100%;
  }

}

@media (min-width: 992px) {
  .planes-slider-wrapper {
   display: none;
  }
  
  .planes-contenedor-desktop {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: center;
}

  
  .modulo-planes-luz {
    padding: 40px 82px 80px;
    border-radius: 0 0 48px 48px !important;
  }

  .planes-icon-lupa {
    display: block;
    
  }

  .planes-capsule-indicators,
  .planes-indicators {
    width: 96px;
    display: flex;
    gap: 4px !important;
  }

  .planes-banner-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }

  .banner-titulo,
  .banner-subtitulo {
    text-align: left;
  }

  .card-plan {
    width: 262px !important;
  }


 .card-plan-info-desktop {
    width: 238px;
    height: 146px;
  }

  .planes-controls {
    display: none;
  }

  .card-plan-info-desktop{
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  opacity: 1 !important;
  visibility: visible !important;
  padding: var(--size-space-12, 12px) var(--size-space-16, 16px);
  flex-direction: column;
  align-items: center;
  align-self: stretch;
  border-radius: 16px;
  background: var(--Color-Surface-General-1, #FFF);
}

  .card-plan-info-desktop {
  width: 238px;
  height: 128px;
  display: flex;
  padding: var(--size-space-12, 12px) var(--size-space-16, 16px);
  flex-direction: column;
  align-items: center;
  gap: 8px 16px;
  align-self: stretch;
  border-radius: 16px;
}
  .PONL {
    order: 2;
    height: 374px;
    
  }
    .periodos {
    order: 1;
      height: 374px;
  }
   .MasAhorro {
    order: 3;
     height: 374px;
  }

  .plan-detalle-desktop {
    display: block;
    margin-bottom: 0;
    padding-bottom: 0;
  }
}

@media (min-width: 1200px) {
  .modulo-planes-luz {
    padding: 40px 102px 80px;
  }

  .card-plan {
    width: 314px !important;
  }

   .card-plan-info-desktop {
  width: 290px;
}
}

@media (min-width: 1920px) {
  .modulo-planes-luz {
    padding: 40px 324px 96px;
  }

  .card-plan {
    width: 397px !important;
  }

 
  .card-plan.swiper-slide-active .card-plan-info {
    width: 373px;
    height: 128px;
  }

 
}