:root {
  --accent: #4C6FFF;
  --accent-dark: #3A55CC;
  --bg-light: #F8FAFD;
  --ink: #1E2A38;
  --muted: #606B78;
  --border: #E8ECF2;
  --white: #FFFFFF;
}

/* ==== Layout general ==== */
.section-plan-detail {
  background-color: var(--bg-light);
  overflow: hidden;
}
.plan-image {
  background-size: cover;
  background-position: center;
  min-height: 480px;
  transition: transform .6s ease, filter .6s ease;
}
.plan-image:hover {
  transform: scale(1.02);
  filter: brightness(1.05);
}

/* ==== Contenido del plan ==== */
.plan-content {
  background: var(--white);
  border-left: 1px solid var(--border);
  padding: 3rem;
  color: var(--ink);
}
.plan-title {
  font-size: 2rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 1.25rem;
  letter-spacing: 0.5px;
}
.plan-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  border-radius: 2px;
  background: var(--accent);
  margin-top: 10px;
}

/* ==== Descripción dinámica ==== */
.plan-description {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--muted);
}
.plan-description p {
  margin-bottom: 1rem;
}
.plan-description strong {
  color: var(--ink);
}
.plan-description .highlight {
  color: var(--accent);
  font-weight: 700;
}
.plan-description ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.5rem;
}
.plan-description li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.6rem;
  color: var(--ink);
}
.plan-description li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: bold;
}
.plan-description .label {
  color: var(--accent-dark);
  font-weight: 700;
  text-transform: uppercase;
}

/* ==== Sección de beneficios fijos ==== */
.features-section {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}
.section-subtitle {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 1.25rem;
}
.feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.feature .icon-wrap {
  background: rgba(76, 111, 255, 0.1);
  color: var(--accent);
  font-size: 1.3rem;
  padding: 0.6rem 0.8rem;
  border-radius: 50%;
  flex-shrink: 0;
}
.feature h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.3rem;
}
.feature p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ==== CTA ==== */
.plan-cta {
  margin-top: 2.5rem;
}
.btn-cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  padding: 1rem 2.2rem;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 10px 25px rgba(76, 111, 255, 0.25);
}
.btn-cta:hover {
  background: var(--accent-dark);
  box-shadow: 0 10px 30px rgba(76, 111, 255, 0.35);
  transform: translateY(-2px);
}
.cta-note {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ==== Responsive ==== */
@media (max-width: 991px) {
  .plan-content {
    padding: 2rem 1.5rem;
    border-left: none;
    border-top: 1px solid var(--border);
  }
  .plan-title {
    font-size: 1.6rem;
    text-align: center;
  }
  .plan-description {
    text-align: justify;
  }
  .features-section {
    padding-top: 1.5rem;
  }
  .feature {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .feature .icon-wrap {
    margin-bottom: 0.5rem;
  }
  .plan-cta {
    text-align: center;
  }
  .btn-cta {
    width: 80%;
    margin: 0 auto;
  }
}
#plan-cta {
  color: white !important;
}

/* ============================================
   ESTILOS MEJORADOS PARA LAS MODALIDADES
   (BASIC / PLUS / VIP)
   ============================================ */

.plan-list {
  list-style: none;
  padding-left: 0;
  margin: 2rem 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

/* En pantallas medias / grandes mostrar 3 columnas */
@media (min-width: 992px) {
  .plan-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tarjeta de cada plan */
.plan-list li {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.8rem 1.4rem;
  box-shadow: 0 8px 18px rgba(0,0,0,0.05);
  transition: transform .25s ease, box-shadow .25s ease;
  position: relative;
}

/* Hover premium */
.plan-list li:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(76, 111, 255, 0.18);
  border-color: var(--accent);
}

/* Título (BASIC / PLUS / VIP) */
.plan-list li strong {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
  display: block;
  margin-bottom: 0.6rem;
}

/* Descripción del plan */
.plan-list li {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

/* Contenedor del botón */
.payment-buttons {
  margin-top: 1.4rem;
  display: flex;
  justify-content: center;
}

/* Botones principales de pago */
.payment-btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 50px;
  text-decoration: none;
  transition: all .25s ease;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* Colores personalizados */
.payment-btn.basico {
  background: #4C6FFF;
  color: white;
}
.payment-btn.plus {
  background: #14b8a6;
  color: white;
}
.payment-btn.vip {
  background: #ffb400;
  color: #000;
}

/* Hover smart */
.payment-btn:hover {
  transform: translateY(-3px);
  filter: brightness(1.08);
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}

/* Quitar bullets internos heredados */
.plan-description ul ul,
.plan-description .plan-list {
  list-style: none !important;
  padding-left: 0 !important;
}
/* ============================================
   BOTONES MEJORADOS + ALINEACIÓN PERFECTA
   ============================================ */

/* Convertimos cada tarjeta en flexbox vertical */
.plan-list li {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.8rem 1.4rem;
  box-shadow: 0 8px 18px rgba(0,0,0,0.05);
  transition: transform .25s ease, box-shadow .25s ease;
  position: relative;

  display: flex;
  flex-direction: column;
  justify-content: space-between; /* empuja el botón hacia abajo */
  height: 100%; /* todas las tarjetas igualan altura */
}

/* Contenedor del botón */
.payment-buttons {
  display: flex;
  justify-content: center;
  margin-top: auto;   /* empuja el botón al fondo de la tarjeta */
  padding-top: 1.2rem;
}

/* Botones */
.payment-btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  font-weight: 700 !important;
  font-size: 0.95rem;
  border-radius: 50px;
  text-decoration: none !important;
  transition: all .25s ease;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  text-align: center;
  width: 100%; /* opcional: botón igualado */
  max-width: 200px;  /* se ve elegante */
}

/* Colores con !important para asegurar consistencia */
.payment-btn.basico {
  background: #4C6FFF !important;
  color: #ffffff !important;
}
.payment-btn.plus {
  background: #14b8a6 !important;
  color: #ffffff !important;
}
.payment-btn.vip {
  background: #ffb400 !important;
  color: #000000 !important;
}

/* Hover uniforme */
.payment-btn:hover {
  transform: translateY(-3px);
  filter: brightness(1.08);
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}
