body{
background:#000;
color:white;
font-family:'Poppins',sans-serif;
margin:0;
}

/* HEADER */

header{
display:flex;
justify-content:space-between;
align-items:center;
padding:20px 40px;
border-bottom:1px solid #222;
max-width: 1200px;
margin: 0 auto;
}

.logo{
font-size:22px;
font-weight:600;
color:#F5D77A;
}

/* BOTONES HEADER */

.btn-outline{
padding:10px 18px;
border:1px solid #D4AF37;
border-radius:6px;
color:#F5D77A;
text-decoration:none;
margin-right:10px;
}

.btn-outline:hover{
background:#D4AF37;
color:black;
}

.btn-gold{
padding:10px 18px;
background:#D4AF37;
border-radius:6px;
text-decoration:none;
color:black;
}

.btn-gold:hover{
background:#F5D77A;
}

/* MAIN */

main{
max-width:1000px;
margin:auto;
padding:40px 20px;
}

/* HERO */

.hero{
text-align:center;
margin-bottom:40px;
}

.hero h1{
  font-size: 38px;
  margin-bottom: 12px;
  color:#F5D77A;
  text-shadow: 0 0 12px rgba(245, 215, 122, 0.25);
}

.premio{
  font-size: 24px;
  margin-bottom: 10px;
  font-weight:600;
}

#urgenciaTexto{
  font-size:16px;
  color:#F5D77A;
  margin-top:12px;
  letter-spacing:0.5px;
}

.porcentaje{
color:#bbb;
}

.barra-progreso-container{
width:100%;
height:12px;
background:#222;
border-radius:10px;
margin-top:10px;
overflow:hidden;
}

.barra-progreso{
  height:100%;
  width:0%;
  background: linear-gradient(90deg, #D4AF37, #FFD700);
  transition:width 0.5s ease;
  box-shadow: 0 0 10px rgba(245, 215, 122, 0.4);
}

#imagenPremio{
  max-width:300px;
  margin-top:20px;
  border-radius:10px;
  box-shadow: 0 0 30px rgba(245, 215, 122, 0.3);
  transition: transform 0.3s ease;
}

#imagenPremio:hover{
  transform: scale(1.05);
}

/* CARD PARTICIPACION */

.card-participacion{
  background:#111;
  border:1px solid #D4AF37;
  border-radius:12px;
  padding:40px;
  text-align:center;
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.08);
}

/* TABLERO */

#tablero{
display:grid;
grid-template-columns:repeat(10,60px);
gap:10px;
justify-content:center;
margin-top:25px;
}

/* NUMERO */

.numero{
background:#111;
border:2px solid #D4AF37;
padding:15px;
border-radius:8px;
color:#F5D77A;
cursor:pointer;
font-weight:500;
}

.numero:hover{
transform:scale(1.08);
}

/* SELECCIONADO */

.numero.seleccionado{
background:#D4AF37;
color:black;
}

/* BLOQUEADO */

.numero.bloqueado{
background:#F5D77A;
color:black;
}

/* OCUPADO */

.numero.ocupado{
background:#7a0000;
border-color:#ff3b3b;
color:white;
}

/* INFO COMPRA */

.info-compra{
margin-top:25px;
display:flex;
justify-content:center;
gap:40px;
}

/* BOTON */

#comprarBtn{
  display: block;
  margin: 30px auto;

  padding:16px 28px;
  font-size:18px;

  background:linear-gradient(90deg, #D4AF37, #F5D77A);
  color:#000;

  border:none;
  border-radius:10px;
  cursor:pointer;
  font-weight:600;

  box-shadow: 0 12px 30px rgba(245, 215, 122, 0.5);
  letter-spacing:0.5px;

  transition: all 0.2s ease;
}

/* interacción */
#comprarBtn:hover{
  transform: translateY(-2px);
}

#comprarBtn:active{
  transform: scale(0.97);
}

/* animación */
#comprarBtn{
  animation: pulseBtn 2s infinite;
}

@keyframes pulseBtn{
  0%{ transform: scale(1); }
  50%{ transform: scale(1.04); }
  100%{ transform: scale(1); }
}



.auth-body{
  background:#000;
  min-height:100vh;

  display:flex;
  flex-direction:column;
  align-items:center;
}

