/* =========================================================
   PLANES PREMIUM - STELLA TV
   Diseño cinematic premium
========================================================= */

/* =========================================================
   CONTENEDOR GENERAL
========================================================= */

.plans {
  position: relative;
  overflow: hidden;
}

/* =========================================================
   SWITCH CLIENTE / RESELLER
========================================================= */

.plan-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;

  margin-bottom: 40px;

  font-weight: 900;
}

.switch {
  position: relative;

  width: 74px;
  height: 38px;
}

.switch input {
  display: none;
}

.slider {
  position: absolute;
  inset: 0;

  border-radius: 999px;

  border: 1px solid var(--border);

  background:
    rgba(255, 255, 255, 0.14);

  transition: 0.3s ease;
}

.slider::before {
  content: "";

  position: absolute;

  top: 4px;
  left: 5px;

  width: 28px;
  height: 28px;

  border-radius: 50%;

  background:
    linear-gradient(
      135deg,
      var(--pink),
      var(--orange)
    );

  transition: 0.3s ease;
}

.switch input:checked + .slider::before {
  transform: translateX(34px);
}

/* =========================================================
   SHOWCASE
========================================================= */

.plans-showcase {
  position: relative;

  width: 100%;

  padding: 10px 80px 30px;
}

.showcase-stage {
  display: flex;
  flex-wrap: nowrap;

  gap: 28px;

  padding: 18px 4px 32px;

  overflow-x: auto;
  overflow-y: hidden;

  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
}

/* =========================================================
   SCROLLBAR
========================================================= */

.showcase-stage::-webkit-scrollbar {
  height: 8px;
}

.showcase-stage::-webkit-scrollbar-track {
  border-radius: 999px;

  background:
    rgba(255,255,255,0.05);
}

.showcase-stage::-webkit-scrollbar-thumb {
  border-radius: 999px;

  background:
    linear-gradient(
      90deg,
      var(--pink),
      var(--orange)
    );
}

/* =========================================================
   CARD PREMIUM
========================================================= */

.plan-card {
  position: relative;

  flex: 0 0 calc((100% - 56px) / 3);
  min-width: calc((100% - 56px) / 3);

  min-height: 600px;

  padding: 28px;

  border-radius: 36px;

  overflow: hidden;

  border:
    1px solid rgba(255,255,255,0.08);

  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,0.08),
      rgba(255,255,255,0.025)
    );

  box-shadow:
    0 35px 90px rgba(0,0,0,0.58),
    inset 0 1px 0 rgba(255,255,255,0.05);

  scroll-snap-align: start;

  transform-style: preserve-3d;

  transition:
    transform 0.45s ease,
    border-color 0.45s ease,
    box-shadow 0.45s ease;
}

/* =========================================================
   BRILLO SUPERIOR
========================================================= */

.plan-card::before {
  content: "";

  position: absolute;
  inset: 0;

  z-index: 4;

  pointer-events: none;

  background:
    linear-gradient(
      120deg,
      transparent 18%,
      rgba(255,255,255,0.12),
      transparent 80%
    );

  transform: translateX(-120%);

  transition: 0.9s ease;
}

/* =========================================================
   OSCURECER FONDO
========================================================= */

.plan-card::after {
  content: "";

  position: absolute;
  inset: 0;

  z-index: 2;

  pointer-events: none;

  border-radius: inherit;

  background:
    linear-gradient(
      to bottom,
      rgba(5,4,10,0.18) 0%,
      rgba(5,4,10,0.52) 45%,
      rgba(5,4,10,0.92) 100%
    );
}

/* =========================================================
   HOVER
========================================================= */

.plan-card:hover {
  transform:
    translateY(-18px)
    rotateX(5deg)
    rotateY(-4deg)
    scale(1.015);

  border-color:
    rgba(255,255,255,0.2);

  box-shadow:
    0 50px 120px rgba(0,0,0,0.72),
    0 0 45px rgba(255,59,141,0.2);
}

.plan-card:hover::before {
  transform: translateX(120%);
}

/* =========================================================
   IMAGEN COMO FONDO
========================================================= */

.plan-image-wrap {
  position: absolute;
  inset: 0;

  z-index: 1;

  width: 100%;
  height: 100%;

  overflow: hidden;

  border-radius: inherit;
}

.plan-image-wrap img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;
  object-position: center top;

  transform: scale(1.08);

  filter:
    brightness(0.34)
    saturate(1.12)
    contrast(1.08);

  transition:
    transform 0.7s ease,
    filter 0.7s ease;
}

.plan-card:hover .plan-image-wrap img {
  transform: scale(1.14);

  filter:
    brightness(0.42)
    saturate(1.2)
    contrast(1.12);
}

/* =========================================================
   TODO EL CONTENIDO ENCIMA
========================================================= */

.plan-card > *:not(.plan-image-wrap) {
  position: relative;
  z-index: 3;
}

/* =========================================================
   BADGE
========================================================= */

.plan-badge {
  display: inline-flex;

  padding: 8px 13px;

  margin-bottom: 14px;

  border-radius: 999px;

  font-size: 0.82rem;
  font-weight: 900;

  background:
    rgba(255,255,255,0.08);

  border:
    1px solid var(--border);
}

/* =========================================================
   TITULO
========================================================= */

.plan-card h3 {
  margin: 12px 0 10px;

  font-size: 1.8rem;

  line-height: 1.2;
}

/* =========================================================
   PRECIO
========================================================= */

.price {
  font-size: 2.7rem;
  font-weight: 950;

  background:
    linear-gradient(
      135deg,
      var(--pink),
      var(--orange)
    );

  -webkit-background-clip: text;

  color: transparent;
}

/* =========================================================
   DESCRIPCIÓN
========================================================= */

.plan-card p {
  margin: 14px 0;

  color: rgba(255,255,255,0.76);

  line-height: 1.75;
}

/* =========================================================
   FEATURES
========================================================= */

.features {
  list-style: none;

  margin: 18px 0 26px;

  color: #f2f2f6;
}

.features li {
  margin: 12px 0;
}

/* =========================================================
   BOTÓN COMPRAR
========================================================= */

.cart-btn {
  width: 100%;

  background:
    linear-gradient(
      135deg,
      var(--pink),
      var(--orange)
    );
}

/* =========================================================
   FLECHAS
========================================================= */

.showcase-arrow {
  position: absolute;
  top: 50%;
  z-index: 10;

  width: 58px;
  height: 58px;

  display: grid;
  place-items: center;

  border-radius: 20px;

  color: white;

  font-size: 2.6rem;
  line-height: 1;

  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,0.12),
      rgba(255,255,255,0.04)
    );

  border:
    1px solid rgba(255,255,255,0.12);

  box-shadow:
    0 18px 45px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.08);

  transform: translateY(-50%);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.showcase-arrow:hover {
  transform:
    translateY(-50%)
    scale(1.08);

  box-shadow:
    0 24px 55px rgba(0,0,0,0.6),
    0 0 26px rgba(255,59,141,0.2);
}

.showcase-prev {
  left: 0;
}

.showcase-next {
  right: 0;
}

/* =========================================================
   DOTS
========================================================= */

.showcase-dots {
  display: flex;
  justify-content: center;

  gap: 10px;

  margin-top: 8px;
}

.showcase-dots button {
  width: 10px;
  height: 10px;

  border-radius: 999px;

  background:
    rgba(255,255,255,0.24);

  transition: 0.3s ease;
}

.showcase-dots button.active {
  width: 34px;

  background:
    linear-gradient(
      90deg,
      var(--pink),
      var(--orange)
    );

  box-shadow:
    0 0 18px rgba(255,59,141,0.35);
}