/* ==========================================================================
   ESTILOS DE PAQUETES - PÁGINA DE INICIO (INDEX)
   Código independiente y modular para la sección de paquetes en el inicio.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@200;300;400;500;600;700;800;900&family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

.index-packages-section {
  position: relative;
  background-color: #ffffff;
  padding: 8rem 0 9rem 0;
  overflow: hidden;
  font-family: 'Poppins', sans-serif !important;
  border-radius: 40px 40px 0 0;
}

.index-packages-section * {
  box-sizing: border-box;
}

/* Fondo con cuadrícula y sutiles halos decorativos */
.index-packages-section::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 40px 40px 0 0;
  background-image:
    radial-gradient(circle at 50% 20%, rgba(118, 255, 3, 0.04) 0%, transparent 60%),
    radial-gradient(#e5e7eb 1px, transparent 1px);
  background-size: 100% 100%, 28px 28px;
  pointer-events: none;
  z-index: 1;
}

.index-packages-container {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}

/* Cabecera de la Sección */
.index-packages-header {
  text-align: center;
  margin-bottom: 2.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.index-packages-kicker {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: #57cc09;
  letter-spacing: 2.8px;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

/* Título de la sección - Tipografía y estilo balanceado */
.index-packages-title {
  font-family: 'Montserrat', sans-serif !important;
  font-size: clamp(3rem, 4.8vw, 4rem) !important;
  font-weight: 900 !important;
  color: #111111 !important;
  line-height: 1.08 !important;
  margin: 0 0 1.2rem 0 !important;
  letter-spacing: -1.4px !important;
  text-align: center !important;
}

.index-packages-title .title-lead {
  display: block;
  font-size: 0.64em !important;
  font-weight: 700 !important;
  letter-spacing: -0.4px !important;
  color: #222222 !important;
}

.index-packages-title .title-main {
  display: block;
  font-size: 1.15em !important;
  font-weight: 900 !important;
  letter-spacing: -1.6px !important;
  color: #111111 !important;
}

.index-packages-subtitle {
  font-family: 'Poppins', sans-serif !important;
  font-size: 1.15rem !important;
  color: rgba(0, 0, 0, 0.72) !important;
  max-width: 720px !important;
  line-height: 1.65 !important;
  margin: 0 auto !important;
  text-align: center !important;
}

.index-packages-subtitle strong {
  color: #57cc09 !important;
  font-weight: 700 !important;
}

/* Selector de Categorías (Tabs Dinámicas con píldora deslizante ultra smooth) */
.index-category-tabs {
  display: inline-flex;
  position: relative;
  background: #f4f5f7;
  padding: 7px;
  border-radius: 50px;
  margin-top: 1.8rem;
  border: 1px solid #e2e5ea;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.8);
  z-index: 3;
  user-select: none;
}

.index-slider-pill {
  position: absolute;
  top: 5px;
  left: 5px;
  background: linear-gradient(180deg, #1c1d20 0%, #0d0e10 100%);
  border-radius: 42px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15), 0 4px 14px rgba(0, 0, 0, 0.24);
  pointer-events: none;
  z-index: 1;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.index-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: 42px;
  border: none;
  background: transparent !important;
  color: #4a4d52;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  z-index: 2;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.index-tab-btn i {
  font-size: 1.1rem;
  color: #666a70;
  transition: transform 0.2s ease, color 0.2s ease, filter 0.2s ease;
}

.index-tab-btn:hover {
  color: #111111;
}

.index-tab-btn.active {
  color: #ffffff;
}

.index-tab-btn.active i {
  color: #76ff03;
  filter: drop-shadow(0 0 8px rgba(118, 255, 3, 0.7));
}

/* Envoltorio de Pestañas */
.index-tab-wrapper {
  position: relative;
  width: 100%;
}

.index-tab-content {
  display: none;
  animation: indexTabFade 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.index-tab-content.active {
  display: block;
}

@keyframes indexTabFade {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Grid de Tarjetas */
.index-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
  position: relative;
  z-index: 2;
  max-width: 1220px;
  margin: 0 auto;
  padding: 55px 0 10px 0;
}

.index-cards-grid.two-cards {
  grid-template-columns: repeat(2, minmax(300px, 415px));
  justify-content: center;
  gap: 36px;
  max-width: 900px;
  padding-top: 55px;
}

.index-cards-grid.three-cards {
  grid-template-columns: repeat(3, minmax(280px, 1fr));
  justify-content: center;
  gap: 28px;
  max-width: 1220px;
}

.index-cards-grid.single-card {
  grid-template-columns: minmax(300px, 415px);
  justify-content: center;
}

/* Tarjeta individual */
.index-plan-card {
  background: linear-gradient(180deg, #222222 0%, #141414 45%, #040406 100%);
  border-radius: 30px;
  padding: 46px 32px 42px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.15), 0 5px 15px rgba(0, 0, 0, 0.07);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.index-plan-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 30px;
  background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.index-plan-card:hover {
  transform: translateY(-9px);
  border-color: rgba(118, 255, 3, 0.55);
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.25), 0 0 30px rgba(118, 255, 3, 0.22);
}

/* Card Destacada (Elevada con halo verde neón) */
.index-plan-card.featured-plan {
  background: linear-gradient(180deg, #182613 0%, #101b0e 45%, #050507 100%);
  border: 2px solid #76ff03;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.25), 0 0 30px rgba(118, 255, 3, 0.3);
  transform: translateY(-16px) scale(1.025);
}

.index-plan-card.featured-plan:hover {
  transform: translateY(-24px) scale(1.035);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35), 0 0 40px rgba(118, 255, 3, 0.42);
}

/* Ícono Circular Neón */
.index-icon-circle {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(118, 255, 3, 0.2) 0%, rgba(20, 38, 12, 0.65) 50%, #0d0d12 100%);
  border: 1.8px solid #76ff03;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 5px;
  margin-bottom: 28px;
  position: relative;
  box-shadow: 0 0 19px rgba(118, 255, 3, 0.25), inset 0 0 16px rgba(118, 255, 3, 0.15);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.index-icon-circle i {
  font-size: 1.95rem;
  color: #76ff03;
  filter: drop-shadow(0 0 18px rgba(118, 255, 3, 0.85));
  transition: transform 0.35s ease;
}

.index-plan-card:hover .index-icon-circle {
  transform: scale(1.06);
  border-color: #8cff2e;
  box-shadow: 0 0 32px rgba(118, 255, 3, 0.45), inset 0 0 22px rgba(118, 255, 3, 0.25);
}

.index-plan-card:hover .index-icon-circle i {
  transform: scale(1.08);
}

.index-icon-circle.highlight-circle {
  background: radial-gradient(circle, rgba(118, 255, 3, 0.26) 0%, rgba(24, 46, 14, 0.7) 50%, #0e110d 100%);
  box-shadow: 0 0 30px rgba(118, 255, 3, 0.35), inset 0 0 19px rgba(118, 255, 3, 0.2);
}

/* Cuerpo de la Card */
.index-card-body {
  width: 100%;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.index-card-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.05rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.4px;
  margin-bottom: 14px;
  text-transform: uppercase;
  line-height: 1.14;
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.index-card-title span {
  color: #ffffff;
}

.index-card-desc {
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.45;
  max-width: 270px;
  margin: 0 auto 22px auto;
  min-height: auto;
}

/* Caja de Precios */
.index-price-box {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 17px;
  padding: 16px 14px;
  margin-bottom: 26px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  width: 100%;
}

.index-price-main {
  display: flex;
  align-items: baseline;
  justify-content: center;
  line-height: 1;
  margin-bottom: 4px;
}

.index-currency {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #76ff03;
  margin-right: 2px;
}

.index-amount {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.9rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.9px;
}

.index-period {
  font-family: 'Poppins', sans-serif;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.6);
  margin-left: 4px;
}

.index-regular-price {
  display: block;
  font-family: 'Poppins', sans-serif !important;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 500;
  letter-spacing: 0.1px;
  margin-top: 3px;
}

/* Lista de Beneficios con Íconos Temáticos */
.index-features-list {
  list-style: none;
  padding: 0 4px;
  margin: 0 0 34px 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 17px;
  flex-grow: 1;
  width: 100%;
}

.index-features-list li {
  font-family: 'Poppins', sans-serif;
  font-size: 0.91rem;
  color: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  gap: 13px;
  line-height: 1.4;
  white-space: nowrap;
}

.index-features-list li i {
  color: #76ff03;
  font-size: 1.18rem;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(118, 255, 3, 0.5));
}

/* Botón de Contratación */
.index-plan-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  width: 100%;
  padding: 15px 22px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  margin-top: auto;
}

.index-plan-btn i {
  font-size: 0.95rem;
  transition: transform 0.3s ease;
}

.index-plan-btn:hover {
  background: #76ff03;
  color: #000000;
  border-color: #76ff03;
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(118, 255, 3, 0.4);
}

.index-plan-btn:hover i {
  transform: translateX(5px);
}

/* Botón Destacado Verde Neón */
.index-plan-btn.highlight-btn {
  background: #76ff03;
  color: #000000;
  border-color: #76ff03;
  box-shadow: 0 10px 25px rgba(118, 255, 3, 0.35);
}

.index-plan-btn.highlight-btn:hover {
  background: #64dd17;
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(118, 255, 3, 0.55);
}

/* Responsivo */
@media (max-width: 991px) {
  .index-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 26px;
  }
}

@media (max-width: 768px) {
  .index-packages-section {
    padding: 4.2rem 0 4.8rem 0;
  }

  .index-packages-header {
    margin-bottom: 2.5rem;
  }

  .index-packages-kicker {
    font-size: 0.82rem;
    letter-spacing: 2px;
    margin-bottom: 0.9rem;
  }

  .index-packages-title {
    font-size: clamp(2.2rem, 7.5vw, 2.9rem) !important;
    line-height: 1.08 !important;
    margin-bottom: 1rem !important;
    letter-spacing: -1px !important;
  }

  .index-packages-title .title-lead {
    font-size: 0.62em !important;
    letter-spacing: -0.3px !important;
  }

  .index-packages-title .title-main {
    font-size: 1.25em !important;
    letter-spacing: -1px !important;
  }

  .index-packages-subtitle {
    font-size: 0.98rem !important;
    line-height: 1.6 !important;
    max-width: 460px !important;
    padding: 0 8px;
  }

  .index-category-tabs {
    width: 100% !important;
    max-width: 360px !important;
    margin: 1.8rem auto 0 auto !important;
    padding: 5px !important;
    display: flex !important;
    justify-content: space-between !important;
    border-radius: 50px !important;
  }

  .index-tab-btn {
    padding: 10px 14px !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    gap: 6px !important;
    flex: 1 1 0 !important;
    justify-content: center !important;
    text-align: center !important;
    white-space: nowrap !important;
  }

  .index-tab-btn i {
    font-size: 0.95rem !important;
  }

  .index-cards-grid,
  .index-cards-grid.two-cards,
  .index-cards-grid.three-cards,
  .index-cards-grid.single-card {
    grid-template-columns: 1fr !important;
    max-width: 380px !important;
    width: 100% !important;
    gap: 24px !important;
    margin: 0 auto !important;
    padding: 10px 12px 0 12px;
  }

  .index-plan-card {
    padding: 34px 22px 28px 22px;
    border-radius: 24px;
  }

  .index-plan-card.featured-plan {
    transform: none !important;
    order: -1;
  }

  .index-icon-circle {
    width: 72px;
    height: 72px;
    margin-bottom: 18px;
  }

  .index-icon-circle i {
    font-size: 1.65rem;
  }

  .index-card-title {
    font-size: 1.55rem;
    min-height: auto;
    margin-bottom: 10px;
    line-height: 1.15;
  }

  .index-card-desc {
    font-size: 0.85rem;
    margin-bottom: 18px;
    max-width: 260px;
    line-height: 1.4;
  }

  .index-price-box {
    padding: 13px 12px;
    margin-bottom: 22px;
    border-radius: 15px;
  }

  .index-currency {
    font-size: 1.3rem;
  }

  .index-amount {
    font-size: 2.45rem;
  }

  .index-period {
    font-size: 0.85rem;
  }

  .index-regular-price {
    font-size: 0.76rem;
  }

  .index-features-list {
    gap: 13px;
    margin: 0 auto 24px auto;
    max-width: 300px;
    width: 100%;
    align-items: center;
    justify-content: center;
  }

  .index-features-list li {
    font-size: 0.86rem;
    white-space: normal;
    width: 100%;
    justify-content: flex-start;
    text-align: left;
    gap: 11px;
    line-height: 1.35;
  }

  .index-features-list li i {
    font-size: 1.05rem;
    width: 22px;
  }

  .index-plan-btn {
    padding: 13px 18px;
    font-size: 0.92rem;
    border-radius: 16px;
  }
}

@media (max-width: 480px) {
  .index-packages-section {
    padding: 3.5rem 0 4.2rem 0;
  }

  .index-packages-header {
    margin-bottom: 2rem;
  }

  .index-packages-kicker {
    font-size: 0.76rem;
    letter-spacing: 1.8px;
    margin-bottom: 0.75rem;
  }

  .index-packages-title {
    font-size: clamp(1.9rem, 8.5vw, 2.5rem) !important;
    letter-spacing: -0.8px !important;
    margin-bottom: 0.8rem !important;
  }

  .index-packages-title .title-lead {
    font-size: 0.6em !important;
  }

  .index-packages-title .title-main {
    font-size: 1.28em !important;
    letter-spacing: -1px !important;
  }

  .index-packages-subtitle {
    font-size: 0.9rem !important;
    line-height: 1.52 !important;
    padding: 0 4px;
    max-width: 340px !important;
  }

  .index-category-tabs {
    max-width: 335px !important;
    padding: 4px !important;
    margin: 1.4rem auto 0 auto !important;
  }

  .index-tab-btn {
    padding: 9px 8px !important;
    font-size: 0.8rem !important;
    gap: 4px !important;
  }

  .index-tab-btn i {
    font-size: 0.86rem !important;
  }

  .index-cards-grid,
  .index-cards-grid.two-cards,
  .index-cards-grid.three-cards,
  .index-cards-grid.single-card {
    gap: 20px !important;
    padding: 8px 6px 0 6px;
  }

  .index-plan-card {
    padding: 28px 18px 24px 18px;
    border-radius: 20px;
  }

  .index-icon-circle {
    width: 64px;
    height: 64px;
    margin-bottom: 25px;
  }

  .index-icon-circle i {
    font-size: 1.45rem;
  }

  .index-card-title {
    font-size: 2rem;
    margin-bottom: 10px;
  }

  .index-card-desc {
    font-size: 0.82rem;
    margin-bottom: 16px;
  }

  .index-price-box {
    padding: 11px 10px;
    margin-bottom: 18px;
  }

  .index-currency {
    font-size: 1.2rem;
  }

  .index-amount {
    font-size: 2.2rem;
  }

  .index-features-list {
    max-width: 270px;
    gap: 12px;
    margin-bottom: 20px;
  }

  .index-features-list li {
    font-size: 0.82rem;
    gap: 10px;
  }

  .index-features-list li i {
    font-size: 0.98rem;
    width: 20px;
  }

  .index-plan-btn {
    padding: 12px 16px;
    font-size: 0.88rem;
    border-radius: 14px;
  }
}

@media (max-width: 360px) {
  .index-category-tabs {
    max-width: 305px !important;
  }

  .index-tab-btn {
    padding: 8px 5px !important;
    font-size: 0.74rem !important;
  }
}