.auth-body header{
  width:100%;
  max-width:1200px;

  display:flex;
  justify-content:space-between;
  align-items:center;

  padding:20px 40px;
}

.auth-container{
  width:100%;
  max-width:1200px;

  display:flex;
  justify-content:center;
  align-items:center;

  flex:1;
  padding:40px 20px;
}

.auth-card{
  background: #0c0c0c;
  border: 1px solid rgba(245, 215, 122, 0.3);
  border-radius: 16px;
  padding: 40px;
  width: 350px;

  box-shadow:
    0 0 0 1px rgba(245, 215, 122, 0.05),
    0 10px 40px rgba(0,0,0,0.6);

  backdrop-filter: blur(8px);
}

@keyframes fadeUp{
  from{
    opacity: 0;
    transform: translateY(20px);
  }
  to{
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-body .auth-card{
  animation: fadeUp 0.5s ease;
}

.auth-card > h2{
text-align: center;
margin-bottom: 20px;
font-weight: 600;
font-size: 22px;
letter-spacing: 0.5px;
color: #fff;
}

.auth-card input{
width: 100%;
padding: 12px 14px;
margin-bottom: 14px;
background: #111;
border: 1px solid #222;
border-radius: 8px;
color: #fff;
font-size: 14px;
transition: all 0.2s ease;
}

.auth-card input:focus{
border: 1px solid #F5D77A;
box-shadow: 0 0 0 2px rgba(245, 215, 122, 0.2);
outline: none;
}

.auth-card button{
width: 100%;
padding: 12px;
border-radius: 8px;
background: linear-gradient(135deg, #D4AF37, #F5D77A);
color: #000;
font-weight: 600;
font-size: 15px;
border: none;
cursor: pointer;
transition: all 0.2s ease;
}

.auth-card button:hover{
transform: translateY(-1px);
box-shadow: 0 8px 20px rgba(245, 215, 122, 0.3);
}

.auth-card button:active{
transform: translateY(0);
box-shadow: none;
}

.auth-link{

text-align:center;
margin-top:15px;

}

.forgot-password {
  margin-top: 12px;
  text-align: center;
}

.auth-card .auth-link a,
.auth-card .forgot-password a{
  color: #F5D77A;
  text-decoration: none;
  font-size: 13px;
  transition: all 0.2s ease;
}

.auth-card .auth-link a:hover,
.auth-card .forgot-password a:hover{
  text-decoration: underline;
  color: #FFD700;
}

.checkbox{
font-size:14px;
margin-bottom:6px;
display:flex;
align-items:center;
gap:10px;
text-align:left;
}

.checkbox input[type="checkbox"]{
width:16px;
height:16px;
margin:0;
flex-shrink:0;
}

.checkbox a{
color:#F5D77A;
}

.input-error {
  border: 1px solid #ff3b3b !important;
}

.error-text {
  color: #ff3b3b;
  font-size: 12px;
  margin-top: 5px;
  margin-bottom: 10px;
  display: block;
  text-align: left;
}

#menuUsuario{
display:flex;
align-items:center;
gap:20px;
}

#menuUsuario a{
text-decoration:none;
color:white;
font-weight:500;
}

#logoutBtn{
background:#cfa62a;
border:none;
padding:8px 14px;
border-radius:6px;
cursor:pointer;
font-weight:500;
}

/* ESTADO DE PAGO */

.payment-status{
display:none;
max-width:400px;
margin:40px auto 0 auto;
padding:24px 28px;
border:1px solid #D4AF37;
border-radius:12px;
background-color:#000000;
color:#F5D77A;
font-family:'Poppins',sans-serif;
text-align:center;
box-shadow:0 0 20px rgba(0,0,0,0.6);
}

.payment-status--visible{
display:block;
}

.payment-status__icon{
font-size:32px;
margin-bottom:12px;
}

.payment-status__title{
margin:0 0 8px 0;
font-weight:600;
letter-spacing:0.05em;
}

.payment-status__message{
margin:0;
font-size:14px;
color:#F5D77A;
}



.estado-activo{
  color: #4CAF50;
  background: rgba(76, 175, 80, 0.1);
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 500;
}

.estado-pendiente{
  color: #F5D77A;
  background: rgba(245, 215, 122, 0.1);
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 500;
}

.estado-inactivo{
  color: #FF5C5C;
  background: rgba(255, 92, 92, 0.1);
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 500;
}

