/* Extracted from agente-demo.html by scripts/extract-inline-styles.cjs (Phase D.5, 2026-05-29). */
/* Verbatim relocation — cascade preserved. Lets the CSP drop 'unsafe-inline' from style-src. */
:root {
  --bg: #0c0b09;
  --surface: #161513;
  --surface2: #201e1b;
  --surface3: #2a2724;
  --amber: #c9a84c;
  --amber-light: #f2efe8;
  --gold: #c9a84c;
  --text: #f2efe8;
  --text-dim: #8a8478;
  --green: #7ac07a;
  --yellow: #d6b14a;
  --red: #e07b7b;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Instrument Sans', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 880px; }

/* Real (outer) Nestboard nav — keeps users oriented that this is a demo. */
nav.outer {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12, 11, 9, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--surface3);
}
nav.outer .container { display: flex; justify-content: space-between; align-items: center; padding: 14px 24px; }
.nav-brand { font-family: 'Fraunces', serif; font-size: 1.15rem; font-weight: 600; color: var(--amber); text-decoration: none; }
.nav-cta {
  background: var(--gold); color: #000;
  padding: 8px 18px; border-radius: 8px;
  font-weight: 600; font-size: 0.85rem;
  text-decoration: none; transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.85; }

/* Page header for context — visible above the watermarked demo. */
.context-header {
  background: var(--bg);
  padding: 32px 0 8px;
  text-align: center;
}
.context-header .badge {
  display: inline-block;
  background: rgba(201, 168, 76, 0.12); color: var(--amber);
  padding: 6px 14px; border-radius: 100px;
  font-size: 0.78rem; font-weight: 500;
  margin-bottom: 16px; letter-spacing: 0.02em;
}
.context-header h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 600;
  color: var(--amber-light);
  margin-bottom: 8px;
}
.context-header p {
  color: var(--text-dim);
  max-width: 620px;
  margin: 0 auto;
  font-size: 0.96rem;
}

/* Watermark — dashed amber border, always-on, no user dismiss.
   The whole point is users can never confuse this with their real portal. */
.watermark {
  background: var(--surface2);
  border: 1px dashed var(--amber);
  border-radius: 12px;
  padding: 12px 18px;
  margin: 24px 0;
  font-size: 0.92rem;
  color: var(--amber-light);
  text-align: center;
}
.watermark strong { color: var(--amber); font-weight: 600; }
.watermark .small {
  display: block;
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* === MOCK CLIENT PORTAL STARTS HERE === */
/* Visual style flips slightly: lighter surface to suggest "different app". */
.portal-wrap {
  background: #14110d;
  border: 1px solid var(--surface3);
  border-radius: 20px;
  margin: 16px 0 32px;
  overflow: hidden;
}

/* Mock white-label header — agent logo placeholder + agent name + photo. */
.portal-header {
  background: linear-gradient(180deg, #1a1612 0%, #14110d 100%);
  padding: 18px 24px;
  border-bottom: 1px solid var(--surface3);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.portal-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-placeholder {
  width: 42px;
  height: 42px;
  border: 1px dashed var(--text-dim);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  color: var(--text-dim);
  text-align: center;
  line-height: 1.1;
  font-style: italic;
}
.portal-brand .name {
  font-family: 'Fraunces', serif;
  font-size: 1.05rem;
  color: var(--amber-light);
  font-weight: 600;
}
.portal-brand .tag {
  font-size: 0.78rem;
  color: var(--text-dim);
}
.portal-agent {
  display: flex;
  align-items: center;
  gap: 10px;
}
.agent-photo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface3);
  border: 1px dashed var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.58rem;
  color: var(--text-dim);
  text-align: center;
  line-height: 1.1;
  font-style: italic;
}
.agent-meta {
  text-align: right;
  font-size: 0.82rem;
}
.agent-meta .label { color: var(--text-dim); }
.agent-meta .who { color: var(--amber-light); font-weight: 500; }

/* Portal body — split into 2D-feeling sections. */
.portal-body { padding: 24px; }

.portal-greeting {
  font-family: 'Fraunces', serif;
  font-size: 1.25rem;
  color: var(--amber-light);
  margin-bottom: 4px;
}
.portal-greeting-sub {
  color: var(--text-dim);
  font-size: 0.92rem;
  margin-bottom: 22px;
}

/* Section heading inside the mock */
.section-h {
  font-family: 'Fraunces', serif;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--amber);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 24px 0 12px;
}

