/*
================================================================================
Sistema: Ecovía Comechingones (Smart City & Tourism)
Creador y Desarrollador: Silvio Deandrea
Copyright: © 2026 Silvio Deandrea. Todos los derechos reservados.
Licencia: Propiedad Privada - Producto Protegido por Derechos de Autor.
================================================================================
F89 — Capa propia del Portal Vecino sobre /shared/styles/portal-premium.css.
Acento de gestión: forest-500. El rojo queda sólo para alertas y riesgos.
*/
body.vp-body { background: var(--sand-050) !important; font-family: var(--font-ui); }
#app.eco-shell { display: block !important; }
#app.eco-shell.hidden { display: none !important; }
#bottom-nav { display: none !important; }
#btn-instalar { bottom: calc(var(--wp-bnav) + 16px) !important; right: 16px !important; background: var(--forest-950) !important; border-radius: 999px !important; padding: 10px 16px !important; font: 700 13px var(--font-ui) !important; }
@media (min-width: 1024px) { #btn-instalar { bottom: 24px !important; } }

/* Ingreso, registro y recuperación: una columna con foto real al costado */
body.vp-body #login { position: fixed; inset: 0; z-index: 60; display: grid !important; place-items: center; background: var(--sand-050); padding: 24px 16px; overflow-y: auto; }
body.vp-body #login.hidden { display: none !important; }
@media (min-width: 960px) {
  body.vp-body #login { grid-template-columns: 1.1fr 1fr; place-items: center end; padding: 0; }
  body.vp-body #login::before { content: ""; position: fixed; inset: 0 auto 0 0; width: 52%; background: linear-gradient(0deg, rgba(6,47,53,.9), rgba(6,47,53,.15) 60%), url('/assets/img/villa-larca-480.jpg') center / cover; }
  body.vp-body #login::after { content: "Tu municipio, en el bolsillo."; position: fixed; left: 48px; bottom: 56px; width: calc(52% - 96px); color: #fff; font: 600 clamp(32px, 3vw, 46px)/1.05 var(--font-display); }
  body.vp-body #login > form { grid-column: 2; justify-self: center; }
}
body.vp-body #login > form { width: min(100%, 400px) !important; max-width: 400px !important; background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 12px 0 !important; display: grid; gap: 14px; }
body.vp-body #login > form.hidden { display: none !important; }
body.vp-body #login header p.uppercase { color: var(--forest-700) !important; letter-spacing: .22em; font-weight: 800; }
body.vp-body #login h1 { font-family: var(--font-display); font-size: clamp(30px, 4vw, 40px) !important; font-weight: 600 !important; color: var(--forest-950); line-height: 1.05; }
body.vp-body #login label { font-weight: 600; color: var(--forest-950); }
body.vp-body #login input, body.vp-body #login select { min-height: 48px; border-radius: 12px !important; border-color: rgba(23,35,34,.16) !important; background: #fff; font-size: 16px; }
body.vp-body #login button.bg-sky-700 { min-height: 52px; border-radius: 999px !important; background: var(--forest-950) !important; font-weight: 700 !important; font-size: 16px; }
body.vp-body #login button.underline { color: var(--forest-700) !important; font-size: 14px !important; min-height: 40px; }

/* Barra superior */
body.vp-body #vec-topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; min-height: 72px; padding: env(safe-area-inset-top) clamp(16px, 3vw, 36px) 0; background: rgba(250,248,242,.9); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid rgba(23,35,34,.08); box-shadow: none; }
body.vp-body .vec-breadcrumb { display: grid; min-width: 0; }
body.vp-body .vec-breadcrumb__mun { font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--forest-950); }
body.vp-body .vec-breadcrumb__ruta { font-size: 13px; color: var(--ink-soft); }
body.vp-body .eco-lang { height: 40px; padding: 3px; border-radius: 999px; background: var(--sand-100); border: 1px solid rgba(23,35,34,.08); }
body.vp-body .eco-lang__btn { min-width: 38px; height: 32px; border-radius: 999px; border: 0; background: transparent !important; color: var(--ink-soft) !important; font: 700 12.5px var(--font-ui); }
body.vp-body .eco-lang__btn[aria-pressed="true"], body.vp-body .eco-lang__btn.is-active, body.vp-body .eco-lang__btn.bg-sky-700 { background: var(--forest-950) !important; color: #fff !important; }
body.vp-body .vec-user { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; background: #fff; border: 1px solid rgba(23,35,34,.1); }
body.vp-body .vec-user__avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--forest-950) !important; color: #FFD2B6; font: 800 13px var(--font-ui); }
body.vp-body .vec-user__nombre { font-weight: 700; color: var(--forest-950); }
body.vp-body #logout { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(23,35,34,.14); background: #fff; color: var(--forest-950); font-weight: 700; }
@media (max-width: 720px) { body.vp-body .vec-user__nombre, body.vp-body #logout { display: none; } body.vp-body .vec-breadcrumb__mun { font-size: 18px; } }

/* Contenido */
body.vp-body #app #view { width: 100%; max-width: 1320px; margin: 0 auto; padding: 28px clamp(16px, 3vw, 36px) calc(var(--wp-bnav) + 32px + env(safe-area-inset-bottom)) !important; overflow-x: clip; }
@media (min-width: 1024px) { body.vp-body #app #view { padding-bottom: 56px !important; } }
body.vp-body #view h2 { font-family: var(--font-display); color: var(--forest-950); }
body.vp-body #view .bg-sky-700, body.vp-body #view button.bg-sky-600 { background: var(--forest-950) !important; border-radius: 999px !important; }
body.vp-body #view .text-sky-700, body.vp-body #view .text-sky-600 { color: var(--forest-700) !important; }
body.vp-body #view .border-sky-200, body.vp-body #view .border-sky-100 { border-color: rgba(23,35,34,.1) !important; }
body.vp-body #view .bg-sky-50, body.vp-body #view .bg-sky-100 { background: var(--sand-100) !important; }
body.vp-body #view .rounded-2xl, body.vp-body #view .rounded-xl { border-radius: 18px !important; }
body.vp-body .eco-filtercard { border-radius: 16px; }
/* Títulos sobre superficies oscuras conservan su color claro */
body.vp-body #view :is(.eco-card--teal, .eco-card--navy, .eco-hero, .eco-heroed, .vec-carnet, [class*="carnet"], [class*="hero"]) :is(h1, h2, h3, p, span) { color: inherit; }
body.vp-body #view :is(.eco-card--teal, .eco-card--navy, [class*="carnet"]) { color: #fff; }

/* ==========================================================================
   F89.2 — Inicio «Mi situación»
   ========================================================================== */
.mi-ico { width: 22px; height: 22px; flex-shrink: 0; }
.mi-ico--s { width: 15px; height: 15px; }
.mi-sk { min-height: 160px; border-radius: 22px; margin-bottom: 16px; background: linear-gradient(100deg, #efece4 30%, #f7f5ef 50%, #efece4 70%) 0 0 / 300% 100%; animation: mi-sk 1.4s linear infinite; }
.mi-sk--row { min-height: 120px; }
@keyframes mi-sk { to { background-position: -150% 0; } }
.vp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid transparent; font: 700 14.5px var(--font-ui); cursor: pointer; white-space: nowrap; }
.vp-btn--light { background: #fff; color: var(--danger); }
.mi-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-bottom: 18px; }
.mi-eyebrow { margin: 0; font-size: 11.5px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--forest-700); }
.mi-head h1 { margin: 6px 0 0; font-family: var(--font-display); font-size: clamp(30px, 3.8vw, 46px); font-weight: 600; line-height: 1.02; color: var(--forest-950); }
.mi-lead { margin: 8px 0 0; font-size: 16px; color: var(--ink-soft); }
.mi-carnet { display: flex; align-items: center; gap: 14px; padding: 10px 18px 10px 10px; border: 0; border-radius: 18px; background: radial-gradient(120% 120% at 100% 0%, #147D68, var(--forest-950) 60%); color: #fff; text-align: left; cursor: pointer; box-shadow: var(--eco-shadow-md); }
.mi-carnet__qr { width: 64px; height: 64px; padding: 5px; border-radius: 12px; background: #fff; color: var(--forest-950); display: grid; place-items: center; }
.mi-carnet__qr svg { width: 100%; height: 100%; }
.mi-carnet__txt { display: grid; gap: 1px; }
.mi-carnet__txt b { font-family: var(--font-display); font-size: 17px; font-weight: 600; }
.mi-carnet__txt span { font: 700 14px ui-monospace, monospace; letter-spacing: .06em; }
.mi-carnet__txt em { font-style: normal; font-size: 12px; color: #9EDBC9; }
.mi-alert { display: grid; grid-template-columns: auto 1fr; gap: 12px 16px; align-items: center; padding: 16px 18px; border-radius: 18px; background: var(--danger); color: #fff; margin-bottom: 16px; }
@media (min-width: 760px) { .mi-alert { grid-template-columns: auto 1fr auto; } }
.mi-alert__ico { width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.18); display: grid; place-items: center; }
.mi-alert strong { font-size: 16px; }
.mi-alert p { margin: 2px 0 0; font-size: 14px; opacity: .92; }
.mi-alert .vp-btn { grid-column: 1 / -1; justify-self: start; }
@media (min-width: 760px) { .mi-alert .vp-btn { grid-column: auto; } }
.mi-status { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); margin-bottom: 26px; }
@media (min-width: 1000px) { .mi-status { grid-template-columns: repeat(4, 1fr); } }
.mi-tile { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "ico lbl" "val val" "sub sub"; gap: 4px 10px; align-items: center; padding: 16px; border-radius: 18px; background: #fff; border: 1px solid rgba(23,35,34,.08); box-shadow: var(--eco-shadow-sm); text-align: left; cursor: pointer; transition: transform var(--t-fast), border-color var(--t-fast); }
.mi-tile:hover { transform: translateY(-2px); border-color: var(--forest-500); }
.mi-tile__ico { grid-area: ico; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: rgba(20,125,104,.12); color: var(--forest-700); }
.mi-tile__ico--terra { background: rgba(233,107,44,.12); color: var(--terracotta-700); }
.mi-tile__ico--red { background: rgba(216,44,58,.12); color: var(--danger); }
.mi-tile__lbl { grid-area: lbl; font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.mi-tile b { grid-area: val; margin-top: 6px; font-family: var(--font-display); font-size: clamp(26px, 3vw, 34px); font-weight: 600; color: var(--forest-950); line-height: 1; }
.mi-tile__sub { grid-area: sub; font-size: 13px; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-transform: none; }
.mi-sec { margin-bottom: 26px; }
.mi-sec h2 { margin: 0 0 12px; font-family: var(--font-display); font-size: clamp(22px, 2.4vw, 28px); font-weight: 600; color: var(--forest-950); }
.mi-sec__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.mi-actions { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 1000px) { .mi-actions { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.mi-action { display: grid; gap: 6px; align-content: start; justify-items: start; min-height: 132px; padding: 16px; border-radius: 18px; background: #fff; border: 1px solid rgba(23,35,34,.08); text-align: left; cursor: pointer; color: var(--forest-950); }
.mi-action span { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--sand-100); color: var(--forest-700); }
.mi-action b { font-size: 16.5px; }
.mi-action em { font-style: normal; font-size: 13px; color: var(--ink-soft); line-height: 1.35; }
.mi-action--main { grid-column: 1 / -1; background: var(--forest-950); color: #fff; border: 0; }
@media (min-width: 1000px) { .mi-action--main { grid-column: auto; } }
.mi-action--main span { background: var(--terracotta); color: #fff; }
.mi-action--main b { font-family: var(--font-display); font-size: 22px; font-weight: 600; }
.mi-action--main em { color: rgba(255,255,255,.8); }
.mi-link { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; color: var(--forest-700); font: 700 14.5px var(--font-ui); cursor: pointer; }
.mi-news { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.mi-new { display: grid; gap: 4px; padding: 14px 16px; border-radius: 16px; background: #fff; border: 1px solid rgba(23,35,34,.08); text-align: left; cursor: pointer; color: var(--forest-950); }
.mi-new__cat { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--terracotta-700); }
.mi-new b { font-size: 15.5px; line-height: 1.3; }
.mi-new em { font-style: normal; font-size: 12.5px; color: var(--ink-soft); }
.mi-empty { margin: 0; color: var(--ink-soft); }

/* ==========================================================================
   F89.2 — Reclamos: lista en tarjetas y asistente de 3 pasos
   ========================================================================== */
.vp-btn--primary { background: var(--forest-950); color: #fff; }
.vp-btn--primary:hover { background: var(--forest-700); }
.vp-btn--primary[disabled] { opacity: .6; cursor: progress; }
.vp-btn--ghost { background: #fff; color: var(--forest-950); border-color: rgba(6,47,53,.18); }
#reclamos-feed { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.rc-card { width: 100%; display: grid; gap: 6px; padding: 16px 18px; border-radius: 18px; background: #fff; border: 1px solid rgba(23,35,34,.08); box-shadow: var(--eco-shadow-sm); text-align: left; cursor: pointer; color: var(--forest-950); font: inherit; transition: border-color var(--t-fast), transform var(--t-fast); }
.rc-card:hover { border-color: var(--forest-500); transform: translateY(-1px); }
.rc-card__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rc-card__top b { font-size: 17px; }
.rc-card__area { font-size: 13px; color: var(--ink-soft); }
.rc-card__desc { font-size: 14.5px; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rc-card__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; font-size: 12.5px; }
.rc-card__sla { display: flex; flex-wrap: wrap; gap: 8px; }
.rc-card__cta { font-weight: 700; color: var(--forest-700); }
.rc-chip { flex-shrink: 0; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; text-transform: capitalize; background: var(--sand-100); color: var(--ink-soft); }
.rc-chip--pendiente, .rc-chip--recibido, .rc-chip--nuevo { background: rgba(233,107,44,.14); color: var(--terracotta-700); }
.rc-chip--en_proceso, .rc-chip--asignado, .rc-chip--derivado { background: rgba(37,99,235,.1); color: #1D4ED8; }
.rc-chip--resuelto, .rc-chip--cerrado, .rc-chip--finalizado { background: rgba(20,125,104,.14); color: var(--forest-700); }
.rc-empty { display: grid; gap: 8px; justify-items: start; padding: 28px; border-radius: 20px; background: var(--sand-100); }
.rc-empty h3 { margin: 0; font-family: var(--font-display); font-size: 24px; color: var(--forest-950); }
.rc-empty p { margin: 0 0 6px; color: var(--ink-soft); max-width: 56ch; }

.rw-modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: end center; }
@media (min-width: 720px) { .rw-modal { place-items: center; } }
.rw-scrim { position: absolute; inset: 0; background: rgba(6,47,53,.55); }
.rw-panel { position: relative; width: min(100%, 560px); max-height: 94vh; display: flex; flex-direction: column; background: var(--sand-050); border-radius: 24px 24px 0 0; outline: 0; overflow: hidden; }
@media (min-width: 720px) { .rw-panel { border-radius: 24px; } }
.rw-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 20px 10px; }
.rw-step { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--forest-700); }
.rw-head h2 { margin: 4px 0 0; font-family: var(--font-display); font-size: 28px; font-weight: 600; color: var(--forest-950); }
.rw-bar { height: 4px; margin: 0 20px; border-radius: 4px; background: var(--sand-200); overflow: hidden; }
.rw-bar i { display: block; height: 100%; background: var(--terracotta); transition: width var(--t) var(--ease); }
.rw-body { display: grid; gap: 14px; padding: 16px 20px; overflow-y: auto; }
.rw-body label { display: grid; gap: 6px; font-size: 14px; font-weight: 700; color: var(--forest-950); }
.rw-body input, .rw-body select, .rw-body textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid rgba(23,35,34,.16); border-radius: 12px; background: #fff; font: 500 16px var(--font-ui); color: var(--ink); }
.rw-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rw-tile { display: grid; justify-items: center; gap: 4px; min-height: 84px; padding: 10px 6px; border-radius: 16px; border: 1.5px solid rgba(23,35,34,.1); background: #fff; font: 600 13px/1.2 var(--font-ui); color: var(--forest-950); text-align: center; cursor: pointer; }
.rw-tile span { font-size: 24px; }
.rw-tile[aria-pressed="true"] { border-color: var(--forest-950); background: rgba(20,125,104,.08); box-shadow: inset 0 0 0 1px var(--forest-950); }
.rw-otro { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.rw-otro[hidden] { display: none; }
@media (max-width: 480px) { .rw-otro { grid-template-columns: 1fr; } }
.rw-err { margin: 0; min-height: 18px; color: var(--danger); font-size: 14px; }
.rw-foot { display: flex; justify-content: space-between; gap: 10px; padding: 14px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(23,35,34,.08); background: #fff; }
.rw-foot .vp-btn { min-height: 50px; flex: 1; }
.rw-gps { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px; border-radius: 16px; border: 0; background: var(--forest-950); color: #fff; text-align: left; cursor: pointer; }
.rw-gps > span:first-child { font-size: 28px; }
.rw-gps b { display: block; font-size: 16px; }
.rw-gps em { font-style: normal; font-size: 13px; color: #9EDBC9; }
.rw-adv summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--forest-700); margin-bottom: 8px; }
.rw-dup { display: grid; gap: 8px; padding: 14px; border-radius: 14px; background: #FFF4E5; border: 1px solid rgba(233,107,44,.3); font-size: 14px; }
.rw-dup p { margin: 0; }
.rw-dup ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.rw-dup li { padding: 8px 10px; border-radius: 10px; background: #fff; }
.rw-dup li span { display: block; font-size: 13px; color: var(--ink-soft); }
.rw-dup__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.rw-dup__btns .vp-btn { flex: 1; }
.rw-photo { position: relative; display: grid !important; justify-items: center; gap: 4px; padding: 20px; border-radius: 16px; border: 2px dashed rgba(20,125,104,.35); background: #fff; text-align: center; cursor: pointer; }
.rw-photo span { font-size: 32px; }
.rw-photo img { width: 100%; max-height: 220px; object-fit: cover; border-radius: 12px; }
.rw-photo em { font-style: normal; font-weight: 500; font-size: 13px; color: var(--ink-soft); }
.rw-photo input { position: absolute; inset: 0; opacity: 0; cursor: pointer; min-height: 0 !important; }
.rw-sum { display: grid; gap: 8px; margin: 0; padding: 14px; border-radius: 14px; background: #fff; border: 1px solid rgba(23,35,34,.08); }
.rw-sum div { display: grid; grid-template-columns: 90px 1fr; gap: 10px; font-size: 14px; }
.rw-sum dt { color: var(--ink-soft); font-weight: 600; }
.rw-sum dd { margin: 0; color: var(--ink); white-space: pre-line; overflow-wrap: anywhere; }
.rw-done { display: grid; justify-items: center; gap: 10px; padding: 36px 24px 28px; text-align: center; }
.rw-done > span { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--forest-500); color: #fff; font-size: 36px; font-weight: 800; }
.rw-done h2 { margin: 4px 0 0; font-family: var(--font-display); font-size: 30px; color: var(--forest-950); }
.rw-done p { margin: 0 0 8px; color: var(--ink-soft); max-width: 40ch; }

/* ==========================================================================
   F89.3 — Turnos como pase · Cuenta municipal · Carnet · pantallas heredadas
   ========================================================================== */
#turnos-feed { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.tp { display: grid; grid-template-columns: 76px 1fr; gap: 16px; padding: 16px; border-radius: 20px; background: #fff; border: 1px solid rgba(23,35,34,.08); box-shadow: var(--eco-shadow-sm); }
.tp--past { opacity: .72; box-shadow: none; }
.tp--call { border: 2px solid var(--forest-500); }
.tp__date { display: grid; place-content: center; justify-items: center; gap: 2px; min-height: 92px; border-radius: 16px; background: var(--forest-950); color: #fff; text-transform: uppercase; font: 700 11px var(--font-ui); letter-spacing: .08em; }
.tp__date b { font-family: var(--font-display); font-size: 34px; line-height: 1; letter-spacing: 0; }
.tp--past .tp__date { background: var(--sand-200); color: var(--ink-soft); }
.tp__main { display: grid; gap: 6px; min-width: 0; }
.tp__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tp__top h3 { margin: 0; font-family: var(--font-display); font-size: 20px; color: var(--forest-950); }
.tp__meta { margin: 0; font-size: 14.5px; color: var(--ink-soft); }
.tp__num { margin: 0; font-size: 14px; color: var(--ink-soft); }
.tp__num b { font-family: var(--font-display); font-size: 22px; color: var(--forest-950); margin-left: 4px; }
.tp__num em { font-style: normal; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--sand-100); font-size: 12px; }
.tp--call .tp__num { color: var(--forest-700); font-weight: 800; }
.tp__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.tp__actions .vp-btn { min-height: 40px; padding: 0 14px; font-size: 14px; }
.tp__cancel { color: var(--danger) !important; }
.tp__qr { display: grid; justify-items: center; gap: 8px; margin-top: 8px; padding: 16px; border-radius: 16px; background: var(--sand-050); text-align: center; }
.tp__qr.hidden { display: none; }
.tp__qrsvg { width: 180px; height: 180px; padding: 8px; background: #fff; border-radius: 12px; }
.tp__qrsvg svg { width: 100%; height: 100%; }
.tp__code { font: 700 15px ui-monospace, monospace; letter-spacing: .08em; padding: 8px 12px; border-radius: 10px; background: var(--forest-950); color: #fff; word-break: break-all; }
.tp__qr p { margin: 0; font-size: 13px; color: var(--ink-soft); }
@media (max-width: 480px) { .tp { grid-template-columns: 62px 1fr; gap: 12px; } .tp__date b { font-size: 28px; } }

/* Pantallas heredadas (tarjetas y chips Tailwind) con el mismo lenguaje */
body.vp-body #view .card-vecino { border-radius: 18px !important; border: 1px solid rgba(23,35,34,.08) !important; background: #fff !important; box-shadow: var(--eco-shadow-sm) !important; padding: 16px 18px !important; }
body.vp-body #view .badge-estado { border-radius: 999px !important; font-weight: 800 !important; padding: 3px 10px !important; }
body.vp-body #view .eco-kpi { border-radius: 18px; }
body.vp-body #view code, body.vp-body #view .font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
body.vp-body .modal-card-v { border-radius: 24px !important; background: var(--sand-050) !important; }
body.vp-body .modal-card-v h3 { font-family: var(--font-display); font-size: 24px !important; color: var(--forest-950); }
body.vp-body .modal-card-v button.bg-sky-700, body.vp-body .modal-card-v .bg-sky-700 { background: var(--forest-950) !important; border-radius: 999px !important; min-height: 48px; }
body.vp-body .modal-card-v input, body.vp-body .modal-card-v select, body.vp-body .modal-card-v textarea { min-height: 46px; border-radius: 12px !important; border-color: rgba(23,35,34,.16) !important; font-size: 16px; }

/* ==========================================================================
   F90.2 — Vacíos útiles · Cuenta municipal · Alertas · Servicios · Perfil ·
   Carnet a pantalla completa · Detalle de reclamo
   ========================================================================== */
.vc-stack { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.vc-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.vc-error { color: var(--danger); }
.vc-empty { list-style: none; }
.vc-h2 { display: flex; align-items: center; gap: 10px; margin: 26px 0 12px; font-family: var(--font-display); font-size: clamp(21px, 2.2vw, 26px); font-weight: 600; color: var(--forest-950); }
.vc-h2__ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--sand-100); color: var(--forest-700); }
.vc-btn-s { min-height: 38px; padding: 0 14px; font-size: 13.5px; }
.vc-btn-full { width: 100%; min-height: 48px; }
.vc-danger { color: var(--danger) !important; }
.vc-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .02em; }
.vc-note { color: var(--forest-700) !important; }
.vp-btn--light-ok { background: #fff; color: var(--forest-950); }
.vp-btn--sos { background: var(--danger); color: #fff; }

/* Cuenta municipal */
.vc-saldo { display: grid; gap: 16px; align-items: end; padding: clamp(20px, 3vw, 30px); border-radius: 22px; color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.vc-saldo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url('/assets/img/topo.svg') 0 0 / 560px; opacity: .1; }
.vc-saldo.is-ok { background: radial-gradient(120% 120% at 100% 0%, #147D68 0%, var(--forest-950) 60%); }
.vc-saldo.is-due { background: radial-gradient(120% 120% at 100% 0%, #C4541B 0%, var(--forest-950) 62%); }
@media (min-width: 860px) { .vc-saldo { grid-template-columns: 1fr auto; } }
.vc-eyebrow { margin: 0; font-size: 11.5px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: #9EDBC9; }
.vc-saldo.is-due .vc-eyebrow { color: #FFD2B6; }
.vc-saldo__big { margin: 6px 0 0; font-family: var(--font-display); font-size: clamp(40px, 5vw, 60px); font-weight: 600; line-height: 1; }
.vc-saldo__txt { margin: 10px 0 0; max-width: 60ch; font-size: 15.5px; line-height: 1.5; color: rgba(255,255,255,.88); }
.vc-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 14px 16px; border-radius: 16px; background: #fff; border: 1px solid rgba(23,35,34,.08); }
.vc-row__main { display: grid; gap: 3px; min-width: 0; }
.vc-row__main b { color: var(--forest-950); font-size: 15.5px; }
.vc-row__main span { font-size: 13.5px; color: var(--ink-soft); }
.vc-row__side { display: flex; align-items: center; gap: 10px; }
.vc-money { font-family: var(--font-display); font-size: 20px; color: var(--forest-950); }
.vc-chip--pendiente { background: rgba(233,107,44,.14); color: var(--terracotta-700); }
.vc-chip--vencida { background: rgba(216,44,58,.1); color: var(--danger); }
.vc-chip--pagada { background: rgba(20,125,104,.14); color: var(--forest-700); }
.vc-chip--en_proceso { background: rgba(37,99,235,.1); color: #1D4ED8; }

/* Alertas */
.vc-alert { display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 16px 18px; border-radius: 18px; background: #fff; border: 1px solid rgba(23,35,34,.08); border-left: 5px solid var(--forest-500); box-shadow: var(--eco-shadow-sm); }
.vc-alert__ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(20,125,104,.12); color: var(--forest-700); }
.vc-alert--critica, .vc-alert--urgente { border-left-color: var(--danger); }
.vc-alert--critica .vc-alert__ico, .vc-alert--urgente .vc-alert__ico { background: rgba(216,44,58,.12); color: var(--danger); }
.vc-alert--importante { border-left-color: var(--terracotta); }
.vc-alert--importante .vc-alert__ico { background: rgba(233,107,44,.12); color: var(--terracotta-700); }
.vc-alert.is-read { opacity: .75; box-shadow: none; }
.vc-alert__body { display: grid; gap: 4px; justify-items: start; min-width: 0; }
.vc-alert__meta { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.vc-alert h3 { margin: 0; font-size: 17px; color: var(--forest-950); }
.vc-alert p:not(.vc-alert__meta) { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink); }
.vc-alert .vp-btn { margin-top: 6px; }
.vc-new { display: inline-block; vertical-align: middle; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--terracotta); color: #fff; font: 800 11px var(--font-ui); letter-spacing: .04em; }

/* Servicios */
.vc-srv:first-child .vc-h2 { margin-top: 0; }
.vc-srv__card { display: grid; gap: 6px; align-content: start; justify-items: start; padding: 16px; border-radius: 18px; background: #fff; border: 1px solid rgba(23,35,34,.08); }
.vc-srv__card b { font-size: 16px; color: var(--forest-950); }
.vc-srv__card p { margin: 0; font-size: 14px; color: var(--ink-soft); }
.vc-srv__meta { display: flex; align-items: center; gap: 6px; }
.vc-srv__card .vp-btn { margin-top: 4px; }
.vc-srv--sos .vc-h2__ico { background: rgba(216,44,58,.12); color: var(--danger); }

/* Perfil */
.vc-id { display: grid; grid-template-columns: auto 1fr; gap: 14px 16px; align-items: center; padding: 18px; border-radius: 20px; background: #fff; border: 1px solid rgba(23,35,34,.08); box-shadow: var(--eco-shadow-sm); margin-bottom: 16px; }
.vc-id__av { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--forest-950); color: #FFD2B6; font: 800 22px var(--font-ui); }
.vc-id__txt h2 { margin: 0; font-size: 26px !important; }
.vc-id__txt p { margin: 2px 0 0; font-size: 14px; color: var(--ink-soft); }
.vc-id__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
@media (min-width: 900px) { .vc-id { grid-template-columns: auto 1fr auto; } .vc-id__actions { grid-column: auto; } }
.vc-id__msg { grid-column: 1 / -1; margin: 0; font-size: 13px; color: var(--ink-soft); }
.vc-id__msg:empty { display: none; }
.vc-perfil { display: grid; gap: 16px; align-items: start; }
@media (min-width: 1000px) { .vc-perfil { grid-template-columns: 1.5fr 1fr; } }
.vc-perfil .card-vecino .vp-btn { width: 100%; }

/* Carnet */
.vc-carnet-cta { display: grid; gap: 8px; justify-items: start; margin-top: 14px; }
.vc-carnet-cta .vp-btn { min-height: 52px; font-size: 16px; }
.vc-full { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: var(--forest-950); overflow-y: auto; }
.vc-full__card { width: min(100%, 440px); display: grid; justify-items: center; gap: 8px; padding: 26px 22px; border-radius: 28px; background: #fff; text-align: center; }
.vc-full__eyebrow { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--forest-700); }
.vc-full__card h2 { margin: 0; font-family: var(--font-display); font-size: clamp(26px, 7vw, 34px); color: var(--forest-950); line-height: 1.05; }
.vc-full__qr { width: min(78vw, 340px); aspect-ratio: 1; margin: 10px 0 4px; }
.vc-full__qr svg { width: 100%; height: 100%; }
.vc-full__num { margin: 0; font: 800 22px ui-monospace, monospace; letter-spacing: .08em; color: var(--forest-950); }
.vc-full__state { margin: 0; padding: 4px 14px; border-radius: 999px; font-weight: 800; font-size: 14px; }
.vc-full__state.is-ok { background: rgba(20,125,104,.14); color: var(--forest-700); }
.vc-full__state.is-off { background: rgba(216,44,58,.1); color: var(--danger); }
.vc-full__hint { margin: 4px 0 8px; font-size: 13px; color: var(--ink-soft); }
.vc-full .vp-btn { min-width: 160px; }

/* Noticias */
.vc-news h3 { margin: 4px 0 6px; font-family: var(--font-display); font-size: 21px; color: var(--forest-950); }
.vc-news .markdown-noticia { font-size: 15px; line-height: 1.55; color: var(--ink); white-space: pre-line; }

/* Detalle de reclamo */
.rd-back { margin-bottom: 12px; }
.rd-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 20px; margin-bottom: 14px; }
.rd-head h1 { margin: 6px 0 0; font-family: var(--font-display); font-size: clamp(30px, 3.6vw, 44px); font-weight: 600; line-height: 1.02; color: var(--forest-950); }
.rd-chip { font-size: 13.5px; padding: 6px 14px; }
.rd-sla { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 18px; background: var(--sand-100); margin-bottom: 16px; }
.rd-sla.is-done { background: rgba(20,125,104,.1); }
.rd-sla__ico { width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; background: #fff; color: var(--forest-700); }
.rd-sla__line { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 15px; font-weight: 700; }
.rd-sla__line span { color: var(--forest-950) !important; }
.rd-sla__line .text-rose-600 { color: var(--danger) !important; }
.rd-sla__sub { margin: 2px 0 0; font-size: 14px; color: var(--ink-soft); }
.rd-layout { display: grid; gap: 16px; align-items: start; }
@media (min-width: 1000px) { .rd-layout { grid-template-columns: 1.4fr 1fr; } }
.rd-col { display: grid; gap: 16px; }
.rd-card { display: grid; gap: 10px; padding: 18px; border-radius: 20px; background: #fff; border: 1px solid rgba(23,35,34,.08); box-shadow: var(--eco-shadow-sm); }
.rd-card h3 { margin: 0; font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--forest-950); }
.rd-desc { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--ink); white-space: pre-line; overflow-wrap: anywhere; }
.rd-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rd-photo { margin: 0; display: grid; gap: 6px; }
.rd-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; }
.rd-photo--none span { aspect-ratio: 4 / 3; display: grid; place-items: center; border-radius: 14px; border: 2px dashed rgba(23,35,34,.15); color: var(--ink-soft); }
.rd-photo figcaption { font-size: 12.5px; color: var(--ink-soft); text-align: center; }
.rd-msgs { display: grid; gap: 8px; max-height: 420px; overflow-y: auto; }
.rd-msg { justify-self: start; max-width: 85%; display: grid; gap: 2px; }
.rd-msg p { margin: 0; padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: var(--sand-100); font-size: 15px; color: var(--ink); overflow-wrap: anywhere; }
.rd-msg span { font-size: 11.5px; color: var(--ink-soft); padding: 0 6px; }
.rd-msg--me { justify-self: end; text-align: right; }
.rd-msg--me p { border-radius: 16px 16px 4px 16px; background: var(--forest-950); color: #fff; text-align: left; }
.rd-send { display: flex; gap: 8px; }
.rd-send input { flex: 1; min-width: 0; min-height: 48px; padding: 0 14px; border: 1px solid rgba(23,35,34,.16); border-radius: 999px; font: 500 16px var(--font-ui); }
.rd-timeline { list-style: none; margin: 0; padding: 0; }
.rd-timeline li { position: relative; padding: 0 0 16px 26px; }
.rd-timeline li::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: -6px; width: 2px; background: var(--sand-200); }
.rd-timeline li.is-last::before { display: none; }
.rd-timeline li::after { content: ""; position: absolute; left: 0; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--forest-500); }
.rd-timeline li.is-last::after { background: var(--forest-500); }
.rd-timeline p { margin: 0; }
.rd-timeline__t { font-weight: 700; color: var(--forest-950); }
.rd-timeline__d { font-size: 14px; color: var(--ink-soft); }
.rd-timeline__w { font-size: 12.5px; color: var(--ink-soft); }
.rd-stars { display: flex; gap: 4px; }
.rd-stars button { width: 44px; height: 44px; border: 0; background: none; font-size: 30px; line-height: 1; color: var(--sand-200); cursor: pointer; }
.rd-stars button.is-on { color: var(--terracotta); }
.rd-rate textarea { width: 100%; padding: 10px 14px; border: 1px solid rgba(23,35,34,.16); border-radius: 12px; font: 500 15px var(--font-ui); }
.rd-rate textarea.hidden, .rd-rate .hidden { display: none !important; }
.vc-full__qr { display: grid; place-items: center; }
.vc-full__qr svg { display: block; width: 100% !important; height: 100% !important; }
/* El botón flotante «Instalar app» no tapa lo último de cada vista en el celular */
@media (max-width: 1023px) { body.vp-body #app #view { padding-bottom: calc(var(--wp-bnav) + 96px + env(safe-area-inset-bottom)) !important; } }

/* F91.1 — Certificado de libre deuda (pantalla e impresión) */
.vc-cert { width: min(100%, 560px); display: grid; gap: 10px; justify-items: center; padding: 28px 26px; border-radius: 24px; background: #fff; text-align: center; }
.vc-cert__head { display: grid; gap: 2px; padding-bottom: 12px; border-bottom: 2px solid var(--forest-700); width: 100%; }
.vc-cert__head p { margin: 0; font-family: var(--font-display); font-size: 22px; color: var(--forest-950); }
.vc-cert__head span { font-size: 12.5px; color: var(--ink-soft); }
.vc-cert h2 { margin: 8px 0 0; font-family: var(--font-display); font-size: 34px; letter-spacing: .02em; text-transform: uppercase; color: var(--forest-950); }
.vc-cert__folio { margin: 0; font: 700 14px ui-monospace, monospace; color: var(--ink-soft); }
.vc-cert__body { margin: 8px 0; font-size: 16px; line-height: 1.6; color: var(--ink); max-width: 44ch; }
.vc-cert__qr { width: 200px; height: 200px; }
.vc-cert__qr svg { width: 100%; height: 100%; }
.vc-cert__hint { margin: 0; font-size: 13px; color: var(--ink-soft); }
.vc-cert__url { margin: 0; font-size: 11px; color: var(--ink-soft); word-break: break-all; }
.vc-cert__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 8px; }
@media print {
  body.vc-imprimiendo-cert > *:not(.vc-cert-capa) { display: none !important; }
  body.vc-imprimiendo-cert .vc-cert-capa { position: static; background: #fff; padding: 0; }
  body.vc-imprimiendo-cert .vc-cert { box-shadow: none; }
  .no-print { display: none !important; }
}

/* F91.2 — Pago en línea */
.vc-row.is-pagable { gap: 10px 14px; }
.vc-pay-chk { width: 22px; height: 22px; flex-shrink: 0; accent-color: var(--forest-950); }
.vc-row.is-pagable .vc-row__main { flex: 1; }
.vc-paybar { position: sticky; bottom: calc(var(--wp-bnav) + 12px + env(safe-area-inset-bottom)); z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding: 12px 16px; border-radius: 18px; background: #fff; border: 1px solid rgba(23,35,34,.12); box-shadow: var(--eco-shadow-md); }
@media (min-width: 1024px) { .vc-paybar { bottom: 16px; } }
.vc-paybar p { margin: 0; color: var(--ink-soft); }
.vc-paybar b { font-family: var(--font-display); font-size: 22px; color: var(--forest-950); }
.vc-pay-total { border-top: 1px solid rgba(23,35,34,.1); padding-top: 8px; }
.vc-pay-total dt, .vc-pay-total dd { font-weight: 800; color: var(--forest-950) !important; }
.vc-pay-demo { margin: 0; padding: 10px 12px; border-radius: 12px; background: #FFF4E5; border: 1px solid rgba(233,107,44,.3); font-size: 14px; color: var(--ink); }
.vc-chip--aprobado { background: rgba(20,125,104,.14); color: var(--forest-700); }
.vc-chip--rechazado, .vc-chip--vencido { background: rgba(216,44,58,.1); color: var(--danger); }
.vc-paybar .vp-btn { margin-left: auto; }
@media (max-width: 1023px) { body.vp-body:has(.vc-paybar) #btn-instalar { display: none !important; } }
.vc-pay-sum div { grid-template-columns: 1fr auto; }
.vc-pay-sum dd { text-align: right; font-weight: 700; }
