/* MATI CRM — map page, calm light theme. Drop-in replacement for radial-v6.css (styles only). */
body{background:var(--bg);color:var(--ink)}

/* top bar */
.radial-top{display:flex;align-items:center;gap:20px;justify-content:space-between;max-width:1100px;margin:18px auto 0;padding:10px 12px 10px 22px;background:var(--paper);border:1px solid var(--line);border-radius:999px;box-shadow:var(--shadow)}
.radial-top .small{margin-right:auto;padding-left:14px;border-left:1px solid var(--line-2)}
.wordmark{text-decoration:none}

/* intro */
.radial-section{max-width:1100px;margin:44px auto 0;padding:0 25px;text-align:center}
.mati-intro{display:flex;justify-content:center;align-items:center;gap:18px}
.mati-intro>img{width:64px;height:64px;object-fit:cover;border-radius:50%;border:3px solid var(--paper);box-shadow:0 0 0 1px var(--line-2),0 6px 18px -8px #1a181240}
.mati-intro .eyebrow{text-align:left;margin-bottom:6px}
.radial-section h1,.mati-intro h1{font-size:44px;line-height:1.04;letter-spacing:-.045em;margin-bottom:0;text-align:left}
.radial-section h1 br{display:none}
.radial-section h1 em{font-style:normal;color:var(--muted);margin-left:.2em}
.radial-section>p.muted{margin-top:16px;font-size:15px}
.radial-cta{display:flex;justify-content:center;gap:10px;margin:22px 0 8px}

/* map */
.mindmap{position:relative;aspect-ratio:1200/740;width:100%;max-width:820px;margin:18px auto 0;background:var(--paper);border:1px solid var(--line);border-radius:28px;box-shadow:var(--shadow);
  background-image:radial-gradient(circle,#d9d7d0 1px,transparent 1.2px);background-size:22px 22px;background-position:center}
.mindmap svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
#connections,.mindmap path{stroke:#cfccc4;stroke-width:1.5}
.mindmap path{stroke-linecap:round;stroke-dasharray:3 5}

.hub{position:absolute;left:40%;top:40%;width:20%;height:24%;border:0;border-radius:50%;background:var(--ink);color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;box-shadow:0 0 0 8px #17171a0d,0 14px 30px -10px #17171a66;z-index:2;transition:transform .2s}
.hub:hover{transform:scale(1.03)}
.hub-portrait{height:36px;width:36px;border-radius:50%;object-fit:cover;border:2px solid #ffffff30;margin-bottom:4px}
.hub strong{font-size:19px;font-weight:600;letter-spacing:-.03em}
.hub span:not(.hub-symbol){font-size:9px;color:#a9a8a4}
.hub small{display:block;font-size:8px;margin-top:5px;color:#a9a8a4;max-width:62%;line-height:1.3;text-align:center}
.hub:hover small{color:#fff}

.branch-node{position:absolute;width:20%;min-height:15%;padding:10px 12px;border:1px solid var(--line);border-radius:14px;background:#fff;color:var(--ink);text-align:left;z-index:2;box-shadow:0 1px 2px #1a18120d,0 6px 16px -10px #1a181233;transition:transform .18s,border-color .18s,box-shadow .18s}
.branch-node:hover{transform:translateY(-2px);border-color:var(--line-2);box-shadow:0 1px 2px #1a18120d,0 12px 24px -12px #1a181244}
.branch-node.active{border-color:var(--ink);box-shadow:0 0 0 1px var(--ink),0 12px 24px -12px #1a181244}
.branch-node.active::after{content:'';position:absolute;top:10px;right:10px;width:7px;height:7px;border-radius:50%;background:var(--accent)}
.branch-node .head{display:flex;gap:8px;align-items:center}
.branch-node strong{font-size:13px;font-weight:600;letter-spacing:-.01em;display:block}
.branch-node p{font-size:10px;color:var(--muted);margin-top:6px;line-height:1.4}
.branch-node img{width:24px;height:24px;object-fit:contain;background:#fff;border:1px solid var(--line);border-radius:7px;padding:3px}
.branch-node img[src*=equipo]{background:var(--sunk)}
.branch-node .symbol{width:24px;height:24px;border-radius:7px;background:var(--sunk);color:var(--ink-2);display:grid;place-items:center;font-size:14px}

.radial-note{font-size:12px;color:var(--muted);margin-top:14px}

/* detail card */
.radial-detail{max-width:1050px;margin:28px auto 0;padding:28px;background:var(--paper);border:1px solid var(--line);border-radius:24px;box-shadow:var(--shadow);display:grid;grid-template-columns:1.1fr 1fr;gap:28px;align-items:start}
.radial-detail h2{font-size:28px;margin:10px 0 12px;letter-spacing:-.035em}
.radial-detail p{color:var(--ink-2);margin-bottom:18px;max-width:46ch}
.radial-detail .mock{background:var(--sunk);box-shadow:none}
.radial-detail .mockbody{background:#fff;border-radius:0 0 var(--r-md) var(--r-md)}
.radial-detail .eyebrow{display:flex;align-items:center;gap:8px;color:var(--ink-2);font-weight:500}
.radial-detail .eyebrow img{width:24px;height:24px;object-fit:contain;border-radius:7px;background:#fff;border:1px solid var(--line);padding:3px}
.radial-footer{max-width:1050px;margin:18px auto 40px;color:var(--muted);font-size:11px;text-align:center}

@media(prefers-reduced-motion:reduce){.hub,.branch-node{transition:none}}
@media(max-width:700px){
  .radial-top{margin:10px;padding:8px 8px 8px 16px;gap:10px}.radial-top .small{display:none}
  .radial-section{padding:0 12px;margin-top:28px}
  .mati-intro>img{width:48px;height:48px}
  .radial-section h1,.mati-intro h1{font-size:26px}
  .radial-cta .btn{font-size:12px;padding:8px 12px}
  .mindmap{min-height:350px;aspect-ratio:1200/900;border-radius:20px}
  .mindmap svg{height:100%}
  .branch-node{padding:6px;border-radius:10px;min-height:16%}
  .branch-node .head{gap:4px}
  .branch-node img,.branch-node .symbol{width:18px;height:18px;font-size:11px;padding:2px}
  .branch-node strong{font-size:10px}.branch-node p{font-size:8px;margin-top:3px}
  .branch-node.active::after{top:6px;right:6px;width:5px;height:5px}
  .hub{top:40%;height:24%;box-shadow:0 0 0 5px #17171a0d}
  .hub-portrait{width:22px;height:22px}.hub strong{font-size:13px}.hub small{display:none}
  .radial-detail{display:block;margin:20px 12px;padding:20px}
  .radial-detail .mock{margin-top:20px}
  .radial-detail h2{font-size:24px}
  .radial-note{font-size:11px}
  .radial-footer{margin:20px 15px}
}

/* ---- v8.1: warmth & life ---- */
.radial-section h1 em{background:linear-gradient(90deg,#e2703f,#b46c9a 55%,#8d84d8);-webkit-background-clip:text;background-clip:text;color:transparent}
.hub{background:var(--glow);box-shadow:0 0 0 8px #ffffff80,0 0 0 9px var(--line-2),0 18px 40px -14px #e2703f88}
.hub span:not(.hub-symbol),.hub small{color:#e7e2dc}
.branch-node[data-branch="5"] .symbol{background:var(--lilac-soft);color:#5d56a0}
.branch-node[data-branch="6"] .symbol{background:var(--accent-soft);color:#b8531f}
.branch-node[data-branch="7"] .symbol{background:var(--ok-soft);color:var(--ok)}
.mindmap path{transition:stroke .25s,stroke-width .25s}
.mindmap:has([data-branch="0"].active) #connections path:nth-child(1){stroke:var(--accent);stroke-width:2.2;stroke-dasharray:6 6;animation:wire 1.4s linear infinite}
.mindmap:has([data-branch="1"].active) #connections path:nth-child(2){stroke:var(--accent);stroke-width:2.2;stroke-dasharray:6 6;animation:wire 1.4s linear infinite}
.mindmap:has([data-branch="2"].active) #connections path:nth-child(3){stroke:var(--accent);stroke-width:2.2;stroke-dasharray:6 6;animation:wire 1.4s linear infinite}
.mindmap:has([data-branch="3"].active) #connections path:nth-child(4){stroke:var(--accent);stroke-width:2.2;stroke-dasharray:6 6;animation:wire 1.4s linear infinite}
.mindmap:has([data-branch="4"].active) #connections path:nth-child(5){stroke:var(--accent);stroke-width:2.2;stroke-dasharray:6 6;animation:wire 1.4s linear infinite}
.mindmap:has([data-branch="5"].active) #connections path:nth-child(6){stroke:var(--accent);stroke-width:2.2;stroke-dasharray:6 6;animation:wire 1.4s linear infinite}
.mindmap:has([data-branch="6"].active) #connections path:nth-child(7){stroke:var(--accent);stroke-width:2.2;stroke-dasharray:6 6;animation:wire 1.4s linear infinite}
.mindmap:has([data-branch="7"].active) #connections path:nth-child(8){stroke:var(--accent);stroke-width:2.2;stroke-dasharray:6 6;animation:wire 1.4s linear infinite}
@keyframes wire{to{stroke-dashoffset:-24}}
.radial-detail{position:relative;overflow:hidden}
.radial-detail::before{content:'';position:absolute;width:340px;height:340px;right:-120px;top:-160px;border-radius:50%;background:radial-gradient(circle,#f7dcc8,transparent 65%);pointer-events:none}
.radial-detail>*{position:relative}
@media(prefers-reduced-motion:reduce){.mindmap path{animation:none!important}}
