/* ============================================
   PLATAFORMA SOLIDARIA — CSS Frontend
   ============================================ */

/* ---- Grilla de boletos (rifa) ---- */
.boleto-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.boleto {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 500;
    border-radius: 8px;
    border: 1.5px solid #dee2e6;
    cursor: default;
    transition: transform .1s, background .15s;
    user-select: none;
}

.boleto.libre {
    background: #fff;
    border-color: #adb5bd;
    color: #212529;
    cursor: pointer;
}
.boleto.libre:hover {
    background: #e7f1ff;
    border-color: #0d6efd;
    color: #0d6efd;
    transform: scale(1.08);
}
.boleto.seleccionado {
    background: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
    transform: scale(1.05);
}
.boleto.vendido {
    background: #198754;
    border-color: #198754;
    color: #fff;
}
.boleto.pendiente {
    background: #fff3cd;
    border-color: #ffc107;
    color: #664d03;
}
.boleto.ganador {
    background: #ffc107;
    border-color: #fd7e14;
    color: #212529;
    font-weight: 700;
    box-shadow: 0 0 0 3px rgba(255,193,7,.4);
}

/* Leyenda */
.boleto-leyenda {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 3px;
    border: 1.5px solid #dee2e6;
    vertical-align: middle;
    margin-right: 4px;
}
.boleto-leyenda.libre      { background: #fff;    border-color: #adb5bd; }
.boleto-leyenda.vendido    { background: #198754; border-color: #198754; }
.boleto-leyenda.pendiente  { background: #fff3cd; border-color: #ffc107; }
.boleto-leyenda.seleccionado { background: #0d6efd; border-color: #0d6efd; }

/* ---- Métodos de pago ---- */
.metodo-card {
    border: 1.5px solid #dee2e6;
    border-radius: 10px;
    padding: 10px 14px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}
.metodo-card:hover { border-color: #0d6efd; background: #f8f9ff; }
.metodo-card.activo { border-color: #0d6efd; background: #e7f1ff; }

/* ---- Cards de campañas (index) ---- */
.campana-card {
    transition: transform .15s, box-shadow .15s;
}
.campana-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 .5rem 1.5rem rgba(0,0,0,.1) !important;
}

/* ---- Carrito (venta) ---- */
#carrito-panel { position: sticky; top: 1rem; }
.cart-item { font-size: .88rem; }

.producto-card {
    cursor: pointer;
    transition: transform .15s, box-shadow .15s, border-color .15s;
    border: 2px solid transparent !important;
}
.producto-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 .25rem .75rem rgba(13,110,253,.15) !important;
    border-color: #0d6efd !important;
}
.producto-card.agotado {
    opacity: .55;
    cursor: not-allowed;
}

/* ---- Toasts ---- */
.toast-body { font-size: .9rem; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .boleto { width: 38px; height: 38px; font-size: 11px; }
}