table{
width:100%;
border-collapse:collapse;
margin-top:20px;
background:#111;
border-radius:10px;
overflow:hidden;
}

thead{
background:#D4AF37;
color:black;
}

th, td{
padding:12px;
text-align:center;
border-bottom:1px solid #333;
}

tr:hover{
background:#1a1a1a;
}

.perfil-card{
max-width:520px;
margin:0 auto;
background:#111;
border:1px solid #D4AF37;
border-radius:12px;
padding:30px;
}

.perfil-form{
display:flex;
flex-direction:column;
gap:10px;
}

.perfil-form label{
font-weight:500;
color:#F5D77A;
text-align:left;
}

.perfil-form input{
width:100%;
padding:12px;
border-radius:6px;
border:1px solid #333;
background:#000;
color:white;
box-sizing:border-box;
}

.perfil-readonly{
opacity:0.85;
cursor:not-allowed;
}

.perfil-form button{
margin-top:10px;
padding:12px;
background:#D4AF37;
border:none;
border-radius:6px;
cursor:pointer;
font-weight:600;
}

.perfil-form button:hover{
background:#F5D77A;
}

.perfil-message{
margin:4px 0 0 0;
font-size:14px;
}

.perfil-message-success{
color:#22c55e;
}

.perfil-message-error{
color:#ef4444;
}

.legal-container{
max-width:900px;
margin:0 auto;
padding:20px 0 40px 0;
}

.legal-container h1{
text-align:center;
margin-bottom:30px;
}

.legal-section{
background:#111;
border:1px solid #D4AF37;
border-radius:12px;
padding:24px;
margin-bottom:20px;
}

.legal-section h2{
margin-top:0;
color:#F5D77A;
}

.legal-section p{
margin:0;
line-height:1.8;
color:#ddd;
}

.site-footer{
margin-top:60px;
padding:36px 20px;
background:#000;
border-top:1px solid #D4AF37;
}

.site-footer-content{
  max-width:1100px;
  margin:0 auto;
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:30px;
  justify-items:center;
}

.site-footer-column{
  text-align:center;
  max-width:250px;
}

.site-footer-column h3{
margin-top:0;
margin-bottom:14px;
color:#D4AF37;
font-size:16px;
}

.site-footer-column p,
.site-footer-column a{
margin:0 0 10px 0;
color:#d1d5db;
line-height:1.7;
text-decoration:none;
display:block;
}

.site-footer-column a:hover{
color:#F5D77A;
transition:color 0.2s ease;
}

.mensaje-seguridad{
  text-align: center;
  margin:10px auto 20px auto;
  font-size:13px;
  color:#bbb;
  opacity:0.8;
  max-width:500px;
}

/* ===== MEJORAS UI ===== */

.hero{
  margin-bottom:15px;
}

.card-participacion{
  margin-top:15px;
  padding:18px;
  border-radius:14px;
}

#imagenPremio{
  margin-top:10px;
}

#ultimoGanadorBanner{
  margin-top:8px;
  font-size:14px;
}

.porcentaje{
  margin-top:6px;
  font-size:14px;
}

.paquete-btn{
  border-radius:12px;
  transition: all 0.2s ease;
}

.paquete-btn:active{
  transform: scale(0.95);
}

.info-compra{
  font-size:15px;
  gap:6px;
}

.barra-progreso{
  height:12px;
  border-radius:10px;
  transition: width 0.8s ease;
}

