/* Portal de propietarios · SHALOM */
body.portal { background: var(--g-100); min-height: 100vh; }
[hidden] { display: none !important; }
.small { font-size: .85rem; }
.ico { width: 20px; height: 20px; flex: none; }

/* ---------- Acceso ---------- */
.auth { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.auth-side { background: var(--black); color: var(--white); padding: clamp(1.5rem, 4vw, 3rem); display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; position: relative; overflow: hidden; }
.auth-side .brand { color: var(--white); }
.auth-copy { max-width: 440px; }
.auth-copy h1 { color: var(--white); font-size: clamp(2rem, 4vw, 3.2rem); }
.auth-copy p { color: var(--g-400); }
.auth-seal { width: 120px; height: 120px; margin-bottom: 2rem; color: var(--white); }
.back { color: var(--g-400); text-decoration: none; font-size: .85rem; }
.back:hover { color: var(--white); }
.auth-main { display: grid; place-items: center; padding: clamp(1.5rem, 4vw, 3rem); background: var(--white); }
.auth-box { width: min(440px, 100%); }
.auth-box h2 { font-size: 1.8rem; margin: .5rem 0 0; }
.seg { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--black); border-radius: var(--radius); margin-bottom: 2rem; }
.seg button { border: 0; background: var(--white); padding: .85em; font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.seg button.active { background: var(--black); color: var(--white); }
.demo { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1.2rem; padding: 1rem; background: var(--g-100); border-radius: var(--radius); font-size: .82rem; }
.demo b { width: 100%; font-weight: 600; }
.demo .link { margin: 0; font-size: .82rem; color: var(--ink); }

/* ---------- Estructura ---------- */
.app { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.sidebar { background: var(--black); color: var(--g-300); padding: 1.6rem 1.2rem; display: flex; flex-direction: column; gap: 2rem; position: sticky; top: 0; height: 100vh; }
.sidebar .brand { color: var(--white); padding: 0 .4rem; }
.sidebar .seal { width: 40px; height: 40px; }
.sidebar .wordmark { font-size: .9rem; }
.side-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.side-nav a { display: flex; align-items: center; gap: .85rem; padding: .8rem .9rem; border-radius: var(--radius); text-decoration: none; font-size: .9rem; font-weight: 500; transition: background .2s, color .2s; }
.side-nav a:hover { background: var(--g-800); color: var(--white); }
.side-nav a.active { background: var(--white); color: var(--black); }
.side-nav .badge { margin-left: auto; }
.badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--white); color: var(--black); font-size: .7rem; font-weight: 700; display: inline-grid; place-items: center; }
.side-nav a.active .badge { background: var(--black); color: var(--white); }
.side-user { display: flex; align-items: center; gap: .75rem; padding-top: 1.2rem; border-top: 1px solid var(--g-700); }
.side-user b { display: block; color: var(--white); font-size: .88rem; font-weight: 600; }
.side-user span { font-size: .76rem; }
.side-user > div:not(.avatar) { flex: 1; min-width: 0; }
.side-user b, .side-user span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avatar { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--g-600); display: grid; place-items: center; color: var(--white); font-weight: 600; font-size: .8rem; flex: none; }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: var(--radius); border: 1px solid transparent; background: transparent; transition: .2s; flex: none; }
.icon-btn:hover { border-color: currentColor; }

.main { padding: clamp(1.2rem, 3.5vw, 3rem); min-width: 0; }
.view { display: none; animation: pop .35s; flex-direction: column; gap: 1.5rem; max-width: 1200px; }
.view.active { display: flex; }
.view-head h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin: 0; }
.view-head .eyebrow { margin-bottom: .7rem; }

.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.1rem, 2.4vw, 1.7rem); min-width: 0; }
.panel h3 { margin: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.panel-head .link { margin: 0; font-size: .82rem; }
.panel.form h3 { margin-bottom: .2rem; }
.two-col, .home-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: start; }

.kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.kpi-row .kpi { color: var(--ink); font-size: 1rem; }
.kpi-row .kpi b { color: inherit; }
.kpi { background: var(--white); padding: 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .3rem; }
.kpi span { font-size: .76rem; color: var(--muted); }
.kpi b { font-size: 1.6rem; font-weight: 300; line-height: 1.15; }
.kpi small { font-size: .76rem; color: var(--muted); }
.kpi-row .kpi.dark { background: var(--black); color: var(--white); }
.kpi.dark span, .kpi.dark small { color: var(--g-400); }

.empty-state { padding: 1.4rem; border: 1px dashed var(--g-300); border-radius: var(--radius); color: var(--muted); font-size: .9rem; text-align: center; }

/* ---------- Listas ---------- */
.list { list-style: none; padding: 0; margin: 0; }
.list li { display: flex; align-items: center; gap: 1rem; padding: .95rem 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.list .when { width: 54px; flex: none; text-align: center; border: 1px solid var(--black); border-radius: var(--radius); padding: .3rem 0; line-height: 1.1; }
.list .when b { display: block; font-size: 1.25rem; font-weight: 400; }
.list .when small { font-family: var(--wide); font-size: .5rem; letter-spacing: .14em; text-transform: uppercase; }
.list .what { flex: 1; min-width: 0; }
.list .what b { display: block; font-weight: 600; font-size: .92rem; }
.list .what span { font-size: .82rem; color: var(--muted); }
.list .acts { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: flex-end; }
.list.past li { opacity: .55; }
.st { display: inline-flex; align-items: center; line-height: 1.4; font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: .3em .7em; border-radius: 999px; border: 1px solid var(--black); white-space: nowrap; }
.st.Confirmada { background: var(--black); color: var(--white); }
.st.Pendiente { background: repeating-linear-gradient(135deg, var(--white) 0 4px, var(--g-200) 4px 6px); }
.st.Cancelada, .st.Rechazada { border-color: var(--g-300); color: var(--g-400); text-decoration: line-through; }

/* ---------- Reservas ---------- */
.area-picker { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; }
.area-card { text-align: left; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .35rem; transition: .2s; }
.area-card:hover { border-color: var(--black); }
.area-card.active { background: var(--black); color: var(--white); border-color: var(--black); }
.area-card .ico { width: 28px; height: 28px; margin-bottom: .3rem; }
.area-card b { font-weight: 600; font-size: .95rem; }
.area-card small { font-size: .76rem; color: var(--muted); }
.area-card.active small { color: var(--g-400); }

.booking { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1.5rem; align-items: start; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.cal-head h3 { font-weight: 400; font-size: 1.3rem; }
.cal-grid { gap: 6px; }
.cal-grid .day { font-size: .95rem; }
.cal-week span { font-size: .55rem; }
.day-panel { position: sticky; top: 1.5rem; }
.day-panel h3 { font-weight: 400; font-size: 1.3rem; }
.day-panel .area-name { font-family: var(--wide); font-size: .58rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: .5rem; }
.slots-list { list-style: none; padding: 0; margin: 1.2rem 0; display: flex; flex-direction: column; gap: .5rem; }
.slot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 1rem; border: 1px solid var(--g-300); border-radius: var(--radius); font-size: .9rem; }
.slot b { font-weight: 600; font-variant-numeric: tabular-nums; }
.slot span { font-size: .78rem; color: var(--muted); }
.slot.libre { border-color: var(--black); }
.slot.ocupado, .slot.pasado { color: var(--g-400); background: var(--g-100); border-color: var(--g-100); }
.slot.pendiente { background: repeating-linear-gradient(135deg, var(--white) 0 6px, var(--g-100) 6px 9px); }
.slot.mio { background: var(--black); color: var(--white); border-color: var(--black); }
.slot.mio span { color: var(--g-300); }
.slot.bloqueado { background: var(--hatch); }
.slot.bloqueado b, .slot.bloqueado span { background: var(--white); padding: 0 .3em; }
.rules { font-size: .82rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 1rem; }
.rules p { margin: .3rem 0; }
.day-hint { color: var(--muted); display: flex; flex-direction: column; align-items: center; text-align: center; gap: .8rem; padding: 2rem 1rem; }
.day-hint .ico { width: 36px; height: 36px; color: var(--g-400); }

/* ---------- Solicitudes ---------- */
.req { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.req:last-child { border-bottom: 0; }
.req-top { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; flex-wrap: wrap; }
.req-top b { font-family: var(--wide); font-size: .72rem; letter-spacing: .12em; }
.req p { margin: .3rem 0 0; font-size: .88rem; }
.req .muted { font-size: .78rem; }
.req .stages { margin-top: .9rem; }

/* ---------- Tablas ---------- */
.table-wrap { overflow-x: auto; margin: 0 -.2rem; }
.table { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 560px; }
.table th { text-align: left; font-family: var(--wide); font-size: .55rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 400; padding: .7rem .6rem; border-bottom: 1px solid var(--black); }
.table td { padding: .75rem .6rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.table th.num { text-align: right; }
.table code { font-family: ui-monospace, Menlo, monospace; font-size: .85rem; letter-spacing: .05em; }
.table select { font: inherit; font-size: .82rem; padding: .35em .5em; border: 1px solid var(--g-300); border-radius: var(--radius); background: var(--white); }

/* ---------- Modal ---------- */
.modal { border: 0; border-radius: var(--radius-lg); padding: 0; width: min(480px, calc(100vw - 32px)); box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .5); }
.modal::backdrop { background: rgba(0, 0, 0, .55); backdrop-filter: blur(3px); }
.modal form { padding: 1.6rem; }
.modal-head { display: flex; justify-content: space-between; align-items: center; }
.modal-head h3 { margin: 0; }
.book-summary { border: 1px solid var(--black); border-radius: var(--radius); padding: 1rem 1.1rem; display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; font-size: .9rem; }
.book-summary dt { color: var(--muted); font-size: .8rem; }
.book-summary dd { margin: 0; font-weight: 600; text-align: right; }
.modal-actions { display: flex; justify-content: flex-end; gap: .6rem; }

/* ---------- Barra inferior (móvil) ---------- */
.tabbar { display: none; }

@media (max-width: 1100px) {
  .area-picker { grid-template-columns: repeat(2, 1fr); }
  .booking { grid-template-columns: 1fr; }
  .day-panel { position: static; }
}
@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; }
  .auth-side { min-height: auto; }
  .auth-copy p, .auth-seal { display: none; }
  .auth-copy h1 { font-size: 1.8rem; margin: 0; }
  .app { grid-template-columns: 1fr; }
  .sidebar { position: sticky; top: 0; z-index: 40; height: auto; flex-direction: row; align-items: center; justify-content: space-between; padding: .8rem 1rem; gap: 1rem; }
  .sidebar .brand-text small { display: none; }
  .side-nav { display: none; }
  .side-user { border: 0; padding: 0; }
  .side-user > div:not(.avatar) { display: none; }
  .main { padding-bottom: 6rem; }
  .two-col, .home-grid { grid-template-columns: 1fr; }
  .tabbar { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; background: var(--black); padding: .4rem .3rem calc(.4rem + env(safe-area-inset-bottom)); }
  .tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .2rem; padding: .45rem 0; text-decoration: none; color: var(--g-400); font-size: .62rem; font-weight: 500; border-radius: var(--radius); position: relative; }
  .tabbar a.active { color: var(--white); }
  .tabbar a.active::before { content: ""; position: absolute; top: -.4rem; left: 30%; right: 30%; height: 2px; background: var(--white); }
  .tabbar .badge { position: absolute; top: 0; right: 22%; min-width: 16px; height: 16px; font-size: .6rem; }
}
@media (max-width: 560px) {
  .area-picker { grid-template-columns: 1fr 1fr; gap: .5rem; }
  .area-card { padding: .9rem; }
  .area-card small { display: none; }
  .cal-grid { gap: 3px; }
  .cal-grid .day { font-size: .82rem; }
  .day .slots i { width: 4px; height: 4px; }
  .kpi b { font-size: 1.3rem; }
  .list li { flex-wrap: wrap; }
  .list .acts { width: 100%; justify-content: flex-start; padding-left: calc(54px + 1rem); }
}

