/* URVANOX — Agent portal. Workspace layout: ink sidebar, stone canvas, white working panels. */
body.portal { background: var(--stone); font-size: 14.5px; }
.p-shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.p-side { background: var(--ink); color: rgba(246,244,240,.72); padding: 24px 16px calc(24px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 28px; }
.p-side .brand { color: var(--stone); padding: 0 8px; }
.p-side .wordmark { font-size: 18px; }
.p-nav { display: grid; gap: 2px; }
.p-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: var(--r-lg); font-weight: 500; font-size: 14px; }
.p-nav a svg { width: 18px; height: 18px; color: var(--gold); flex: none; }
.p-nav a:hover { background: rgba(255,255,255,.05); color: var(--stone); }
.p-nav a[aria-current="page"] { background: rgba(182,154,110,.16); color: var(--stone); }
.p-nav .badge { margin-left: auto; background: var(--gold); color: var(--ink); border-radius: 99px; font-size: 11px; font-weight: 700; padding: 1px 8px; }
.p-side-foot { margin-top: auto; display: grid; gap: 10px; font-size: 13px; }
.p-me { display: flex; gap: 10px; align-items: center; padding: 12px; border: 1px solid var(--line-dark); border-radius: var(--r-lg); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--gold); color: var(--ink); display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.p-me strong { color: var(--stone); display: block; font-size: 13.5px; }
.p-side-foot a:hover, .p-side-foot button:hover { color: var(--gold); }
.p-side-foot button { background: none; border: 0; color: inherit; cursor: pointer; text-align: left; padding: 0; }

.p-main { min-width: 0; padding: 28px max(20px, env(safe-area-inset-right, 0px)) 64px max(20px, 3vw); }
.p-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.p-top h1 { font-size: clamp(30px, 3vw, 40px); }
.p-top p { color: var(--muted); }
.p-mobilebar { display: none; }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.kpi { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; display: grid; gap: 6px; }
.kpi small { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.kpi strong { font-family: var(--f-display); font-size: 40px; line-height: 1; font-weight: 600; font-variant-numeric: tabular-nums lining-nums; }
.kpi span { font-size: 12.5px; color: var(--muted); }
.kpi.attn { border-color: var(--gold); background: #fbf8f2; }

.cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; }
.cols > * { min-width: 0; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); }
.card-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.card-h h2 { font-size: 22px; font-weight: 600; }
.card-b { padding: 8px 20px 16px; }

