/* ============================================
   RIFASFÁCIL — Estilos Globales v4
   100% Responsivo estilo app
   ============================================ */

/* ── Variables ── */
:root {
    --primary:      #6C3CE1;
    --primary-dark: #5428C8;
    --secondary:    #0EA5E9;
    --success:      #10B981;
    --warning:      #F59E0B;
    --danger:       #EF4444;
    --dark:         #1E1B4B;
    --dark-2:       #312E81;
    --theme-soft:   #F5F3FF;
    --theme-muted:  #EDE9FE;
    --theme-link:   #C4B5FD;
    --app-bg:       #F0EDFB;
    --gray-50:      #F9FAFB;
    --gray-100:     #F3F4F6;
    --gray-200:     #E5E7EB;
    --gray-300:     #D1D5DB;
    --gray-500:     #6B7280;
    --gray-700:     #374151;
    --gray-900:     #111827;
    --white:        #FFFFFF;
    --shadow:       0 4px 24px rgba(108,60,225,.12);
    --shadow-lg:    0 8px 40px rgba(108,60,225,.18);
    --radius:       14px;
    --radius-sm:    8px;
    --radius-xs:    6px;
    --font:         'Segoe UI', system-ui, -apple-system, sans-serif;
    --navbar-h:     60px;
    --footer-h:     44px;
}

/* ── Reset ── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
html { height:100%; scroll-behavior:smooth; }
body {
    font-family: var(--font);
    background: var(--app-bg);
    color: var(--gray-900);
    min-height: 100%;
    display: flex;
    flex-direction: column;
    padding-bottom: var(--footer-h);   /* room for sticky footer */
    -webkit-font-smoothing: antialiased;
}
img { max-width:100%; height:auto; display:block; }
a { color:inherit; }

/* ── Navbar ── */
.navbar {
    background: var(--dark);
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--navbar-h);
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.navbar-brand {
    color: white;
    font-size: 1.25rem;
    font-weight: 800;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}
.navbar-brand span { color: var(--theme-link); }

.navbar-user {
    color: white;
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    min-width: 0;
    max-width: 34vw;
    margin-left: 1rem;
    margin-right: auto;
}
.navbar-user span {
    color: var(--theme-link);
    font-size: .68rem;
    font-weight: 600;
}
.navbar-user strong {
    font-size: .84rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Desktop nav links */
.navbar-links {
    display: flex;
    align-items: center;
    gap: .25rem;
}
.navbar-links a {
    color: var(--theme-link);
    text-decoration: none;
    padding: 7px 12px;
    border-radius: var(--radius-xs);
    font-size: .85rem;
    font-weight: 500;
    transition: all .15s;
    white-space: nowrap;
}
.navbar-links a:hover, .navbar-links a.active {
    background: rgba(255,255,255,.14);
    color: white;
}
.btn-logout {
    background: rgba(239,68,68,.15) !important;
    color: #FCA5A5 !important;
}
.btn-logout:hover { background: rgba(239,68,68,.3) !important; }

/* Mobile hamburger */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    border: none;
    background: none;
}
.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--theme-link);
    border-radius: 2px;
    transition: all .3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.nav-drawer {
    display: none;
    position: fixed;
    top: var(--navbar-h);
    bottom: var(--footer-h);
    left: 0; right: 0;
    background: var(--dark);
    z-index: 190;
    padding: .5rem 0 1rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 8px 24px rgba(0,0,0,.3);
    overflow-y: auto;
}
.nav-drawer.open { display: block; }
.nav-drawer a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 1.25rem;
    color: var(--theme-link);
    text-decoration: none;
    font-size: .9rem;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: all .15s;
}
.nav-drawer a:hover, .nav-drawer a.active {
    background: rgba(255,255,255,.12);
    color: white;
    border-left-color: var(--primary);
}
.nav-drawer .drawer-logout { color: #FCA5A5 !important; }

/* ── Layout ── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 1rem;
    width: 100%;
}
.container-sm { max-width: 520px; margin: 0 auto; padding: 1.25rem 1rem; }

/* ── Grids ── */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 1.25rem; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px,1fr)); gap: 1.25rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 1rem; }

/* ── Cards ── */
.card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: .875rem;
    border-bottom: 2px solid var(--gray-100);
    flex-wrap: wrap;
    gap: .5rem;
}
.card-title { font-size: 1.05rem; font-weight: 700; color: var(--dark); }

