/* ==================== PACK MASTER - MODALES Y BOTONES ==================== */

/* ===== MODAL BITCOIN - PACK MASTER ===== */
#bitcoinModalMaster {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

#bitcoinModalMaster > .bitcoin-modal-content {
  width: 90%;
  max-width: 600px;
  margin: 0 auto;
  background: 
    radial-gradient(ellipse farthest-corner at right bottom, #FEDB37 0%, #FDB931 8%, #9f7928 30%, #8A6E2F 40%, transparent 80%),
    radial-gradient(ellipse farthest-corner at left top, #FFFFFF 0%, #FFFFAC 8%, #D1B464 25%, #5d4a1f 62.5%, #5d4a1f 100%);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.25);
  padding: 20px;
  position: relative;
  text-align: center;
  animation: fadeInScale 0.3s ease;
}

#closeBitcoinModalMaster {
  position: absolute;
  top: 12px;
  right: 15px;
  font-size: 20px;
  transform: scale(1.8);
  font-weight: 900;
  color: #ffffff;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.3s ease;
}

#closeBitcoinModalMaster:hover {
  color: #000;
  transform: scale(1.6);
}

/* ===== MODAL YAPE - PACK MASTER ===== */
#yapeModalMaster {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  box-sizing: border-box;
}

#yapeModalMaster .modal-content {
  background: linear-gradient(145deg, #6a0dad, #9b30ff);
  padding: 2rem;
  width: 90%;
  max-width: 500px;
  text-align: center;
  position: relative;
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  border-radius: 12px;
  box-sizing: border-box;
}

#yapeModalMaster .modal-content .close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.8rem;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
}

#yapeModalMaster .modal-qr {
  display: block;
  margin: 1rem auto;
  width: 250px;
  max-width: 90%;
  border-radius: 12px;
  box-sizing: border-box;
}

/* ===== BOTONES PACK MASTER ===== */
#yapeBtnMaster, #bitcoinBtnMaster {
  display: flex;
  align-items: center; /* Centra icono y texto verticalmente */
  justify-content: center;
  gap: 8px;
  padding: 0rem 0rem;
  background-color: transparent;
  border: none;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: #ddd;
  margin-bottom: 15px;
}

#bitcoinBtnMaster img, #yapeBtnMaster .yape-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.bitcoin-text {
  font-style: italic;
  cursor: pointer;
  font-weight: 600;
  color: #fff; /* Igual que los otros packs */
}

/* ===== BOTÓN PAYPAL PERSONALIZADO ===== */
.custom-paypal-btn {
  display: flex;
  align-items: center; /* Centra verticalmente el icono */
  justify-content: center;
  gap: 10px;
  background-color: #ffc439;
  color: #111;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 8px;
  font-family: Arial, sans-serif;
  cursor: pointer;
  max-width: 250px;
  height: 50px;
  margin: 0 auto 15px auto;
  box-shadow: none;
}

.custom-paypal-btn .paypal-icon {
  width: auto; /* Mantener proporción original */
  height: 32px; /* Ajusta a un tamaño visible */
  display: block;
  image-rendering: auto; /* Evita que se vea borroso */
}

.custom-paypal-btn:hover {
  background-color: #ffb700;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

/* ===== MEDIA QUERIES ===== */
@media (max-width: 768px) {
  #bitcoinModalMaster > .bitcoin-modal-content,
  #yapeModalMaster .modal-content {
    width: 100%;
    max-width: none;
    margin: 0;
    border-radius: 0;
    padding: 20px;
  }

  #yapeModalMaster .modal-qr {
    width: 230px;
  }
}

@media (max-width: 480px) {
  #yapeModalMaster .modal-content {
    width: 100%;
    max-width: none;
    padding: 1.5rem;
  }
  #yapeModalMaster .modal-qr {
    width: 220px;
  }
}

/* ===== ANIMACIÓN DE FADEIN ===== */
@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
