/* ============================================
   SORTEOS JAIMITO � style.css
   ============================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --gold:    #ffd700;
  --red:     #e63946;
  --dark:    #0d0d1a;
  --dark2:   #1a1a2e;
  --dark3:   #12122a;
  --green:   #2dc653;
  --white:   #f0f0f0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--dark);
  color: var(--white);
  overflow-x: hidden;
}

/* ---- HEADER ---- */
.header {
  background: linear-gradient(90deg, #0d0d1a 0%, #1a0a2e 100%);
  border-bottom: 3px solid var(--gold);
  position: sticky; top: 0; z-index: 999;
}
.header-inner {
  max-width: 1100px; margin: auto;
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 20px;
}
.logo {
  font-size: 1.5rem; font-weight: 900;
  color: var(--gold); letter-spacing: 1px;
}
.logo span { text-shadow: 0 0 12px var(--gold); }
.nav { display: flex; gap: 15px; flex-wrap: wrap; }
.nav a {
  color: var(--white); text-decoration: none; font-size: 0.9rem;
  padding: 6px 12px; border-radius: 20px;
  transition: background 0.2s;
}
.nav a:hover { background: var(--gold); color: #000; }

/* ---- HERO ---- */
.hero {
  background: radial-gradient(ellipse at center, #1a0a2e 0%, #0d0d1a 70%);
  min-height: 85vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; position: relative; overflow: hidden;
  padding: 60px 20px;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffd700' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; }
.badge-precio {
  display: inline-block;
  background: var(--red);
  color: #fff; font-size: 1.4rem; font-weight: 900;
  padding: 10px 30px; border-radius: 50px;
  margin-bottom: 20px;
  animation: pulse 1.5s infinite;
  box-shadow: 0 0 30px var(--red);
}
@keyframes pulse {
  0%,100% { transform: scale(1); box-shadow: 0 0 20px var(--red); }
  50%      { transform: scale(1.06); box-shadow: 0 0 40px var(--red); }
}
.hero h1 {
  font-size: clamp(2rem, 6vw, 4.5rem);
  font-weight: 900; color: var(--gold);
  text-shadow: 0 0 20px var(--gold), 0 4px 8px rgba(0,0,0,0.5);
  margin-bottom: 18px; line-height: 1.1;
}
.hero-sub { font-size: 1.3rem; color: #ddd; margin-bottom: 25px; line-height: 1.6; }
.confetti-emojis { font-size: 2rem; margin-bottom: 30px; animation: float 3s ease-in-out infinite; }
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
.btn-hero {
  display: inline-block; background: var(--gold); color: #000;
  font-size: 1.3rem; font-weight: 900; padding: 16px 40px;
  border-radius: 50px; text-decoration: none;
  box-shadow: 0 0 30px var(--gold);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-hero:hover { transform: scale(1.07); box-shadow: 0 0 50px var(--gold); }

/* ---- ALERTA ---- */
.alerta-seguridad {
  background: linear-gradient(90deg, #7b0000, #c1121f);
  text-align: center; padding: 14px 20px;
  font-size: 0.95rem; font-weight: 600;
  border-top: 2px solid #ff4d4d; border-bottom: 2px solid #ff4d4d;
}

/* ---- SECCIONES ---- */
.seccion { padding: 60px 20px; max-width: 1100px; margin: auto; }
.bg-dark { background: var(--dark2); max-width: 100%; padding: 60px 20px; }
.bg-dark .seccion { max-width: 1100px; margin: auto; padding: 0; }
.titulo-seccion {
  text-align: center; font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--gold); margin-bottom: 40px;
  text-shadow: 0 0 10px var(--gold);
}
.sin-datos { text-align: center; color: #888; font-size: 1.1rem; }

/* ---- SORTEO CARD ---- */
.sorteo-card {
  background: linear-gradient(135deg, var(--dark2) 0%, #1a0a2e 100%);
  border: 2px solid var(--gold);
  border-radius: 20px; padding: 30px;
  margin-bottom: 40px;
  box-shadow: 0 0 30px rgba(255,215,0,0.15);
}
.sorteo-header {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 15px; margin-bottom: 25px;
}
.sorteo-header h3 { font-size: 1.4rem; color: var(--gold); }
.precio-badge {
  background: var(--red); color: #fff; font-size: 1.6rem; font-weight: 900;
  padding: 8px 24px; border-radius: 50px;
  box-shadow: 0 0 20px var(--red);
}

/* ---- CONTADOR ---- */
.contador {
  display: flex; gap: 15px; justify-content: center;
  margin-bottom: 30px; flex-wrap: wrap;
}
.bloque-tiempo {
  background: var(--dark3); border: 2px solid var(--gold);
  border-radius: 12px; padding: 15px 20px; text-align: center;
  min-width: 80px;
}
.bloque-tiempo .num {
  display: block; font-size: 2.5rem; font-weight: 900; color: var(--gold);
  line-height: 1;
}
.bloque-tiempo small { color: #aaa; font-size: 0.75rem; }

/* ---- PREMIOS GRID ---- */
.premios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 15px; margin-bottom: 30px;
}
.premio-item {
  background: var(--dark3); border-radius: 12px; padding: 15px;
  text-align: center; border: 1px solid #333;
  transition: border-color 0.2s, transform 0.2s;
}
.premio-item:hover { border-color: var(--gold); transform: translateY(-3px); }
.premio-item img { width: 100%; height: 200px; object-fit: cover; border-radius: 8px; margin-bottom: 8px; }
.premio-icon { font-size: 3rem; margin-bottom: 8px; }
.premio-item strong { display: block; font-size: 0.95rem; color: var(--white); margin-bottom: 4px; }
.premio-item small { color: #888; font-size: 0.8rem; }
.cant-badge {
  display: inline-block; background: var(--red); color: #fff;
  font-size: 0.75rem; padding: 2px 8px; border-radius: 20px; margin-top: 5px;
}

/* ---- BOT�N PARTICIPAR ---- */
.btn-participar {
  width: 100%; padding: 18px; background: var(--gold); color: #000;
  font-size: 1.3rem; font-weight: 900; border: none; border-radius: 12px;
  cursor: pointer; transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 25px var(--gold);
}
.btn-participar:hover { transform: scale(1.03); box-shadow: 0 0 40px var(--gold); }

/* ---- PASOS ---- */
.pasos-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px; margin-bottom: 35px;
}
.paso {
  background: var(--dark3); border-radius: 16px; padding: 25px; text-align: center;
  border: 1px solid #333;
}
.paso-num {
  width: 55px; height: 55px; background: var(--gold); color: #000;
  border-radius: 50%; font-size: 1.5rem; font-weight: 900;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 15px;
}
.paso h4 { color: var(--gold); margin-bottom: 10px; font-size: 1.1rem; }
.paso p { color: #bbb; font-size: 0.9rem; line-height: 1.5; }

.yape-box {
  background: #5b189e; border-radius: 16px; padding: 20px 30px;
  display: flex; align-items: center; gap: 20px;
  max-width: 420px; margin: 0 auto;
  box-shadow: 0 0 25px rgba(91,24,158,0.5);
}
.yape-box strong { color: var(--gold); }

/* ---- GANADORES ---- */
.ganadores-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}
.ganador-card {
  background: var(--dark2); border-radius: 16px; padding: 20px; text-align: center;
  border: 2px solid var(--gold);
}
.ganador-card img { width: 100%; height: 150px; object-fit: cover; border-radius: 10px; margin-bottom: 12px; }
.ganador-avatar { font-size: 4rem; margin-bottom: 12px; }
.ganador-card strong { display: block; font-size: 1rem; color: var(--gold); margin-bottom: 5px; }
.ganador-card span { display: block; font-size: 0.85rem; color: #ccc; margin-bottom: 4px; }
.ganador-card small { color: #777; font-size: 0.8rem; }

/* ---- FOOTER ---- */
.footer {
  background: var(--dark3); border-top: 3px solid var(--gold);
  text-align: center; padding: 30px 20px;
}
.footer p { color: var(--gold); font-size: 1.1rem; margin-bottom: 12px; }
.footer-links { display: flex; gap: 20px; justify-content: center; margin-bottom: 12px; }
.footer-links a { color: #ccc; text-decoration: none; font-size: 0.95rem; }
.footer-links a:hover { color: var(--gold); }
.footer small { color: #666; }

/* ---- MODAL ---- */
.modal {
  position: fixed; inset: 0; background: rgba(0,0,0,0.85);
  z-index: 9999; display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-content {
  background: var(--dark2); border: 2px solid var(--gold);
  border-radius: 20px; padding: 35px; width: 100%; max-width: 480px;
  position: relative; max-height: 90vh; overflow-y: auto;
}
.modal-close {
  position: absolute; top: 12px; right: 16px;
  background: none; border: none; color: #fff; font-size: 1.4rem; cursor: pointer;
}
.modal-content h3 { color: var(--gold); font-size: 1.4rem; margin-bottom: 8px; }
.modal-sorteo { color: #bbb; margin-bottom: 20px; font-size: 0.95rem; }
.modal-content label { display: block; color: #aaa; font-size: 0.85rem; margin-bottom: 4px; margin-top: 10px; }
.modal-content input[type="text"],
.modal-content input[type="tel"],
.modal-content input[type="email"],
.modal-content input[type="file"] {
  width: 100%; padding: 11px 14px; background: var(--dark3);
  border: 1px solid #444; color: #fff; border-radius: 8px;
  font-size: 0.95rem; margin-bottom: 5px;
}
.yape-recordatorio {
  background: #5b189e; border-radius: 10px; padding: 12px 16px;
  margin: 15px 0; font-size: 0.9rem; color: #fff;
}
.btn-enviar {
  width: 100%; padding: 14px; background: var(--gold); color: #000;
  font-size: 1.1rem; font-weight: 800; border: none; border-radius: 10px;
  cursor: pointer; margin-top: 10px; transition: transform 0.2s;
}
.btn-enviar:hover { transform: scale(1.03); }
#form-msg { text-align: center; margin-top: 12px; font-size: 0.95rem; color: var(--green); }

/* ---- RESPONSIVE ---- */
@media (max-width: 600px) {
  .nav { gap: 8px; }
  .nav a { font-size: 0.8rem; padding: 5px 8px; }
  .sorteo-header { flex-direction: column; }
  .yape-box { flex-direction: column; text-align: center; }
}
/* ---- BOTON VER TICKET ---- */
.btn-ver-ticket {
  background: transparent; color: var(--gold);
  border: 2px solid var(--gold); font-size: 1.2rem; font-weight: 900;
  padding: 16px 40px; border-radius: 50px; cursor: pointer;
  transition: all 0.2s; box-shadow: 0 0 20px rgba(255,215,0,0.2);
  letter-spacing: 1px;
}
.btn-ver-ticket:hover {
  background: var(--gold); color: #000;
  box-shadow: 0 0 40px rgba(255,215,0,0.5);
  transform: scale(1.05);
}

/* ---- TICKET CARD ---- */
.ticket-card {
  background: var(--dark3); border: 1px solid var(--gold);
  border-radius: 14px; padding: 18px; margin-bottom: 12px; text-align: left;
}
.ticket-card .ticket-num {
  font-size: 1.2rem; font-weight: 900; color: var(--gold); margin-bottom: 8px;
}
.ticket-card .ticket-sorteo { color: #ccc; font-size: 0.9rem; margin-bottom:6px; }
.ticket-card .ticket-estado {
  display: inline-block; padding: 3px 12px; border-radius: 20px;
  font-size: 0.8rem; font-weight: 700; margin-top: 4px;
}
.estado-pendiente { background:rgba(244,162,97,0.2); color:#f4a261; border:1px solid #f4a261; }
.estado-verificado { background:rgba(45,198,83,0.2); color:#2dc653; border:1px solid #2dc653; }
.estado-rechazado  { background:rgba(230,57,70,0.2);  color:#e63946; border:1px solid #e63946; }

/* ---- BOTON VER TICKET ---- */
.btn-ver-ticket {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
  font-size: 1.2rem;
  font-weight: 900;
  padding: 16px 40px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 0 20px rgba(255,215,0,0.2);
  letter-spacing: 1px;
}
.btn-ver-ticket:hover {
  background: var(--gold);
  color: #000;
  box-shadow: 0 0 40px rgba(255,215,0,0.5);
  transform: scale(1.05);
}
.ticket-card {
  background: var(--dark3);
  border: 1px solid var(--gold);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 12px;
  text-align: left;
}
.ticket-card .ticket-num {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--gold);
  margin-bottom: 8px;
}
.ticket-card .ticket-sorteo { color: #ccc; font-size: 0.9rem; margin-bottom: 6px; }
.ticket-card .ticket-estado {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 4px;
}
.estado-pendiente { background: rgba(244,162,97,0.2); color: #f4a261; border: 1px solid #f4a261; }
.estado-verificado { background: rgba(45,198,83,0.2); color: #2dc653; border: 1px solid #2dc653; }
.estado-rechazado  { background: rgba(230,57,70,0.2); color: #e63946; border: 1px solid #e63946; }