/* ── Rifa Cards ── */
.rifa-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}
.rifa-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.rifa-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    flex-shrink: 0;
}
.rifa-img img { width:100%; height:100%; object-fit:cover; }
.rifa-body { padding: 1rem; display: flex; flex-direction: column; flex: 1; }
.rifa-title { font-size: 1rem; font-weight: 700; margin-bottom: .35rem; color: var(--gray-900); }
.rifa-meta { font-size: .8rem; color: var(--gray-500); margin-bottom: .6rem; flex: 1; }
.rifa-price { font-size: 1.3rem; font-weight: 800; color: var(--primary); }
.rifa-progress-bar { background: var(--gray-200); border-radius: 999px; height: 6px; margin: .6rem 0; overflow: hidden; }
.rifa-progress-fill { height:100%; background: linear-gradient(90deg,var(--primary),var(--secondary)); border-radius:999px; transition: width .5s; }

/* Countdown */
.countdown-box { display:flex; gap:5px; margin-top:10px; justify-content:center; }
.cd-unit { background:var(--dark); color:white; border-radius:7px; padding:5px 8px; text-align:center; min-width:46px; }
.cd-num { font-size:1.15rem; font-weight:800; color:var(--theme-link); line-height:1; font-variant-numeric:tabular-nums; }
.cd-lbl { font-size:.55rem; text-transform:uppercase; letter-spacing:1px; opacity:.6; }
.cd-sep { color:var(--dark); font-size:1.15rem; font-weight:800; align-self:center; margin-top:-6px; }
.sorteo-pasado { background:var(--theme-muted); color:var(--primary-dark); text-align:center; padding:6px 10px; border-radius:8px; font-size:.78rem; font-weight:600; margin-top:10px; }

