/* ELECTROLUM · V12 · Mejoras visuales del panel / mobile first */
:root { --navy:#142e43; --ink:#203644; --orange:#e89212; --paper:#f7f8f6; --line:#e3e7e8; --muted:#61717a; }
body { background:var(--paper); color:var(--ink); font-family:system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; }
.header { border-bottom:3px solid var(--orange); }
.header-inner { min-height:82px; }
.main { padding-top:48px; }
.dashboard .dash-head { align-items:end; margin-bottom:28px; }
.dashboard .dash-head h1 { font-weight:750; font-size:clamp(36px,4vw,55px); letter-spacing:-.055em; margin-bottom:10px; }
.dashboard .dash-head .muted { color:#667681; }
.dashboard .overline { letter-spacing:.09em; text-transform:uppercase; font-size:11px; }
.dashboard .outline,.history-link { border-radius:9px; }
.dashboard .outline { box-shadow:none; }
.dashboard .dash-grid { grid-template-columns:minmax(0,1.25fr) minmax(290px,.75fr); gap:18px; align-items:stretch; }
.dashboard .points-card { position:relative; background:#142e43; border:0; border-top:5px solid var(--orange); border-radius:15px; padding:30px 32px 24px; min-height:290px; box-shadow:0 15px 30px #142e4313; }
.dashboard .point-top { font-size:15px; gap:10px; }
.dashboard .point-top svg { width:26px; height:26px; }
.points-content { display:grid; grid-template-columns:minmax(0,1fr) 142px; gap:20px; align-items:center; flex:1; padding:12px 0 22px; }
.points-details { min-width:0; }
.dashboard .balance-label { font-size:14px; margin:12px 0 7px; color:#c9d8e2; }
.dashboard .balance { font-size:clamp(42px,4.6vw,73px); line-height:1.07; color:#ffba50; font-weight:750; letter-spacing:-.065em; overflow-wrap:anywhere; }
.dashboard .point-unit { color:#c8d6df; font-size:13px; margin:10px 0 0; }
.qr-block { display:flex; align-items:center; flex-direction:column; gap:6px; min-width:0; color:#fff; }
.qr-picture { background:#fff; width:132px; height:132px; padding:5px; border:2px solid #fff; border-radius:10px; display:grid; place-items:center; overflow:hidden; color:#4c6070; font-size:12px; text-align:center; line-height:1.3; }
.qr-picture svg { width:100%; height:100%; display:block; }
.qr-loading { width:28px; height:28px; border:3px solid #cbd7de; border-top-color:var(--navy); border-radius:50%; animation:el-spin .8s linear infinite; }
.qr-caption { color:#fff; font-size:12px; font-weight:700; line-height:1.25; margin-top:2px; }
.qr-id { font-size:11px; color:#c2d1dc; letter-spacing:.045em; font-variant-numeric:tabular-nums; }
.dashboard .point-bottom { min-width:0; border-top:1px solid #425c6e; padding-top:15px; font-size:13px; }
.dashboard .point-bottom span:first-child { min-width:0; overflow-wrap:anywhere; }
.dashboard .account-card { padding:27px 28px 21px; box-shadow:0 6px 22px #142e4308; border-radius:15px; }
.dashboard .account-head h2 { font-size:23px; }
.dashboard .account-card dl>div { padding:13px 0; }
.dashboard .account-card dd { font-size:15px; }
.dashboard .history { margin-top:22px; background:#fff; padding:26px 28px; border-radius:15px; box-shadow:0 8px 26px #142e4307; }
.history-head { display:flex; align-items:center; gap:16px; padding-bottom:18px; margin-bottom:4px; border-bottom:1px solid var(--line); }
.history-head h2 { font-size:24px; letter-spacing:-.04em; }
.history-head p { color:#61717b; font-size:14px; }
.history-link { display:inline-flex; min-height:40px; align-items:center; padding:7px 13px; border:1px solid #decfb9; background:#fffaf3; color:#8b510a; white-space:nowrap; }
.history-link:hover { background:#fdf1df; }
.history-table { width:100%; border-collapse:collapse; table-layout:fixed; font-variant-numeric:tabular-nums; }
.history-table thead th { text-transform:uppercase; letter-spacing:.045em; font-size:10px; font-weight:750; color:#64737e; border-bottom:1px solid var(--line); padding:15px 10px 11px; }
.history-table th:first-child { width:46%; }
.history-table th:nth-child(2) { width:20%; }
.history-table th:nth-child(3) { width:18%; }
.history-table th:last-child,.history-table td:last-child { width:16%; text-align:right; }
.history-table td { font-size:14px; border-bottom:1px solid #edf0f1; padding:17px 10px; vertical-align:middle; line-height:1.45; }
.history-table tbody tr:last-child td { border-bottom:0; }
.history-table tbody tr:hover { background:#fbfcfc; }
.history-table td:first-child strong { color:#1f3544; font-size:14px; font-weight:750; overflow-wrap:anywhere; }
.invoice-date { display:block; color:#73818a; font-size:12px; margin-top:3px; }
.invoice-state { display:block; font-size:12px; color:#63717c; margin-top:3px; line-height:1.35; }
.invoice-state.good { color:#216744; }
.invoice-state.warn { color:#875112; }
.history-table .earned { color:#17734c; font-weight:750; font-size:14px; }
.history-table .pdf-cell { padding-left:4px; }
.history-table .invoice-pdf { background:#edf3f6; border:1px solid #cddce2; color:#17374d; border-radius:9px; min-height:38px; padding:7px 10px; gap:7px; margin:0; }
.history-table .invoice-pdf:hover { background:#e3eff3; }
.history-table .invoice-pdf svg { width:17px; height:17px; }
.history-note { color:#748089; font-size:12px; margin:16px 0 0; line-height:1.6; }
.history-note[role=status]:empty { display:none; }
.dashboard .next { background:#fff; padding:20px 24px; border:1px solid var(--line); border-radius:14px; align-items:center; margin-top:18px; }
.dashboard .next h2 { font-size:19px; margin-bottom:6px; }
.dashboard .next p { font-size:14px; line-height:1.5; }
.dashboard .updated { margin-top:14px; }
.history-page-title { line-height:1.12; margin-bottom:13px; }
.history-controls select { min-width:190px; }
.footer { background:#fff; }
@media(max-width:1050px){
 .dashboard .dash-grid { grid-template-columns:minmax(0,1.15fr) minmax(260px,.85fr); gap:14px; }
 .dashboard .points-card { padding:24px; }
 .points-content { grid-template-columns:minmax(0,1fr) 116px; gap:10px; }
 .qr-picture { width:112px; height:112px; }
 .dashboard .balance { font-size:clamp(40px,4.5vw,64px); }
}
@media(max-width:850px){
 .dashboard .dash-grid { grid-template-columns:1fr; }
 .main { padding-top:30px; }
 .dashboard .dash-head { align-items:flex-start; gap:15px; }
 .dashboard .points-card { min-height:250px; }
 .points-content { grid-template-columns:minmax(0,1fr) 142px; }
 .qr-picture { width:130px; height:130px; }
 .dashboard .balance { font-size:clamp(45px,7vw,69px); }
}
@media(max-width:600px){
 .wrap { width:calc(100% - 28px); }
 .main { padding-block:22px 48px; }
 .header-inner { min-height:68px; }
 .logo { width:148px; }
 .dashboard { display:flex; flex-direction:column; gap:14px; }
 .dashboard .dash-grid { display:contents; }
 .dashboard .dash-head { order:0; margin:0 0 2px; }
 .dashboard .dash-head h1 { font-size:34px; margin-bottom:8px; }
 .dashboard .dash-head .outline { min-height:40px; font-size:13px; padding:9px 12px; }
 .dashboard #dash-message { order:1; margin:0; }
 .dashboard .points-card { order:2; min-height:0; padding:19px 17px 17px; border-radius:13px; }
 .dashboard .point-top { font-size:13px; }
 .dashboard .point-top svg { width:23px; height:23px; }
 .points-content { grid-template-columns:minmax(0,1fr) 110px; gap:10px; padding:18px 0 17px; }
 .dashboard .balance-label { font-size:12px; margin:0 0 8px; }
 .dashboard .balance { font-size:clamp(38px,10.3vw,54px); line-height:1; letter-spacing:-.07em; }
 .dashboard .point-unit { font-size:11px; margin:8px 0 0; }
 .qr-picture { width:106px; height:106px; padding:4px; border-radius:8px; }
 .qr-caption { font-size:11px; }
 .qr-id { font-size:10px; }
 .dashboard .point-bottom { font-size:12px; padding-top:12px; }
 .dashboard .history { order:3; margin:0; padding:19px 15px; border-radius:13px; }
 .history-head { flex-direction:row; align-items:center; padding-bottom:15px; gap:10px; }
 .history-head>div { min-width:0; }
 .history-head h2 { font-size:19px; margin-bottom:4px; }
 .history-head p { font-size:12px; line-height:1.5; }
 .history-link { padding:8px 10px; font-size:12px; border-radius:8px; min-height:38px; }
 .history-table,.history-table tbody { display:block; width:100%; }
 .history-table thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
 .history-table tbody tr { display:grid; grid-template-columns:minmax(0,1fr) auto; grid-template-rows:auto auto; grid-template-areas:'invoice pdf' 'amount points'; column-gap:12px; row-gap:12px; align-items:center; padding:15px 2px; border-bottom:1px solid #e7ebed; }
 .history-table tbody tr:last-child { border-bottom:0; }
 .history-table td { display:block; width:auto!important; border:0; padding:0!important; min-width:0; font-size:13px; text-align:left; }
 .history-table td:first-child { grid-area:invoice; }
 .history-table td:first-child strong { font-size:13px; line-height:1.3; }
 .history-table td:nth-child(2) { grid-area:amount; text-align:left; color:#334956; font-weight:650; }
 .history-table td:nth-child(2)::before { content:'Valor  '; color:#7b8790; font-size:11px; font-weight:500; margin-right:6px; }
 .history-table td:nth-child(3) { grid-area:points; text-align:right; align-self:center; }
 .history-table td:nth-child(3)::before { content:'Puntos  '; color:#7b8790; font-size:11px; font-weight:500; margin-right:5px; }
 .history-table td:nth-child(4) { grid-area:pdf; text-align:right; align-self:start; }
 .history-table .invoice-pdf { width:40px; height:40px; min-width:40px; min-height:40px; padding:0; justify-content:center; }
 .history-table .invoice-pdf span { display:none; }
 .history-table .invoice-pdf svg { width:19px; height:19px; }
 .invoice-state,.invoice-date { font-size:11px; }
 .history-table .earned { font-size:14px; }
 .dashboard .account-card { order:4; padding:19px; border-radius:13px; }
 .dashboard .account-head h2 { font-size:20px; }
 .dashboard .account-card dl { display:grid; grid-template-columns:1fr 1fr; column-gap:10px; }
 .dashboard .account-card dl>div:last-child { grid-column:1/-1; }
 .dashboard .next { order:5; margin:0; align-items:start; padding:19px; border-radius:13px; }
 .dashboard .next .outline { width:100%; }
 .dashboard .updated { order:6; margin:0; }
 .history { padding:19px 15px; margin-top:18px; border-radius:13px; }
 .history-controls { gap:8px; }
 .history-controls select { min-width:0; }
 .history-page-title { font-size:35px; }
 .footer-inner { font-size:12px; }
 .intro h1 { font-size:37px; }
 .intro .photo { height:185px; }
 .form-card { padding:24px 20px; }
}
@media(max-width:360px){
 .wrap { width:calc(100% - 24px); }
 .dashboard .points-card { padding:17px 14px; }
 .points-content { grid-template-columns:minmax(0,1fr) 96px; gap:7px; }
 .qr-picture { width:93px; height:93px; }
 .dashboard .balance { font-size:clamp(34px,10vw,42px); }
 .dashboard .point-unit { font-size:10px; }
 .history-head h2 { font-size:18px; }
 .history-link { padding:7px 8px; }
}
@media(prefers-reduced-motion:reduce){.qr-loading{animation:none}}
