:root {
    --rifa-navy: #0f2942;
    --rifa-navy-light: #1e4976;
    --rifa-gold: #f59e0b;
    --rifa-emerald: #10b981;
    --rifa-bg: #f8fafc;
}

body {
    font-family: 'Plus Jakarta Sans', 'Segoe UI', Roboto, sans-serif;
    background-color: var(--rifa-bg);
    color: #1e293b;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
}

/* Navbar Rifa */
.navbar-rifa {
    background: linear-gradient(135deg, #0f2942 0%, #153e63 100%);
    padding: 0.85rem 0;
    box-shadow: 0 4px 20px rgba(15, 41, 66, 0.15);
}

.bcv-pill {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.45);
    color: #fff;
    border-radius: 50px;
    padding: 0.35rem 0.95rem;
    font-size: 0.82rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Cards de Rifa */
.rifa-card {
    background: #ffffff;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 12px 32px rgba(15, 41, 66, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rifa-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(15, 41, 66, 0.11);
}

.rifa-cover-img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    background: linear-gradient(135deg, #1e4976, #0f2942);
}

.price-badge-box {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fcd34d;
    border-radius: 16px;
    padding: 0.9rem 1.15rem;
}

/* Selector de Numeros (Grilla de Boletos) */
.numeros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
    gap: 10px;
    max-height: 520px;
    overflow-y: auto;
    padding: 14px;
    background: #f1f5f9;
    border-radius: 16px;
    border: 1px solid #cbd5e1;
}

.num-btn {
    border-radius: 10px;
    font-family: 'Outfit', monospace;
    font-weight: 700;
    font-size: 0.98rem;
    padding: 10px 4px;
    text-align: center;
    cursor: pointer;
    user-select: none;
    transition: all 0.15s ease;
    border: 2px solid transparent;
}

.num-btn.disponible {
    background: #ffffff;
    color: #0f2942;
    border-color: #cbd5e1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.num-btn.disponible:not(.seleccionado):hover {
    border-color: #f59e0b;
    background: #fffbeb;
    color: #0f2942;
    transform: translateY(-2px);
}

.num-btn.seleccionado,
.num-btn.disponible.seleccionado,
.num-btn.disponible.seleccionado:hover,
.num-btn.disponible.seleccionado:focus,
.num-btn.disponible.seleccionado:active {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    color: #ffffff !important;
    border-color: #065f46 !important;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.45) !important;
    transform: scale(1.04);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.num-btn.reservado {
    background: #fef3c7;
    color: #92400e;
    border-color: #fde68a;
    cursor: not-allowed;
    opacity: 0.72;
}

.num-btn.pagado {
    background: #e2e8f0;
    color: #94a3b8;
    border-color: #cbd5e1;
    cursor: not-allowed;
    text-decoration: line-through;
    opacity: 0.65;
}

/* Drag & Drop Upload Zone */
.dropzone-candil {
    border: 2px dashed #94a3b8;
    border-radius: 16px;
    padding: 1.75rem;
    text-align: center;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.dropzone-candil:hover,
.dropzone-candil.dragover {
    border-color: #f59e0b;
    background: #fffbeb;
}

.dropzone-candil img.preview-img {
    max-height: 150px;
    border-radius: 12px;
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Admin Sidebar / Header */
.admin-navbar {
    background: #091929;
    border-bottom: 3px solid #f59e0b;
}

.stat-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 1.35rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(15, 41, 66, 0.04);
}

@media print {
    .no-print {
        display: none !important;
    }
    body {
        background: #ffffff !important;
    }
}
