/* Estilos CSS para la sección de votación */

/* Fondo general */
.votaciones {
    padding: 60px 20px;
    background: linear-gradient(135deg, #0a1a5c, #123d91, #0a1a5c);
    min-height: 100vh;
    margin-top: 60px;
}

/* Contenedor */
.votaciones .contenedor {
    max-width: 1200px;
    margin: 0 auto;
}

/* Título */
.votaciones .titulo {
    font-size: 2.5rem;
    font-weight: bold;
    color: white;
    text-align: center;
    margin-bottom: 20px;
}

/* Subtítulo */
.votaciones .subtitulo {
    font-size: 1.2rem;
    color: #a5b4fc;
    text-align: center;
    margin-bottom: 40px;
}

.votaciones .tiempo-restante {
    color: #fbbf24;
    font-weight: bold;
}

/* Grid */
.votaciones .grid {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Tarjeta */
.votaciones .card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.votaciones .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.25);
}

/* Foto */
.votaciones .foto {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Nombre y descripción */
.votaciones .nombre {
    font-size: 1.2rem;
    font-weight: bold;
    color: #222;
    margin-bottom: 8px;
}

.votaciones .descripcion {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 15px;
}

.votaciones .bio {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.4;
}

/* Botones */
.votaciones .botones {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.votaciones .btn {
    border: none;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: bold;
    cursor: pointer;
    color: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: background 0.3s ease, transform 0.2s ease;
}

.votaciones .btn:hover:not(:disabled) {
    transform: scale(1.05);
}

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

/* Colores de botones */
.votaciones .btn.verde {
    background: #22c55e;
}
.votaciones .btn.verde:hover:not(:disabled) {
    background: #16a34a;
}

.votaciones .btn.rojo {
    background: #ef4444;
}
.votaciones .btn.rojo:hover:not(:disabled) {
    background: #dc2626;
}

/* Conteo */
.votaciones .conteo {
    font-size: 0.9rem;
    color: #444;
    margin-bottom: 10px;
}

.votaciones .positivo {
    font-weight: bold;
    color: #16a34a;
}

.votaciones .negativo {
    font-weight: bold;
    color: #dc2626;
}

/* Estado del voto */
.votaciones .estado-voto {
    margin-top: 10px;
}

.votaciones .voto-realizado {
    color: #16a34a;
    font-weight: bold;
    font-size: 0.9rem;
}

/* Botón de resultados */
.btn-resultados {
    display: inline-block;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-resultados:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

/* Notificaciones */
.notificacion {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    max-width: 400px;
}

.notificacion-contenido {
    background: white;
    border-radius: 10px;
    padding: 15px 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.notificacion.success .notificacion-contenido {
    border-left: 4px solid #16a34a;
}

.notificacion.error .notificacion-contenido {
    border-left: 4px solid #dc2626;
}

.notificacion-mensaje {
    color: #333;
    font-weight: 500;
}

.notificacion-cerrar {
    background: none;
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    margin-left: 15px;
}

.notificacion-cerrar:hover {
    color: #333;
}

/* Responsive */
@media (max-width: 768px) {
    .votaciones .titulo {
        font-size: 2rem;
    }
    
    .votaciones .grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .votaciones .botones {
        flex-direction: column;
        gap: 10px;
    }
}
