/* =========================================
   paquetes.css — Estilos exclusivos de paquetes.html
   ========================================= */

/* -----------------------------------------
   HERO BANNER DE PÁGINA INTERIOR
   ----------------------------------------- */
.page-banner {
  height: 35vh;
  min-height: 220px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 2.5rem;
  position: relative;
  background-image: url('../assets/img/fondo2.webp');
  background-size: cover;
  background-position: center 30%;
  margin-top: var(--header-height);
}

.page-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.3) 100%);
}

.page-banner__content {
  position: relative;
  z-index: 1;
}

.page-banner__title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  color: var(--white-color);
  line-height: 1;
}

.page-banner__back {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--text-color);
  font-size: .85rem;
  margin-bottom: .75rem;
  transition: color .2s;
}
.page-banner__back:hover { color: var(--main-red); }

/* -----------------------------------------
   TARJETAS DE TIPOS DE ENTRENAMIENTO
   ----------------------------------------- */
.paquetes-tipos__container {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.paquetes-tipos__card {
  background-color: #1c1c1c;
  border: 1px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  transition: transform .3s, border-color .3s, box-shadow .3s;
  display: flex;
  flex-direction: column;
}

.paquetes-tipos__card:hover {
  transform: translateY(-5px);
  border-color: var(--main-red);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
}

.paquetes-tipos__img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

.paquetes-tipos__content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  text-align: center;
}

.paquetes-tipos__title {
  font-size: 1.45rem;
  margin-bottom: .6rem;
}

.paquetes-tipos__description {
  font-size: .95rem;
  color: var(--text-color);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.paquetes-tipos__content .button {
  margin-top: auto;
}

@media screen and (max-width: 576px) {
  .paquetes-tipos__img {
    height: 170px;
  }
}

/* -----------------------------------------
   BOTONES DE PAGO (3 por tarjeta)
   ----------------------------------------- */
.pago__botones {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-top: auto;   /* empuja los botones al fondo de la tarjeta */
  padding-top: 1rem;
  width: 100%;
}

/* Base compartida */
.btn-pago {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  padding: .65rem 1rem;
  font-family: var(--body-font);
  font-weight: 700;
  font-size: .88rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, opacity .2s;
}
.btn-pago:hover {
  transform: translateY(-2px);
  opacity: .92;
}
.btn-pago i { font-size: 1rem; }

/* WhatsApp */
.btn-whatsapp {
  background-color: #25D366;
  color: #fff;
}
.btn-whatsapp:hover { box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4); }

/* MercadoPago */
.btn-mercadopago {
  background-color: #009EE3;
  color: #fff;
}
.btn-mercadopago:hover { box-shadow: 0 4px 12px rgba(0, 158, 227, 0.4); }

/* SPEI / Transferencia */
.btn-spei {
  background-color: #2c2c2c;
  color: var(--text-color);
  border: 1px solid #444;
}
.btn-spei:hover { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4); background-color: #3a3a3a; }

/* Etiqueta pequeña encima de los botones */
.pago__botones-label {
  font-size: .75rem;
  color: #888;
  text-align: center;
  margin-bottom: .25rem;
}

/* -----------------------------------------
   AJUSTE DE TARJETA para que los botones
   queden siempre al fondo (usa flexbox)
   ----------------------------------------- */
.pago__card,
.personalizados__card {
  display: flex;
  flex-direction: column;
}

.pago__card .button,
.personalizados__card .button {
  margin-top: auto;
}

/* -----------------------------------------
   MODAL SPEI — datos bancarios
   ----------------------------------------- */
.spei-datos {
  background-color: #1a1a1a;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 1.25rem;
  margin-top: 1rem;
}

.spei-fila {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .5rem 0;
  border-bottom: 1px solid #2a2a2a;
  gap: 1rem;
}
.spei-fila:last-child { border-bottom: none; }

.spei-fila span:first-child {
  color: #888;
  font-size: .85rem;
  min-width: 100px;
}
.spei-fila span:last-child {
  color: var(--white-color);
  font-weight: 700;
  font-size: .9rem;
  text-align: right;
  word-break: break-all;
}