/* Saved properties grid — 2 mocked depas. */
.props-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.prop-card {
  background: var(--surface);
  border: 1px solid var(--surface3);
  border-radius: 14px;
  padding: 16px;
}
.prop-card h4 {
  font-family: 'Fraunces', serif;
  font-size: 1rem;
  color: var(--amber-light);
  margin-bottom: 4px;
}
.prop-card .colonia { font-size: 0.82rem; color: var(--text-dim); margin-bottom: 12px; }
.prop-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; font-size: 0.78rem; }
.prop-stat .lbl { color: var(--text-dim); font-size: 0.7rem; }
.prop-stat .val { color: var(--amber-light); font-weight: 600; font-size: 0.88rem; }
.prop-status {
  display: inline-block;
  margin-top: 12px;
  padding: 3px 8px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
}
.prop-status.green { background: rgba(122, 192, 122, 0.14); color: var(--green); }
.prop-status.yellow { background: rgba(214, 177, 74, 0.14); color: var(--yellow); }

/* Comparison table mock — side by side. */
.cmp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  background: var(--surface);
  border-radius: 12px;
  overflow: hidden;
}
.cmp-table thead { background: var(--surface2); }
.cmp-table th, .cmp-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--surface3);
}
.cmp-table th {
  font-family: 'Fraunces', serif;
  font-size: 0.86rem;
  color: var(--amber);
  font-weight: 600;
}
.cmp-table tbody tr:last-child td { border-bottom: none; }
.cmp-table .feat { color: var(--text-dim); }
.cmp-table .val { color: var(--amber-light); font-weight: 500; }
@media (max-width: 600px) {
  .cmp-table { font-size: 0.78rem; }
  .cmp-table th, .cmp-table td { padding: 8px 10px; }
}

/* Mock messages — agent → client. */
.msg-list {
  background: var(--surface);
  border: 1px solid var(--surface3);
  border-radius: 12px;
  padding: 4px 0;
}
.msg {
  padding: 14px 18px;
  border-bottom: 1px solid var(--surface3);
}
.msg:last-child { border-bottom: none; }
.msg .meta { font-size: 0.78rem; color: var(--text-dim); margin-bottom: 4px; }
.msg .meta strong { color: var(--amber); font-weight: 600; }
.msg .body { color: var(--text); font-size: 0.94rem; }

/* Mock plusvalía chart — pure CSS, no JS. Bars represent quarterly delta. */
.plusvalia-card {
  background: var(--surface);
  border: 1px solid var(--surface3);
  border-radius: 12px;
  padding: 20px;
}
.plusvalia-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}
.plusvalia-title {
  font-family: 'Fraunces', serif;
  font-size: 0.96rem;
  color: var(--amber-light);
}
.plusvalia-delta {
  color: var(--green);
  font-weight: 600;
  font-size: 0.92rem;
}
.bars {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 6px;
  align-items: end;
  height: 100px;
}
.bar {
  background: linear-gradient(180deg, var(--amber) 0%, rgba(201, 168, 76, 0.4) 100%);
  border-radius: 3px;
  min-height: 6px;
  position: relative;
}
/* D.5 inline-style migration (2026-05-29) — static demo chart bar heights */
.bar-h-34 { height: 34%; }
.bar-h-42 { height: 42%; }
.bar-h-38 { height: 38%; }
.bar-h-51 { height: 51%; }
.bar-h-60 { height: 60%; }
.bar-h-56 { height: 56%; }
.bar-h-71 { height: 71%; }
.bar-h-84 { height: 84%; }
.bar-lbls {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 6px;
  margin-top: 6px;
  font-size: 0.68rem;
  color: var(--text-dim);
  text-align: center;
}
.plusvalia-note {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 10px;
  font-style: italic;
}

/* The "¿Quieres probarlo?" CTA below the demo. */
.below-cta {
  background: var(--surface);
  border: 1px solid var(--amber);
  border-radius: 16px;
  padding: 32px 36px;
  margin: 8px 0 48px;
  text-align: center;
}
.below-cta h2 {
  font-family: 'Fraunces', serif;
  font-size: 1.6rem;
  color: var(--amber-light);
  margin-bottom: 8px;
}
.below-cta p {
  color: var(--text-dim);
  max-width: 540px;
  margin: 0 auto 22px;
  font-size: 0.96rem;
}
.below-cta .cta-btn {
  display: inline-block;
  background: var(--gold);
  color: #000;
  padding: 14px 30px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
}
.below-cta .cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(201, 168, 76, 0.2);
}
.below-cta .secondary {
  display: block;
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--text-dim);
}
.below-cta .secondary a { color: var(--amber); text-decoration: underline; text-underline-offset: 2px; }

/* Footer */
footer {
  border-top: 1px solid var(--surface3);
  padding: 32px 0;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.82rem;
}
footer .links { margin-bottom: 12px; }
footer .links a { color: var(--amber); text-decoration: none; }
footer .links a:hover { text-decoration: underline; text-underline-offset: 2px; }
footer .credit a { color: var(--amber); text-decoration: underline; text-underline-offset: 2px; }
