body {
      font-family: Arial, sans-serif;
      text-align: center;
      background: linear-gradient(135deg, #f5f7fa, #e4ebf5);
      background-image: url(../../img/wolf_jauria/fondo_ruleta.jpg);
      background-size: cover;      /* La imagen cubre toda la pantalla */
      
      background-repeat: no-repeat;/* Evita que se repita */
                     
      
      /*margin: 0;
      padding: 20px;
      display: flex;
      justify-content: center;
      gap: 20px;*/
    }

    .contenedor {
        margin-top: 20px;
        margin-bottom: 20px;
        display: flex;
        justify-content: center;
          gap: 20px;
        background: rgba(0,0,0,0.5);
        box-shadow: 0px 0 100px 0;
    }
    h2 {
        margin-bottom: 20px; color: #fff;
        margin-top: 50px;
    }

    .sorteo-container { 
        text-align: center; 
    }

    canvas {
      border-radius: 50%;
      background: white;
      box-shadow: 0 8px 16px rgba(0,0,0,0.25);
    }

    button {
      margin: 10px 5px;
      padding: 10px 20px;
      font-size: 16px;
      border: none;
      border-radius: 8px;
      cursor: pointer;
      transition: 0.3s;
    }
    button:hover { transform: scale(1.05); }
    #iniciar { background: #6a5acd; color: white; }
    #reset { background: #ff6b6b; color: white; }
    #btnCarga { background: #ffd93d; }

    /* Panel lateral mejorado */
    .side-panel {
      display: none;
      flex-direction: column;
      width: 320px;
      background: #fff;
      border-left: 3px solid #6a5acd;
      padding: 20px;
      border-radius: 12px 0 0 12px;
      box-shadow: -6px 0 16px rgba(0,0,0,0.25);
      animation: slideIn 0.4s ease;
    }
    @keyframes slideIn {
      from { transform: translateX(100%); opacity: 0; }
      to { transform: translateX(0); opacity: 1; }
    }
    .side-panel h3 {
      margin-top: 0;
      font-size: 20px;
      color: #6a5acd;
    }
    .option-box {
      background: #f9f9ff;
      border: 1px solid #ddd;
      padding: 12px;
      border-radius: 10px;
      margin-bottom: 15px;
      text-align: left;
      transition: 0.3s;
    }
    .option-box:hover { box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
    .option-box label {
      display: flex;
      align-items: center;
      gap: 6px;
      font-weight: bold;
    }
    .side-panel textarea,
    .side-panel input {
      width: 100%;
      margin: 8px 0;
      padding: 8px;
      border: 1px solid #ccc;
      border-radius: 6px;
    }
    .side-panel button {
      margin-top: 10px;
      background: #6bcf77;
      color: white;
    }

    /* Modal ganador */
    .modal-ganador {
      display: none;
      position: fixed;
      top: 0; left: 0; right: 0; bottom: 0;
      background: rgba(0,0,0,0.6);
      justify-content: center;
      align-items: center;
      z-index: 1000;
    }
    .ganador-content {
      background: linear-gradient(135deg,#fffbe6,#fff3cd);
      border: 2px solid #ffe08a;
      padding: 25px;
      border-radius: 15px;
      text-align: center;
      box-shadow: 0 6px 16px rgba(0,0,0,0.3);
      animation: popUp 0.4s ease;
    }
    @keyframes popUp {
      from { transform: scale(0.7); opacity: 0; }
      to { transform: scale(1); opacity: 1; }
    }
    .ganador-content h2 { color: #d63384; margin-bottom: 10px; }
    .ganador-content p { font-size: 28px; font-weight: bold; color: #333; }

    /* Historial */
    #historial {
      margin-top: 20px;
      text-align: left;
      max-width: 400px;
      margin-left: auto;
      margin-right: auto;
    }
    #historial h3 { color: #6a5acd; }
    #listaGanadores {
      list-style: none;
      padding: 0;
    }
    #listaGanadores li {
      background: #f0f0ff;
      margin: 5px 0;
      padding: 8px;
      border-radius: 6px;
      font-weight: bold;
      color: #333;
    }