* {
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: #f4f6f8;
  margin: 0;
  padding: 20px;
}

.container {
  max-width: 700px;
  margin: auto;
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  overflow: hidden;
}

.center-text {
  text-align: center;
}

/* HEADER */

.header {
  margin-bottom: -35px;
  overflow: hidden;
  line-height: 0;
}

.header-banner {
  width: 100%;
}

.banner-image {
  width: 100%;
  height: auto;
  display: block;

  transform: scale(1.15);
  transform-origin: center;
  
  margin-bottom: -120px;
}

/* IMAGEN PRINCIPAL */

.raffle-img {
  width: 100%;
  border-radius: 10px;
  margin-top: 0;
  margin-bottom: 15px;
}

/* INFORMACIÓN */

p {
  color: #444;
  line-height: 1.5;
  text-align: center;
}

/* GRID DE NÚMEROS */

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 8px;
  margin: 20px 0;
}

.number {
  padding: 12px;
  background: #e0e0e0;
  text-align: center;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.2s;
  user-select: none;
}

.number:hover {
  transform: scale(1.05);
}

.number.selected {
  background: #007bff;
  color: white;
}

.number.sold {
  background: #999;
  color: white;
  cursor: not-allowed;
}

.number.reserved {
  background: #ffc107;
  color: #333;
  cursor: not-allowed;
}

.number.blocked {
  background: #555;
  color: white;
  cursor: not-allowed;
}

/* FORMULARIO */

form {
  margin-top: 20px;
}

input,
button {
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  font-size: 16px;
  border-radius: 6px;
}

input {
  border: 1px solid #ccc;
}

button {
  background: #25D366;
  color: white;
  border: none;
  cursor: pointer;
  font-weight: bold;
  transition: 0.2s;
}

button:hover {
  background: #1ebe5d;
}

/* CARGA DE ARCHIVO */

.file-upload {
  margin-top: 15px;
}

.file-label {
  display: block;
  width: 100%;
  background: #7a4d8f;
  color: white;
  padding: 12px;
  border-radius: 6px;
  text-align: center;
  cursor: pointer;
  font-weight: bold;
  transition: 0.2s;
}

.file-label:hover {
  background: #5f3570;
}

.file-name {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  color: #555;
  text-align: center;
}

/* MENSAJES */

.message-box {
  display: none;
  margin-top: 15px;
  padding: 12px;
  border-radius: 6px;
  font-weight: bold;
  text-align: center;
}

.message-box.success {
  display: block;
  background: #d4edda;
  color: #155724;
}

.message-box.error {
  display: block;
  background: #f8d7da;
  color: #721c24;
}

/* RESPONSIVE */

@media (max-width: 768px) {

  body {
    padding: 10px;
  }

  .container {
    padding: 18px;
  }

  .banner-image {
    transform: scale(1.1);
    margin-top: -25px;
    margin-bottom: -25px;
  }

  .numbers-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 420px) {

  .numbers-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .number {
    padding: 13px 6px;
    font-size: 14px;
  }

  .banner-image {
    transform: scale(1.08);
    margin-top: -15px;
    margin-bottom: -15px;
  }
}
.whatsapp-link {
  display: block;
  margin-top: 12px;
  background: #25D366;
  color: white;
  padding: 12px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
}

.whatsapp-link:hover {
  background: #1ebe5d;
}
.whatsapp-mode {
  background: #25D366;
}

.whatsapp-mode:hover {
  background: #1ebe5d;
}

.whatsapp-required-note {
  margin-top: 8px;
  font-size: 14px;
  color: #155724;
}
/* BOTÓN AMARILLO */

.request-btn {
  background: #ffc107;
  color: #333;
  border: none;
  font-weight: bold;
  transition: 0.2s;
}

.request-btn:hover {
  background: #e0a800;
}

/* BOTÓN WHATSAPP */

.whatsapp-mode {
  background: #25D366 !important;
  color: white !important;
}

.whatsapp-mode:hover {
  background: #1ebe5d !important;
}
.raffle-date-box {
  max-width: 320px;
  margin: 18px auto;
  padding: 16px 20px;
  text-align: center;
  border-radius: 18px;
  background: linear-gradient(135deg, #7a4d8f, #ffc107);
  color: white;
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
  animation: raffleDatePulse 1.8s infinite;
}

.raffle-date-label {
  display: block;
  font-size: 14px;
  font-weight: bold;
  opacity: 0.9;
  margin-bottom: 4px;
}

.raffle-date-box strong {
  font-size: 30px;
  display: block;
}

@keyframes raffleDatePulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.04);
  }

  100% {
    transform: scale(1);
  }
}