/* =========================
   TABLET (≤ 768px)
========================= */
@media (max-width:768px){

  header{
    padding:20px;
    flex-direction:column;
    align-items:center;
    gap:10px;
  }

  main{
    padding:20px 16px 100px 16px;
    
  }

  /* ===== HERO (SIN ESPACIO EXTRA) ===== */
  .hero{
    margin-bottom:6px !important;
    
  }

  .hero h1{
    font-size:22px;
    margin-bottom:6px !important;
  }

  .premio{
    font-size:15px;
    margin-bottom:6px !important;
  }

  .hero img{
    display:block;
    margin:10px auto 6px !important;
  }

  #imagenPremio{
    max-width:180px;
  }

  #ultimoGanadorBanner{
    margin:6px 0 !important;
  }

  .porcentaje{
    margin:4px 0 !important;
  }

  .barra-progreso-container{
    margin-top:6px;
    margin-bottom:0 !important;
  }

  /* ===== CARD (PEGADA ARRIBA) ===== */
  .card-participacion{
    margin-top:8px !important;
    padding:14px 14px 18px 14px;
  } 

  .card-participacion h2{
    margin-bottom:6px;
  }

  /* ===== MENÚ ===== */
  #menuUsuario{
    flex-wrap:wrap;
    justify-content:center;
    gap:12px;
  }

  header .logo img{
    height:65px;
  }

  /* ===== TABLERO ===== */
  #tablero{
    grid-template-columns:repeat(5, 1fr);
    gap:12px;
  }

  .numero{
    padding:12px;
    font-size:14px;
  }

  /* ===== BOTONES HEADER ===== */
  .btn-outline,
  .btn-gold{
    padding:8px 14px;
    font-size:14px;
  }

  .btn-gold{
    background: transparent;
    border: 1px solid #F5D77A;
    color: #F5D77A;
  }

  /* ===== PAQUETES ===== */
  .paquetes-grid{
    grid-template-columns: repeat(2, 1fr);
    gap:10px;
  }

  .paquete-btn{
    padding:16px;
  }

  .paquete-personalizado{
    margin-top:10px;
  }

  /* ===== INFO COMPRA ===== */
  .info-compra{
    flex-direction:column;
    gap:8px;
    margin-top:10px;
  }

  /* ===== CTA ===== */
  #comprarBtn{
    position: fixed;
    bottom: 10px; /* 🔥 más pegado */
    left: 50%;
    transform: translateX(-50%);

    width: calc(100% - 30px);
    max-width: 500px;

    margin: 0;

    z-index: 9999;
  }

  /* ===== FOOTER ===== */
  .site-footer{
    padding:28px 20px;
  }

  .site-footer-content{
    grid-template-columns:1fr;
    gap:22px;
  }
  .site-footer{
    padding:28px 20px;
  }

  .site-footer-content{
    grid-template-columns:1fr;
    gap:22px;
  }

  /* 🔥 AQUÍ LO PEGAS (AL FINAL DEL MEDIA QUERY) */
  
  /* ===== COMPACTACIÓN REAL INTERNA ===== */

  .paquetes-container{
    margin-top: 8px;
  }

  .paquetes-container h3{
    margin-bottom: 8px;
  }

  .paquete-personalizado{
    margin-top: 8px;
  }

  .paquete-personalizado p{
    margin-bottom: 6px;
  }

  .info-compra{
    margin-top: 8px;
  }

  .card-participacion p{
    margin: 4px 0;
  }

  .card-participacion h2{
    margin-top: 0;
    margin-bottom: 6px;
  }

}

/* =========================
   MÓVIL (≤ 480px)
========================= */

@media (max-width:480px){

  /* HERO más compacto y legible */
  .hero h1{
    font-size:20px;
    line-height:1.2;
  }

  .premio{
    font-size:14px;
  }

  #urgenciaTexto{
    font-size:13px;
  }

  #imagenPremio{
    max-width:160px;
  }

  /* PAQUETES en formato vertical tipo app */
  .paquetes-grid{
    grid-template-columns:1fr;
    gap:10px;
  }

  .paquete-btn{
    padding:14px;
    border-radius:10px;
  }

  .paquete-cantidad{
    font-size:18px;
  }

  .paquete-precio{
    font-size:13px;
  }

  /* INPUT personalizado más usable */
  #inputPersonalizado{
    width:100%;
    max-width:100%;
    font-size:14px;
  }

  /* TABLERO más táctil */
  #tablero{
    gap:10px;
  }

  .numero{
    padding:10px;
    font-size:13px;
  }

  /* INFO COMPRA más compacta */
  .info-compra{
    gap:8px;
    font-size:14px;
  }

}


.logo {
display: flex;
align-items: center;
}

.logo img {
  height: 100px;
  width: auto;
  display: block;
  transform: scale(1.05)
}

/* ===== PAQUETES UI ===== */

.paquetes-container {
margin-top: 20px;
text-align: center;
}

.paquetes-container h3 {
margin-bottom: 15px;
font-weight: 600;
}

.paquetes-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 12px;
margin-bottom: 15px;
}