.spei-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: transparent;
  border: 1px solid #444;
  color: var(--text-color);
  font-size: .78rem;
  padding: .3rem .7rem;
  border-radius: 4px;
  cursor: pointer;
  transition: .2s;
  margin-left: .5rem;
  white-space: nowrap;
}
.spei-copy-btn:hover { border-color: var(--main-red); color: var(--main-red); }
.spei-copy-btn.copiado { border-color: #25D366; color: #25D366; }

.spei-nota {
  font-size: .78rem;
  color: #888;
  text-align: center;
  margin-top: .75rem;
  line-height: 1.5;
}

/* -----------------------------------------
   SEPARADOR DE SECCIONES
   ----------------------------------------- */
.seccion-separador {
  width: 60px;
  height: 3px;
  background-color: var(--main-red);
  margin: 0 auto 2rem;
  border-radius: 2px;
}

.efecto-glass {
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 25px 20px;
  color: #ffffff;
  text-align: center;
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 20px auto;
  box-sizing: border-box;
}

.efecto-glass h4 {
  margin-bottom: 0.75rem;
}

.efecto-glass p {
  margin: 0.25rem 0;
}

.info-planes {
  padding-top: 0;
}

.info-planes .pagos__info-container {
  display: flex;
  justify-content: center;
}

.efecto-glass--info {
  max-width: 500px;
  text-align: left;
}

.efecto-glass__title {
  text-transform: uppercase;
  margin-bottom: 15px;
  font-weight: 700;
}

.efecto-glass__list {
  list-style: none;
  padding: 0;
  line-height: 1.6;
}

.efecto-glass__list li::before {
  content: "\2022 ";
}

/* Section separators and glass effects */
.seccion-separador {
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, transparent, #ff5252 20%, #ff5252 80%, transparent);
  margin: 2rem auto 2.5rem;
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(255, 82, 82, 0.3);
  animation: pulseWidth 3s ease-in-out infinite;
}


#mensualidades .card,
#personalizados .card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  padding: 0.7rem 1.15rem;
  border-radius: 4px;
  z-index: 5; /* Lower than header (100) */
  overflow: hidden;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  font-size: 16px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.6);
  margin: 20px auto;
  text-align: center;
  background: #000000;
  border: 1px solid var(--main-red);
  animation: pulseBox 3s infinite ease-in-out;
}

@keyframes pulseBox {
  0% { box-shadow: 0 4px 15px rgba(0,0,0,0.6); border-color: var(--main-red); }
  50% { box-shadow: 0 0 20px rgba(255, 82, 82, 0.4); border-color: #ff7777; }
  100% { box-shadow: 0 4px 15px rgba(0,0,0,0.6); border-color: var(--main-red); }
}

#mensualidades .notititle,
#personalizados .notititle {
  color: var(--main-white-color);
  font-weight: 700;
  font-size: clamp(1.2rem, 3.5vw, 2rem);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1.1;
  text-shadow: none;
  margin: 0;
  z-index: 2;
}

/* -----------------------------------------
   NEW CARD DESIGN (UIVERSE ADAPTATION)
   ----------------------------------------- */
.pago__card,
.personalizados__card {
  background-color: #111111;
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid #222;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.pago__card:hover,
.personalizados__card:hover {
  border-color: var(--main-red);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.pago__card .price,
.personalizados__card .price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--white-color);
  margin: 0;
}

.pago__card .pago__title,
.personalizados__card .personalizados__title {
  font-size: 1.5rem;
  color: var(--main-red);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pago__card .lists,
.personalizados__card .lists {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin: 0;
}

.pago__card .list,
.personalizados__card .list {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.9rem;
  color: #ccc;
  line-height: 1.4;
}

.pago__card .list svg,
.personalizados__card .list svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

.pago__card .list svg path,
.personalizados__card .list svg path {
  fill: var(--main-red);
}

.pago__card .pago__botones,
.personalizados__card .pago__botones {
  margin-top: auto;
  gap: 0.6rem;
}


/* -----------------------------------------
   MODAL SPEI MODERNO
   ----------------------------------------- */
#modal-spei .modal-contenido {
  max-width: 450px;
  background-color: #111111;
  border: 1px solid #333;
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.8);
}

.spei-header {
  text-align: center;
  margin-bottom: 2rem;
}

.spei-header i {
  font-size: 3rem;
  color: var(--main-red);
  margin-bottom: 1rem;
  display: block;
}

.spei-header h3 {
  margin: 0;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.spei-card {
  background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
  border: 1px solid #333;
  border-radius: 12px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.spei-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 82, 82, 0.05) 0%, transparent 70%);
  z-index: 0;
}

.spei-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.spei-row:last-child { margin-bottom: 0; }

.spei-label {
  color: #666;
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 700;
}

.spei-value {
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  text-align: right;
}

.spei-clabe-container {
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px dashed #444;
}

.spei-clabe-value {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.1rem;
  letter-spacing: 2px;
  color: var(--main-red);
  font-weight: 700;
}

.spei-footer {
  text-align: center;
  font-size: 0.85rem;
  color: #888;
}

.spei-footer p { margin-bottom: 1.5rem; }

#btn-copy-clabe.copiado {
  background-color: #28a745 !important;
  border-color: #28a745 !important;
}
/* =========================================
   CORRECCIÓN DE TAMAÑO DE CARDS EN ESCRITORIO
   ========================================= */
@media screen and (min-width: 992px) {
  .pagos__container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
  
  .personalizados__container {
    display: grid;
    /* Obligamos a que el ancho de estas 3 tarjetas sea exactamente 
       igual al de las 4 tarjetas de arriba, y las centramos */
    grid-template-columns: repeat(3, calc((100% - 4.5rem) / 4));
    justify-content: center;
    gap: 1.5rem;
  }
}