:root {
  --petroleo: #073b4c;
  --cobre: #b87333;
  --blanco: #ffffff;
  --oro: #ffd700;
  --cobre-claro: #f3a661;
  --success: #27ae60;
  --error: #e74c3c;
  --warning: #f39c12;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, sans-serif;
  background-color: var(--petroleo);
  color: var(--blanco);
  line-height: 1.6;
}

/* --- NAVEGACIÓN --- */
nav {
  background-color: #052c39;
  padding: 1rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 4px solid var(--cobre);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.header-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* --- LOGO ANIMADO --- */
.logo-text {
  font-size: 2.5rem;
  font-weight: 900;
  text-transform: uppercase;
  background: linear-gradient(to right,
      var(--cobre) 0%,
      var(--blanco) 25%,
      var(--oro) 50%,
      var(--cobre-claro) 75%,
      var(--cobre) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1px;
  animation: brilloTexto 3s linear infinite;
}

@keyframes brilloTexto {
  to {
    background-position: 200% center;
  }
}

/* --- MONEDA --- */
.moneda {
  width: 50px;
  height: 50px;
  background: radial-gradient(circle, #fff3b0 0%, var(--oro) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #b8860b;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
  animation: girarMoneda 4s infinite linear;
}

.moneda span {
  color: #5d4a00;
  font-weight: 900;
  font-size: 1.2rem;
}

@keyframes girarMoneda {
  0% {
    transform: rotateY(0deg);
  }

  100% {
    transform: rotateY(360deg);
  }
}

/* Delivery Badge */
.delivery-badge {
  font-weight: bold;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* --- HERO SECTION --- */
.hero {
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(rgba(7, 59, 76, 0.85),
      rgba(7, 59, 76, 0.85)),
    url("https://images.unsplash.com/photo-1542751371-adc38448a05e?q=80&w=1000");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 10px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* --- CONTENEDOR DE PRODUCTOS --- */
.container {
  padding: 50px 5%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

/* --- TARJETAS --- */
.card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.card-header {
  padding: 25px;
  color: white;
  font-weight: bold;
  font-size: 1.5rem;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
}

.card-header-ff {
  background: linear-gradient(45deg, #e74c3c, #c0392b);
}

.card-header-roblox {
  background: linear-gradient(45deg, #3498db, #2980b9);
}

.card-header-ml {
  background: linear-gradient(45deg, #9b59b6, #8e44ad);
}

.card-content {
  padding: 30px;
  color: var(--petroleo);
}

.card-content h3 {
  margin-top: 0;
  color: var(--petroleo);
}

/* --- BOTONES --- */
.btn-recarga {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--petroleo);
  color: white;
  padding: 12px 35px;
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  margin-top: 15px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn-recarga:hover {
  background: var(--cobre);
  transform: scale(1.05);
}

.btn-recarga:active {
  transform: scale(0.98);
}

/* --- FOOTER --- */
footer {
  text-align: center;
  padding: 40px;
  background: #052c39;
  border-top: 2px solid var(--cobre);
}

.brand-name {
  color: var(--oro);
}

.social-links {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.social-links a {
  color: var(--blanco);
  font-size: 1.5rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
  color: var(--oro);
  transform: scale(1.2);
}

/* --- CHECKOUT STYLES --- */
#checkout {
  display: none;
  background: white;
  color: var(--petroleo);
  width: 90%;
  max-width: 500px;
  
  margin: 20px auto;
  padding:20px;
  
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  box-sizing: border-box;
}

#checkout h2 {
  margin-top: 0;
  color: var(--petroleo);
  text-align: center;
  font-size: 2rem;
  margin-bottom: 25px;
}

#checkout label {
  display: block;
  margin-top: 20px;
  margin-bottom: 5px;
  font-weight: bold;
  color: var(--petroleo);
}

#checkout select,
#checkout input[type="text"],
#checkout input[type="number"],
#checkout input[type="tel"],  
#checkout input[type="file"] {
  width: 100%;
  padding: 12px;
  margin-top: 5px;
  border-radius: 8px;
  border: 2px solid #ddd;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  font-family: inherit;
}

#checkout select:focus,
#checkout input[type="text"]:focus,
#checkout input[type="number"]:focus,
#checkout input[type="file"]:focus {
  outline: none;
  border-color: var(--petroleo);
}

#checkout input[readonly] {
  background-color: #f5f5f5;
  cursor: not-allowed;
}

/* File Input Wrapper */
.file-input-wrapper {
  margin-bottom: 10px;
}

#checkout input[type="file"] {
  padding: 8px;
  cursor: pointer;
}

.help-text {
  display: block;
  margin-top: 5px;
  color: #666;
  font-size: 0.875rem;
  font-style: italic;
}

/* QR Section es el tamaño*/
.qr-section {
  text-align: center;
  width: 100%;
  max-width:350px;
  margin: 25px auto;
  padding: 15px;
  background: #f9f9f9;
  border-radius: 15px;
  box-sizing: border-box;
}

.qr-image {
  width: 100%;
  max-width: 350px; /*limite 350 400*/
  height:auto;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
  display: block;
  margin: 0 auto;
}

.qr-description {
  font-weight: bold;
  margin-top: 15px;
  color: var(--petroleo);
}

/* Loading Indicator */
.loading {
  text-align: center;
  color: var(--petroleo);
  font-weight: bold;
  padding: 10px;
  margin: 15px 0;
}

.loading i {
  margin-right: 8px;
}

/* Checkout Buttons */
#checkout button {
  background: var(--petroleo);
  color: white;
  border: none;
  padding: 15px;
  font-weight: bold;
  border-radius: 50px;
  margin-top: 15px;
  cursor: pointer;
  width: 100%;
  transition: all 0.3s ease;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

#checkout button:hover {
  background: var(--cobre);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

#checkout button:active {
  transform: translateY(0);
}

#checkout button:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

#btn-cancel {
  background: #ccc;
  color: var(--petroleo);
  margin-top: 10px;
}

#btn-cancel:hover {
  background: #999;
}
/* --- CAMPO DOBLE (Usuario / Contraseña) --- */
.campo-doble {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.campo-doble input {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 2px solid #ddd;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  font-family: inherit;
}

.campo-doble input:focus {
  outline: none;
  border-color: var(--petroleo);
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 768px) {
  .logo-text {
    font-size: 1.8rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  nav {
    flex-direction: column;
    gap: 15px;
  }

  .delivery-badge {
    font-size: 0.9rem;
  }

  #checkout {
    margin: 20px;
    padding: 25px;
  }
}
/* --- BOTÓN FLOTANTE DE SOPORTE WHATSAPP --- */
.btn-soporte-flotante {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  background: #25d366;
  color: white;
  padding: 14px 20px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  box-shadow: 0 5px 20px rgba(37, 211, 102, 0.5);
  transition: all 0.3s ease;
  animation: pulsarBoton 2s infinite;
}

.btn-soporte-flotante i {
  font-size: 1.5rem;
}

.btn-soporte-flotante:hover {
  background: #1ebe5d;
  transform: scale(1.08);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.7);
}