/* ---------- Horarios rápidos ---------- */
.quick { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.quick-label { font-family: var(--wide); font-size: .56rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.quick-list { display: flex; gap: .5rem; flex-wrap: wrap; flex: 1; }
.quick-list button { border: 1px solid var(--black); background: var(--white); border-radius: var(--radius); padding: .5rem .8rem; text-align: left; line-height: 1.25; transition: .2s; }
.quick-list button:hover { background: var(--black); color: var(--white); }
.quick-list b { display: block; font-size: .8rem; font-weight: 600; }
.quick-list span { font-size: .72rem; opacity: .75; }
.quick-list .muted { font-size: .85rem; }

.acts .icon-btn { width: 34px; height: 34px; border-color: var(--g-300); }
.acts .icon-btn:hover { border-color: var(--black); }
.acts .icon-btn .ico { width: 17px; height: 17px; }

/* ---------- Comprobante ---------- */
.receipt-modal { width: min(440px, calc(100vw - 32px)); }
.receipt-modal .modal-actions { padding: 0 1.6rem 1.6rem; flex-wrap: wrap; }
.receipt { padding: 1.8rem 1.6rem 1.2rem; }
.rc-brand { display: flex; align-items: center; gap: .9rem; padding-bottom: 1.2rem; border-bottom: 2px solid var(--black); }
.rc-brand .seal { width: 48px; height: 48px; }
.rc-title { margin: 1.3rem 0 .2rem; font-family: var(--wide); font-size: .6rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.rc-code { font-family: var(--wide); font-size: 1.6rem; letter-spacing: .1em; margin: 0 0 1rem; }
.rc-rows { display: grid; grid-template-columns: auto 1fr; gap: .55rem 1rem; font-size: .9rem; margin: 0; padding: 1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rc-rows dt { color: var(--muted); }
.rc-rows dd { margin: 0; text-align: right; font-weight: 600; }
.rc-foot { font-size: .76rem; color: var(--muted); margin: 1rem 0 0; }

@media print {
  body.portal:not(.print-nc) > *:not(#receiptModal) { display: none !important; }
  #receiptModal { position: static; box-shadow: none; width: 100%; }
  .no-print { display: none !important; }
}
.receipt-modal .modal-actions { display: grid; grid-template-columns: 1fr 1.6fr 1fr; gap: .5rem; }
.receipt-modal .modal-actions .btn { padding: .85em .5em; font-size: .66rem; }
.receipt-modal .modal-actions .btn[hidden] { display: none; }

.fatal { position: fixed; top: 0; left: 0; right: 0; z-index: 999; background: var(--black, #0B0B0B); color: #fff; padding: 1rem 1.2rem; font: 500 .95rem/1.5 system-ui, sans-serif; border-bottom: 3px solid #fff; }

/* =====================================================================
   v5 · Dorado, comunidad, finanzas, invitados, directorio, servicios
   ===================================================================== */
:root { --gold: #D4AF5A; --gold-light: #E6CB8A; --gold-ink: #8A6A1E; --gold-bg: #F7F0DE; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #0B0B0B; }
.btn-gold:hover { background: #0B0B0B; border-color: #0B0B0B; color: var(--gold-light); }
.gold-ink { color: var(--gold-ink); }
.portal .eyebrow { color: var(--gold-ink); }
.side-nav a.active { background: var(--gold); color: #0B0B0B; }
.side-nav a { position: relative; }
.badge { background: var(--gold); color: #0B0B0B; }
.side-nav a.active .badge { background: #0B0B0B; color: var(--gold-light); }
.kpi-row .kpi.dark b { color: var(--gold-light); }
a.kpi { text-decoration: none; transition: background .2s; }
a.kpi:hover { background: var(--g-100); }
a.kpi.dark:hover { background: #1A1A1A; }
.tag.gold { background: var(--gold-bg); border-color: var(--gold); color: var(--gold-ink); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.lead-sm { margin: -0.6rem 0 0; max-width: 720px; font-size: .95rem; }
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 1.5rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.btn .ico { width: 18px; height: 18px; }
.ico.xs { width: 14px; height: 14px; vertical-align: -2px; }
.big { font-size: 1.6rem; font-weight: 300; }

/* Idioma */
.auth-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.lang-switch { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--g-600); }
.lang-switch button { border: 0; background: transparent; color: var(--g-300); padding: .45em .9em; border-radius: 999px; font-size: .72rem; font-weight: 600; letter-spacing: .08em; }
.lang-switch button.on { background: var(--gold); color: #0B0B0B; }
.lang-switch.dark { border-color: var(--g-300); }
.lang-switch.dark button { color: var(--g-600); }

/* Campana */
.bell { position: relative; color: var(--white); }
.bell .badge { position: absolute; top: 2px; right: 0; min-width: 17px; height: 17px; font-size: .62rem; padding: 0 4px; }
.notif-modal { width: min(460px, calc(100vw - 24px)); padding: 1.2rem; }
.notif-list { display: flex; flex-direction: column; max-height: 60vh; overflow-y: auto; margin: .8rem -0.4rem; }
.notif { display: flex; gap: .8rem; padding: .8rem .6rem; border-radius: var(--radius); text-decoration: none; color: inherit; }
.notif:hover { background: var(--g-100); }
.notif .n-ico { width: 36px; height: 36px; border-radius: 50%; background: var(--g-100); display: grid; place-items: center; flex: none; }
.notif.unread .n-ico { background: #0B0B0B; color: var(--gold); }
.notif .n-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.notif .n-body b { font-size: .9rem; font-weight: 600; }
.notif .n-body span { font-size: .82rem; color: var(--g-700); }
.notif .n-body small { font-size: .72rem; color: var(--muted); }
.notif.unread .n-body b::after { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); margin-left: .4rem; vertical-align: middle; }

/* Chips */
.chips-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.chip { border: 1px solid var(--g-300); background: var(--white); border-radius: 999px; padding: .5em 1.1em; font-size: .85rem; font-weight: 500; }
.chip.active { background: #0B0B0B; color: var(--gold-light); border-color: #0B0B0B; }

/* Muro de la comunidad */
.feed { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.2rem; align-items: start; }
.post { background: var(--white); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.post-head { display: flex; align-items: center; gap: .6rem; padding: .9rem 1rem; flex-wrap: wrap; }
.post-head .muted { margin-left: auto; }
.who { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .88rem; }
.who .av { width: 30px; height: 30px; border-radius: 9px; background: #0B0B0B; color: var(--gold-light); font-family: var(--wide); font-size: .55rem; display: grid; place-items: center; }
.who.admin { color: var(--gold-ink); }
.seal-xs { width: 28px; height: 28px; color: var(--gold); }
.post-img { display: block; border: 0; padding: 0; background: var(--g-100); width: 100%; aspect-ratio: 16 / 10; }
.post-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-body { padding: 1rem; display: flex; flex-direction: column; gap: .6rem; }
.post-meta { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; font-size: .9rem; }
.post-text { margin: 0; font-size: .95rem; line-height: 1.55; }
.official { background: var(--gold-bg); border-left: 3px solid var(--gold); border-radius: 0 10px 10px 0; padding: .7rem .9rem; display: flex; flex-direction: column; gap: 2px; font-size: .86rem; }
.official b { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }
.post .stages { margin: .4rem 0 0; }
.post-actions { display: flex; align-items: center; gap: .5rem; padding: .7rem 1rem; border-top: 1px solid var(--line); flex-wrap: wrap; }
.post-actions .code { margin-left: auto; font-family: var(--wide); font-size: .6rem; letter-spacing: .1em; }
.pill { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid var(--g-300); background: var(--white); border-radius: 999px; padding: .45em .9em; font-size: .8rem; font-weight: 500; min-height: 36px; }
.pill .ico { width: 16px; height: 16px; }
.pill.on { background: #0B0B0B; color: var(--gold-light); border-color: #0B0B0B; }
.post.in-modal { border: 0; border-radius: 0; margin: 0 -1.6rem; }
.post-modal { width: min(620px, calc(100vw - 24px)); padding: 1.2rem 1.6rem 1.4rem; max-height: 92vh; }
.comments { display: flex; flex-direction: column; gap: .8rem; margin: 1rem 0; }
.comment { background: var(--g-100); border-radius: 12px; padding: .8rem 1rem; display: flex; flex-direction: column; gap: .3rem; }
.comment.is-official { background: var(--gold-bg); border: 1px solid var(--gold); }
.comment p { margin: 0; font-size: .9rem; }
.comment img { max-width: 100%; border-radius: 10px; margin-top: .3rem; }
.comment-form { display: flex; flex-direction: column; gap: .6rem; padding: .6rem 0 0; border-top: 1px solid var(--line); }
.post.in-modal .post-img { aspect-ratio: auto; max-height: 340px; }
.post.in-modal .post-img img { max-height: 340px; }
.post-meta .loc { display: inline-flex; align-items: center; gap: .25rem; width: 100%; }
.comment-form textarea { font: inherit; padding: .7em .9em; border: 1px solid var(--g-300); border-radius: 12px; resize: vertical; }
.cf-row { display: flex; gap: .5rem; align-items: center; }
.cf-row select { flex: 1; font: inherit; font-size: .85rem; padding: .55em; border: 1px solid var(--g-300); border-radius: var(--radius); background: var(--white); min-width: 0; }
.cf-row .btn { margin-left: auto; }
.file-btn { border: 1px solid var(--g-300); cursor: pointer; }
.photo-drop { position: relative; display: grid !important; place-items: center; min-height: 140px; border: 1.5px dashed var(--g-400); border-radius: 14px; background: var(--g-100); cursor: pointer; overflow: hidden; }
.photo-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.photo-drop #photoLabel { display: flex; flex-direction: column; align-items: center; gap: .4rem; color: var(--g-700); font-weight: 500; }
.photo-drop #photoLabel .ico { width: 30px; height: 30px; }
.photo-drop img { width: 100%; max-height: 240px; object-fit: cover; }
.toggle { display: flex !important; flex-direction: row !important; align-items: flex-start; gap: .8rem; padding: .7rem 0; cursor: pointer; }
.toggle input { appearance: none; -webkit-appearance: none; width: 44px; height: 26px; border-radius: 13px; background: var(--g-300); position: relative; flex: none; margin: 0; transition: background .2s; cursor: pointer; }
.toggle input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--white); transition: transform .2s; }
.toggle input:checked { background: var(--gold); }
.toggle input:checked::after { transform: translateX(18px); }
.toggle input:focus-visible { outline: 2px solid #0B0B0B; outline-offset: 2px; }
.toggle > span { display: flex; flex-direction: column; gap: 2px; }
.toggle b { font-weight: 600; font-size: .9rem; }
.toggle small { font-size: .78rem; color: var(--muted); font-weight: 400; }
.toggles { display: flex; flex-direction: column; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.toggles .toggle + .toggle { border-top: 1px solid var(--line); }
.mini-feed { display: flex; flex-direction: column; }
.mini { display: flex; gap: .8rem; padding: .75rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; align-items: center; }
.mini:last-child { border-bottom: 0; }
.mini img, .mini-ph { width: 64px; height: 52px; border-radius: 10px; object-fit: cover; flex: none; background: var(--g-100); display: grid; place-items: center; }
.mini > span { display: flex; flex-direction: column; min-width: 0; }
.mini b { font-size: .88rem; font-weight: 600; }
.mini span span { font-size: .82rem; color: var(--g-700); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini small { font-size: .72rem; color: var(--muted); }

/* Finanzas */
.tabs-line { display: flex; gap: .3rem; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.tabs-line button { border: 0; background: none; padding: .85rem 1rem; font-size: .85rem; font-weight: 600; color: var(--g-600); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs-line button.active { color: #0B0B0B; border-bottom-color: var(--gold); }
.fin-body { display: flex; flex-direction: column; gap: 1.5rem; animation: pop .35s; }
.hero-fin { background: #0B0B0B; color: var(--white); border-radius: 20px; padding: clamp(1.2rem, 3vw, 1.8rem); display: flex; flex-direction: column; gap: .9rem; }
.hero-fin h2 { color: var(--white); margin: 0; font-size: 1.6rem; }
.hf-eyebrow { margin: 0; font-family: var(--wide); font-size: .58rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.hf-sub { margin: 0; color: var(--g-300); font-size: .9rem; }
.hf-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.hf-top span { display: block; font-size: .8rem; color: var(--g-300); }
.hf-top b { font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 300; color: var(--gold-light); }
.hf-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: #333333; border-radius: 12px; overflow: hidden; }
.hf-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hf-grid div { background: #1A1A1A; padding: .8rem 1rem; }
.hf-grid span { display: block; font-size: .72rem; color: var(--g-400); }
.hf-grid b { font-size: 1rem; font-weight: 600; }
.hf-line { display: flex; justify-content: space-between; gap: 1rem; font-size: .9rem; color: var(--g-200); }
.hf-line.small { font-size: .76rem; color: var(--g-400); }
.hf-line.strong { font-weight: 600; padding-top: .6rem; border-top: 1px solid #333333; }
.panel .hf-line { color: var(--ink); }
.panel .hf-line.strong { border-top-color: var(--line); align-items: baseline; }
.bar { display: block; height: 7px; border-radius: 4px; background: #ECECEA; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--gold); border-radius: 4px; }
.bar.dark span { background: #0B0B0B; }
.hero-fin .bar { background: #2A2A2A; }
.spend { list-style: none; padding: 0; margin: .6rem 0 0; }
.spend li { padding: .75rem 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: .35rem; }
.sp-top { display: flex; justify-content: space-between; gap: 1rem; font-size: .9rem; }
.sp-top b { font-weight: 500; }
.sp-top span { font-weight: 600; font-variant-numeric: tabular-nums; }
.age-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .7rem; margin-top: .8rem; }
.age { border: 1px solid var(--line); border-radius: 14px; padding: 1rem; display: flex; flex-direction: column; gap: 2px; }
.age span { font-size: .76rem; color: var(--muted); }
.age b { font-size: 1.15rem; font-weight: 600; }
.age small { font-size: .76rem; color: var(--muted); }
.age.a2 { background: var(--gold-bg); border-color: var(--gold); }
.age.a3 { background: #0B0B0B; color: var(--white); border-color: #0B0B0B; }
.age.a3 span, .age.a3 small { color: var(--gold-light); }
.invs { list-style: none; padding: 0; margin: .6rem 0 0; }
.inv { padding: .9rem 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: .4rem; }
.inv-top, .inv-bot { display: flex; justify-content: space-between; gap: .8rem; align-items: center; }
.inv-top div { display: flex; flex-direction: column; }
.inv-top b { font-weight: 600; }
.milestones { list-style: none; padding: 0; margin: .4rem 0 0; display: flex; flex-direction: column; gap: .8rem; }
.milestones li { display: flex; gap: .8rem; align-items: center; font-size: .92rem; color: var(--g-600); }
.milestones li.ok { color: var(--ink); font-weight: 500; }
.milestones .dot { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--g-300); display: grid; place-items: center; font-size: .7rem; flex: none; }
.milestones li.ok .dot { background: #0B0B0B; border-color: #0B0B0B; color: var(--gold); }
.hero-fin.gas { flex-direction: row; align-items: center; gap: 1.6rem; }
.tank { width: 84px; height: 140px; border-radius: 42px; border: 2px solid var(--gold); position: relative; overflow: hidden; flex: none; }
.tank span { position: absolute; left: 0; right: 0; bottom: 0; background: var(--gold); }
.tank b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.2rem; }
.gas-info { display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.gas-info > span { font-size: .8rem; color: var(--g-300); }
.gas-info > b { font-size: 1.4rem; font-weight: 300; }
.meter { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin: .6rem 0 1rem; }
.meter div { background: var(--white); padding: .7rem .9rem; }
.meter span { display: block; font-size: .72rem; color: var(--muted); }
.meter b { font-size: 1rem; }
.bars { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .7rem; height: 170px; align-items: end; margin-top: .8rem; }
.bars .b { display: flex; flex-direction: column; align-items: center; gap: .3rem; height: 100%; justify-content: flex-end; }
.bars .b span { width: 100%; background: #E6E6E3; border-radius: 6px 6px 2px 2px; min-height: 4px; }
.bars .b.cur span { background: var(--gold); }
.bars small { font-size: .7rem; color: var(--muted); }
.bars em { font-style: normal; font-size: .72rem; color: var(--muted); text-transform: capitalize; }
.alert-row, .note-row { display: flex; gap: .9rem; align-items: center; text-decoration: none; color: inherit; }
.alert-row { background: #0B0B0B; color: var(--white); border-color: #0B0B0B; }
.alert-row .ico, .note-row.warn .ico { color: var(--gold); width: 26px; height: 26px; }
.alert-row > span { display: flex; flex-direction: column; }
.alert-row .muted { color: var(--g-300) !important; }
.note-row p { margin: 0; }
.note-row.warn { background: var(--gold-bg); border-color: var(--gold); }

/* Invitados, directorio, servicios, emergencias, más */
.guest-group + .guest-group { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.gg-head { display: flex; justify-content: space-between; gap: 1rem; margin: 0 0 .3rem; flex-wrap: wrap; }
.list .av { width: 34px; height: 34px; border-radius: 50%; background: var(--gold-bg); color: var(--gold-ink); font-size: .72rem; font-weight: 700; display: grid; place-items: center; flex: none; }
.search { display: flex; align-items: center; gap: .6rem; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 0 1rem; height: 50px; }
.search input { flex: 1; border: 0; outline: none; font: inherit; font-size: 1rem; background: transparent; }
.dir .apt { width: 46px; height: 46px; border-radius: 12px; background: #0B0B0B; color: var(--gold-light); font-family: var(--wide); font-size: .62rem; display: grid; place-items: center; flex: none; }
.icon-btn.round { border-radius: 50%; border: 1px solid var(--g-300); width: 42px; height: 42px; text-decoration: none; color: inherit; }
.icon-btn.round.gold { background: #0B0B0B; color: var(--gold); border-color: #0B0B0B; }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.svc { display: flex; gap: 1rem; align-items: flex-start; }
.svc-ico { width: 46px; height: 46px; border-radius: 14px; background: var(--gold-bg); color: var(--gold-ink); display: grid; place-items: center; flex: none; }
.svc > div { flex: 1; display: flex; flex-direction: column; }
.svc b { font-weight: 600; }
.svc p { margin: .3rem 0 .8rem; }
.svc-foot { display: flex; justify-content: space-between; align-items: center; gap: .8rem; margin-top: auto; }
.sos { display: flex; align-items: center; gap: 1.2rem; background: #0B0B0B; color: var(--white); text-decoration: none; padding: 1.3rem 1.5rem; border-radius: 20px; max-width: 520px; }
.sos-ico { width: 64px; height: 64px; border-radius: 50%; background: var(--gold); color: #0B0B0B; display: grid; place-items: center; box-shadow: 0 0 0 7px rgba(201,162,75,.25); flex: none; }
.sos-ico .ico { width: 28px; height: 28px; }
.sos b { display: block; font-family: var(--wide); font-size: 1.7rem; letter-spacing: .08em; color: var(--gold-light); font-weight: 400; }
.sos small { color: var(--g-300); }
#emgList { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
#emgList .eyebrow { margin-bottom: .4rem; }
.more-list { display: flex; flex-direction: column; }
.more-list a { display: flex; align-items: center; gap: .9rem; padding: .95rem .2rem; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; font-weight: 500; }
.more-list a:last-child { border-bottom: 0; }
.more-list .chev { margin-left: auto; color: var(--g-400); width: 16px; height: 16px; }
.outbox .ch { font-family: var(--wide); font-size: .5rem; letter-spacing: .12em; text-transform: uppercase; background: var(--g-100); padding: .4em .6em; border-radius: 6px; flex: none; min-width: 56px; text-align: center; }

@media (max-width: 860px) {
  .side-user .bell { margin-left: auto; }
  .hf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .age-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feed { grid-template-columns: 1fr; }
  .post-modal { padding: 1rem 1.1rem 1.2rem; }
  .post.in-modal { margin: 0 -1.1rem; }
}
@media (max-width: 560px) {
  .hf-grid.three { grid-template-columns: 1fr 1fr 1fr; }
  .hf-grid div { padding: .7rem; }
  .hero-fin.gas { flex-direction: column; align-items: stretch; }
  .tank { align-self: center; }
}

@media (max-width: 860px) {
  .app { grid-template-rows: auto 1fr; align-content: start; }
  .sidebar { align-self: start; }
  .kpi-row { grid-template-columns: 1fr 1fr; }
  .kpi-row > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* ---------- v6 · Notas de crédito ---------- */
.st.Credito { background: var(--gold-bg); border-color: var(--gold); color: var(--gold-ink); }
.kpi-row .kpi.kpi-gold { background: var(--gold-bg); border-color: var(--gold); }
.kpi-row .kpi.kpi-gold b { color: var(--gold-ink); }
#ncPanel .panel-head { align-items: flex-start; gap: 1rem; }
#ncPanel .panel-head p { margin: .3rem 0 0; max-width: 56ch; }
.nc-list .what span { display: block; }
.nc-list .acts { flex-wrap: wrap; justify-content: flex-end; }
.nc-when { background: var(--gold-bg); border-color: var(--gold) !important; }
.nc-when b { color: var(--gold-ink); font-size: 1rem; }
.nc-amt { color: var(--gold-ink); white-space: nowrap; }
.inv-nc { display: flex; justify-content: space-between; gap: 1rem; font-size: .82rem; color: var(--gold-ink); margin: .25rem 0; }
.inv-nc.strong { color: inherit; font-weight: 600; border-top: 1px dashed var(--line); padding-top: .3rem; }
.rc-rows .nc-total { font-size: 1.05rem; color: var(--black); font-weight: 700; padding-top: .4rem; }
#ncEmitForm .seg { margin-bottom: 1rem; }
#ncEmitForm .seg label { display: flex; margin: 0; }
#ncEmitForm .seg input { position: absolute; opacity: 0; pointer-events: none; }
#ncEmitForm .seg span { flex: 1; text-align: center; padding: .85em; font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
#ncEmitForm .seg input:checked + span { background: var(--black); color: var(--gold-light); }
#ncEmitForm [hidden] { display: none; }
@media (max-width: 640px) {
  #ncPanel .panel-head { flex-direction: column; }
  .nc-list li { flex-wrap: wrap; }
  .nc-list .acts { width: 100%; justify-content: flex-start; }
}
@media print {
  body.portal.print-nc > *:not(#ncDocModal) { display: none !important; }
  body.portal.print-nc #ncDocModal { position: static; box-shadow: none; width: 100%; display: block; }
}

/* =====================================================================
   v8 · Mayormente blanco · negro para resaltar · azul marino y dorado en detalles
   ===================================================================== */
body.portal { background: var(--white); }
.portal .eyebrow { color: var(--navy); }
.portal .eyebrow::before { background: var(--gold); }
.portal .panel { border-color: var(--line); box-shadow: 0 1px 0 var(--line); }
.side-nav a.active { background: #1A1A1A; color: var(--white); box-shadow: inset 3px 0 0 var(--gold); }
.side-nav a.active .ico { color: var(--gold); }
.side-nav a.active .badge { background: var(--gold); color: var(--black); }
.badge { background: var(--gold); color: var(--black); }
.tabs-line button.active { color: var(--black); border-bottom-color: var(--gold) !important; }
.chip.active { background: var(--black); border-color: var(--black); color: var(--white); }
.btn-gold { color: var(--black); }
.btn-gold:hover { background: var(--black); border-color: var(--black); color: var(--gold-light); }
.panel a:not(.btn):not(.kpi):not(.pay-cta), .fine a, .empty-state a { color: var(--navy); }
.table th { color: var(--navy); }
.kpi-row .kpi.dark { background: var(--black); }
.kpi-row .kpi.dark b { color: var(--gold-light); }
.st { border-color: var(--navy); color: var(--navy); }
.st.Confirmada { background: var(--navy); border-color: var(--navy); color: var(--white); }

/* ---------- Pagos y comprobantes ---------- */
.pay-cta { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; margin: 1.2rem 0; border-radius: var(--radius-lg); background: var(--black); color: var(--white); text-decoration: none; transition: transform .2s; }
.pay-cta:hover { transform: translateY(-2px); }
.pay-cta > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.pay-cta small { color: var(--g-300); }
.pay-cta > .ico { color: var(--gold); }
.pay-cta-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--gold); color: var(--black); display: grid; place-items: center; flex: none; }

.pay-top { display: grid; grid-template-columns: 1.15fr 1fr; gap: 1.2rem; margin-bottom: 1.4rem; }
.pay-hero { background: var(--black); color: var(--white); border-radius: 16px; padding: 1.6rem; position: relative; overflow: hidden; }
.pay-hero::before, .pay-hero::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.pay-hero::before { right: -80px; top: -80px; width: 230px; height: 230px; border: 2px solid rgba(212, 175, 90, .28); }
.pay-hero::after { right: -62px; top: -62px; width: 194px; height: 194px; border: 1px solid rgba(212, 175, 90, .16); }
.ph-top { display: flex; justify-content: space-between; align-items: center; font-size: .8rem; color: var(--g-300); }
.ph-amount { display: block; font-size: clamp(2rem, 4vw, 2.7rem); font-weight: 300; color: var(--gold-light); margin: .2rem 0 1.2rem; }
.ph-label { font-family: var(--wide); font-size: .58rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin: 0 0 .6rem; }
.ph-bank { display: grid; grid-template-columns: auto 1fr; gap: .45rem 1rem; margin: 0; font-size: .9rem; }
.ph-bank dt { color: var(--g-400); }
.ph-bank dd { margin: 0; font-weight: 600; }
.ph-bank code { font-family: ui-monospace, Menlo, monospace; font-size: .95rem; letter-spacing: .04em; }
.copy { margin-left: .4rem; border: 1px solid rgba(255,255,255,.35); background: transparent; color: var(--white); border-radius: 999px; font-size: .68rem; padding: .2em .7em; }
.copy:hover { border-color: var(--gold); color: var(--gold-light); }
.ph-foot { margin: 1.1rem 0 0; font-size: .78rem; color: var(--g-300); border-top: 1px solid #2A2A2A; padding-top: .8rem; }
.pay-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; align-content: stretch; }
.pay-steps li { display: flex; align-items: center; gap: .9rem; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--white); font-size: .9rem; }
.pay-steps b { width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--white); border: 1.5px solid var(--navy); color: var(--navy); font-size: .8rem; }
.pay-steps li:last-child b { background: var(--gold); border-color: var(--gold); color: var(--black); }

.drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .45rem; text-align: center; padding: 2.4rem 1rem; border: 1.5px dashed #C9C9C4; border-radius: 14px; background: var(--white); cursor: pointer; transition: border-color .2s, background .2s; }
.drop:hover, .drop.over { border-color: var(--gold); background: #FCFAF4; }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop small { color: var(--muted); }
.drop-ico { width: 54px; height: 54px; border-radius: 50%; background: var(--black); color: var(--gold); display: grid; place-items: center; margin-bottom: .3rem; }
.drop-ico .ico { width: 24px; height: 24px; }
.examples { margin-top: 1.4rem; }
.ex-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .8rem; }
.ex-card { display: flex; gap: .8rem; text-align: left; padding: .7rem; border: 1px solid var(--line); border-radius: 12px; background: var(--white); align-items: stretch; transition: border-color .2s, transform .2s; }
.ex-card:hover { border-color: var(--black); transform: translateY(-2px); }
.ex-thumb { width: 74px; flex: none; border-radius: 8px; overflow: hidden; background: var(--g-100); border: 1px solid var(--line); }
.ex-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.ex-body { display: flex; flex-direction: column; gap: .3rem; font-size: .85rem; }
.ex-body small { color: var(--muted); line-height: 1.4; }
.ex-res { margin-top: auto; display: flex; align-items: center; gap: .4rem; font-size: .72rem; color: var(--muted); }

.read-grid { display: grid; grid-template-columns: minmax(220px, 320px) 1fr; gap: 1.6rem; align-items: start; }
.read-preview { margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--g-100); position: sticky; top: 1rem; }
.read-preview img { width: 100%; display: block; max-height: 560px; object-fit: contain; background: var(--white); }
.read-preview figcaption { padding: .6rem .8rem; font-size: .75rem; color: var(--muted); border-top: 1px solid var(--line); background: var(--white); }
.read-steps { list-style: none; margin: 0 0 1.2rem; padding: 0; display: grid; gap: .55rem; }
.read-steps li { display: flex; align-items: center; gap: .7rem; font-size: .9rem; color: var(--g-400); }
.read-steps .dot { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--g-300); flex: none; position: relative; }
.read-steps li.doing { color: var(--black); }
.read-steps li.doing .dot { border-color: var(--gold); border-top-color: transparent; animation: spin .8s linear infinite; }
.read-steps li.done { color: var(--black); }
.read-steps li.done .dot { background: var(--navy); border-color: var(--navy); }
.read-steps li.done .dot::after { content: ""; position: absolute; left: 5px; top: 2px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.read-steps li.fail .dot { background: var(--gold); border-color: var(--gold); }
.read-steps em { margin-left: auto; font-style: normal; font-size: .78rem; color: var(--gold-ink); }
@keyframes spin { to { transform: rotate(360deg); } }
.read-note { margin: 0 0 1rem; padding: .7rem .9rem; border-radius: 10px; background: var(--navy-bg); color: var(--navy); font-size: .85rem; font-weight: 500; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem 1rem; }
.field-grid label.read-ok input { border-color: var(--navy); background: #FAFBFD; }
.field-grid label.read-ok > span::after { content: " · leído"; color: var(--gold-ink); font-weight: 500; text-transform: none; letter-spacing: 0; }
:lang(en) .field-grid label.read-ok > span::after { content: " · read"; }
.checks { list-style: none; margin: 1.1rem 0 .4rem; padding: 0; display: grid; gap: .4rem; }
.checks li { display: flex; align-items: center; gap: .6rem; font-size: .86rem; }
.checks li > span { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: .7rem; font-weight: 700; flex: none; }
.checks li.ok > span { background: var(--navy); color: var(--white); }
.checks li.no > span { background: var(--gold); color: var(--black); }
.checks li.no { color: var(--gold-ink); }
.form-actions { display: flex; gap: .6rem; justify-content: flex-end; flex-wrap: wrap; margin-top: 1rem; }
.pay-result { display: flex; gap: 1rem; padding: 1.2rem; border-radius: 14px; background: var(--black); color: var(--white); }
.pay-result p { margin: .3rem 0 .8rem; color: var(--g-300); font-size: .9rem; }
.pay-result .pr-ico { width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 700; font-size: 1.2rem; background: var(--gold); color: var(--black); }
.pay-result.rev .pr-ico { background: var(--white); color: var(--black); }
.pay-result.no .pr-ico { background: #5A1A1A; color: var(--white); }
.pr-acts { display: flex; gap: .5rem; flex-wrap: wrap; }
.pay-result .btn { background: var(--white); color: var(--black); border-color: var(--white); }
.pay-result .btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }

.pay-item { border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem; display: grid; gap: .8rem; }
.pay-item + .pay-item { margin-top: .8rem; }
.pi-main { display: grid; grid-template-columns: 1fr 1.3fr auto; gap: 1rem; align-items: center; }
.pi-id, .pi-amt { display: flex; flex-direction: column; gap: 2px; }
.pi-id b { font-family: var(--wide); font-size: .78rem; letter-spacing: .1em; }
.pi-amt b { font-size: 1.15rem; font-weight: 600; }
.pi-id small, .pi-amt small { color: var(--muted); font-size: .76rem; }
.pi-why { margin: 0; font-size: .82rem; color: var(--gold-ink); background: var(--gold-bg); border-radius: 8px; padding: .5rem .7rem; }
.pi-acts { display: flex; gap: .5rem; flex-wrap: wrap; }
.pay-flow { list-style: none; margin: 0; padding: 0; display: flex; }
.pay-flow li { flex: 1; position: relative; display: flex; flex-direction: column; align-items: center; gap: .35rem; }
.pay-flow li::before { content: ""; position: absolute; top: 6px; left: -50%; width: 100%; height: 2px; background: var(--g-200); z-index: 0; }
.pay-flow li:first-child::before { display: none; }
.pay-flow .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--white); border: 2px solid var(--g-300); z-index: 1; }
.pay-flow small { font-size: .68rem; color: var(--g-400); text-align: center; }
.pay-flow li.done::before { background: var(--navy); }
.pay-flow li.done .dot { background: var(--navy); border-color: var(--navy); }
.pay-flow li.done small { color: var(--black); }
.pay-flow li.now .dot { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 4px rgba(212, 175, 90, .25); }
.pay-flow li.now small { font-weight: 700; }
.pay-flow li.bad .dot { background: #8B2A2A; border-color: #8B2A2A; }
.st.pay-ok { background: var(--navy); border-color: var(--navy); color: var(--white); }
.st.pay-ok2 { background: var(--black); border-color: var(--black); color: var(--gold-light); }
.st.pay-rev { background: var(--gold-bg); border-color: var(--gold); color: var(--gold-ink); }
.st.pay-no { border-color: var(--g-300); color: var(--g-400); text-decoration: line-through; }

.pay-modal { width: min(860px, calc(100vw - 24px)); padding: 1.2rem 1.4rem 1.6rem; }
.pay-modal .modal-head h3 { display: flex; align-items: center; gap: .7rem; }
.pm-grid { display: grid; grid-template-columns: 300px 1fr; gap: 1.4rem; align-items: start; }
.pm-file img { width: 100%; border: 1px solid var(--line); border-radius: 10px; display: block; }
.pm-h { font-family: var(--wide); font-size: .58rem; letter-spacing: .22em; text-transform: uppercase; color: var(--navy); margin: 1.2rem 0 .5rem; }
.pm-applied { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 10px; }
.pm-applied li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem .8rem; font-size: .85rem; }
.pm-applied li + li { border-top: 1px solid var(--line); }
.pm-applied li.fav { color: var(--gold-ink); }
.pay-timeline { list-style: none; margin: 0; padding: 0 0 0 1.1rem; border-left: 2px solid var(--g-200); display: grid; gap: .9rem; }
.pay-timeline li { position: relative; }
.pay-timeline li::before { content: ""; position: absolute; left: calc(-1.1rem - 7px); top: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--navy); }
.pay-timeline li:last-child::before { background: var(--gold); box-shadow: 0 0 0 4px rgba(212, 175, 90, .25); }
.pay-timeline li.bad::before { background: #8B2A2A; }
.pay-timeline b { font-size: .88rem; }
.pay-timeline small { margin-left: .5rem; color: var(--muted); font-size: .74rem; }
.pay-timeline p { margin: .2rem 0 0; font-size: .85rem; color: var(--g-700); }
.pm-text { margin-top: 1rem; font-size: .8rem; }
.pm-text pre { white-space: pre-wrap; background: var(--g-100); padding: .8rem; border-radius: 8px; max-height: 200px; overflow: auto; }

@media (max-width: 900px) {
  .pay-top, .read-grid, .pm-grid { grid-template-columns: 1fr; }
  .read-preview { position: static; max-width: 340px; }
}
@media (max-width: 640px) {
  .field-grid { grid-template-columns: 1fr; }
  .pi-main { grid-template-columns: 1fr auto; }
  .pi-main .st { grid-column: 2; grid-row: 1; }
  .pi-amt { grid-column: 1 / -1; }
  .pay-flow small { font-size: .6rem; }
}
.pm-applied li b { white-space: nowrap; }

/* ---------- v9 · Turnos con semáforo ---------- */
.slot.libre { border-color: var(--ok); background: var(--ok-bg); }
.slot.libre span { color: var(--ok-ink); }
.slot.pendiente { background: var(--warn-bg); border-color: var(--warn); color: var(--warn-ink); }
.slot.ocupado { background: var(--bad-bg); border-color: var(--bad); color: var(--bad-ink); }
.slot.bloqueado { background: var(--bad); border-color: var(--bad); color: #fff; }
.slot.bloqueado b, .slot.bloqueado span { background: none; padding: 0; color: #fff; }
.slot.pasado { color: var(--g-400); background: var(--g-100); border-color: var(--g-100); }

/* ---------- v9 · Cobros (administración) ---------- */
[data-view=cobros] .kpi-row { margin-bottom: 1.4rem; }
button.kpi { border: 0; text-align: left; font: inherit; cursor: pointer; }
button.kpi:hover { background: var(--g-100); }
#cobTabs { margin-bottom: 1.4rem; }
.cob-pane > .panel, .cob-pane .panel { margin-bottom: 1.4rem; }
.panel-head .inline-sel { display: flex; align-items: center; gap: .5rem; font-size: .78rem; color: var(--muted); white-space: nowrap; }
.panel-head .inline-sel select { width: auto; padding: .45rem .6rem; }
.cob-table td { vertical-align: middle; }
.cob-table input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--black); }
.cob-table tr.late30 td:nth-child(2) { box-shadow: inset 3px 0 0 var(--warn); }
.cob-table tr.late60 td:nth-child(2) { box-shadow: inset 3px 0 0 var(--bad); }
.late-pill { display: inline-block; padding: .15em .55em; border-radius: 999px; background: var(--g-100); font-size: .75rem; font-weight: 600; }
.late60 .late-pill { background: var(--bad-bg); color: var(--bad-ink); }
.late30 .late-pill { background: var(--warn-bg); color: var(--warn-ink); }
.tchips { display: flex; flex-wrap: wrap; gap: .3rem; }
.tchip { display: inline-flex; gap: .35em; align-items: center; font-size: .7rem; padding: .25em .6em; border-radius: 999px; border: 1px solid var(--line); background: var(--white); white-space: nowrap; }
.tchip b { font-weight: 600; }
.tchip.t-mantenimiento { border-color: var(--navy); color: var(--navy); background: var(--navy-bg); }
.tchip.t-extraordinaria { border-color: var(--gold); color: var(--gold-ink); background: var(--gold-bg); }
.tchip.t-gas { border-color: #0B0B0B; color: #0B0B0B; }
.tchip.t-reserva { border-color: #7C8DB5; color: #33416A; background: #F3F5FA; }
.tchip.t-otros { border-color: var(--g-300); color: var(--g-600); background: var(--g-100); }
.cob-send { margin-top: 1.2rem; border-top: 1px solid var(--line); padding-top: 1.2rem; display: grid; gap: .8rem; }
.cs-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: baseline; }
.cs-preview { white-space: pre-wrap; background: var(--g-100); border-left: 3px solid var(--gold); padding: .9rem 1rem; font-size: .84rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 0; }
.cs-preview:empty { display: none; }
.cs-preview .eyebrow { display: block; margin-bottom: .4rem; }

.apt-layout { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: 1.4rem; align-items: start; }
.apt-grid-panel { position: sticky; top: 1.5rem; }
.apt-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: .8rem; }
.apt { border: 2px solid var(--line); background: var(--white); border-radius: var(--radius); padding: .55rem .2rem; display: flex; flex-direction: column; align-items: center; gap: 2px; font: inherit; cursor: pointer; transition: transform .15s; }
.apt b { font-size: .92rem; }
.apt small { font-size: .6rem; color: var(--muted); }
.apt.ok { border-color: var(--ok); background: var(--ok-bg); }
.apt.pend { border-color: var(--warn); background: var(--warn-bg); }
.apt.venc { border-color: var(--bad); background: var(--bad); color: #fff; }
.apt.venc small { color: #FECACA; }
.apt:hover { transform: translateY(-2px); }
.apt.sel { outline: 3px solid var(--black); outline-offset: 2px; }
.apt-legend { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .5rem; margin-top: 1rem; }
.apt-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: flex-start; }
.apt-head h2 { font-size: 2.2rem; margin: .1rem 0; }
.apt-bal { background: var(--black); color: #fff; border-radius: var(--radius-lg); padding: 1rem 1.2rem; min-width: 200px; display: flex; flex-direction: column; gap: .2rem; }
.apt-bal span { font-size: .7rem; color: var(--g-300); text-transform: uppercase; letter-spacing: .12em; }
.apt-bal b { font-size: 1.5rem; color: var(--gold-light); }
.apt-bal small { color: var(--g-300); }
.apt-bal.venc { box-shadow: inset 4px 0 0 var(--bad); }
.apt-acts { display: flex; gap: .5rem; flex-wrap: wrap; margin: 1rem 0 .4rem; }
.apt-h { margin: 1.6rem 0 .6rem; font-size: .7rem; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); font-weight: 600; }
.apt-group { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: .6rem; overflow: hidden; }
.ag-head { display: flex; justify-content: space-between; align-items: center; padding: .6rem .8rem; background: var(--g-100); }
.apt-lines { list-style: none; margin: 0; padding: 0; }
.apt-lines li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .6rem .8rem; border-top: 1px solid var(--line); font-size: .86rem; }
.apt-group .apt-lines li:first-child { border-top: 0; }
.apt-lines li small { display: block; color: var(--muted); font-size: .72rem; }
.apt-lines li.venc { box-shadow: inset 3px 0 0 var(--bad); }
.apt-lines li.venc b { color: var(--bad-ink); }
.apt-r { display: flex; align-items: center; gap: .6rem; }
.linkish { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--navy); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }

.type-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .7rem; }
.type-grid.small { margin-top: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.type-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: .9rem 1rem; display: flex; flex-direction: column; gap: .25rem; background: var(--white); position: relative; }
.type-card .tc-name { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 600; }
.type-card b { font-size: 1.2rem; }
.type-card small { font-size: .72rem; color: var(--muted); }
.type-card.venc { border-color: var(--bad); box-shadow: inset 0 3px 0 var(--bad); }
.type-card.venc small { color: var(--bad-ink); font-weight: 600; }
.type-card.pend { border-color: var(--warn); box-shadow: inset 0 3px 0 var(--warn); }
.type-card.ok b { color: var(--g-400); }
.type-card.cred { border-color: var(--gold); background: var(--gold-bg); }
.type-card.cred b { color: var(--gold-ink); }

.verif { margin: 0 0 .6rem; font-size: .78rem; font-weight: 600; padding: .35rem .6rem; border-radius: var(--radius); display: inline-block; }
.verif.ok { background: var(--ok-bg); color: var(--ok-ink); }
.verif.warn { background: var(--warn-bg); color: var(--warn-ink); }

.unit-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 5px; max-height: 220px; overflow: auto; padding: .4rem; border: 1px solid var(--line); border-radius: var(--radius); }
.unit-checks label { display: flex; align-items: center; gap: .3rem; font-size: .8rem; padding: .3rem; border-radius: 6px; cursor: pointer; }
.unit-checks label:has(input:checked) { background: var(--black); color: #fff; }
.unit-checks input { accent-color: var(--gold); }
.rec-list li.prog .when { background: var(--black); color: var(--gold-light); }

/* Plantillas */
.tpl-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin-bottom: 1.4rem; }
.tpl-card { text-align: left; border: 1px solid var(--line); background: var(--white); border-radius: var(--radius-lg); padding: 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .3rem; font: inherit; cursor: pointer; transition: border-color .2s; }
.tpl-card .tpl-num { font-family: var(--wide); font-size: .62rem; letter-spacing: .2em; color: var(--gold-ink); }
.tpl-card small { color: var(--muted); font-size: .78rem; }
.tpl-card.active { background: var(--black); color: #fff; border-color: var(--black); }
.tpl-card.active small { color: var(--g-300); }
.tpl-card.active .tpl-num { color: var(--gold); }
.tpl-layout { display: grid; grid-template-columns: minmax(280px, 380px) 1fr; gap: 1.4rem; align-items: start; }
.tpl-paper-wrap { background: var(--g-100); border-radius: var(--radius-lg); padding: 1.6rem; overflow: auto; }
.tpl-paper { background: #fff; color: #0B0B0B; max-width: 720px; margin: 0 auto; padding: 0 0 2rem; box-shadow: 0 18px 40px -24px rgba(0,0,0,.35); font-size: .86rem; line-height: 1.55; }
.tpl-paper > :not(.tp-head):not(.tp-sub) { margin-left: 2.2rem; margin-right: 2.2rem; }
.tp-head { background: #0B0B0B; color: #fff; display: flex; justify-content: space-between; align-items: center; padding: 1.3rem 2.2rem; border-bottom: 4px solid var(--gold); }
.tp-brand { display: flex; align-items: center; gap: .7rem; }
.tp-mark { width: 38px; height: 38px; border: 1.5px solid var(--gold); color: var(--gold); display: grid; place-items: center; font-family: var(--wide); border-radius: 50%; }
.tp-brand b { font-family: var(--wide); letter-spacing: .3em; font-size: .95rem; display: block; }
.tp-brand small { color: var(--gold-light); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; }
.tp-doc { text-align: right; }
.tp-doc span { display: block; font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--g-300); }
.tp-doc b { color: var(--gold-light); font-size: 1rem; }
.tp-sub { display: flex; justify-content: space-between; padding: .55rem 2.2rem; background: var(--navy); color: #DCE2F0; font-size: .7rem; letter-spacing: .06em; margin-bottom: 1.4rem; }
.tp-to { border-left: 3px solid var(--gold); padding-left: .8rem; margin-bottom: 1rem; }
.tp-to small, .tp-box small, .tp-amount small { display: block; font-size: .62rem; text-transform: uppercase; letter-spacing: .16em; color: #6B6B6B; }
.tp-title { font-size: 1.35rem; margin: .4rem 0 .8rem; }
.tp-table { width: calc(100% - 4.4rem); border-collapse: collapse; margin: 1rem 2.2rem; font-size: .8rem; }
.tp-table th { text-align: left; font-size: .62rem; text-transform: uppercase; letter-spacing: .12em; border-bottom: 2px solid #0B0B0B; padding: .45rem .3rem; }
.tp-table td { padding: .42rem .3rem; border-bottom: 1px solid #E6E6E3; }
.tp-table .num { text-align: right; white-space: nowrap; }
.tp-table tr.tp-grp td { background: var(--navy-bg); color: var(--navy); font-weight: 600; font-size: .74rem; }
.tp-table tr.venc td:first-child { box-shadow: inset 3px 0 0 var(--bad); }
.tp-table tfoot td { border: 0; padding-top: .5rem; }
.tp-table tr.tp-total td { background: #0B0B0B; color: #fff; font-weight: 600; font-size: .95rem; padding: .6rem .5rem; }
.tp-table tr.tp-total td.num { color: var(--gold-light); }
.tp-table tr.tp-venc td { color: var(--bad-ink); font-weight: 600; }
.tp-box { display: grid; grid-template-columns: 1fr 1.4fr; gap: 1rem; border: 1px solid #0B0B0B; padding: .9rem 1rem; margin-top: 1rem; margin-bottom: 1rem; }
.tp-box span { display: block; font-size: .74rem; color: #6B6B6B; }
.tp-amount { background: var(--gold-bg); border: 1px solid var(--gold); padding: .9rem 1rem; margin-bottom: 1rem; }
.tp-amount b { font-size: 1.8rem; color: #0B0B0B; }
.tp-dl { display: grid; grid-template-columns: 160px 1fr; gap: .35rem 1rem; margin-top: 0; }
.tp-dl dt { color: #6B6B6B; font-size: .78rem; }
.tp-dl dd { margin: 0; font-weight: 500; }
.tp-h { font-size: .68rem; text-transform: uppercase; letter-spacing: .16em; margin-top: 1.2rem; }
.tp-ol { padding-left: 1.2rem; }
.tp-ol li { padding: .15rem 0; }
.tp-small { font-size: .74rem; color: #6B6B6B; }
.tp-foot { margin-top: 2.2rem; }
.tp-line { display: block; width: 220px; border-top: 1px solid #0B0B0B; margin-bottom: .3rem; }
.tp-foot p { font-size: .72rem; color: #6B6B6B; margin: 0; }
.tp-empty { padding: 3rem 2rem; text-align: center; color: var(--muted); }
#printSheet { display: none; }
@media print {
  html.print-mode body > *:not(#printSheet) { display: none !important; }
  html.print-mode #printSheet { display: block; }
  html.print-mode body { background: #fff; }
  #printSheet .tpl-paper { box-shadow: none; max-width: none; }
  #printSheet * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  @page { margin: 12mm; }
}

/* Mis reportes */
[data-view=reportes] .kpi-row { margin-bottom: 1.4rem; }
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.rep-item { border-bottom: 1px solid var(--line); padding: 1.2rem 0; display: grid; gap: .8rem; }
.rep-item:first-child { padding-top: 0; }
.rep-item:last-child { border-bottom: 0; padding-bottom: 0; }
.rep-top { display: grid; grid-template-columns: 64px 1fr auto; gap: 1rem; align-items: start; }
.rep-top img, .rep-ph { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius); background: var(--g-100); display: grid; place-items: center; }
.rep-main b { display: block; margin: .15rem 0; }
.rep-main p { margin: 0; color: var(--g-600); font-size: .88rem; }
.rep-flow { list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; margin: 0; padding: 0; counter-reset: s; }
.rep-flow li { position: relative; display: flex; flex-direction: column; align-items: center; gap: .35rem; text-align: center; }
.rep-flow li::before { content: ""; position: absolute; top: 7px; left: -50%; width: 100%; height: 2px; background: var(--line); z-index: 0; }
.rep-flow li:first-child::before { display: none; }
.rep-flow li.done::before, .rep-flow li.now::before { background: var(--black); }
.rep-flow .dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--g-300); background: #fff; z-index: 1; }
.rep-flow li.done .dot { background: var(--black); border-color: var(--black); }
.rep-flow li.now .dot { background: var(--gold); border-color: var(--black); box-shadow: 0 0 0 4px var(--gold-bg); }
.rep-flow small { font-size: .68rem; color: var(--muted); }
.rep-flow li.now small { color: var(--black); font-weight: 600; }

@media (max-width: 900px) {
  .apt-layout, .tpl-layout { grid-template-columns: 1fr; }
  .apt-grid-panel { position: static; }
  .tpl-pick { grid-template-columns: 1fr; }
  .tpl-paper-wrap { padding: .6rem; }
  .tpl-paper > :not(.tp-head):not(.tp-sub) { margin-left: 1rem; margin-right: 1rem; }
  .tp-table { width: calc(100% - 2rem); margin: 1rem; }
  .tp-head, .tp-sub { padding-left: 1rem; padding-right: 1rem; }
  .tp-box { grid-template-columns: 1fr; }
  .rep-top { grid-template-columns: 48px 1fr; }
  .rep-top > .st { grid-column: 1 / -1; justify-self: start; }
  .rep-top img, .rep-ph { width: 48px; height: 48px; }
}
.view-head .lead-sm { margin-top: .6rem; }
@media (max-width: 700px) {
  .cob-table th:nth-child(3), .cob-table td:nth-child(3), .cob-table th:nth-child(7), .cob-table td:nth-child(7), .cob-table th:nth-child(4) { display: none; }
  .cob-table tr { display: grid; grid-template-columns: 28px 44px 1fr auto auto; align-items: center; }
  .cob-table thead tr { display: none; }
  .cob-table td:nth-child(4) { grid-column: 3 / -1; grid-row: 2; padding-top: 0; }
  .cob-table td:nth-child(8) { grid-column: 5; grid-row: 1; }
  .cob-table td:nth-child(5) { grid-column: 3; grid-row: 1; text-align: left; }
  .cob-table td:nth-child(6) { grid-column: 4; grid-row: 1; }
  .panel-head { flex-wrap: wrap; }
  .apt-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 700px) {
  .cob-table, .cob-table tbody { display: block; width: 100%; min-width: 0; }
  .cob-table tr { border-bottom: 1px solid var(--line); padding: .4rem 0; gap: 0 .5rem; }
  .cob-table td { border: 0 !important; padding: .35rem .2rem; min-width: 0; }
  .cob-table td:nth-child(2) { box-shadow: none !important; }
  .cob-table tr.late30 { box-shadow: inset 3px 0 0 var(--warn); }
  .cob-table tr.late60 { box-shadow: inset 3px 0 0 var(--bad); }
  .cob-table td:first-child { padding-left: .5rem; }
}

/* ---------- v11 · Varios condominios ---------- */
.condo-bar { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; border: 1px solid var(--line); background: var(--white);
  border-radius: 999px; padding: .4rem .5rem .4rem .45rem; margin: 0 0 1.6rem; width: fit-content; max-width: 100%; }
.condo-bar .cb-ico { width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: var(--gold-light); display: grid; place-items: center; }
.condo-bar .cb-ico .ico { width: 16px; height: 16px; }
.condo-bar .cb-label { font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.condo-bar b { font-size: .92rem; }
.condo-bar select { border: 1px solid var(--black); border-radius: 999px; padding: .35rem 1.8rem .35rem .8rem; font: inherit; font-size: .8rem; font-weight: 600; background: var(--black); color: #fff;
  appearance: none; background-image: linear-gradient(45deg, transparent 50%, #fff 50%), linear-gradient(135deg, #fff 50%, transparent 50%);
  background-position: calc(100% - 13px) 55%, calc(100% - 8px) 55%; background-size: 5px 5px; background-repeat: no-repeat; cursor: pointer; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.condo-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.condo-card { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); display: flex; flex-direction: column; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.condo-card.sel { border-color: var(--black); box-shadow: 0 0 0 1px var(--black); }
.condo-card header { display: flex; align-items: center; gap: .8rem; padding: 1.1rem 1.2rem; background: var(--black); color: #fff; }
.condo-card header b { display: block; font-size: 1.05rem; }
.condo-card header small { color: var(--g-300); font-size: .74rem; }
.condo-card header .tag { margin-left: auto; }
.cc-ico { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold); display: grid; place-items: center; flex: none; }
.cc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); }
.cc-grid > div { background: var(--white); padding: .9rem 1.2rem; display: flex; flex-direction: column; gap: .15rem; }
.cc-grid span { font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.cc-grid b { font-size: 1.15rem; }
.cc-grid small { font-size: .72rem; color: var(--muted); }
.cc-grid .late { box-shadow: inset 3px 0 0 var(--bad); }
.cc-grid .late small { color: var(--bad-ink); font-weight: 600; }
.condo-card footer { display: flex; gap: .5rem; justify-content: flex-end; padding: .9rem 1.2rem; border-top: 1px solid var(--line); margin-top: auto; flex-wrap: wrap; }
.emp-detail { border-top: 1px solid var(--line); padding-top: 1.6rem; }
.emp-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.2rem; flex-wrap: wrap; margin-bottom: 1rem; }
.emp-head h2 { margin: .2rem 0 0; font-size: 1.7rem; }
.emp-kpis { flex: 1; min-width: min(100%, 560px); }
#empTabs { margin-bottom: 1.4rem; }
.svc-contract { list-style: none; margin: .4rem 0 1rem; padding: 0; display: grid; gap: .4rem; }
.svc-contract li { display: flex; align-items: center; justify-content: space-between; gap: .8rem; border: 1px solid var(--line); border-radius: var(--radius); padding: .5rem .7rem; }
.svc-contract li.on { border-color: var(--navy); background: var(--navy-bg); }
.sc-check { display: flex; align-items: center; gap: .6rem; cursor: pointer; flex: 1; }
.sc-check input { width: 18px; height: 18px; accent-color: var(--black); }
.sc-check small { display: block; color: var(--muted); font-size: .72rem; }
.sc-price input { width: 120px; text-align: right; }
.fact-checks { display: grid; gap: .35rem; max-height: 260px; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); padding: .5rem; }
.fact-checks label { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .6rem; font-size: .82rem; padding: .3rem .4rem; border-radius: 6px; }
.fact-checks label:has(input:checked) { background: var(--bad-bg); }
.fact-checks input { accent-color: var(--black); }
.pol-rules { list-style: none; margin: .8rem 0; padding: 0; display: grid; gap: .5rem; }
.pol-rules li { display: grid; grid-template-columns: 70px 1fr; align-items: center; gap: .8rem; border-bottom: 1px solid var(--line); padding-bottom: .5rem; }
.pol-rules b { font-size: 1.4rem; color: var(--navy); text-align: right; }
.pol-rules span { font-size: .86rem; color: var(--g-600); }
.pol-preview { background: var(--g-100); }

/* Acuerdos */
.acu-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: .8rem 0; }
.acu-sum > div { background: var(--white); padding: .7rem .8rem; }
.acu-sum dt { font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.acu-sum dd { margin: .15rem 0 0; font-weight: 600; font-size: 1rem; }
.acu-sum .tot { background: var(--black); }
.acu-sum .tot dt { color: var(--g-300); }
.acu-sum .tot dd { color: var(--gold-light); }
.acu-progress { height: 8px; border-radius: 99px; background: var(--g-100); overflow: hidden; margin: .6rem 0 .3rem; }
.acu-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--navy), var(--gold)); border-radius: 99px; }
.plan-table { min-width: 0; font-size: .84rem; }
.plan-table tr.paid td { color: var(--muted); }
.plan-table tr.late td:first-child { box-shadow: inset 3px 0 0 var(--bad); }
.acu-det summary { cursor: pointer; font-size: .82rem; font-weight: 600; color: var(--navy); margin: .3rem 0; }
.acu-item { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.acu-item:first-child { padding-top: 0; }
.ai-top { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.ai-top small { display: block; color: var(--muted); font-size: .74rem; }
.acu-panel { border-color: var(--gold); }
.acu-panel .panel-head h3 { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.bad-ink { color: var(--bad-ink); }

/* Reservas bloqueadas */
.res-block { display: flex; gap: 1rem; align-items: flex-start; background: var(--bad-bg); border: 1px solid var(--bad); border-left-width: 5px;
  border-radius: var(--radius-lg); padding: 1.1rem 1.2rem; margin-bottom: 1.4rem; }
.res-block .rb-ico { width: 34px; height: 34px; border-radius: 50%; background: var(--bad); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.res-block b { color: var(--bad-ink); }
.res-block p { margin: .3rem 0 .7rem; font-size: .9rem; }
.rb-acts { display: flex; gap: .5rem; flex-wrap: wrap; }
.slot button:disabled { opacity: .45; cursor: not-allowed; }

/* Notificaciones: espacio propio, aviso emergente y aviso deslizante */
.notif-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.4rem; align-items: start; }
.notif-list.page { max-height: none; margin: .4rem 0 0; }
.notif-list.page .notif { border-bottom: 1px solid var(--line); border-radius: 0; padding: .95rem .4rem; }
.notif.unread { background: #FBF8EF; }
.notif.unread .n-body b::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); margin-right: .45rem; vertical-align: middle; }
.notif-prefs { position: sticky; top: 1.5rem; }
.chips-row { display: flex; flex-wrap: wrap; gap: .4rem; }
.pop-modal { width: min(520px, calc(100vw - 24px)); padding: 0; overflow: hidden; border: 0; }
.pop-modal[open] { animation: popIn .32s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes popIn { from { transform: translateY(18px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
.pop-modal::backdrop { background: rgba(11, 11, 11, .55); }
.pop-top { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; background: var(--black); color: #fff; padding: 1.2rem 1.3rem; border-bottom: 3px solid var(--gold); }
.pop-top h3 { margin: .15rem 0 0; color: #fff; font-size: 1.2rem; }
.pop-top .eyebrow { margin: 0; color: var(--gold); }
.pop-top .icon-btn { color: #fff; }
.pop-bell { position: relative; width: 48px; height: 48px; border-radius: 50%; background: var(--navy); color: var(--gold-light); display: grid; place-items: center; animation: ring 1.2s ease 0.3s 2; }
.pop-bell b { position: absolute; top: -4px; right: -4px; background: var(--gold); color: #0B0B0B; font-size: .7rem; min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; padding: 0 4px; }
@keyframes ring { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(14deg); } 30% { transform: rotate(-12deg); } 45% { transform: rotate(8deg); } 60% { transform: rotate(-4deg); } }
.pop-modal .notif-list { margin: 0; padding: .6rem .8rem; max-height: 50vh; }
.pop-modal .modal-actions { padding: .9rem 1.2rem 1.2rem; border-top: 1px solid var(--line); }
.pop-more { padding: 0 .6rem; }
.notif-toast { position: fixed; right: 20px; top: 20px; z-index: 90; width: min(380px, calc(100vw - 32px)); display: flex; gap: .8rem; align-items: flex-start;
  background: var(--black); color: #fff; padding: .9rem 1rem; border-radius: var(--radius-lg); border-left: 4px solid var(--gold);
  box-shadow: 0 20px 40px -20px rgba(0,0,0,.6); transform: translateX(120%); transition: transform .3s ease; }
.notif-toast.show { transform: none; }
.notif-toast .n-ico { width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: var(--gold-light); display: grid; place-items: center; flex: none; }
.notif-toast a { color: #fff; text-decoration: none; flex: 1; display: flex; flex-direction: column; gap: 2px; font-size: .84rem; }
.notif-toast a span { color: var(--g-300); font-size: .78rem; }
.notif-toast .icon-btn { color: #fff; }

@media (max-width: 900px) {
  .notif-layout { grid-template-columns: 1fr; }
  .notif-prefs { position: static; }
  .condo-cards { grid-template-columns: 1fr; }
  .condo-bar { border-radius: var(--radius-lg); width: 100%; }
  .condo-bar select { flex: 1; }
  .cb-switch { flex: 1 1 100%; display: flex; }
  .sc-price input { width: 96px; }
}
.emp-head { flex-direction: column; align-items: stretch; }
.emp-kpis { min-width: 0; }
.emp-grid { display: grid; grid-template-columns: minmax(300px, 1fr) 1.7fr; gap: 1.4rem; align-items: start; }
.emp-grid .table td, .emp-grid .table th { white-space: nowrap; }
.emp-grid .table td:nth-child(2) { white-space: normal; min-width: 160px; }
.form .svc-contract label.sc-check { display: flex; flex-direction: row; align-items: center; gap: .6rem; margin: 0; }
.form .svc-contract label.sc-price { margin: 0; }
.emp-pane .nc-list li { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; }
.emp-pane .nc-list .acts { grid-column: 2; justify-content: flex-start; flex-wrap: wrap; }
@media (max-width: 900px) { .emp-grid { grid-template-columns: 1fr; } }
.emp-kpis { flex: none; }
.svc-contract li { display: grid; grid-template-columns: 1fr 120px; }
.sc-price input { width: 100%; }
.emp-head { display: block; } .emp-head > div:first-child { margin-bottom: 1rem; }

/* ---------- v12 · Reservas bloqueadas por pagos pendientes ---------- */
.res-lockable { position: relative; }
.res-lockable.locked > * { filter: grayscale(1); opacity: .45; }
.res-lockable.locked { cursor: not-allowed; }
.res-lockable.locked::after { content: ""; position: absolute; inset: 0; z-index: 2;
  background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(220, 38, 38, .05) 14px 28px); border-radius: var(--radius-lg); }
.nav-locked > span:not(.badge)::after { content: " 🔒"; font-size: .8em; }
.lock-modal { width: min(520px, calc(100vw - 24px)); padding: 0; border: 0; overflow: hidden; }
.lock-modal[open] { animation: popIn .3s cubic-bezier(.2, .9, .3, 1.2); }
.lock-modal::backdrop { background: rgba(11, 11, 11, .6); }
.lock-top { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: center; background: var(--bad); color: #fff; padding: 1.3rem 1.4rem; }
.lock-top h3 { color: #fff; margin: .2rem 0 0; font-size: 1.15rem; line-height: 1.3; }
.lock-top .eyebrow { color: #FEE2E2; margin: 0; }
.lock-top .eyebrow::before { background: #fff; }
.lock-ico { width: 52px; height: 52px; border-radius: 50%; background: #fff; color: var(--bad); display: grid; place-items: center; animation: ring 1s ease .2s 1; }
.lock-ico svg { width: 26px; height: 26px; }
.lock-body { padding: 1.2rem 1.4rem .4rem; }
.lock-body > p:first-child { margin-top: 0; }
.lock-list { list-style: none; margin: 0 0 .6rem; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); max-height: 34vh; overflow: auto; }
.lock-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem .8rem; border-top: 1px solid var(--line); font-size: .86rem; box-shadow: inset 3px 0 0 var(--bad); }
.lock-list li:first-child { border-top: 0; }
.lock-list small { display: block; color: var(--bad-ink); font-size: .72rem; }
.lock-total { display: flex; justify-content: space-between; align-items: center; background: var(--black); color: #fff; padding: .8rem 1rem; border-radius: var(--radius); }
.lock-total b { color: var(--gold-light); font-size: 1.2rem; }
.lock-modal .modal-actions { padding: 1rem 1.4rem 1.3rem; flex-wrap: wrap; }
.svc.both { border-color: var(--gold); }
.svc-both { display: inline-block; margin-bottom: .35rem; }
.svc-both { width: fit-content; }