.row-item { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.row-item:last-child { border-bottom: 0; }
.row-item:hover .ri-title { color: var(--bronze-ink); }
.ri-title { font-weight: 600; }
.ri-sub { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thumb { width: 64px; height: 48px; border-radius: 4px; overflow: hidden; flex: none; background: var(--sand-2); }
.thumb svg, .thumb img { width: 100%; height: 100%; object-fit: cover; }

.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; letter-spacing: .06em; padding: 4px 10px; border-radius: 99px; white-space: nowrap; text-transform: uppercase; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.publicada, .pill.respondida { background: #e6f0e8; color: var(--ok); }
.pill.borrador, .pill.cerrada { background: #ecebe8; color: var(--muted); }
.pill.vendida, .pill.alquilada { background: #efe7da; color: var(--bronze-ink); }
.pill.nueva { background: #f7ecd6; color: #8a5f12; }

.table-wrap { overflow-x: auto; }
table.p-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.p-table th { text-align: left; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 12px; border-bottom: 1px solid var(--line); background: var(--stone); }
.p-table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.p-table tr:last-child td { border-bottom: 0; }
.p-table .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.p-table .prop { display: flex; gap: 12px; align-items: center; min-width: 220px; }
.icon-btn { width: 36px; height: 36px; border: 1px solid var(--line); background: var(--paper); border-radius: var(--r-lg); display: inline-grid; place-items: center; cursor: pointer; color: var(--ink-soft); }
.icon-btn:hover { border-color: var(--gold); color: var(--ink); }
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn.danger:hover { border-color: var(--danger); color: var(--danger); }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.toolbar .seg { height: 38px; }
.toolbar .seg button { padding: 0 12px; font-size: 11px; }
.toolbar input, .toolbar select { min-height: 38px; padding: 6px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); }

/* inbox */
.inbox { display: grid; grid-template-columns: 360px minmax(0, 1fr); min-height: 560px; }
.inbox-list { border-right: 1px solid var(--line); overflow-y: auto; max-height: 72vh; }
.msg { display: grid; gap: 4px; padding: 14px 18px; border-bottom: 1px solid var(--line); cursor: pointer; border-left: 3px solid transparent; }
.msg:hover { background: var(--stone); }
.msg[aria-current="true"] { background: #fbf8f2; border-left-color: var(--gold); }
.msg.unread .m-name { font-weight: 700; }
.msg .m-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.msg .m-name { font-weight: 600; }
.msg time { font-size: 12px; color: var(--muted); white-space: nowrap; }
.msg .m-prop { font-size: 12px; color: var(--bronze-ink); font-weight: 600; }
.msg .m-text { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread { display: flex; flex-direction: column; min-width: 0; }
.thread-h { padding: 18px 22px; border-bottom: 1px solid var(--line); display: grid; gap: 12px; }
.thread-h .who { display: flex; justify-content: space-between; gap: 12px; align-items: start; flex-wrap: wrap; }
.thread-h h3 { font-size: 26px; font-weight: 600; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--ink-soft); }
.meta span { display: inline-flex; gap: 6px; align-items: center; }
.meta svg { width: 15px; height: 15px; color: var(--bronze); }
.visit-box { display: flex; gap: 12px; align-items: center; background: #fbf8f2; border: 1px solid var(--sand); border-radius: var(--r-lg); padding: 10px 14px; font-size: 13.5px; }
.visit-box svg { width: 18px; color: var(--bronze); }
.thread-body { flex: 1; padding: 22px; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; background: var(--stone); }
.bubble { max-width: 76%; padding: 12px 16px; border-radius: 14px; font-size: 14px; display: grid; gap: 4px; }
.bubble small { font-size: 11px; opacity: .65; }
.bubble.in { background: var(--paper); border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 4px; }
.bubble.out { background: var(--ink); color: var(--stone); align-self: flex-end; border-bottom-right-radius: 4px; }
.reply { border-top: 1px solid var(--line); padding: 14px 18px; display: grid; gap: 10px; }
.reply textarea { width: 100%; min-height: 76px; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 10px 12px; resize: vertical; }
.reply textarea:focus { outline: none; border-color: var(--gold); }
.reply-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: space-between; align-items: center; }
.quick { display: flex; gap: 6px; flex-wrap: wrap; }
.quick button { border: 1px solid var(--line); background: var(--paper); border-radius: 99px; padding: 5px 12px; font-size: 12px; cursor: pointer; }
.quick button:hover { border-color: var(--gold); }
.back-btn { display: none; }

/* editor */
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.editor .card-b { padding: 20px; display: grid; gap: 16px; }
.editor .side { position: sticky; top: 20px; display: grid; gap: 16px; }
.lang-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); }
.lang-tabs button { border: 0; background: none; padding: 8px 14px; cursor: pointer; font-weight: 600; font-size: 12.5px; color: var(--muted); border-bottom: 2px solid transparent; }
.lang-tabs button[aria-pressed="true"] { color: var(--ink); border-color: var(--gold); }
.form-grid.three { grid-template-columns: repeat(3, 1fr); }
.form-grid.four { grid-template-columns: repeat(4, 1fr); }
.feat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.check { display: flex; gap: 8px; align-items: center; font-size: 13.5px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-lg); cursor: pointer; background: var(--paper); }
.check input { accent-color: var(--bronze); width: 16px; height: 16px; }
.preview-card .pcard { pointer-events: none; }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--stone); padding: 12px 20px; border-radius: 99px; font-size: 13.5px; z-index: 200; box-shadow: var(--shadow); display: flex; gap: 10px; align-items: center; }
.toast svg { width: 16px; color: var(--gold); }
.confirm { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; }

/* login */
.login { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.login-art { background: var(--ink); color: var(--stone); position: relative; overflow: hidden; display: grid; align-content: end; padding: max(48px, 6vw); }
.login-art .hero-mark { opacity: .12; top: 6%; right: -10%; width: 80%; }
.login-art blockquote { margin: 0; font-family: var(--f-display); font-style: italic; font-size: clamp(28px, 3vw, 42px); line-height: 1.2; max-width: 18ch; position: relative; }
.login-form { display: grid; place-items: center; padding: 40px max(20px, env(safe-area-inset-right, 0px)) 40px max(20px, env(safe-area-inset-left, 0px)); }
.login-form > div { width: min(400px, 100%); display: grid; gap: 22px; }
.demo-note { font-size: 12.5px; background: #fbf8f2; border: 1px solid var(--sand); padding: 10px 12px; border-radius: var(--r-lg); color: var(--ink-soft); }

@media (max-width: 1180px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cols, .editor { grid-template-columns: 1fr; } .editor .side { position: static; } }
@media (max-width: 900px) {
  .p-shell { grid-template-columns: 1fr; }
  .p-side { position: fixed; inset: 0 auto 0 0; width: 270px; z-index: 80; transform: translateX(-100%); transition: transform .25s; }
  .p-side.open { transform: none; box-shadow: 0 0 0 100vmax rgba(0,0,0,.4); }
  .p-mobilebar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
  .inbox { grid-template-columns: 1fr; }
  .inbox-list { max-height: none; border-right: 0; }
  .inbox.show-thread .inbox-list { display: none; }
  .inbox:not(.show-thread) .thread { display: none; }
  .back-btn { display: inline-flex; }
  .login { grid-template-columns: 1fr; }

  .form-grid.three, .form-grid.four { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) { .kpis { grid-template-columns: 1fr 1fr; gap: 10px; } .kpi strong { font-size: 32px; } .bubble { max-width: 92%; } }

/* Jost weights */
.kpi strong { font-weight: 300; }
.card-h h2, .thread-h h3 { font-weight: 400; }
.login-art blockquote { font-weight: 300; }

/* photo manager in the property editor */
.edit-thumbs { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.edit-thumbs .ph { position: relative; margin: 0; border-radius: var(--r); overflow: hidden; background: var(--sand-2); }
.edit-thumbs .ph img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; display: block; border-radius: 0; }
.ph-btn { position: absolute; top: 6px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(22, 24, 20, .72); color: #fff; cursor: pointer; font-size: 15px; line-height: 1; display: grid; place-items: center; }
.ph-btn:hover { background: var(--ink); }
.ph-btn.rm { right: 6px; }
.ph-btn.first { left: 6px; }
.cover-tag { position: absolute; left: 6px; top: 6px; background: var(--gold); color: var(--ink); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; padding: 3px 7px; border-radius: 99px; }
.toast.error { background: var(--danger); }

/* ---------- owner listings: statuses, payment, review ---------- */
.pill.pendiente_pago { background: #f7ecd6; color: #8a5f12; }
.pill.en_revision { background: #e6edf5; color: #2f5d8a; }
.pill.rechazada { background: #f6e3e0; color: var(--danger); }
.pill.vencida { background: #ecebe8; color: var(--muted); }
.pill.owner { background: #efe7da; color: var(--bronze-ink); }
.pill.urvanox { background: var(--ink); color: var(--stone); }
.pill.urvanox::before { background: var(--gold); }
.notice-bar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 18px; border: 1px solid var(--sand); background: #fbf8f2; border-radius: var(--r-lg); font-size: 14px; }
.notice-bar > svg { width: 18px; height: 18px; color: var(--bronze); flex: none; }
.notice-bar > span { flex: 1 1 260px; min-width: 0; }
.notice-bar.err { border-color: #e8c3bd; background: #fbf1ef; }
.fee-box { display: grid; gap: 4px; padding: 14px 16px; border-radius: var(--r-lg); background: var(--ink); color: var(--stone); }
.fee-box strong { font-family: var(--f-display); font-size: 30px; font-weight: 300; line-height: 1; }
.fee-box span { font-size: 12.5px; color: rgba(246, 244, 240, .7); }
.pay-sum { margin: 0; display: grid; border-top: 1px solid var(--line); }
.pay-sum > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.pay-sum dd { margin: 0; font-weight: 500; }
.pay-sum .total { font-size: 16px; }
.pay-sum .total dd { font-family: var(--f-display); font-size: 24px; font-weight: 400; }
.review-list { display: grid; gap: 16px; }
.review { padding: 18px 20px; display: grid; gap: 14px; }
.review-main { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; align-items: start; }
.thumb.lg { width: 140px; height: 105px; }
.review-desc { font-size: 13.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.review-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.reject-form { display: flex; gap: 8px; flex-wrap: wrap; }
.reject-form[hidden] { display: none; }
.reject-form input { flex: 1 1 260px; min-height: 38px; padding: 6px 12px; border: 1px solid var(--line); border-radius: var(--r); }
@media (max-width: 560px) { .review-main { grid-template-columns: 1fr; } .thumb.lg { width: 100%; height: auto; aspect-ratio: 4 / 3; } }
.card-brands { display: flex; gap: 8px; justify-content: center; }
.card-brands span { font-size: 11px; font-weight: 700; letter-spacing: .08em; padding: 4px 10px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink-soft); background: var(--paper); }
.pill.pendiente { background: #e6edf5; color: #2f5d8a; }
.msg .pill { margin-top: 4px; }
.plans { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.plans legend { font-size: 13px; font-weight: 600; margin-bottom: 8px; padding: 0; }
.plan { position: relative; display: grid; gap: 4px; padding: 14px 12px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); cursor: pointer; text-align: center; }
.plan input { position: absolute; opacity: 0; pointer-events: none; }
.plan-days { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.plan-price { font-family: var(--f-display); font-size: 22px; font-weight: 400; white-space: nowrap; }
.plan .plan-sub { font-size: 11.5px; color: var(--muted); text-transform: none; letter-spacing: 0; font-weight: 400; }
.pill.activa { background: #e6f0e8; color: var(--ok); }
.pill.suspendida { background: #f6e3e0; color: var(--danger); }
.pill.partner { background: var(--sand-2); color: var(--ink); }
.avatar.lg { width: 64px; height: 64px; font-size: 20px; flex: none; }
.member-gate .login-form > div { width: min(480px, 100%); }
.plan:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.plan:has(input:checked) .plan-days { color: var(--bronze-ink); }
.plan:has(input:focus-visible) { outline: 2px solid var(--bronze); outline-offset: 2px; }
@media (max-width: 420px) { .plans { gap: 6px; } .plan { padding: 12px 6px; } .plan-price { font-size: 18px; } }
.plan .plan-price { letter-spacing: 0; }
@media (max-width: 420px) { .plan .plan-price { font-size: 16px; } .plan .plan-days { font-size: 10.5px; letter-spacing: .04em; } .plan .plan-sub { font-size: 10.5px; } .plan { padding: 12px 4px; min-width: 0; } }
.avatar.logo { background: #fff; border: 1px solid var(--line); overflow: hidden; padding: 0; }
.avatar.logo img { width: 100%; height: 100%; object-fit: contain; padding: 3px; display: block; }
.avatar.xl { width: 96px; height: 96px; font-size: 28px; flex: none; }
.logo-edit { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.acc-switch { justify-self: start; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.acc-switch:hover { color: var(--bronze-ink); }

/* ===== Sign-in / sign-up screens, in the style of the Acceso page (portal/acceso.html) =====
   Left: photo with a dark film, logo and quote. Right: dark panel with gold details.
   Colours inside the form come from re-defined tokens, so every field, note and card follows. */
.login { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); background: #12140f; }
.login-art { position: sticky; top: 0; height: 100vh; height: 100dvh; min-height: 560px; isolation: isolate; overflow: hidden; display: grid; grid-template-rows: auto 1fr auto; row-gap: 28px; align-content: stretch; padding: max(36px, 4.5vw); color: var(--stone); background: var(--ink); }
.la-photo { position: absolute; inset: 0; z-index: -2; background: center / cover no-repeat; filter: saturate(.85) contrast(1.05); animation: la-zoom 16s ease-out both; }
.la-film { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(22,24,20,.62) 0%, rgba(22,24,20,.2) 34%, rgba(22,24,20,.35) 58%, rgba(22,24,20,.94) 100%), rgba(20,18,14,.42); }
@keyframes la-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.la-brand { justify-self: start; display: grid; justify-items: start; gap: 8px; color: var(--stone); }
.la-mark { width: 44px; height: auto; margin-bottom: 4px; filter: drop-shadow(0 4px 14px rgba(0,0,0,.35)); }
.la-brand .wordmark { font-size: 24px; }
.la-brand .brand-tag { color: var(--stone); opacity: .8; margin: 0; }
.la-copy { grid-row: 3; display: grid; gap: 16px; }
.la-copy .eyebrow { color: var(--gold); }
.login-art blockquote { margin: 0; font-style: normal; font-weight: 300; color: #fff; font-size: clamp(30px, 3.3vw, 48px); line-height: 1.1; max-width: 17ch; text-shadow: 0 2px 24px rgba(0,0,0,.25); }

.login-form {
  --ink: #f6f4f0; --ink-soft: rgba(246,244,240,.82); --muted: rgba(246,244,240,.6); --line: rgba(246,244,240,.16);
  --paper: rgba(255,255,255,.045); --sand: rgba(182,154,110,.35); --bronze-ink: #c9ad80; --danger: #f0a196;
  min-height: 100vh; min-height: 100dvh; color: var(--stone);
  background: radial-gradient(120% 70% at 100% 0%, rgba(182,154,110,.13), transparent 60%), #12140f;
}
.login-form > div { width: min(420px, 100%); animation: la-up .55s cubic-bezier(.2,.7,.2,1) both; }
.member-gate .login-form > div { width: min(500px, 100%); }
@keyframes la-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.login-form h1 { color: #fff; }
.login-form .eyebrow { color: var(--gold); }
.login-form .fld label, .login-form .fld .lbl, .login-form legend { color: rgba(246,244,240,.72); }
.login-form .fld input, .login-form .fld select, .login-form .fld textarea { color: var(--stone); background: rgba(255,255,255,.05); border-color: rgba(246,244,240,.18); border-radius: 10px; }
.login-form .fld input::placeholder { color: rgba(246,244,240,.35); }
.login-form .fld input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(182,154,110,.22); }
.login-form .fld input:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px #1b1d18 inset; -webkit-text-fill-color: var(--stone); caret-color: var(--stone); }
.login-form .fld input[readonly] { opacity: .7; }
.login-form .check { background: rgba(255,255,255,.04); border-color: rgba(246,244,240,.14); color: rgba(246,244,240,.85); border-radius: 10px; }
.login-form .check input { accent-color: var(--gold); }
.login-form a[style*="underline"], .login-form .form-note a { color: var(--gold) !important; }
.login-form .btn { border-radius: 10px; min-height: 52px; }
.login-form .btn-ink { background: var(--gold); color: #161814; }
.login-form .btn-ink:hover { background: #c7ad83; }
.login-form .btn-line { color: var(--stone); border-color: rgba(246,244,240,.55); }
.login-form .btn-line:hover { background: transparent; color: var(--gold); border-color: var(--gold); }
.login-form .btn-gold:hover { background: #c7ad83; }
.login-form .demo-note { background: rgba(182,154,110,.1); border-color: rgba(182,154,110,.3); color: rgba(246,244,240,.8); }
.login-form .notice-bar { background: rgba(255,255,255,.05); border-color: rgba(246,244,240,.14); }
.login-form .plan:has(input:checked) { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); background: rgba(182,154,110,.1); }
.login-form .plan .plan-price { color: #fff; }
.login-form .card { background: rgba(255,255,255,.035); }
.login-form .acc-switch { color: rgba(246,244,240,.55); }
.login-form .acc-switch:hover { color: var(--gold); }
.login-form select option { background: #1b1d18; color: var(--stone); }

@media (max-width: 900px) {
  .login { grid-template-columns: 1fr; }
  .login-art { position: relative; height: auto; min-height: 340px; padding: max(28px, env(safe-area-inset-top, 0px)) 22px 30px; }
  .login-art blockquote { font-size: clamp(26px, 7vw, 34px); font-weight: 400; text-shadow: 0 2px 6px rgba(0,0,0,.55), 0 4px 28px rgba(0,0,0,.6); }
  /* Small screens: the photo sits right behind the text, so darken it more. */
  .la-film { background: linear-gradient(180deg, rgba(14,15,12,.7) 0%, rgba(14,15,12,.5) 40%, rgba(14,15,12,.82) 75%, rgba(14,15,12,.96) 100%), rgba(14,13,10,.35); }
  .la-copy .eyebrow { text-shadow: 0 1px 8px rgba(0,0,0,.7); }
  .la-brand { text-shadow: 0 1px 10px rgba(0,0,0,.6); }
  .la-mark { width: 38px; }
  .la-brand .wordmark { font-size: 20px; }
  .login-form { min-height: 0; padding-top: 28px; padding-bottom: 48px; }
}
@media (prefers-reduced-motion: reduce) { .la-photo, .login-form > div { animation: none; } }
.login-form .plan .plan-price { font-size: clamp(17px, 2vw, 22px); }

/* Agent and client sign-in: darker film so the text reads clearly over the photo. */
body[data-portal="agent"] .la-film, body[data-portal="client"] .la-film { background: linear-gradient(180deg, rgba(14,15,12,.72) 0%, rgba(14,15,12,.45) 34%, rgba(14,15,12,.62) 58%, rgba(14,15,12,.97) 100%), rgba(14,13,10,.4); }
body[data-portal="agent"] .login-art blockquote, body[data-portal="client"] .login-art blockquote { font-weight: 400; text-shadow: 0 2px 6px rgba(0,0,0,.55), 0 4px 28px rgba(0,0,0,.6); }
body[data-portal="agent"] .la-copy .eyebrow, body[data-portal="client"] .la-copy .eyebrow { text-shadow: 0 1px 8px rgba(0,0,0,.7); }
@media (max-width: 900px) {
  body[data-portal="agent"] .la-film, body[data-portal="client"] .la-film { background: linear-gradient(180deg, rgba(14,15,12,.78) 0%, rgba(14,15,12,.62) 40%, rgba(14,15,12,.88) 75%, rgba(14,15,12,.98) 100%), rgba(14,13,10,.4); }
}

/* =====================================================================
   Modern portal workspace (agents, partners, owners, clients)
   Charcoal sidebar with a gold glow, a dark page banner, rounded white
   panels with soft shadows. Overrides the plainer workspace rules above.
   ===================================================================== */
body.portal { background: radial-gradient(80% 50% at 100% 0%, rgba(182,154,110,.10), transparent 60%), #f3f1ec; background-attachment: fixed; }
.p-shell { --pr: 16px; grid-template-columns: 264px minmax(0, 1fr); }

/* sidebar */
.p-side { background: radial-gradient(120% 40% at 0% 0%, rgba(182,154,110,.16), transparent 60%), linear-gradient(180deg, #1a1c17, #11120f); border-right: 1px solid rgba(182,154,110,.12); padding-top: 28px; overflow-y: auto; }
.p-side::after { content: ""; position: absolute; right: -60px; bottom: 90px; width: 220px; height: 320px; background: url("../img/icon.svg") center / contain no-repeat; opacity: .05; pointer-events: none; }
.p-side > * { position: relative; z-index: 1; }
.p-side .brand { padding: 0 10px 22px; border-bottom: 1px solid rgba(246,244,240,.08); }
.p-side .brand-tag { color: var(--gold); opacity: .9; }
.p-nav { gap: 4px; }
.p-nav a { position: relative; padding: 10px 12px; border-radius: 12px; color: rgba(246,244,240,.7); transition: background .2s, color .2s, transform .2s; }
.p-nav a svg { width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: rgba(255,255,255,.05); border: 1px solid rgba(246,244,240,.06); transition: background .2s, color .2s, border-color .2s; }
.p-nav a:hover { background: rgba(255,255,255,.05); color: #fff; transform: translateX(2px); }
.p-nav a:hover svg { border-color: rgba(182,154,110,.4); }
.p-nav a[aria-current="page"] { background: linear-gradient(90deg, rgba(182,154,110,.22), rgba(182,154,110,.04)); color: #fff; box-shadow: inset 0 0 0 1px rgba(182,154,110,.22); }
.p-nav a[aria-current="page"]::before { content: ""; position: absolute; left: -16px; top: 50%; width: 4px; height: 24px; margin-top: -12px; border-radius: 0 4px 4px 0; background: var(--gold); box-shadow: 0 0 14px rgba(182,154,110,.7); }
.p-nav a[aria-current="page"] svg { background: var(--gold); color: #161814; border-color: var(--gold); }
.p-nav .badge { background: linear-gradient(135deg, #d2b98f, var(--gold)); box-shadow: 0 0 0 3px rgba(182,154,110,.18); }
.p-side-foot > a { display: inline-flex; align-items: center; gap: 6px; padding: 9px 12px; border-radius: 10px; border: 1px solid rgba(246,244,240,.1); justify-self: start; }
.p-side-foot > a:hover { border-color: var(--gold); }
.p-me { border: 1px solid rgba(182,154,110,.2); border-radius: 14px; background: rgba(255,255,255,.04); min-width: 0; }
.p-me > div { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.p-side-foot button { padding: 6px 12px; }
.avatar { background: linear-gradient(135deg, #d2b98f, var(--gold) 60%, var(--bronze)); color: #161814; box-shadow: 0 0 0 2px rgba(182,154,110,.25); }

/* page banner (the first header of every view) */
.p-main { padding-top: 24px; }
.p-mobilebar + .p-top { position: relative; isolation: isolate; overflow: hidden; padding: clamp(24px, 3vw, 36px) clamp(22px, 3vw, 40px); border-radius: 20px; color: var(--stone);
  background: radial-gradient(70% 120% at 100% 0%, rgba(182,154,110,.28), transparent 60%), linear-gradient(135deg, #1d1f1a, #12130f); box-shadow: 0 24px 48px -28px rgba(22,24,20,.6); }
.p-mobilebar + .p-top::after { content: ""; position: absolute; z-index: -1; right: 4%; top: -30%; width: 220px; height: 320px; background: url("../img/icon.svg") center / contain no-repeat; opacity: .08; }
.p-mobilebar + .p-top h1 { color: #fff; }
.p-mobilebar + .p-top p { color: rgba(246,244,240,.68); max-width: 70ch; }
.p-mobilebar + .p-top > div:first-child::before { content: ""; display: block; width: 36px; height: 2px; margin-bottom: 14px; background: var(--gold); border-radius: 2px; }
.p-mobilebar + .p-top .btn { border-radius: 12px; }
.p-mobilebar + .p-top .btn-ink, .p-mobilebar + .p-top .btn-gold { background: var(--gold); color: #161814; border-color: var(--gold); box-shadow: 0 10px 24px -10px rgba(182,154,110,.7); }
.p-mobilebar + .p-top .btn-ink:hover, .p-mobilebar + .p-top .btn-gold:hover { background: #c7ad83; transform: translateY(-1px); }
.p-mobilebar + .p-top .btn-line { color: var(--stone); border-color: rgba(246,244,240,.45); background: rgba(255,255,255,.04); }
.p-mobilebar + .p-top .btn-line:hover { color: var(--gold); border-color: var(--gold); background: transparent; }
.p-mobilebar + .p-top a:not(.btn) { color: var(--gold); }

/* panels */
.p-main .card, .kpi { border: 1px solid rgba(22,24,20,.06); border-radius: 18px; box-shadow: 0 1px 2px rgba(22,24,20,.04), 0 18px 40px -26px rgba(22,24,20,.28); }
.p-main .card { overflow: hidden; }
.card-h { padding: 18px 22px; border-bottom-color: rgba(22,24,20,.06); }
.card-h h2 { font-size: 21px; }
.card-b { padding: 8px 22px 18px; }
.card-h .link-arrow, .card-h a { font-size: 11.5px; }

/* KPIs */
.kpis { gap: 18px; }
.kpi { position: relative; overflow: hidden; padding: 22px; transition: transform .25s, box-shadow .25s; }
.kpi::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--gold), transparent); opacity: .7; }
.kpi:hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(22,24,20,.04), 0 24px 44px -24px rgba(22,24,20,.35); }
.kpi strong { font-size: 44px; }
.kpi.attn { background: linear-gradient(160deg, #1d1f1a, #12130f); border-color: rgba(182,154,110,.35); color: var(--stone); }
.kpi.attn small, .kpi.attn span { color: rgba(246,244,240,.62); }
.kpi.attn strong { color: var(--gold); }
.kpi.attn::before { opacity: 1; }

/* rows, thumbs, pills */
.row-item { padding: 14px 10px; margin: 0 -10px; border-radius: 12px; border-bottom-color: rgba(22,24,20,.06); transition: background .2s; }
.row-item:hover { background: #faf7f1; }
.thumb { border-radius: 10px; }
.pill { padding: 5px 11px; letter-spacing: .08em; box-shadow: inset 0 0 0 1px rgba(22,24,20,.04); }

/* notices */
.notice-bar { position: relative; border-radius: 14px; border: 1px solid rgba(182,154,110,.3); background: linear-gradient(90deg, #fbf6ec, #fff); padding: 14px 18px 14px 22px; overflow: hidden; box-shadow: 0 10px 28px -22px rgba(22,24,20,.35); }
.notice-bar::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--gold); }
.notice-bar > svg { width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: rgba(182,154,110,.15); }
.notice-bar.err::before { background: var(--danger); }
.p-main .notice-bar .btn { border-radius: 10px; }

/* buttons, inputs and controls inside the workspace */
.p-main .btn { border-radius: 12px; transition: transform .2s, background .2s, color .2s, border-color .2s, box-shadow .2s; }
.p-main .btn-ink:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -12px rgba(22,24,20,.6); }
.p-main .fld input, .p-main .fld select, .p-main .fld textarea, .toolbar input, .toolbar select, .reject-form input, .reply textarea { border-radius: 12px; border-color: rgba(22,24,20,.12); background: #fff; transition: border-color .2s, box-shadow .2s; }
.p-main .fld input:focus, .p-main .fld select:focus, .p-main .fld textarea:focus, .toolbar input:focus, .toolbar select:focus, .reply textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(182,154,110,.18); }
.icon-btn { border-radius: 12px; border-color: rgba(22,24,20,.1); transition: border-color .2s, color .2s, background .2s; }
.icon-btn:hover { background: #faf7f1; }
.check { border-radius: 12px; border-color: rgba(22,24,20,.1); transition: border-color .2s, background .2s; }
.check:has(input:checked) { border-color: var(--gold); background: #fbf6ec; }
.toolbar { padding: 16px 18px; background: #fcfbf8; border-bottom-color: rgba(22,24,20,.06); }
.toolbar .seg { border-radius: 12px; overflow: hidden; }
.lang-tabs button[aria-pressed="true"] { border-bottom-width: 2px; }

/* tables */
.p-table th { background: #faf8f4; letter-spacing: .12em; padding: 14px 14px; border-bottom-color: rgba(22,24,20,.06); }
.p-table td { padding: 14px; border-bottom-color: rgba(22,24,20,.06); }
.p-table tbody tr { transition: background .2s; }
.p-table tbody tr:hover { background: #faf7f1; }

/* inbox and chat */
.inbox-list { background: #fcfbf8; }
.msg { margin: 6px 8px; padding: 14px 16px; border: 1px solid transparent; border-left: 1px solid transparent; border-radius: 14px; border-bottom-color: transparent; transition: background .2s, border-color .2s; }
.msg:hover { background: #fff; border-color: rgba(22,24,20,.06); }
.msg[aria-current="true"] { background: #fff; border-color: rgba(182,154,110,.45); box-shadow: 0 10px 24px -18px rgba(22,24,20,.4); }
.thread-body { background: radial-gradient(60% 40% at 100% 0%, rgba(182,154,110,.08), transparent 60%), #f6f4ef; }
.bubble { border-radius: 18px; box-shadow: 0 6px 18px -14px rgba(22,24,20,.4); }
.bubble.in { border-color: rgba(22,24,20,.06); border-bottom-left-radius: 6px; }
.bubble.out { background: linear-gradient(135deg, #22241e, #141511); border-bottom-right-radius: 6px; }
.quick button { transition: border-color .2s, background .2s; }
.quick button:hover { background: #fbf6ec; }
.visit-box { border-radius: 14px; }

/* editor side, payment and review cards */
.fee-box { border-radius: 16px; background: radial-gradient(80% 120% at 100% 0%, rgba(182,154,110,.3), transparent 60%), linear-gradient(135deg, #1d1f1a, #12130f); padding: 18px 20px; }
.fee-box strong { color: var(--gold); }
.plan { border-radius: 14px; transition: border-color .2s, box-shadow .2s, transform .2s; }
.plan:hover { transform: translateY(-2px); }
.review { transition: box-shadow .25s; }
.edit-thumbs .ph { border-radius: 12px; }
.toast { border-radius: 14px; box-shadow: 0 20px 40px -18px rgba(0,0,0,.55); border: 1px solid rgba(182,154,110,.25); }
.empty { border-radius: 18px; }

/* mobile: a dark top bar and a full-height drawer */
@media (max-width: 900px) {
  .p-shell { grid-template-columns: 1fr; }
  .p-main { padding-top: 0; }
  .p-mobilebar { position: sticky; top: 0; z-index: 60; margin: 0 calc(-1 * max(20px, env(safe-area-inset-right, 0px))) 18px calc(-1 * max(20px, 3vw)); padding: 12px max(20px, 3vw); background: rgba(18,19,15,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(182,154,110,.18); }
  .p-mobilebar .icon-btn { background: rgba(255,255,255,.06); border-color: rgba(246,244,240,.14); color: var(--stone); }
  .p-mobilebar .brand-icon { width: 26px; height: auto; }
  .p-side { width: 286px; padding-top: calc(24px + env(safe-area-inset-top, 0px)); }
  .p-side.open { box-shadow: 0 0 0 100vmax rgba(10,10,8,.55); }
  .p-mobilebar + .p-top { border-radius: 18px; }
  .p-mobilebar + .p-top::after { width: 140px; height: 200px; right: -20px; }
}
@media (max-width: 520px) {
  .kpis { gap: 12px; }
  .kpi { padding: 16px; border-radius: 16px; }
  .kpi strong { font-size: 34px; }
  .p-mobilebar + .p-top { padding: 22px 20px; }
  .p-mobilebar + .p-top .btn { width: 100%; letter-spacing: .1em; padding-left: 12px; padding-right: 12px; font-size: 11px; }
  .kpi small { font-size: 10px; letter-spacing: .08em; }
  .notice-bar { padding: 14px 14px 14px 18px; gap: 10px 12px; }
  .notice-bar > svg { width: 30px; height: 30px; padding: 7px; }
  .notice-bar > span { flex: 1 1 180px; }
}
@media (prefers-reduced-motion: reduce) { .p-nav a, .kpi, .row-item, .plan, .p-main .btn { transition: none; } .kpi:hover, .plan:hover, .p-nav a:hover { transform: none; } }

/* ---------- promo codes: owner payment box and admin list ---------- */
.promo-box { display: grid; gap: 8px; padding: 16px; border-radius: 14px; border: 1px dashed rgba(182,154,110,.55); background: #fcf9f3; }
.promo-box label { font-size: 13px; font-weight: 600; }
.promo-row { display: flex; gap: 8px; }
.promo-row input { flex: 1 1 auto; min-width: 0; min-height: 44px; padding: 8px 14px; border: 1px solid rgba(22,24,20,.14); border-radius: 12px; background: #fff; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.promo-row input::placeholder { letter-spacing: 0; text-transform: none; font-weight: 400; }
.promo-row input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(182,154,110,.18); }
.promo-row input:disabled { background: #f4efe4; color: var(--bronze-ink); }
.promo-row .btn { min-height: 44px; flex: none; }
.promo-msg { margin: 0; font-size: 13px; color: var(--danger); }
.promo-msg.ok { color: var(--ok); font-weight: 500; }
.pay-sum .promo-line dd { color: var(--ok); font-weight: 600; }
.pay-sum .promo-line dt span { display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 99px; background: #e6f0e8; color: var(--ok); font-size: 11px; font-weight: 600; letter-spacing: .1em; }
.promo-cols { grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); align-items: start; }
.promo-table { min-width: 640px; }
.promo-code { display: inline-block; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; font-weight: 600; letter-spacing: .08em; padding: 4px 10px; border-radius: 8px; background: #161814; color: var(--gold); }
.pill.promo-activo { background: #e6f0e8; color: var(--ok); }
.pill.promo-pausado { background: #ecebe8; color: var(--muted); }
.pill.promo-vencido, .pill.promo-agotado { background: #f6e3e0; color: var(--danger); }
@media (max-width: 1180px) { .promo-cols { grid-template-columns: 1fr; } }
/* Payment page pieces that are switched on and off (promo code covers the price, card vs WhatsApp). */
.card-brands[hidden], .p-main .btn[hidden], .notice-bar[hidden], .pay-sum > div[hidden] { display: none; }

/* ---------- Statistics ---------- */
.st-filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.st-filters select { height: 38px; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; background: var(--paper); color: var(--ink); max-width: 260px; font: inherit; font-size: 13px; }
.st-filters .seg { height: 38px; border-radius: 12px; overflow: hidden; }
.st-filters .seg button { padding: 0 14px; font-size: 11px; }
.st-cols { margin-bottom: 20px; }
.st-chart { position: relative; height: 220px; margin: 70px 0 0 34px; }
.st-grid span { position: absolute; left: 0; right: 0; border-top: 1px solid rgba(22,24,20,.07); }
.st-grid span:last-child { border-top-color: rgba(22,24,20,.18); }
.st-grid i { position: absolute; right: calc(100% + 8px); top: -8px; font-style: normal; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.st-bars { position: absolute; inset: 0; display: flex; align-items: flex-end; gap: 2px; }
.st-bar { flex: 1 1 0; min-width: 0; height: 100%; display: flex; align-items: flex-end; background: none; border: 0; padding: 0; cursor: pointer; }
.st-bar span { display: block; width: 100%; min-height: 2px; background: var(--gold); border-radius: 4px 4px 0 0; transition: background .15s; }
.st-bar.zero span { background: rgba(22,24,20,.12); }
.st-bar.on span, .st-bar:hover span { background: var(--bronze-ink); }
.st-bar:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.st-tip { position: absolute; top: -8px; transform: translate(-50%, -100%); background: var(--ink); color: #fff; border-radius: 10px; padding: 8px 12px; display: grid; gap: 2px; font-size: 12px; white-space: nowrap; pointer-events: none; box-shadow: 0 8px 24px rgba(0,0,0,.18); z-index: 2; }
.st-tip strong { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.st-tip span { color: rgba(255,255,255,.82); }
.st-tip b { color: #fff; font-variant-numeric: tabular-nums; }
.st-tip[hidden] { display: none; }
.st-x { display: flex; justify-content: space-between; margin: 8px 0 4px 34px; font-size: 11px; color: var(--muted); }
.st-kinds { display: grid; gap: 14px; padding-top: 18px; }
.st-kind { display: grid; grid-template-columns: 130px 1fr 44px; align-items: center; gap: 12px; font-size: 13.5px; }
.st-kind-l { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.st-kind-l svg { width: 16px; height: 16px; color: var(--bronze-ink); flex: none; }
.st-track { height: 10px; background: rgba(22,24,20,.06); border-radius: 6px; overflow: hidden; }
.st-track span { display: block; height: 100%; background: var(--gold); border-radius: 6px; min-width: 2px; }
.st-kind strong { text-align: right; font-variant-numeric: tabular-nums; }
.st-table tbody tr { cursor: pointer; }
.st-table th.num { text-align: right; }
.st-table td.num { text-align: right; }
.st-table .ri-sub .pill { margin-left: 2px; }
.st-foot { padding: 14px 16px 18px; }
.st-mini { padding: 18px 20px; margin-bottom: 24px; display: grid; gap: 12px; }
.st-mini[hidden] { display: none; }
.st-mini-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.st-mini-b { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: end; }
.st-mini-n { display: flex; gap: 28px; flex-wrap: wrap; }
.st-mini-n div { display: grid; gap: 2px; }
.st-mini-n strong { font-family: var(--f-display); font-size: 28px; line-height: 1; font-weight: 600; font-variant-numeric: tabular-nums lining-nums; }
.st-mini-n span { font-size: 12px; color: var(--muted); }
.st-spark { height: 44px; display: flex; align-items: flex-end; gap: 2px; }
.st-spark i { flex: 1 1 0; background: var(--gold); opacity: .75; border-radius: 2px 2px 0 0; }
@media (max-width: 900px) {
  .st-filters { width: 100%; }
  .st-filters select { flex: 1 1 100%; max-width: none; min-width: 0; width: 100%; box-sizing: border-box; }
  .st-filters .seg { flex: 1 1 100%; display: flex; }
  .st-filters .seg button { flex: 1; }
  .st-chart { height: 180px; margin-top: 66px; }
  .st-kind { grid-template-columns: 112px 1fr 36px; font-size: 13px; }
  .st-mini-b { grid-template-columns: 1fr; gap: 14px; }
  .st-mini-n { gap: 18px 24px; }
  .st-mini-n div { min-width: 40%; }
}

/* ---------- Owner portfolio: Mis propiedades ---------- */
.dev-note { margin-bottom: 20px; }
.kpi strong.kpi-money { font-size: 24px; line-height: 1.15; overflow-wrap: anywhere; }
.hold-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.card.hold { padding: 20px; display: grid; gap: 14px; align-content: start; }
.hold-top { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; }
.hold-ic { width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(160deg, #23251f, #161814); color: var(--gold); display: grid; place-items: center; }
.hold-ic svg { width: 20px; height: 20px; }
.hold h3 { font-family: var(--f-display); font-size: 19px; font-weight: 500; line-height: 1.25; margin: 0; overflow-wrap: anywhere; }
.hold-top p { margin: 3px 0 0; font-size: 12.5px; color: var(--muted); }
.hold-specs { display: flex; flex-wrap: wrap; gap: 6px; }
.hold-specs span { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: #f4f1eb; color: var(--ink); }
.hold-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hold-nums dt { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.hold-nums dd { margin: 4px 0 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.hold-notes { margin: 0; font-size: 13px; color: var(--muted); white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hold-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.hold-listing { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink); }
.hold-acts { display: inline-flex; gap: 6px; }
.hold-add { border: 1.5px dashed rgba(149,116,80,.45); border-radius: var(--r-lg); min-height: 200px; display: grid; place-content: center; justify-items: center; gap: 6px; text-align: center; color: var(--bronze-ink); padding: 20px; transition: background .2s, border-color .2s; }
.hold-add:hover { background: #faf6ef; border-color: var(--bronze); }
.hold-add svg { width: 26px; height: 26px; }
.hold-add span { font-size: 12.5px; color: var(--muted); }
.hold-empty { padding: 48px 24px; display: grid; justify-items: center; gap: 10px; text-align: center; }
.hold-empty > svg { width: 34px; height: 34px; color: var(--gold); }
.hold-empty p { max-width: 440px; color: var(--muted); margin: 0 0 6px; }
.pill.use-propia { background: #ecebe8; color: var(--ink); }
.pill.use-alquilada { background: #e6f0e8; color: var(--ok); }
.pill.use-disponible { background: #f6eedf; color: var(--bronze-ink); }
.pill.use-en_venta { background: #e6edf5; color: #2f5d8a; }
.pill.use-construccion { background: #f1ece6; color: #6b5a48; }
.hold-form { max-width: 820px; }
.hold-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.fld[hidden] { display: none; }
@media (max-width: 900px) {
  .hold-grid { grid-template-columns: 1fr; }
  .kpi strong.kpi-money { font-size: 19px; }
  .hold-btns .btn { flex: 1 1 100%; }
}

/* Mis propiedades: tenant, documents, incidents */
.hold h3 a { color: inherit; }
.hold h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.hold-tenant { display: flex; gap: 10px; align-items: center; padding: 10px 12px; background: #faf7f1; border-radius: 12px; font-size: 13px; }
.hold-tenant svg { width: 18px; height: 18px; color: var(--bronze-ink); flex: none; }
.hold-tenant span { display: grid; gap: 1px; min-width: 0; }
.hold-tenant small { font-size: 11.5px; color: var(--muted); }
.hold-tenant small.warn { color: #9a6a12; font-weight: 600; }
.hold-tenant small.bad { color: var(--danger); font-weight: 600; }
.hold-acts { align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.hold-foot { flex-wrap: wrap; }
.pill.inc-open { background: #fbe9e4; color: #a2402b; }
.hold-top-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.hold-cols { margin-bottom: 20px; grid-template-columns: 1fr 1fr; }
.hold-dl { margin: 0; display: grid; }
.hold-dl > div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.hold-dl > div:last-child { border-bottom: 0; }
.hold-dl dt { color: var(--muted); font-size: 12.5px; }
.hold-dl dd { margin: 0; overflow-wrap: anywhere; }
.hold-dl a { text-decoration: underline; text-underline-offset: 3px; }
.hold-dl .muted { color: var(--muted); }
.hold-sec { margin-bottom: 20px; }
.doc-list, .inc-list { list-style: none; margin: 0; padding: 0; display: grid; }
.doc-list li { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.doc-ic { width: 42px; height: 48px; border-radius: 8px; background: #f4efe6; color: var(--bronze-ink); display: grid; place-items: center; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; border: 1px solid rgba(149,116,80,.25); }
.doc-acts { display: inline-flex; gap: 6px; align-items: center; }
.doc-up { display: grid; grid-template-columns: 1fr 1fr 1.3fr auto; gap: 12px; align-items: end; padding-top: 18px; }
.doc-up .fld { margin: 0; }
.doc-file { min-height: 0; padding: 10px 14px; flex-direction: row; gap: 10px; text-align: left; justify-content: flex-start; }
.doc-file strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.doc-file span { display: none; }
.inc-form { padding: 16px 0 18px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.inc-form[hidden], .card-h .btn[hidden] { display: none; }
.inc { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
.inc:last-child { border-bottom: 0; }
.inc-h { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.inc.resuelta .ri-title { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(22,24,20,.3); }
.inc-desc { margin: 0; font-size: 13.5px; color: var(--muted); white-space: pre-line; }
.inc-f { display: flex; gap: 8px; align-items: center; }
.inc-f select { height: 34px; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; background: var(--paper); font: inherit; font-size: 13px; }
.inc.abierta .inc-f select { border-color: rgba(162,64,43,.4); color: #a2402b; }
.inc.en_proceso .inc-f select { border-color: rgba(154,106,18,.45); color: #8a5d0c; }
.inc.resuelta .inc-f select { border-color: rgba(47,110,66,.35); color: var(--ok); }
.pill.prio-alta { background: #fbe9e4; color: #a2402b; }
.pill.prio-media { background: #f6eedf; color: var(--bronze-ink); }
.pill.prio-baja { background: #ecebe8; color: var(--muted); }
.hold-fh { font-family: var(--f-display); font-size: 18px; font-weight: 500; margin: 4px 0 12px; }
.hold-tenant-f { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.hold-tenant-f[hidden] { display: none; }
@media (max-width: 900px) {
  .hold-cols { grid-template-columns: 1fr; }
  .hold-dl > div { grid-template-columns: 1fr; gap: 2px; }
  .doc-up { grid-template-columns: 1fr; }
  .doc-up .btn { width: 100%; }
  .doc-list li { grid-template-columns: auto 1fr; }
  .doc-acts { grid-column: 1 / -1; justify-content: flex-end; }
  .hold-top-acts { width: 100%; }
  .hold-top-acts .btn { flex: 1; }
}

/* Mis propiedades: rent payments */
.hold-tenant .hold-tenant-t { flex: 1; }
.hold-tenant .pill { flex: none; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.pill.rent-pagado { background: #e6f0e8; color: var(--ok); }
.pill.rent-parcial { background: #f6eedf; color: #8a5d0c; }
.pill.rent-pendiente { background: #ecebe8; color: var(--muted); }
.pill.rent-atrasado { background: #fbe9e4; color: #a2402b; }
.rent-now { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.rent-year { margin-left: auto; font-size: 13px; color: var(--muted); }
.rent-year strong { color: var(--ink); }
.pay-list { list-style: none; margin: 0; padding: 0; }
.pay-list li { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.pay-list li:last-child { border-bottom: 0; }
.pay-m { display: grid; gap: 2px; min-width: 0; }
.pay-m span { font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.pay-amt { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 900px) {
  .rent-year { margin-left: 0; width: 100%; }
  .pay-list li { grid-template-columns: 1fr auto; }
  .pay-list .doc-acts { grid-column: 1 / -1; justify-content: flex-end; }
}

/* Mi hogar + property number */
.hold-code { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; color: var(--bronze-ink); background: #f4efe6; border: 1px solid rgba(149,116,80,.25); border-radius: 6px; padding: 1px 6px; margin-right: 6px; font-variant-numeric: tabular-nums; }
.tenant-link { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 4px; padding: 10px 12px; border-radius: 12px; background: #f4f3f0; font-size: 13px; color: var(--muted); }
.tenant-link.on { background: #e9f2eb; color: #2f5b3c; }
.tenant-link svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.by-tenant { color: #2f5d8a; font-weight: 600; }
.pill.inc-st-abierta { background: #fbe9e4; color: #a2402b; }
.pill.inc-st-en_proceso { background: #f6eedf; color: #8a5d0c; }
.pill.inc-st-resuelta { background: #e6f0e8; color: var(--ok); }
.home-help { margin-bottom: 20px; }

/* Mis propiedades cards: roomier layout */
.hold-grid { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }
.hold-top { grid-template-columns: auto 1fr auto; align-items: center; }
.hold h3 { font-size: 18px; }
.hold-top .hold-code { margin: 0; align-self: start; }
.hold-specs .pill { font-size: 10px; }
.hold-btns-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hold-btns-row .btn { padding-left: 8px; padding-right: 8px; font-size: 10.5px; letter-spacing: .08em; justify-content: center; white-space: nowrap; }
.hold-btns-row .btn svg { width: 15px; height: 15px; }
.card.hold { cursor: default; }
@media (max-width: 900px) { .hold-grid { grid-template-columns: 1fr; } }
.hold .pill { white-space: nowrap; }

/* Owner ↔ tenant messages */
.home-chat { overflow: hidden; }
.home-chat .card-h h2 { display: inline-flex; align-items: center; gap: 10px; }
.home-chat .card-h h2 svg { width: 20px; height: 20px; color: var(--bronze-ink); }
.home-chat .thread-body { min-height: 200px; max-height: 420px; }
.home-chat-empty { margin: auto; text-align: center; }
.pill.msg-new { background: var(--ink); color: var(--gold); }
@media (max-width: 900px) { .home-chat .thread-body { max-height: 360px; padding: 16px; } }

/* Urvanox Care (incidents; coming soon) */
.care-btn { background: linear-gradient(135deg, #22241e, #141511); color: var(--gold); border: 1px solid rgba(182,154,110,.45); gap: 8px; }
.care-btn:hover { color: #fff; border-color: var(--gold); }
.care-btn svg { width: 16px; height: 16px; }
.care-btn[aria-expanded="true"] { box-shadow: 0 0 0 3px rgba(182,154,110,.25); }
.care-box { display: grid; gap: 8px; justify-items: start; padding: 14px 16px; border-radius: 14px; background: radial-gradient(80% 120% at 100% 0%, rgba(182,154,110,.18), transparent 60%), #181a16; color: rgba(255,255,255,.82); font-size: 13.5px; }
.care-box[hidden] { display: none; }
.care-box strong { color: var(--gold); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
.care-box p { margin: 0; }
.inc-f { flex-wrap: wrap; }

/* ---------- approval of owner properties (Aprobar propiedades) ---------- */
.pill.review-pendiente { background: #f6eedf; color: var(--bronze-ink); }
.pill.review-rechazada { background: #fbe9e4; color: #a2402b; }
.pill.review-aprobada { background: #e6f0e8; color: var(--ok); }
.hold-rev-bar { padding: 0; margin: 0 0 16px; background: none; border: 0; }
.hold-rev-bar .seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); height: auto; width: 100%; max-width: 680px; }
.hold-rev-bar .seg button { min-height: 38px; }
.hold-review .review-main { grid-template-columns: 56px minmax(0, 1fr); }
.hold-ic.lg { width: 56px; height: 56px; border-radius: 14px; }
.hold-ic.lg svg { width: 24px; height: 24px; }
.hold-review .ri-sub { overflow-wrap: anywhere; white-space: normal; overflow: visible; text-overflow: clip; }
@media (max-width: 560px) { .hold-review .review-main { grid-template-columns: 1fr; } .hold-rev-bar .seg { grid-template-columns: 1fr 1fr; } }

/* ---------- panel KPIs: color cards in the Urvanox palette (ink, bronze, olive, gold) ---------- */
.kpis-color .kpi { border: 0; color: #fff; min-height: 128px; align-content: space-between;
  background: var(--k-bg); box-shadow: 0 18px 36px -24px var(--k-shadow, rgba(22,24,20,.5)); }
.kpis-color .kpi::before { inset: 0; height: auto; opacity: 1; background: radial-gradient(120% 90% at 100% 0%, rgba(255,255,255,.16), transparent 55%); }
.kpis-color .kpi::after { content: ""; position: absolute; right: -26px; bottom: -34px; width: 120px; height: 120px; border-radius: 50%; border: 18px solid rgba(255,255,255,.07); pointer-events: none; }
.kpis-color .kpi > * { position: relative; }
.kpis-color .kpi small { color: rgba(255,255,255,.78); }
.kpis-color .kpi strong { color: #fff; }
.kpis-color .kpi span { color: rgba(255,255,255,.72); justify-self: end; font-style: italic; text-align: right; }
.kpis-color .k-ink { --k-bg: linear-gradient(135deg, #2e3129 0%, #161814 100%); --k-shadow: rgba(22,24,20,.6); }
.kpis-color .k-ink strong { color: var(--gold); }
.kpis-color .k-bronze { --k-bg: linear-gradient(135deg, #8d6c48 0%, #5c432c 100%); --k-shadow: rgba(92,67,44,.65); }
.kpis-color .k-olive { --k-bg: linear-gradient(135deg, #5f6d51 0%, #343d2d 100%); --k-shadow: rgba(52,61,45,.6); }
.kpis-color .k-espresso { --k-bg: linear-gradient(135deg, #4b3a29 0%, #1d1813 100%); --k-shadow: rgba(29,24,19,.6); }
.kpis-color .k-espresso strong { color: #e2cba4; }
.kpis-color .k-gold { --k-bg: linear-gradient(135deg, #d6bf98 0%, #b69a6e 100%); --k-shadow: rgba(149,116,80,.55); color: var(--ink); }
.kpis-color .k-gold small { color: rgba(22,24,20,.7); }
.kpis-color .k-gold strong { color: var(--ink); }
.kpis-color .k-gold span { color: rgba(22,24,20,.66); }
.kpis-color .k-gold::after { border-color: rgba(255,255,255,.18); }
/* New inquiries waiting: a gold ring and dot instead of the dark card. */
.kpis-color .kpi.attn { box-shadow: 0 0 0 2px var(--gold), 0 18px 36px -24px var(--k-shadow); }
.kpis-color .kpi.attn small::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 8px; border-radius: 50%; background: #f3dfb8; vertical-align: middle; box-shadow: 0 0 0 3px rgba(243,223,184,.25); }
@media (max-width: 520px) { .kpis-color .kpi { min-height: 112px; } .kpis-color .kpi span { justify-self: start; text-align: left; } }

/* ---------- Estadísticas: property + period filters on the dark header (glass, gold accent) ---------- */
.p-top .st-filters { gap: 12px; }
.p-top .st-filters select { -webkit-appearance: none; appearance: none; height: 44px; min-width: 240px; padding: 0 42px 0 16px; border-radius: 14px;
  border: 1px solid rgba(182,154,110,.38); background: rgba(255,255,255,.06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23b69a6e' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center;
  color: var(--stone); font-size: 13.5px; letter-spacing: .02em; cursor: pointer; transition: border-color .2s, background-color .2s; }
.p-top .st-filters select:hover { border-color: var(--gold); background-color: rgba(255,255,255,.09); }
.p-top .st-filters select:focus-visible { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(182,154,110,.25); }
.p-top .st-filters select option { color: var(--ink); background: #fff; }
.p-top .st-filters .seg { height: 44px; padding: 4px; gap: 4px; border-radius: 14px; border: 1px solid rgba(182,154,110,.38); background: rgba(255,255,255,.06); }
.p-top .st-filters .seg button { border: 0; border-radius: 10px; padding: 0 16px; background: transparent; color: rgba(246,244,240,.68); font-size: 11px; letter-spacing: .14em; transition: background .2s, color .2s, box-shadow .2s; }
.p-top .st-filters .seg button + button { border-left: 0; }
.p-top .st-filters .seg button:hover { color: #fff; }
.p-top .st-filters .seg button[aria-pressed="true"] { background: linear-gradient(135deg, #d6bf98, #b69a6e); color: var(--ink); box-shadow: 0 6px 16px -8px rgba(182,154,110,.8); }
.p-top .st-filters .seg button:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
@media (max-width: 900px) { .p-top .st-filters select { min-width: 0; } }
