/* ── Propuestas — estilos específicos ──────────────────────────────────────── */

/* Ajusta el main para listas largas (no centrar verticalmente) */
.propuestas-main {
    align-items: flex-start !important;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.propuestas-container {
    max-width: 760px;
    width: 100%;
    margin: 0 auto;
}

/* ── Hero ──────────────────────────────────────────────────────────────────── */

.propuestas-hero {
    text-align: center;
    margin-bottom: 2.5rem;
}

.propuestas-hero h1 {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--on-surface);
    margin-bottom: 0.75rem;
}

.propuestas-desc {
    font-size: 1.05rem;
    color: var(--on-surface-variant);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ── Lista ─────────────────────────────────────────────────────────────────── */

.propuestas-lista {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ── Tarjeta ───────────────────────────────────────────────────────────────── */

.propuesta-card {
    background: var(--surface-lowest);
    border: 1px solid var(--outline-variant);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.propuesta-card:hover {
    box-shadow: 0 4px 24px rgba(0, 128, 128, 0.08);
    border-color: var(--primary);
}

.propuesta-info {
    flex: 1;
    min-width: 0;
}

.propuesta-info h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--on-surface);
    margin: 0.45rem 0 0.4rem;
    line-height: 1.4;
}

.propuesta-info p {
    font-size: 0.92rem;
    color: var(--on-surface-variant);
    line-height: 1.55;
    margin: 0;
}

.propuesta-card.propuesta-completada .propuesta-info h2,
.propuesta-card.propuesta-completada .propuesta-info p {
    text-decoration: line-through;
    text-decoration-thickness: 1px;
    text-decoration-color: rgba(0, 0, 0, 0.28);
}

[data-theme="dark"] .propuesta-card.propuesta-completada .propuesta-info h2,
[data-theme="dark"] .propuesta-card.propuesta-completada .propuesta-info p {
    text-decoration-color: rgba(255, 255, 255, 0.32);
}

/* ── Badges de estado ──────────────────────────────────────────────────────── */

.propuesta-estado {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
    letter-spacing: 0.02em;
}

.estado-pendiente {
    background: rgba(234, 179, 8, 0.15);
    color: #b45309;
}

[data-theme="dark"] .estado-pendiente {
    background: rgba(234, 179, 8, 0.15);
    color: #fbbf24;
}

.estado-en-desarrollo {
    background: rgba(59, 130, 246, 0.15);
    color: #1d4ed8;
}

[data-theme="dark"] .estado-en-desarrollo {
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
}

.estado-completada {
    background: rgba(0, 128, 128, 0.12);
    color: var(--primary-dark);
}

[data-theme="dark"] .estado-completada {
    background: rgba(99, 211, 201, 0.15);
    color: var(--primary);
}

.estado-descartada {
    background: rgba(107, 114, 128, 0.12);
    color: #4b5563;
}

[data-theme="dark"] .estado-descartada {
    background: rgba(107, 114, 128, 0.15);
    color: #9ca3af;
}

/* ── Botones de voto ───────────────────────────────────────────────────────── */

.propuesta-votos {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    flex-shrink: 0;
}

.btn-voto {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: var(--surface-high);
    border: 1.5px solid transparent;
    border-radius: 12px;
    padding: 10px 14px;
    cursor: pointer;
    color: var(--on-surface-variant);
    transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.1s;
    min-width: 52px;
    font-family: inherit;
}

.btn-voto svg {
    width: 20px;
    height: 20px;
    pointer-events: none;
}

.btn-voto .voto-count {
    font-size: 0.78rem;
    font-weight: 600;
    pointer-events: none;
}

.btn-voto:hover {
    background: var(--outline-variant);
    color: var(--on-surface);
}

.btn-voto:active {
    transform: scale(0.94);
}

.propuesta-card.propuesta-completada .btn-voto {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-like.active {
    background: rgba(0, 128, 128, 0.12);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-dislike.active {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
    color: #ef4444;
}

/* ── Animación al votar ────────────────────────────────────────────────────── */

@keyframes voto-pop {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.18); }
    100% { transform: scale(1); }
}

.btn-voto.voted {
    animation: voto-pop 0.25s ease-out;
}

/* ── Responsive ────────────────────────────────────────────────────────────── */

@media (max-width: 520px) {
    .propuesta-card {
        flex-direction: column;
    }

    .propuesta-votos {
        flex-direction: row;
        width: 100%;
        justify-content: flex-end;
    }

    .propuestas-hero h1 {
        font-size: 1.9rem;
    }
}