.paquete-btn {
padding: 15px;
border-radius: 10px;
border: 2px solid #ddd;
background: #fff;
font-size: 16px;
font-weight: 600;
cursor: pointer;
transition: all 0.2s ease;
}

.paquete-btn {
border-color: #f5c542;
transform: scale(1.03);
}

.paquete-btn.activo {
border-color: #f5c542;
background: #fff7d6;
box-shadow: 0 0 10px rgba(245, 197, 66, 0.4);
}

.paquete-personalizado{
  margin-top:20px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
}

/* ===== FIN PAQUETES UI ===== */

/* ===== BADGES ===== */

.paquete-btn {
  position: relative;
}

.paquete-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  padding: 4px 8px;
  font-size: 11px;
  border-radius: 6px;
  color: #000;
  font-weight: 600;
}

/* Recomendado */
.paquete-badge.recomendado {
  background: #F5D77A;
}

/* Más vendido */
.paquete-badge.mas-vendido {
  background: #D4AF37;
  color: #000;
}

/* ===== FIN BADGES ===== */

/* =========================
   RESPONSIVE PAQUETES
========================= */

/* Contenedor grid */
.paquetes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

/* Botones */
.paquete-btn {
  padding: 18px;
  border-radius: 12px;
  background: #000;
  color: #F5D77A;
  border: 1px solid #D4AF37;
  cursor: pointer;
  transition: all 0.25s ease;
}

/* Hover */
.paquete-btn:hover {
  background: #D4AF37;
  color: #000;
}

/* Activo */
.paquete-btn.activo {
  background: #F5D77A;
  color: #000;
  border: 2px solid #D4AF37;
}

/* Texto cantidad */
.paquete-cantidad {
  display: block;
  font-size: 20px;
  font-weight: 700;
}

/* Texto precio */
.paquete-precio {
  display: block;
  font-size: 14px;
  margin-top: 5px;
  opacity: 0.9;
}





.fade-in{
  opacity:0;
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* delays reutilizables */
.fade-delay-1{
  animation-delay: 0.1s;
}

.fade-delay-2{
  animation-delay: 0.3s;
}

.paquete-btn.activo{
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(245, 215, 122, 0.4);
}

#inputPersonalizado{
  width:260px;
  padding:12px 16px;
  border-radius:8px;
  border:1px solid rgba(245, 215, 122, 0.4);
  background-color:#111;
  color:#fff;
  font-size:14px;
  text-align:center;
  outline:none;
  transition: all 0.2s ease;
  display:block;
  margin:0 auto;
}

#inputPersonalizado::placeholder{
  color:#888;
}

#inputPersonalizado:focus{
  border:1px solid #F5D77A;
  box-shadow: 0 0 10px rgba(245, 215, 122, 0.4);
  transform: scale(1.03);
}

.custom-label{
  text-align:center;
  font-size:13px;
  color:#aaa;
  margin-bottom:8px;
  letter-spacing:0.3px;
}

.ver-detalle-btn{
  margin-top: 6px;
  padding: 6px 12px;

  font-size: 12px;
  font-weight: 500;

  color: #F5D77A;
  background: transparent;

  border: 1px solid rgba(245, 215, 122, 0.6);
  border-radius: 6px;

  cursor: pointer;
  transition: all 0.2s ease;
}

.ver-detalle-btn:hover{
  background: rgba(245, 215, 122, 0.1);
  border-color: #F5D77A;
  transform: translateY(-1px);
}

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  z-index: 999;
  cursor: pointer;
}

.whatsapp-float img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  transition: transform 0.2s ease;
  animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float:hover img {
  transform: scale(1.1);
}

@keyframes whatsapp-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* ===== FIX FINAL MOBILE (CASCADA) ===== */
@media (max-width: 768px) {

  .card-participacion .paquetes-container{
    margin-top: 6px;
  }

  .card-participacion .paquete-personalizado{
    margin-top: 6px;
  }

  .card-participacion .paquetes-container h3{
    margin-top: 0;
    margin-bottom: 6px;
  }

  .card-participacion .paquetes-grid{
    gap: 8px;
    margin-bottom: 8px;
  }

  .card-participacion .paquete-btn{
    padding: 12px 14px;
  }

  .card-participacion .info-compra{
    margin-top: 6px;
    gap: 4px;
  }

  main{
    padding-bottom: 80px;
  }

}