/* Estilos Generales */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-align: center;
    background-color: #121212;
    color: #ffffff;
    padding-bottom: 200px;
    margin: 0;
}
h1 {
    font-size: 2.5rem;
    color: #4ade80;
}
p {
    color: #e0e0e0;
    font-size: 1.1rem;
}
/* Descripción del Juego */
#info-rifa-publica {
    max-width: 800px;
    margin: 20px auto;
    padding: 15px;
    background-color: #2a2a2a;
    border-radius: 8px;
    border-left: 5px solid #4ade80;
    text-align: left;
}
/* Buscador */
#contenedor-buscador {
    margin: 20px auto;
    padding: 0 20px;
    max-width: 600px;
}
#buscador-numeros {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    border-radius: 10px;
    border: 2px solid #444;
    background-color: #222;
    color: #fff;
    box-sizing: border-box;
}
/* Tablero de Líneas */
#tablero-lineas {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    max-width: 900px;
    margin: auto;
}
.linea-container {
    display: flex;
    align-items: stretch;
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
}
.linea-numero {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    color: #4ade80;
    background-color: #2a2a2a;
    padding: 0 25px;
    min-width: 60px;
}
.linea-puestos {
    display: flex;
    flex-direction: row;
    gap: 10px;
    padding: 10px;
    width: 100%;
}
.puesto {
    padding: 20px 15px;
    border-radius: 6px;
    border: 1px solid #444;
    text-align: center;
    font-weight: 500;
    transition: all 0.2s ease;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.puesto.disponible {
    background-color: #3a3a3a;
    cursor: pointer;
}
.puesto.disponible:hover {
    background-color: #00aaff;
    color: #fff;
}
.puesto.reservado {
    background-color: #f97316; /* Naranja */
    color: white;
    font-weight: bold;
    cursor: not-allowed;
    word-break: break-word;
}

/* --- AÑADIDO --- */
.puesto.pagado {
    background-color: #22c55e; /* Verde Éxito */
    color: white;
    font-weight: bold;
    cursor: not-allowed;
    word-break: break-word;
}
/* --- FIN DE LO AÑADIDO --- */

.puesto.seleccionado {
    background-color: #00d4ff;
    color: #121212;
    border-color: #fff;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.7);
    transform: scale(1.02);
}
/* Panel de Reserva */
#panel-reserva {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(18, 18, 18, 0.9);
    backdrop-filter: blur(8px);
    padding: 20px;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.5);
    transform: translateY(100%);
    transition: transform 0.4s ease-in-out;
    border-top: 1px solid #444;
    box-sizing: border-box;
}
#panel-reserva.visible {
    transform: translateY(0);
}
#formulario-reserva {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
    margin: 0 auto;
}
#nombre-cliente {
    width: 100%;
    padding: 12px;
    border: 1px solid #555;
    border-radius: 8px;
    font-size: 16px;
    background-color: #222;
    color: #fff;
    box-sizing: border-box;
}
#btn-confirmar {
    padding: 12px 20px;
    border-radius: 8px;
    border: none;
    background: linear-gradient(45deg, #16a34a, #4ade80);
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}
#btn-confirmar:disabled {
    background: #555;
    cursor: wait;
}