.btn-soporte-texto {
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

@keyframes pulsarBoton {
  0%, 100% { box-shadow: 0 5px 20px rgba(37, 211, 102, 0.5); }
  50% { box-shadow: 0 5px 30px rgba(37, 211, 102, 0.9); }
}

@media (max-width: 768px) {
  .btn-soporte-flotante {
    bottom: 20px;
    right: 20px;
    padding: 12px 16px;
  }
    .campo-doble {
    grid-template-columns: 1fr;
  }
  

  .btn-soporte-texto {
    display: none; /* En móvil solo muestra el ícono */
  }

  .btn-soporte-flotante i {
    font-size: 1.8rem;
  }
}
/* --- PHONE INPUT --- */
.phone-input-wrapper {
  display: flex;
  align-items: center;
  border: 2px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 5px;
}

.phone-prefix {
  padding: 12px;
  background: #f5f5f5;
  border-right: 2px solid #ddd;
  font-size: 1rem;
  color: var(--petroleo);
  white-space: nowrap;
  font-weight: bold;
}

.phone-input-wrapper input[type="tel"] {
  border: none;
  padding: 12px;
  flex: 1;
  font-size: 1rem;
  outline: none;
  background: white;
  color: var(--petroleo);
  font-family: inherit;
  min-width: 0;
}

.phone-input-wrapper:focus-within {
  border-color: var(--petroleo);
}

/* --- ANIMACIONES ADICIONALES --- */
/* --- ANIMACIONES ADICIONALES --- */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card {
  animation: fadeIn 0.5s ease-out;
}

.card:nth-child(1) {
  animation-delay: 0.1s;
}

.card:nth-child(2) {
  animation-delay: 0.2s;
}

.card:nth-child(3) {
  animation-delay: 0.3s;
}
/* --- BANDERA BOLIVIA CHECKOUT --- */
#checkout {
  position: relative; /* importante para anclar la bandera */
}

.flag-bolivia {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 36px;
  height: 22px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  border: 1px solid #ccc;
}

.flag-bolivia::before,
.flag-bolivia::after,
.flag-bolivia span {
  content: "";
  display: block;
  height: 33.33%;
}

.flag-bolivia::before {
  background: #d52b1e; /* rojo */
}

.flag-bolivia span {
  background: #ffd700; /* amarillo */
}

.flag-bolivia::after {
  background: #007a33; /* verde */
}