/* ── Buttons ── */
.btn {
    padding: 9px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: .875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
    touch-action: manipulation;
}
.btn-primary   { background: var(--primary);   color: white; }
.btn-primary:hover   { background: var(--primary-dark); }
.btn-success   { background: var(--success);   color: white; }
.btn-success:hover   { background: #059669; }
.btn-warning   { background: var(--warning);   color: white; }
.btn-warning:hover   { filter: brightness(.9); }
.btn-danger    { background: var(--danger);    color: white; }
.btn-danger:hover    { filter: brightness(.9); }
.btn-secondary { background: var(--gray-200);  color: var(--gray-900); }
.btn-secondary:hover { background: var(--gray-300); }
.btn-whatsapp  { background: #25D366;          color: white; }
.btn-whatsapp:hover  { background: #128C7E; }
.btn-block { width:100%; justify-content:center; }
.btn-sm    { padding: 6px 13px; font-size: .78rem; }
.btn-lg    { padding: 12px 28px; font-size: 1rem; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn:active   { transform: scale(.97); }

/* ── Forms ── */
.form-group  { margin-bottom: 1rem; }
.form-label  { display:block; font-size:.82rem; font-weight:600; color:var(--gray-700); margin-bottom:5px; }
.form-control {
    width: 100%;
    padding: 10px 13px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: .9rem;
    font-family: var(--font);
    color: var(--gray-900);
    background: white;
    transition: border-color .15s, box-shadow .15s;
    -webkit-appearance: none;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108,60,225,.1);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-hint { font-size: .75rem; color: var(--gray-500); margin-top: 4px; }

/* ── Alerts ── */
.alert {
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    margin-bottom: .875rem;
    font-size: .875rem;
    font-weight: 500;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.alert-success { background:#D1FAE5; color:#065F46; border-left:4px solid var(--success); }
.alert-error   { background:#FEE2E2; color:#991B1B; border-left:4px solid var(--danger); }
.alert-warning { background:#FEF3C7; color:#92400E; border-left:4px solid var(--warning); }
.alert-info    { background:#E0F2FE; color:#0C4A6E; border-left:4px solid var(--secondary); }

/* ── Badges ── */
.badge {
    padding: 3px 9px;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    white-space: nowrap;
}
.badge-activa    { background:#D1FAE5; color:#065F46; }
.badge-sorteada  { background:var(--theme-muted); color:var(--primary-dark); }
.badge-cerrada   { background:#F3F4F6; color:#374151; }
.badge-borrador  { background:#FEF3C7; color:#92400E; }
.badge-cancelada { background:#FEE2E2; color:#991B1B; }
.badge-pagado    { background:#D1FAE5; color:#065F46; }
.badge-pendiente { background:#FEF3C7; color:#92400E; }
.badge-ganador   { background:#FDE68A; color:#78350F; }
.badge-no_ganador{ background:#F3F4F6; color:#6B7280; }
.badge-aprobado  { background:#D1FAE5; color:#065F46; }
.badge-rechazado { background:#FEE2E2; color:#991B1B; }
.badge-info      { background:#E0F2FE; color:#0C4A6E; }
.badge-en_espera { background:#FEF3C7; color:#92400E; }

/* ── Tables — mobile scrollable ── */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-sm); }
table { width:100%; border-collapse:collapse; min-width:480px; }
thead th {
    background: var(--gray-100);
    padding: 9px 12px;
    text-align: left;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--gray-500);
    font-weight: 700;
    white-space: nowrap;
}
tbody td {
    padding: 11px 12px;
    border-bottom: 1px solid var(--gray-100);
    font-size: .875rem;
    vertical-align: middle;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--gray-50); }

/* ── Boleto cards ── */
.boleto-card {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
    border-radius: var(--radius);
    padding: 1.25rem;
    color: white;
    position: relative;
    overflow: hidden;
}
.boleto-number {
    font-size: 2.25rem;
    font-weight: 900;
    letter-spacing: 4px;
    color: var(--theme-link);
    font-variant-numeric: tabular-nums;
}
.boleto-title { font-size: .7rem; text-transform: uppercase; letter-spacing: 2px; opacity: .6; margin-bottom: 3px; }
.boleto-info  { font-size: .875rem; opacity: .85; margin: 3px 0; }
.boleto-divider { border:none; border-top:2px dashed rgba(255,255,255,.18); margin:.875rem 0; }

/* ── Stats cards ── */
.stats-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(165px,1fr)); gap:1rem; margin-bottom:1.5rem; }
.stat-card  { background:white; border-radius:var(--radius); padding:1.1rem; box-shadow:var(--shadow); display:flex; flex-direction:column; gap:.3rem; }
.stat-icon  { font-size:1.6rem; }
.stat-value { font-size:1.75rem; font-weight:800; color:var(--dark); line-height:1.1; }
.stat-label { font-size:.78rem; color:var(--gray-500); font-weight:500; }

/* ── Auth pages ── */
.auth-page { min-height:100vh; display:flex; align-items:center; justify-content:center; background:linear-gradient(135deg,var(--dark) 0%,var(--dark-2) 50%,var(--primary) 100%); padding:1rem; }
.auth-card  { background:white; border-radius:var(--radius); padding:2rem 1.75rem; width:100%; max-width:460px; box-shadow:0 20px 60px rgba(0,0,0,.3); }
.auth-logo  { text-align:center; margin-bottom:1.75rem; }
.auth-logo h1 { font-size:1.75rem; font-weight:800; color:var(--dark); }
.auth-logo h1 span { color:var(--primary); }
.auth-logo p  { color:var(--gray-500); font-size:.875rem; margin-top:4px; }
.auth-footer  { text-align:center; margin-top:1.25rem; font-size:.875rem; color:var(--gray-500); }
.auth-footer a { color:var(--primary); font-weight:600; }

/* ── Modal ── */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 500;
    display: flex;
    align-items: flex-end;     /* mobile: slide up */
    justify-content: center;
    padding: 0;
}
@media (min-width: 640px) {
    .modal-overlay { align-items: center; padding: 1rem; }
}
.modal {
    background: white;
    border-radius: var(--radius) var(--radius) 0 0;
    padding: 1.5rem;
    width: 100%;
    max-width: 580px;
    max-height: 92vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 -8px 40px rgba(0,0,0,.3);
    animation: slideUp .25s ease-out;
}
@media (min-width: 640px) {
    .modal { border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0,0,0,.3); animation: fadeIn .2s ease-out; }
}
@keyframes slideUp { from { transform: translateY(100%); opacity:0; } to { transform: translateY(0); opacity:1; } }
@keyframes fadeIn  { from { transform: scale(.95) translateY(10px); opacity:0; } to { transform: scale(1) translateY(0); opacity:1; } }
.modal-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:1.25rem; }
.modal-close  { background:none; border:none; font-size:1.5rem; cursor:pointer; color:var(--gray-500); padding:4px; line-height:1; }
/* Mobile drag handle */
.modal::before {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: var(--gray-200);
    border-radius: 2px;
    margin: -0.5rem auto 1.25rem;
}
@media (min-width: 640px) { .modal::before { display:none; } }

/* ── Quantity selector ── */
.qty-selector { display:flex; align-items:center; gap:1rem; }
.qty-btn {
    width:42px; height:42px;
    border:2px solid var(--primary);
    background:none; border-radius:50%;
    font-size:1.25rem; cursor:pointer; color:var(--primary);
    display:flex; align-items:center; justify-content:center;
    transition:all .15s; touch-action:manipulation;
}
.qty-btn:hover  { background:var(--primary); color:white; }
.qty-btn:active { transform:scale(.9); }
.qty-btn:disabled { opacity:.4; cursor:not-allowed; }
.qty-display { font-size:1.6rem; font-weight:800; min-width:32px; text-align:center; }

/* ── Step tabs ── */
.step-tabs { display:flex; border-bottom:2px solid var(--gray-100); margin-bottom:1.25rem; }
.step-tab  { padding:8px 14px; font-size:.82rem; font-weight:600; color:var(--gray-500); border-bottom:3px solid transparent; margin-bottom:-2px; white-space:nowrap; }
.step-tab.active { color:var(--primary); border-bottom-color:var(--primary); }
.step-tab.done   { color:var(--success); }

/* ── Payment method cards ── */
.metodo-card {
    border:2px solid var(--gray-200); border-radius:12px; padding:.875rem;
    cursor:pointer; transition:all .15s;
    display:flex; gap:10px; align-items:flex-start; margin-bottom:.75rem;
}
.metodo-card:hover, .metodo-card.selected { border-color:var(--primary); background:var(--theme-soft); }
.banco-logo  { width:42px;height:42px;border-radius:8px;display:flex;align-items:center;justify-content:center;font-size:1.25rem;flex-shrink:0;background:var(--gray-100); }
.banco-info h4 { font-size:.875rem;margin:0 0 2px;font-weight:700; }
.banco-info p  { font-size:.78rem;color:var(--gray-500);margin:2px 0; }
.num-cuenta    { font-size:.82rem;font-weight:700;color:var(--dark);background:var(--gray-100);padding:2px 8px;border-radius:5px;display:inline-block;margin-top:3px;letter-spacing:1px; }

/* ── Resumen box ── */
.resumen-box { background:linear-gradient(135deg,var(--dark),var(--dark-2)); border-radius:12px; padding:1.1rem; color:white; margin-bottom:1rem; }
.resumen-row { display:flex;justify-content:space-between;padding:4px 0;font-size:.875rem; }
.resumen-row.total { border-top:1px dashed rgba(255,255,255,.2);margin-top:8px;padding-top:11px;font-size:1.05rem;font-weight:700; }
.resumen-row .val   { color:var(--theme-link);font-weight:700; }
.resumen-row.total .val { color:#FCD34D;font-size:1.15rem; }

/* ── Page header ── */
.page-header {
    background: linear-gradient(135deg,var(--dark) 0%,var(--dark-2) 100%);
    color: white; padding: 1.25rem 1.5rem;
    border-radius: var(--radius); margin-bottom: 1.25rem;
}
.page-header h1 { font-size: 1.5rem; font-weight: 800; }
.page-header p  { opacity:.7; margin-top:.3rem; font-size:.875rem; }

/* ── Admin layout ── */
.admin-layout { display:grid; grid-template-columns:240px 1fr; flex:1; min-height:calc(100vh - var(--navbar-h) - var(--footer-h)); }
.admin-sidebar {
    background: var(--dark);
    padding: 1.25rem 0;
    position: sticky;
    top: var(--navbar-h);
    height: calc(100vh - var(--navbar-h) - var(--footer-h));
    overflow-y: auto;
    padding-bottom: 1rem;
}
.sidebar-section { padding:.5rem 1rem; font-size:.68rem; text-transform:uppercase; letter-spacing:1px; color:#6B7280; font-weight:700; margin-top:.875rem; }
.sidebar-link {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 1.25rem; color: var(--theme-link);
    text-decoration: none; font-size: .85rem;
    font-weight: 500; transition: all .15s;
    border-left: 3px solid transparent;
}
.sidebar-link:hover, .sidebar-link.active {
    background: rgba(255,255,255,.12); color:white;
    border-left-color: var(--primary);
}
.menu-badge {
    background: var(--danger);
    color: white;
    border-radius: 999px;
    padding: 1px 7px;
    font-size: .7rem;
    margin-left: auto;
}
.admin-content { padding:1.25rem; background:var(--app-bg); overflow-y:auto; }

/* ── Developer sticky footer ── */
.site-footer {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: var(--footer-h);
    background: var(--dark);
    border-top: 1px solid rgba(255,255,255,.07);
    z-index: 300;
    display: flex;
    align-items: center;
}
.footer-inner {
    max-width: 1200px; width:100%;
    margin: 0 auto; padding: 0 1rem;
    display: flex; align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .4rem;
}
.footer-dev       { font-size:.72rem; color:rgba(255,255,255,.35); display:flex; align-items:center; gap:.3rem; white-space:nowrap; }
.footer-dev-name  { color:rgba(255,255,255,.6); font-weight:600; }
.footer-contacts  { display:flex; align-items:center; gap:.4rem; flex-wrap:wrap; }
.footer-link      { display:inline-flex; align-items:center; gap:3px; font-size:.7rem; color:rgba(255,255,255,.38); text-decoration:none; transition:color .15s; white-space:nowrap; }
.footer-link:hover { color:var(--theme-link); }
.footer-sep       { color:rgba(255,255,255,.18); font-size:.65rem; }

/* ── Charts ── */
.chart-card { background:white; border-radius:var(--radius); box-shadow:var(--shadow); padding:1.25rem; margin-bottom:1.5rem; }
.chart-card h3 { font-size:1rem; font-weight:700; color:var(--dark); margin-bottom:1rem; }

/* ── Misc ── */
.two-col   { display:grid; grid-template-columns:1.6fr 1fr; gap:1.5rem; }
.three-col { display:grid; grid-template-columns:1fr 1fr; gap:1.5rem; }

/* ── Cedula input mask helper ── */
input.cedula-input { letter-spacing:.5px; font-family:'Courier New',monospace; font-size:.9rem; }

/* ════════════════════════════════
   RESPONSIVE — mobile-first
   ════════════════════════════════ */
@media (max-width: 768px) {
    :root { --navbar-h: 56px; }
    .navbar { padding:0 .875rem; }
    .navbar-brand { font-size:1.1rem; }
    .navbar-user { max-width:calc(100vw - 190px); margin-left:.65rem; }
    .navbar-user span { display:none; }
    .navbar-user strong { font-size:.74rem; }
    .navbar-links { display:none; }   /* replaced by hamburger drawer */
    .nav-hamburger { display:flex; }

    .container { padding:.875rem; }
    .admin-content { padding:.875rem; }

    .form-row { grid-template-columns:1fr; }
    .grid-3, .grid-2, .grid-4 { grid-template-columns:1fr; }
    .two-col, .three-col { grid-template-columns:1fr; }
    .stats-grid { grid-template-columns:repeat(2,1fr); }

    .admin-layout { grid-template-columns:1fr; }
    .admin-sidebar { display:none; }

    .page-header { padding:1rem; border-radius:var(--radius-sm); }
    .page-header h1 { font-size:1.25rem; }

    .card { padding:1rem; border-radius:var(--radius-sm); }
    .card-header { flex-direction:column; align-items:flex-start; }

    table { min-width:540px; }
    .table-wrap { border-radius:var(--radius-sm); }

    .boleto-number { font-size:1.75rem; }
    .stat-value    { font-size:1.5rem; }

    .btn-sm { padding:7px 11px; font-size:.76rem; }
    .btn    { padding:9px 16px; }

    .footer-contacts { display:none; }
    .footer-dev { font-size:.68rem; }

    .site-footer { height:36px; }
    :root { --footer-h:36px; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns:1fr 1fr; }
    .rifa-img   { height:160px; }
    .auth-card  { padding:1.5rem 1.25rem; border-radius:var(--radius); }
    .navbar-user { display:none; }
}

/* ── Dynamic color override (written by PHP from empresa_config) ── */
/* Variables overridden at runtime via <style id="dyn-colors"> in each page */
