/* Estilos para la sección de selección de números */
.sorteo-seleccion-section {
  padding: 60px 0;
  background: #f5f5f5;
}

.convenciones-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
}

.legend-item button {
  pointer-events: none;
  min-width: 120px;
}

/* Grid de números */
.numeros-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 10px;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  max-height: 600px;
  overflow-y: auto;
}

.numero-btn {
  width: 100%;
  height: 50px;
  border: 2px solid #ddd;
  border-radius: 4px;
  font-weight: bold;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.numero-btn:hover:not(:disabled) {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.numero-btn:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

/* Estados de los números */
.numero-disponible {
  background-color: #ebcd1e;
  color: white;
  border-color: #0056b3;
}

.numero-disponible:hover:not(:disabled) {
  background-color: #ebcd1e;
}

.numero-reservado {
  background-color: #ffc107;
  color: #333;
  border-color: #e0a800;
}

.numero-tomado {
  background-color: #dc3545;
  color: white;
  border-color: #c82333;
}

.numero-seleccionado {
  background-color: #28a745;
  color: white;
  border-color: #218838;
}

/* Navegación de rangos */
.rangos-navegacion {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 15px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.rango-btn {
  padding: 8px 16px;
  border: 2px solid #ebcd1e;
  background: #e7f3ff;
  color: #ebcd1e;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.rango-btn:hover {
  background: #ebcd1e;
  color: white;
}

.rango-btn.active {
  background: #ebcd1e;
  color: white;
  border-color: #8e8030;
}

/* Formulario */
.formulario-sorteo {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-label {
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.form-control {
  border: 2px solid #ddd;
  border-radius: 4px;
  padding: 10px 15px;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  border-color: #ebcd1e;
}

.btn-primary {
  background: #ebcd1e;
  border: none;
  padding: 12px 40px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: #7d7335;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px #473e0a;
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Selector de Cantidad */
.cantidad-selector {
  margin-top: 10px;
}

.cantidad-buttons-wrapper {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
  justify-content: center;
}

.cantidad-buttons {
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100% !important;
  justify-content: space-evenly !important;
}

.cantidad-btn {
  width: 50px;
  height: 50px;
  border: 2px solid #f4da49;
  background: #edcd1e;
  color: #1e1d1d;
  border-radius: 8px;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
}

.cantidad-btn:hover {
  background: #ffd900;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(235, 205, 30, 0.3);
}

.cantidad-btn.active {
  background: #ebcd1e;
  color: white;
  border-color: #8e8030;
  box-shadow: 0 2px 6px rgba(235, 205, 30, 0.4);
}

/* Botón personalizado (+) */
.cantidad-btn-custom {
  width: 60px;
  height: 60px;
  font-size: 1.5rem;
  background: #ebcd1e;
  color: white;
  border: 2px solid #ebcd1e;
}

.cantidad-btn-custom:hover {
  background: #8e8030;
  border-color: #8e8030;
  color: white;
}

/* Controles personalizados (input con + y -) */
.cantidad-custom-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cantidad-btn-minus,
.cantidad-btn-plus {
  width: 50px;
  height: 50px;
  font-size: 1.2rem;
  background: #ebcd1e;
  color: #1e1d1d;
  border: 2px solid #ebcd1e;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.cantidad-btn-minus:hover,
.cantidad-btn-plus:hover {
  background: #8e8030;
  border-color: #8e8030;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(235, 205, 30, 0.3);
}

.cantidad-btn-minus:active,
.cantidad-btn-plus:active {
  transform: translateY(0);
}

.cantidad-input {
  margin: 0 !important;
  width: 80px !important;
  height: 50px;
  border: 2px solid #ebcd1e;
  background: #fff;
  color: #333;
  border-radius: 8px;
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
  padding: 0 10px;
  transition: all 0.3s ease;
}

.cantidad-input:focus {
  outline: none;
  border-color: #8e8030;
  box-shadow: 0 0 0 3px rgba(235, 205, 30, 0.2);
}

.cantidad-input::-webkit-inner-spin-button,
.cantidad-input::-webkit-outer-spin-button {
  opacity: 1;
  height: 30px;
}

.cantidad-hint {
  display: block;
  margin-top: 5px;
  font-size: 0.85rem;
  color: #666;
}

/* Banner de Resumen de Precio */
.precio-resumen-banner {
  background: #ebcd1e;
  border-radius: 12px;
  padding: 25px 35px;
  box-shadow: 0 4px 15px rgba(235, 205, 30, 0.3);
  margin-top: 20px;
  border: 2px solid #8e8030;
}

.precio-resumen-content {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  color: #1e1d1d;
}

.precio-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 120px;
}

.precio-label {
  font-size: 0.85rem;
  opacity: 0.95;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.precio-value {
  font-size: 1.5rem;
  font-weight: bold;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.precio-separator {
  font-size: 1.8rem;
  font-weight: bold;
  color: #1e1d1d;
  opacity: 0.9;
  margin: 0 5px;
}

.precio-total {
  background: rgba(255, 255, 255, 0.25);
  padding: 15px 25px;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  margin-left: 10px;
}

.precio-total .precio-label {
  font-size: 0.9rem;
  opacity: 1;
}

.precio-total .precio-value {
  font-size: 1.8rem;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  color: #fff;
}

.btn-enviar {
  color: #4a4949 !important;
  border: none !important;
}

.btn-enviar:hover {
  color: #fff !important;
}

/* Responsive */
@media (max-width: 768px) {
  .numeros-grid {
      grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
      gap: 8px;
      padding: 15px;
  }
  
  .numero-btn {
      height: 45px;
      font-size: 0.8rem;
  }
  
  .rangos-navegacion {
      gap: 5px;
  }
  
  .rango-btn {
      padding: 6px 12px;
      font-size: 0.85rem;
  }

  .cantidad-btn {
      width: 50px;
      height: 50px;
      font-size: 1rem;
  }

  .cantidad-btn-custom {
      width: 50px;
      height: 50px;
      font-size: 1.2rem;
  }

  .cantidad-btn-minus,
  .cantidad-btn-plus {
      width: 45px;
      height: 45px;
      font-size: 1rem;
  }

  .cantidad-input {
      width: 80px;
      height: 45px;
      font-size: 1rem;
  }

  .cantidad-buttons-wrapper {
      gap: 8px;
  }

  .cantidad-custom-controls {
      gap: 6px;
  }

  .precio-resumen-content {
      flex-direction: column;
      text-align: center;
      gap: 15px;
  }

  .precio-separator {
      transform: rotate(90deg);
      margin: 5px 0;
  }

  .precio-item {
      width: 100%;
      min-width: auto;
  }

  .precio-total {
      width: 100%;
      margin-top: 10px;
      margin-left: 0;
      padding: 12px 20px;
  }

  .precio-resumen-banner {
      padding: 20px 20px;
  }
}