.panel-wrapper {
    position: relative;
    padding-top: 15px;
}
.panel-lateral {
    width: 260px; /* <-- ANCHO FIJO, la clave del éxito */
    max-width: 260px; /* Aseguramos que no crezca más */
    background: linear-gradient(145deg, #2e2e33, #1c1c1e);
    padding: 20px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 10px 10px 20px #161618, -10px -10px 20px #3a3a40;
    color: white;
    display: flex;
    flex-direction: column;
    position: relative;
    align-items: center;
}
.panel-lateral h3 {
    margin-top: 0;
    border-bottom: 2px solid var(--color-primario);
    padding-bottom: 5px;
}
button {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}
button.secundario, button.terciario {
    margin-top: 10px;
}
button.secundario {
    background-color: #4a4a4a;
    border: 1px solid #666;
}
button.secundario:hover {
    background-color: #5a5a5a;
}
button.terciario {
    background-color: transparent;
    border: 1px solid #555;
    color: #aaa;
    font-size: 14px;
    padding: 8px;
}
button.terciario:hover {
    background-color: #3a3a40;
    border-color: #777;
}
button:disabled {
    background-color: #333;
    cursor: not-allowed;
    opacity: 0.5;
}
.boton-girar {
    font-size: 24px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    white-space: nowrap;
    padding: 20px 30px;
    background-color: var(--color-primario);
    border: 2px solid #00FFFF;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
    min-width: 200px;
}
.boton-girar:hover {
    background-color: #00FFFF;
    color: #1a1a1a;
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.8);
}
.editor-participantes {
    position: relative;
    background-color: #2c2c2e;
    padding: 20px;
    border-radius: 12px;
}
.editor-participantes textarea {
    width: 100%;
    background-color: #1c1c1e;
    color: white;
    border-color: #444;
}
.editor-participantes button {
    background-color: #28a745;
}
.editor-participantes button:hover {
    background-color: #218838;
}
.cerrar-editor-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    width: 30px;
    height: 30px;
    padding: 0;
    border-radius: 50%;
    background-color: transparent;
    color: #aaa;
    font-size: 24px;
    line-height: 1;
}
.cerrar-editor-btn:hover {
    background-color: #3a3a40;
    color: white;
}
.resultados h4 {
    text-align: center;
}
.resultados ul {
    list-style: none;
    padding: 0;
    max-height: 150px;
    overflow-y: auto;
}
.resultados li {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    font-size: 16px;
}
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}
.modal-contenido {
    background: #fff;
    color: #333;
    padding: 30px 40px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    animation: pop-in 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.modal-contenido h2 {
    font-size: 28px;
}
.ganador-popup {
    font-size: 52px;
    font-weight: 700;
    margin: 15px 0;
    color: var(--color-primario);
}
.modal-contenido button {
    background-color: #007bff;
}
.modal-contenido button:hover {
    background-color: #0056b3;
}
.resultados ul::-webkit-scrollbar {
    width: 8px;
}
.resultados ul::-webkit-scrollbar-track {
    background: #2c2c2c;
    border-radius: 10px;
}
.resultados ul::-webkit-scrollbar-thumb {
    background-color: var(--color-primario);
    border-radius: 10px;
    border: 2px solid #2c2c2c;
}
.resultados ul::-webkit-scrollbar-thumb:hover {
    background-color: #00FFFF;
}
.numero-ganador {
    font-weight: bold;
    color: var(--color-primario);
    margin-right: 8px;
}
.nombre-resultado {
    font-weight: bold;
    flex-grow: 1;
}
.separador-resultado {
    margin: 0 10px;
    color: #555;
}
.estado-resultado {
    font-size: 14px;
    font-style: italic;
    text-transform: capitalize;
}
li.ganador .estado-resultado {
    color: #28a745;
}
li.descartado .estado-resultado {
    color: #dc3545;
}
.mensaje-ruleta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 26, 26, 0.85);
    backdrop-filter: blur(4px);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-radius: 50%;
    padding: 20px;
    transition: opacity 0.3s ease;
}
.mensaje-ruleta-overlay p {
    font-size: 28px;
    font-weight: bold;
    margin: 0;
}
.mensaje-ruleta-overlay span {
    font-size: 16px;
    color: #ccc;
    margin-top: 10px;
}
.contador-participantes {
    font-size: 14px;
    color: #aaa;
    margin-top: 0;
}
.selector-accion {
    display: flex;
    width: 100%;
    background-color: #1c1c1e;
    border-radius: 12px;
    padding: 5px;
    margin-bottom: 20px;
}
.selector-accion button {
    flex: 1;
    background-color: transparent;
    border: none;
    color: #aaa;
    padding: 10px;
    font-size: 12px;
}
.selector-accion button.activo {
    background-color: #3a3a40;
    color: white;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
.etiqueta-resultado {
    margin-top: -10px;
    margin-bottom: 20px;
    display: inline-block;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 8px;
    color: white;
}
.etiqueta-resultado.ganador {
    background-color: #28a745;
}
.etiqueta-resultado.descartado {
    background-color: #6c757d;
}
.info-btn {
    position: absolute;
    top: 10px;
    left: auto;
    right: 10px;
    z-index: 10;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #2c2c2e;
    color: #aaa;
    font-weight: bold;
    font-style: italic;
    font-family: 'Times New Roman', serif;
    font-size: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    border: 2px solid #555;
    box-shadow: 0 0 10px rgba(0, 191, 255, 0.3);
    transition: all 0.2s ease;
}
.info-btn:hover {
    background-color: #3a3a40;
    color: white;
    border-color: var(--color-primario);
    box-shadow: 0 0 15px rgba(0, 191, 255, 0.6);
}
.lista-info {
    text-align: left;
    list-style: none;
    padding: 0;
}
.lista-info li {
    margin-bottom: 15px;
    line-height: 1.5;
    color: #555;
}
.lista-info li b {
    color: #333;
}
.boton-descarga {
    background-color: transparent;
    border: 1px solid #555;
    color: #aaa;
    font-size: 12px;
    padding: 5px 10px;
    margin-bottom: 15px; /* Más espacio */
    width: auto; /* Ancho automático */
    display: inline-block; /* Para que no ocupe el 100% */
}
.boton-descarga:hover {
    background-color: #3a3a40;
    border-color: #777;
}
@keyframes pop-in {
    from { transform: scale(0.3); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}