@font-face {
  font-family: 'TT Supermolot Neue Condensed BD';
  src: url('fonts/tt-supermolot-neue-condensed-bd.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'TT Supermolot Neue Condensed BD', Arial, sans-serif;
  background-color: #fff;
  color: #333;
  padding: 20px;
}

header {
  text-align: center;
  margin-bottom: 10px;
}

header img {
  width: 150px;
}

.header-title {
  text-align: center;
  font-size: 28px;
  margin-bottom: 20px;
  letter-spacing: 1.5px;
}

.avatar {
  text-align: center;
  margin-bottom: 20px;
}

.avatar img {
  width: 100px;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

.step {
  display: none;
}
.step.active {
  display: block;
}

/* FORM GROUP: INPUT Y ICONO */
.form-group {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  gap: 10px; /* espacio entre icono y input */
}

.input-icon {
  flex: 0 0 30px; /* ancho fijo para icono */
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.input-icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

input, select {
  flex: 1; /* que tome el resto del espacio */
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: 'TT Supermolot Neue Condensed BD', Arial, sans-serif;
}

/* BOTONES CONTINUAR Y VOLVER */
.continue-btn, .back-btn-img {
  display: block;
  margin: 20px auto;
  width: 35%;
  max-width: 180px;
  min-width: 100px;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.continue-btn:hover, .back-btn-img:hover {
  transform: scale(1.05);
  filter: brightness(1.3);
}

/* MÉTODOS DE PAGO - IMÁGENES */
.payment-images {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 15px 0;
  flex-wrap: wrap;
}

.payment-images img {
  width: 140px;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 8px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.payment-images img:hover {
  transform: scale(1.05);
  border-color: #555;
}

.payment-images img.selected {
  border-color: #ff0099;
  box-shadow: 0 0 10px #ff0099;
}

/* ETIQUETA DE PRECIO */
.price-label {
  background-color: #fff889;
  color: #b8860b;
  font-weight: bold;
  padding: 10px;
  border-radius: 5px;
  text-align: center;
  margin-bottom: 20px;
  font-size: 20px;
}

/* FOOTER */
.footer {
  text-align: center;
  margin-top: 60px;
  font-size: 0.9em;
  color: #777;
}

.footer .btn-footer {
  display: inline-block;
  background-color: #ff0099;
  color: white;
  padding: 8px 14px;
  margin: 6px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.2s;
}

.footer .btn-footer:hover {
  background-color: #cc0077;
}

::selection {
  background-color: #ff69b4;
  color: white;
}

.footer-copy {
  margin-top: 25px;
  font-size: 13px;
}

/* MENSAJE PAYPAL */
#paypalMsg {
  color: #0066cc;
  font-weight: bold;
  text-align: center;
  margin-bottom: 15px;
  display: none;
}

/* ================= POPUPS / MARCOS PERSONALIZADOS ================ */

.popup-message {
  position: fixed; /* Siempre visible en pantalla */
  top: 20%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  background: linear-gradient(135deg, #ff0099, #ff69b4);
  color: white;
  font-family: 'TT Supermolot Neue Condensed BD', Arial, sans-serif;
  font-size: 20px;
  padding: 25px 40px;
  border-radius: 15px;
  box-shadow:
    0 0 10px #ff0099,
    0 0 20px #ff69b4,
    0 0 30px #ff0099,
    0 0 40px #ff69b4;
  border: 4px solid transparent;
  border-image: linear-gradient(45deg, #ff0099, #ff69b4) 1;
  text-align: center;
  z-index: 9999;
  max-width: 320px;
  animation: popupFadeIn 0.5s ease forwards;
  user-select: none;
}

@keyframes popupFadeIn {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(-60%) scale(0.8);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(-50%) scale(1);
  }
}

@keyframes popupFadeOut {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(-50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-40%) scale(0.8);
  }
}

.popup-show {
  animation: popupFadeIn 0.5s ease forwards;
  display: block !important;
}

.popup-hide {
  animation: popupFadeOut 0.5s ease forwards;
  display: block !important;
}

.popup-close-btn {
  margin-top: 15px;
  background-color: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-weight: bold;
  font-family: 'TT Supermolot Neue Condensed BD', Arial, sans-serif;
  padding: 8px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.popup-close-btn:hover {
  background-color: rgba(255, 255, 255, 0.4);
}

/* BARRA DE PROGRESO ABAJO DEL AVATAR */
#progressContainer {
  width: 100%;
  background-color: #eee;
  border-radius: 15px;
  overflow: hidden;
  margin: 0 auto 20px auto;
  max-width: 600px;
  height: 25px;
  position: relative;
}

#progressBar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ff69b4, #fc0786);
  transition: width 0.5s ease;
  position: relative;
  overflow: hidden;
  border-radius: 15px;
}

#progressBar::before {
  content: "";
  position: absolute;
  top: 0;
  left: -50%;
  width: 50%;
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
  animation: shimmer 2s infinite;
  border-radius: 15px;
}

@keyframes shimmer {
  0% { left: -50%; }
  100% { left: 150%; }
}

#progressText {
  position: absolute;
  width: 100%;
  text-align: center;
  color: white;
  font-weight: bold;
  font-family: 'TT Supermolot Neue Condensed BD', Arial, sans-serif;
  top: 3px;
  font-size: 16px;
  user-select: none;
  pointer-events: none;
}

/* TEXTO SELECCIONADO */
input::selection, select::selection {
  background-color: #fc0786;
  color: white;
}

/* RESPONSIVE */
@media (max-width: 480px) {
  .continue-btn, .back-btn-img {
    width: 70%;
  }

  #progressContainer {
    max-width: 100%;
    height: 20px;
  }

  #progressText {
    font-size: 14px;
    top: 2px;
  }

  .input-icon {
    flex: 0 0 24px;
    height: 24px;
  }

  input, select {
    font-size: 14px;
    padding: 8px;
  }
}