/* Portal de Propietarios — GDS Business Solutions
   Extraído de portal-deploy.html (antes estaba en <style> inline) */

:root{
  --navy:#102137;
  --ocre:#CE8769;
  --navy-dark:#0A1522;
  --gray-dark:#2E3440;
  --gray-mid:#5B6472;
  --gray-light:#F0F2F5;
  --off-white:#F7F8FA;
  --white:#FFFFFF;
  --ocre-tint:#FBEFE9;
  --green:#2F8F5B;
  --green-tint:#EAF6EF;
  --line: rgba(18,34,54,0.12);
  --line-strong: rgba(18,34,54,0.22);
  --shadow-lg: 0 30px 60px -24px rgba(10,21,34,0.35);
  --shadow-card: 0 24px 48px -20px rgba(10,21,34,0.28);
  --font: "Segoe UI", "Source Sans 3", -apple-system, system-ui, sans-serif;
}
*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
@media (prefers-reduced-motion: reduce){ *{animation-duration:.001ms !important; transition-duration:.001ms !important;} }
body{ margin:0; font-family:var(--font); color:var(--gray-mid); background:var(--off-white); line-height:1.55; -webkit-font-smoothing:antialiased; }
h1,h2,h3,h4{ margin:0; color:var(--navy); font-family:var(--font); }
:focus-visible{ outline:3px solid var(--ocre); outline-offset:2px; }
a{ color:var(--ocre); }
button{ font-family:var(--font); }

/* ---------- Top bar ---------- */
.portal-header{
  background:var(--navy); color:#fff; padding:16px 5%;
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  position:sticky; top:0; z-index:20; box-shadow:0 6px 20px rgba(10,21,34,.18);
}
.ph-left{ display:flex; align-items:center; gap:14px; }
.ph-logo{ height:22px; filter:brightness(0) invert(1); opacity:.95; }
.ph-divider{ width:1px; height:22px; background:rgba(255,255,255,.2); }
.ph-association{ font-size:13px; }
.ph-association strong{ display:block; font-size:14.5px; font-weight:800; color:#fff; }
.ph-association span{ color:rgba(255,255,255,.6); font-size:11.5px; }
.ph-right{ display:flex; align-items:center; gap:18px; }
.ph-user{ display:flex; align-items:center; gap:9px; font-size:13px; }
.ph-avatar{ width:30px; height:30px; border-radius:50%; background:var(--ocre); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:800; font-size:12px; }
.ph-logout{ display:flex; align-items:center; gap:6px; background:transparent; border:1px solid rgba(255,255,255,.25); color:rgba(255,255,255,.85); font-size:11.5px; font-weight:700; letter-spacing:.03em; text-transform:uppercase; padding:8px 13px; border-radius:4px; cursor:pointer; transition:all .15s ease; }
.ph-logout:hover{ border-color:#fff; color:#fff; }
.ph-logout svg{ width:13px; height:13px; }

/* ---------- Language toggle (dark header variant) ---------- */
.lang-toggle{ position:relative; display:flex; background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.25); border-radius:3px; padding:3px; }
.lang-toggle button{ position:relative; z-index:2; border:none; background:transparent; cursor:pointer; font-family:var(--font); font-size:11px; font-weight:700; letter-spacing:.05em; padding:6px 11px; color:rgba(255,255,255,.65); border-radius:2px; transition:color .2s ease; }
.lang-toggle button.active{ color:var(--navy); }
.lang-toggle .slider{ position:absolute; top:3px; bottom:3px; left:3px; width:calc(50% - 3px); background:var(--ocre); border-radius:2px; z-index:1; transition:transform .25s cubic-bezier(.65,0,.35,1); }
.lang-toggle[data-active="es"] .slider{ transform:translateX(100%); }

/* ---------- Layout ---------- */
.portal-main{ max-width:1180px; margin:0 auto; padding:36px 5% 70px; }
.pm-heading{ display:flex; align-items:flex-end; justify-content:space-between; gap:16px; margin-bottom:26px; flex-wrap:wrap; }
.pm-heading .eyebrow{ font-size:12px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--ocre); display:block; margin-bottom:6px; }
.pm-heading h1{ font-size:26px; font-weight:800; }
.pm-period{ font-size:12.5px; color:var(--gray-mid); background:var(--white); border:1px solid var(--line); padding:9px 14px; border-radius:5px; display:flex; align-items:center; gap:8px; }
.pm-period strong{ color:var(--navy); }

