/* Panel principal · «Red contra incendio por centro» (v2: una tarjeta por centro). Colores por grupo iguales a la tablet. */
.red-card{--cg-SB:#0B2D5B;--cg-GEN:#B54708;--cg-RS:#B42318;--cg-RH:#1D4ED8;--cc-ok:#1E7B37}
.red-card .card-head{align-items:flex-end;gap:16px;flex-wrap:wrap}
.red-card .card-head p{margin:4px 0 0;font-size:13px}

.red-figs{display:flex;gap:28px;flex-wrap:wrap;margin:4px 0 18px}
.red-figs>div{display:flex;align-items:baseline;gap:7px}
.red-figs b{font-size:22px;font-weight:650;letter-spacing:-.02em;color:var(--zx-ink,#16202B);font-variant-numeric:tabular-nums}
.red-figs b small{font-size:14px;color:var(--zx-muted,#677381);font-weight:500}
.red-figs span{font-size:13px;color:var(--zx-muted,#677381)}

.red-rows{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.red-card .cc{display:flex;flex-direction:column;gap:14px;padding:16px 16px 14px;border:1px solid var(--zx-line,#E4E7EB);border-radius:14px;background:var(--zx-surface,#fff);color:inherit;text-decoration:none;transition:border-color .15s,box-shadow .15s,transform .15s;min-width:0}
.red-card .cc:hover{border-color:var(--zx-line-2,#D4D9DF);box-shadow:0 6px 20px rgba(16,34,53,.07);transform:translateY(-1px)}
.red-card .cc:focus-visible{outline:2px solid var(--zx-navy,#0B2D5B);outline-offset:2px}
.cc header{display:flex;align-items:center;gap:10px;min-width:0}
.cc-ic{width:34px;height:34px;flex:none;border-radius:10px;background:var(--zx-accent-soft,#EDF1F7);display:grid;place-items:center;color:var(--zx-navy,#0B2D5B)}
.cc-ic svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.cc header div{min-width:0}
.cc header small{display:block;font-size:11.5px;color:var(--zx-faint,#98A2AE);font-weight:500;line-height:1.1}
.cc header h4{margin:2px 0 0;font-size:16px;font-weight:650;letter-spacing:-.01em;color:var(--zx-ink,#16202B);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.cc-mid{display:flex;align-items:center;gap:14px}
.cc-ring{width:96px;height:96px;flex:none}
.cc-ring-bg{fill:none;stroke:var(--zx-line,#E4E7EB);stroke-width:9}
.cc-ring-fg{fill:none;stroke:var(--zx-navy,#0B2D5B);stroke-width:9;stroke-linecap:round;stroke-dashoffset:var(--len);transition:stroke-dashoffset 1.1s cubic-bezier(.2,.7,.2,1)}
.red-card.is-in .cc-ring-fg{stroke-dashoffset:var(--off)}
.cc.is-base .cc-ring-fg{stroke:var(--cc-ok)}
.cc-ring-big{font-size:22px;font-weight:650;fill:var(--zx-ink,#16202B);text-anchor:middle;font-family:inherit;letter-spacing:-.02em}
.cc-ring-small{font-size:10.5px;fill:var(--zx-muted,#677381);text-anchor:middle;font-family:inherit}
.cc-num{display:flex;flex-direction:column;min-width:0}
.cc-num b{font-size:34px;line-height:1;font-weight:650;letter-spacing:-.03em;color:var(--zx-ink,#16202B);font-variant-numeric:tabular-nums}
.cc-num>span{font-size:13px;color:var(--zx-muted,#677381);margin-top:3px}
.cc-tag{align-self:flex-start;margin-top:8px;font-style:normal;font-size:12px;font-weight:600;padding:3px 9px;border-radius:999px;background:#FFF5DF;color:#8A5A00;white-space:nowrap}
.cc-tag.ok{background:var(--zx-ok-soft,#EAF5EC);color:var(--cc-ok)}

.cc-groups{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.cc-groups li{display:flex;flex-direction:column;align-items:center;gap:2px;padding:7px 0 6px;border-radius:9px;background:var(--zx-bg,#F6F7F9);border-top:3px solid var(--g)}
.cc-groups li span{font-size:11px;font-weight:700;letter-spacing:.02em;color:var(--g)}
.cc-groups li b{font-size:17px;font-weight:650;color:var(--zx-ink,#16202B);font-variant-numeric:tabular-nums}
.cc-groups li.is-zero{opacity:.45}
.cg-SB{--g:var(--cg-SB)}.cg-GEN{--g:var(--cg-GEN)}.cg-RS{--g:var(--cg-RS)}.cg-RH{--g:var(--cg-RH)}

.cc footer{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:12px;color:var(--zx-muted,#677381);border-top:1px solid var(--zx-line,#E4E7EB);padding-top:10px;margin-top:auto}
.cc footer .is-ok{color:var(--cc-ok);font-weight:600}

@media (prefers-reduced-motion:reduce){.cc-ring-fg{transition:none}.red-card .cc{transition:none}}
@media (max-width:1280px){.red-rows{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:980px){.red-rows{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:560px){.red-rows{grid-template-columns:1fr}.red-figs{gap:14px 22px}}

/* En el Resumen del contrato (contratos.html) la tarjeta va sola, sin los estilos del panel principal. */
.red-card.is-standalone{background:var(--zx-surface,#fff);border:1px solid var(--zx-line,#E4E7EB);border-radius:14px;padding:20px 22px;margin:18px 0 22px}
.red-card.is-standalone .card-head{display:flex;justify-content:space-between}
.red-card.is-standalone h3{margin:0;font-size:19px}
.red-card.is-standalone .linkbtn{font-weight:600;font-size:14px;white-space:nowrap}
.red-card .cc header h4{line-height:1.2}

/* Panel principal · tarjetas «Urgente ahora» con hipervínculo (31-10-2026) */
a.uv-tile{display:block;color:inherit;text-decoration:none;cursor:pointer;position:relative;padding-bottom:30px;transition:transform .12s,box-shadow .12s}a.uv-tile:hover,a.uv-tile:focus-visible{transform:translateY(-1px);box-shadow:0 6px 18px #0B2D5B1f;outline:none}a.uv-tile:focus-visible{box-shadow:0 0 0 3px #0B2D5B}
.uv-go{position:absolute;right:14px;bottom:10px;font-size:12px;font-weight:800;color:#0B2D5B;text-decoration:underline}
