/* ── mis-numeros.css — Sorteo CarShow ── */

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background: #111318;
    color: #e2e8f0;
    font-family: 'Outfit', -apple-system, sans-serif;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* Header */
.header {
    background: #0a0c10;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 10;
}
.header img   { height: 32px; width: auto; object-fit: contain; }
.header-title { font-size: 13px; font-weight: 700; color: white; }
.header-sub   { font-size: 11px; color: rgba(255,255,255,0.35); }

.container { max-width: 480px; margin: 0 auto; padding: 20px 16px 40px; }

/* Spinner */
.spinner-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    gap: 16px;
}
.spinner {
    width: 44px; height: 44px;
    border: 3px solid rgba(13,148,136,0.2);
    border-top-color: #0d9488;
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}
.spinner-text { font-size: 13px; color: rgba(255,255,255,0.4); }
@keyframes spin { to { transform: rotate(360deg); } }

/* Estado cards */
.estado-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 40px 24px;
    text-align: center;
    margin-top: 20px;
}
.estado-icon  { font-size: 48px; margin-bottom: 16px; }
.estado-title { font-size: 18px; font-weight: 800; color: white; margin-bottom: 8px; }
.estado-msg   { font-size: 13px; color: rgba(255,255,255,0.45); line-height: 1.6; }

/* Resultado header */
.result-header {
    background: rgba(52,199,89,0.1);
    border: 1px solid rgba(52,199,89,0.25);
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}
.result-header i        { color: #34c759; font-size: 18px; flex-shrink: 0; }
.result-header-text     { font-size: 14px; font-weight: 700; color: #34c759; }
.result-header-sub      { font-size: 11px; color: rgba(52,199,89,0.7); margin-top: 2px; }

/* Card compra */
.compra-card {
    background: #1c2030;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 14px;
    animation: fadeUp 0.35s ease-out both;
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
.compra-header {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.compra-pedido { font-size: 13px; font-weight: 700; color: white; }
.compra-fecha  { font-size: 11px; color: rgba(255,255,255,0.35); margin-top: 2px; }

.badge       { font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 20px; }
.badge-ok    { background: rgba(52,199,89,0.12);  color: #34c759; }
.badge-pend  { background: rgba(255,159,10,0.12); color: #ff9f0a; }

.compra-meta { padding: 10px 16px 4px; display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: rgba(255,255,255,0.4); }
.compra-meta span { display: flex; align-items: center; gap: 5px; }

.numeros-label {
    padding: 12px 16px 8px;
    font-size: 11px; font-weight: 700;
    color: rgba(255,255,255,0.3);
    text-transform: uppercase; letter-spacing: 0.08em;
}
.numeros-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 0 12px 14px;
}
.numero-pill {
    background: #8B0000;
    color: #fff;
    font-weight: 800; font-size: 13px;
    text-align: center; padding: 8px 4px;
    border-radius: 10px; letter-spacing: 0.05em;
}

/* Sorteo badge */
.sorteo-badge {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    font-size: 12px; font-weight: 700;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.sorteo-badge i  { font-size: 10px; flex-shrink: 0; }
.sorteo-activo   { background: #00530a; color: #fff; }
.sorteo-activo i { color: #f00; animation: pulse-dot 2s ease-in-out infinite; }
.sorteo-cerrado  { background: rgba(255,255,255,0.03); color: rgba(255,255,255,0.3); }
@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.4; }
}

/* Sorteo badge — variante para overlay consulta */
.consulta-sorteo-activo,
.consulta-sorteo-cerrado {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    font-size: 12px; font-weight: 700;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.consulta-sorteo-activo  { background: #00530a; color: #fff; }
.consulta-sorteo-cerrado { background: rgba(255,255,255,0.03); color: rgba(255,255,255,0.3); }

/* Footer */
.page-footer {
    text-align: center; margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.page-footer img { height: 28px; opacity: 0.35; display: block; margin: 0 auto 8px; }
.page-footer p   { font-size: 11px; color: rgba(255,255,255,0.2); }