/* ---------- Summary cards ---------- */
.summary-grid{ display:grid; grid-template-columns:repeat(3, 1fr); gap:18px; margin-bottom:30px; }
.summary-card{ background:var(--white); border:1px solid var(--line); border-radius:8px; padding:22px 22px 20px; box-shadow:var(--shadow-card); position:relative; overflow:hidden; }
.summary-card::before{ content:""; position:absolute; left:0; top:0; bottom:0; width:4px; background:var(--ocre); }
.summary-card.is-reserve::before{ background:var(--navy); }
.summary-card.is-net::before{ background:var(--green); }
.sc-label{ font-size:11.5px; font-weight:700; letter-spacing:.05em; text-transform:uppercase; color:var(--gray-mid); margin-bottom:10px; }
.sc-value{ font-size:26px; font-weight:800; color:var(--navy); margin-bottom:8px; letter-spacing:-.01em; }
.sc-trend{ font-size:12px; display:flex; align-items:center; gap:5px; font-weight:600; }
.sc-trend.up{ color:var(--green); }
.sc-trend.down{ color:#B4423C; }
.sc-trend svg{ width:12px; height:12px; }

/* ---------- Two-column body ---------- */
.portal-grid{ display:grid; grid-template-columns:1.35fr 1fr; gap:22px; align-items:start; }
@media (max-width:900px){ .portal-grid{ grid-template-columns:1fr; } .summary-grid{ grid-template-columns:1fr; } }

.panel{ background:var(--white); border:1px solid var(--line); border-radius:8px; box-shadow:var(--shadow-card); margin-bottom:22px; }
.panel-head{ padding:18px 22px; border-bottom:1px solid var(--line); display:flex; align-items:center; justify-content:space-between; }
.panel-head h3{ font-size:15px; font-weight:800; }
.panel-head .ph-note{ font-size:11.5px; color:var(--gray-mid); }
.panel-body{ padding:8px 10px 14px; }

/* Statement list */
.stmt-row{ display:flex; align-items:center; gap:14px; padding:13px 12px; border-radius:6px; transition:background .15s ease; }
.stmt-row:hover{ background:var(--off-white); }
.stmt-icon{ width:36px; height:36px; border-radius:6px; background:var(--ocre-tint); color:var(--ocre); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.stmt-icon svg{ width:17px; height:17px; }
.stmt-info{ flex:1; min-width:0; }
.stmt-info strong{ display:block; font-size:13.5px; color:var(--navy); font-weight:700; }
.stmt-info span{ font-size:11.5px; color:var(--gray-mid); }
.stmt-dl{ display:flex; align-items:center; gap:6px; font-size:11.5px; font-weight:700; color:var(--navy); text-decoration:none; border:1px solid var(--line-strong); padding:7px 12px; border-radius:4px; white-space:nowrap; transition:all .15s ease; }
.stmt-dl:hover{ border-color:var(--ocre); color:var(--ocre); }
.stmt-dl svg{ width:13px; height:13px; }

/* Budget vs actual chart */
.chart-wrap{ padding:18px 22px 6px; }
.chart-legend{ display:flex; gap:18px; margin-bottom:14px; font-size:11.5px; color:var(--gray-mid); }
.chart-legend span{ display:flex; align-items:center; gap:6px; }
.dot{ width:9px; height:9px; border-radius:2px; display:inline-block; }
.dot.budget{ background:var(--gray-light); border:1px solid var(--line-strong); }
.dot.actual{ background:var(--ocre); }
.bars{ display:flex; align-items:flex-end; gap:16px; height:150px; }
.bar-group{ flex:1; display:flex; align-items:flex-end; justify-content:center; gap:4px; height:100%; position:relative; }
.bar{ width:14px; border-radius:3px 3px 0 0; }
.bar.budget{ background:var(--gray-light); border:1px solid var(--line-strong); border-bottom:none; }
.bar.actual{ background:var(--ocre); }
.bar-labels{ display:flex; gap:16px; margin-top:8px; }
.bar-labels span{ flex:1; text-align:center; font-size:10.5px; color:var(--gray-mid); font-weight:600; }

/* Contact card */
.contact-card{ padding:20px 22px 22px; text-align:center; }
.cc-avatar{ width:58px; height:58px; border-radius:50%; background:var(--navy); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:800; font-size:18px; margin:0 auto 12px; }
.contact-card h4{ font-size:14.5px; font-weight:800; }
.contact-card .role{ font-size:11.5px; color:var(--ocre); font-weight:700; text-transform:uppercase; letter-spacing:.04em; margin:3px 0 14px; }
.cc-row{ display:flex; align-items:center; gap:10px; font-size:12.5px; color:var(--gray-mid); padding:9px 4px; border-top:1px solid var(--line); text-align:left; }
.cc-row:first-of-type{ border-top:none; }
.cc-row svg{ width:14px; height:14px; stroke:var(--ocre); flex-shrink:0; }
.cc-row a{ color:var(--gray-mid); text-decoration:none; }
.cc-row a:hover{ color:var(--ocre); }

/* Association info footer inside panel */
.assoc-meta{ display:flex; flex-wrap:wrap; gap:0; }
.assoc-meta .am-item{ flex:1 1 33%; padding:16px 22px; border-top:1px solid var(--line); }
.assoc-meta .am-item:nth-child(-n+3){ border-top:none; }
.am-item span{ display:block; font-size:11px; text-transform:uppercase; letter-spacing:.04em; color:var(--gray-mid); margin-bottom:4px; }
.am-item strong{ font-size:13.5px; color:var(--navy); }

@media (max-width:600px){
  .ph-association{ display:none; }
  .assoc-meta .am-item{ flex:1 1 50%; }
}