/* ── Sbalott Sorteos – Frontend CSS ─────────────────────────────────────── */

.sbs-sorteo {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,.10);
    overflow: hidden;
    max-width: 520px;
    margin: 24px auto;
    font-family: inherit;
}

.sbs-sorteo .sbs-imagen img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.sbs-cuerpo { padding: 24px; }

.sbs-titulo {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 10px;
    color: #1a1a2e;
}

.sbs-desc { color: #555; margin-bottom: 14px; }

.sbs-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    font-size: .85rem;
}

.sbs-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 600;
    font-size: .78rem;
}

.sbs-estado-activo     { background: #d4edda; color: #155724; }
.sbs-estado-borrador   { background: #fff3cd; color: #856404; }
.sbs-estado-finalizado { background: #d1ecf1; color: #0c5460; }
.sbs-estado-cancelado  { background: #f8d7da; color: #721c24; }

.sbs-participantes,
.sbs-fechas { color: #666; }

.sbs-premio {
    background: linear-gradient(135deg, #f8f3ff, #fff0f3);
    border: 1px solid #e2c6ff;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: .95rem;
}

/* Formulario */
.sbs-form-wrap { border-top: 1px solid #f0f0f0; padding-top: 20px; }
.sbs-form-wrap h3 { margin: 0 0 16px; font-size: 1.1rem; }

.sbs-pasos { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.sbs-paso  { display: flex; align-items: center; gap: 10px; }

.sbs-paso-num {
    width: 28px; height: 28px;
    background: #6c3fc5;
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: .8rem; font-weight: 700; flex-shrink: 0;
}

.sbs-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600; font-size: .9rem;
    text-decoration: none;
    border: none; cursor: pointer;
    transition: opacity .2s;
}
.sbs-btn:hover { opacity: .85; text-decoration: none; }

.sbs-btn-ig { background: linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); color: #fff; }
.sbs-btn-fb { background: #1877f2; color: #fff; }
.sbs-btn-submit { background: #6c3fc5; color: #fff; width: 100%; justify-content: center; margin-top: 8px; font-size: 1rem; padding: 13px; }

.sbs-campo { margin-bottom: 14px; }
.sbs-campo label { display: block; font-weight: 600; font-size: .85rem; margin-bottom: 4px; color: #333; }
.sbs-campo input[type="text"],
.sbs-campo input[type="email"] {
    width: 100%; padding: 10px 12px;
    border: 1px solid #ddd; border-radius: 8px;
    font-size: .95rem;
    box-sizing: border-box;
}
.sbs-campo.sbs-check label {
    display: flex; align-items: center; gap: 8px;
    font-weight: 400; cursor: pointer;
}

.sbs-precio-nota { font-size: .8rem; color: #888; text-align: center; margin-top: 6px; }

.sbs-loader { text-align: center; color: #888; padding: 10px; }

.sbs-alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 14px;
    font-weight: 500;
}
.sbs-ok    { background: #d4edda; color: #155724; }
.sbs-error { background: #f8d7da; color: #721c24; }

.sbs-ganador-box {
    background: linear-gradient(135deg, #fff7e0, #ffeaa0);
    border: 1px solid #f0c040;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: .95rem;
}

.sbs-pronto { text-align: center; color: #888; font-style: italic; }

/* Grid para múltiples sorteos */
.sbs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    padding: 16px 0;
}

.sbs-grid .sbs-sorteo { margin: 0; }

/* Lista de ganadores */
.sbs-ganadores-lista { padding: 16px 0; }
.sbs-ganadores-lista ul { list-style: none; padding: 0; }
.sbs-ganadores-lista li {
    padding: 10px 16px;
    border-left: 3px solid #6c3fc5;
    margin-bottom: 8px;
    background: #fafafa;
    border-radius: 0 8px 8px 0;
    font-size: .9rem;
}
.sbs-ganadores-lista small { color: #999; margin-left: 8px; }

@media (max-width: 480px) {
    .sbs-cuerpo { padding: 16px; }
    .sbs-btn-submit { font-size: .9rem; }
}
