.sp-poll2-container {
    max-width: 650px;
    margin: 20px 0;
    animation: spPoll2FadeIn 0.4s ease;
}

@keyframes spPoll2FadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes spPoll2BarFill {
    from { width: 0 !important; }
}

.sp-poll2-titulo {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.sp-poll2-descripcion {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 12px;
    line-height: 1.6;
}

.sp-poll2-pregunta {
    margin-bottom: 20px;
    line-height: 1.6;
}

.sp-poll2-opciones {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sp-poll2-opcion {
    display: flex !important;
    align-items: center;
    padding: 12px 16px;
    margin: 0 !important;
    border: 2px solid var(--sp-borde-opciones, #e5e7eb);
    border-radius: calc(var(--sp-radio, 12px) - 2px);
    background: var(--sp-fondo-opcion, #f9fafb);
    cursor: pointer;
    transition: all 0.25s ease;
    gap: 12px;
}

.sp-poll2-opcion:hover {
    border-color: var(--sp-botones, #6366f1);
    background: #f5f7ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.sp-poll2-opcion input[type="radio"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--sp-borde-opciones, #e5e7eb);
    border-radius: 50%;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin: 0 !important;
    cursor: pointer;
}

.sp-poll2-opcion input[type="radio"]:checked {
    border-color: var(--sp-botones, #6366f1);
    background: var(--sp-botones, #6366f1);
    box-shadow: inset 0 0 0 4px white;
}

.sp-poll2-opcion-texto {
    flex: 1;
    font-weight: 500;
}

.sp-poll2-opcion-imagen {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.sp-poll2-btn-votar {
    background: var(--sp-botones, #6366f1);
    color: white !important;
    border: none;
    padding: 12px 28px;
    border-radius: calc(var(--sp-radio, 12px) - 2px);
    font-size: var(--sp-tamano-texto, 16px);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    width: 100%;
    margin-top: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.sp-poll2-btn-votar:hover {
    background: var(--sp-boton-hover, #4f46e5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99,102,241,0.3);
}

.sp-poll2-btn-votar:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.sp-poll2-btn-votar.sp-poll2-votando {
    pointer-events: none;
}

/* Spinner */
.sp-poll2-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 3px solid rgba(99,102,241,0.2);
    border-top: 3px solid #6366f1;
    border-radius: 50%;
    animation: spPoll2Spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}

@keyframes spPoll2Spin {
    to { transform: rotate(360deg); }
}

/* Resultados */
.sp-poll2-resultados-container .sp-poll2-resultados {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sp-poll2-resultado {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: var(--sp-fondo-opcion, #f9fafb);
    border-radius: calc(var(--sp-radio, 12px) - 2px);
    border: 1px solid var(--sp-borde-opciones, #e5e7eb);
}

.sp-poll2-resultado-label {
    min-width: 120px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sp-poll2-barra-contenedor {
    flex: 1;
    height: 28px;
    background: var(--sp-bordes, #e5e7eb);
    border-radius: 14px;
    overflow: hidden;
}

.sp-poll2-barra {
    height: 100%;
    background: linear-gradient(135deg, var(--sp-botones, #6366f1), var(--sp-boton-hover, #4f46e5));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    font-size: 12px;
    font-weight: 700;
    color: white;
    min-width: 30px;
    animation: spPoll2BarFill 1.2s ease forwards;
    transition: width 0.5s ease;
}

.sp-poll2-porcentaje {
    font-weight: 700;
    font-size: 18px;
    min-width: 50px;
    text-align: right;
}

.sp-poll2-total {
    text-align: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--sp-bordes, #e5e7eb);
    font-size: 14px;
    opacity: 0.7;
}

.sp-poll2-mensaje-container .sp-poll2-mensaje {
    text-align: center;
    padding: 24px;
    border-radius: calc(var(--sp-radio, 12px) - 2px);
    font-weight: 600;
    font-size: 16px;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .sp-poll2-container {
        padding: 16px !important;
    }

    .sp-poll2-opcion {
        padding: 10px 12px;
    }

    .sp-poll2-resultado {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .sp-poll2-resultado-label {
        min-width: auto;
    }

    .sp-poll2-barra-contenedor {
        height: 24px;
    }

    .sp-poll2-porcentaje {
        text-align: left;
        font-size: 16px;
    }

    .sp-poll2-opcion-imagen {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .sp-poll2-container {
        margin: 10px 0;
    }

    .sp-poll2-titulo {
        font-size: 18px !important;
    }

    .sp-poll2-pregunta {
        font-size: 14px !important;
    }

    .sp-poll2-btn-votar {
        padding: 10px 20px;
        font-size: 14px;
    }
}
