:root{--smv-org-blue:#2560AB;--smv-org-blue-dark:#113C72;--smv-org-line:#bababa;--smv-org-text:#0a2858;--smv-org-green:#497A41}
.smv-org-page .entry-title,.smv-org-page .wp-block-post-title{display:none!important}.smv-org-page .entry-content{max-width:none!important;width:100%!important;margin:0!important;padding:0!important}.smv-org-page .smv-page-content{padding-top:0!important}.smv-org-page .site-content,.smv-org-page .content-area,.smv-org-page main{max-width:none!important;width:100%!important}
.smv-org-bleed{width:min(1260px,calc(100vw - 24px));max-width:1260px;margin-left:50%;margin-right:0;transform:translateX(-50%);background:#fff;padding:0;overflow:visible}
.smv-org{font-family:'Roboto Condensed','Arial Narrow',Arial,sans-serif;color:#111;width:100%;max-width:1260px!important;margin:0 auto;background:#fff}.smv-org *{box-sizing:border-box}.smv-org-frame{width:100%;margin:0 auto;background:#fff;box-shadow:none}
.smv-org-content{width:100%;background:#fff;padding:18px clamp(18px,3vw,52px) 26px}.smv-org-title{margin:0 0 10px;color:#0a2858;font-size:30px;line-height:1.08;font-weight:700;letter-spacing:0}.smv-org-intro{padding:0 0 11px;border-bottom:1px solid #eceff3}.smv-org-intro strong{display:block;font-size:15px;margin-bottom:3px;color:#111}.smv-org-intro p{margin:3px 0;font-size:13px;line-height:1.32}.smv-org-intro__notice{font-weight:700}.smv-org-layout{display:grid;grid-template-columns:minmax(0,1fr) 220px;gap:20px;align-items:start;padding-top:14px}.smv-org-layout--no-sidebar{grid-template-columns:1fr}.smv-org-chart-wrap{min-width:0;width:100%;border:0;background:#EEEEDD;box-shadow:none}.smv-org-tree-scroll{position:relative;overflow:auto;padding:34px 42px 42px 34px;height:clamp(540px,64vh,700px);min-height:540px;cursor:grab;overscroll-behavior:contain;scrollbar-width:none;-ms-overflow-style:none;touch-action:pan-x pan-y;background:#EEEEDD}.smv-org-tree-scroll::-webkit-scrollbar{display:none}.smv-org-tree-scroll.is-dragging{cursor:grabbing;user-select:none}.smv-org-tree-scroll.is-dragging *{user-select:none}.smv-org-tree{min-width:1080px;display:flex;justify-content:center}.smv-org-tree ul{padding-top:28px;position:relative;display:flex;justify-content:center;margin:0;padding-left:0}.smv-org-tree li{list-style:none;text-align:center;position:relative;padding:28px 8px 0}.smv-org-tree li::before,.smv-org-tree li::after{content:'';position:absolute;top:0;right:50%;border-top:1px solid var(--smv-org-line);width:50%;height:28px}.smv-org-tree li::after{right:auto;left:50%;border-left:1px solid var(--smv-org-line)}.smv-org-tree li:only-child::before,.smv-org-tree li:only-child::after{display:none}.smv-org-tree li:only-child{padding-top:0}.smv-org-tree li:first-child::before,.smv-org-tree li:last-child::after{border:0}.smv-org-tree li:last-child::before{border-right:1px solid var(--smv-org-line);border-radius:0 5px 0 0}.smv-org-tree li:first-child::after{border-radius:5px 0 0 0}.smv-org-tree ul ul::before{content:'';position:absolute;top:0;left:50%;border-left:1px solid var(--smv-org-line);width:0;height:28px}
.smv-org-node{width:150px;min-height:62px;margin:0 auto;position:relative;display:flex;align-items:center;justify-content:center;padding:17px 9px 11px;background:linear-gradient(180deg,#d9d9d9 0%,#ededed 15%,#fff 38%);border:1px solid #bababa;border-radius:10px;color:var(--smv-org-blue);font-weight:700;font-size:12px;line-height:1.08;text-transform:uppercase;box-shadow:0 1px 0 rgba(0,0,0,.03);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}.smv-org-node__cap{position:absolute;left:8px;right:8px;top:-10px;height:15px;border-radius:4px 4px 1px 1px;background:linear-gradient(180deg,#358eff,#2560ab)}.smv-org-node__cap:before,.smv-org-node__cap:after{content:'';position:absolute;top:4px;width:12px;height:6px;background:linear-gradient(0deg,#052c5e,#2560ab)}.smv-org-node__cap:before{left:-8px;clip-path:polygon(100% 0,0 50%,100% 100%)}.smv-org-node__cap:after{right:-8px;clip-path:polygon(0 0,100% 50%,0 100%)}.smv-org-node__foot{position:absolute;width:72%;height:12px;left:14%;bottom:-7px;border-radius:0 0 6px 6px;background:linear-gradient(180deg,#113c72 50%,#2560ab 68%)}.smv-org-node--board .smv-org-node__cap{background:linear-gradient(180deg,#b535ff,#7125ab)}.smv-org-node--board .smv-org-node__foot{background:linear-gradient(180deg,#5e0980,#8525ab)}.smv-org-node--superintendent .smv-org-node__cap{background:linear-gradient(180deg,#ff35ae,#b51e79)}.smv-org-node--superintendent .smv-org-node__foot{background:linear-gradient(180deg,#ad1c73,#ff35ae)}.smv-org-node--advisory .smv-org-node__cap{background:linear-gradient(180deg,#acd3ff,#60abff)}.smv-org-node--advisory .smv-org-node__foot{background:linear-gradient(180deg,#568ecd,#acd3ff)}.smv-org-node--neutral .smv-org-node__cap,.smv-org-node--neutral .smv-org-node__foot{background:linear-gradient(180deg,#aaa,#777)}.smv-org-node.is-clickable{cursor:pointer}.smv-org-node.is-clickable:hover,.smv-org-node.is-clickable:focus{outline:0;border-color:var(--smv-org-blue);transform:translateY(-2px);box-shadow:0 7px 18px rgba(37,96,171,.16)}.smv-org-branch-toggle{display:none}.smv-org-mobile-help{display:none}
.smv-org-directory{position:sticky;top:24px}.smv-org-directory h3{margin:0 0 12px;color:#063b91;font-size:19px}.smv-org-directory nav{display:flex;flex-direction:column}.smv-org-directory a{display:block;padding:10px 14px;background:#f7f7f7;border-bottom:1px solid #d6d9dd;color:#064ac8;text-decoration:none;font-size:13px;line-height:1.25}.smv-org-directory a.is-current{background:#1855c6;color:#fff;font-weight:700}.smv-org-directory a:hover{background:#eef4ff}.smv-org-directory a.is-current:hover{background:#164daf}

.smv-org-modal{position:fixed;inset:0;z-index:999999;display:none;align-items:center;justify-content:center;padding:20px}.smv-org-modal[aria-hidden="false"]{display:flex}.smv-org-modal__backdrop{position:absolute;inset:0;background:rgba(5,22,49,.56);backdrop-filter:blur(2px)}.smv-org-modal__dialog{position:relative;z-index:1;width:min(820px,94vw);height:min(430px,86vh);min-height:360px;overflow:hidden;background:#D9D9D9;border:0;box-shadow:0 14px 38px rgba(0,0,0,.28);display:grid;grid-template-columns:286px minmax(0,1fr);padding:14px;gap:14px}.smv-org-modal__close{position:absolute;right:6px;top:5px;z-index:8;width:22px;height:22px;border:0;border-radius:50%;background:#111;color:#fff;font-size:16px;font-weight:700;line-height:20px;padding:0;cursor:pointer;box-shadow:0 2px 5px rgba(0,0,0,.18)}
.smv-org-profile-card{background:#fff;border:1px solid #58a8ef;border-radius:2px;padding:0;text-align:center;align-self:stretch;overflow:hidden;display:flex;flex-direction:column;min-width:0}.smv-org-profile-card__photo{min-height:185px;display:flex;align-items:center;justify-content:center;background:linear-gradient(180deg,#eef6ff 0%,#d8e8fb 8%,#2d69b3 27%,#2560ab 74%,#0f3e79 100%);padding:20px 0 18px;border-top:16px solid transparent;border-image:linear-gradient(180deg,#fff 0%,#2560ab 80%,#0f3e79 100%) 1}.smv-org-profile-card__photo img{width:138px;height:138px;object-fit:cover;border-radius:50%;border:5px solid #fff;box-shadow:0 2px 7px rgba(0,0,0,.18)}.smv-org-profile-card__body{background:#fff;padding:16px 12px 18px;min-height:96px;display:flex;flex-direction:column;justify-content:center}.smv-org-profile-card h3{font-size:14px;line-height:1.15;color:#2560ab;text-transform:uppercase;margin:0 0 5px;font-weight:700}.smv-org-profile-card p,.smv-org-profile-card__role{margin:0;font-size:13px;line-height:1.18;font-weight:700;text-transform:uppercase;color:#111}.smv-org-profile-card--no-photo{background:#fff;justify-content:center}.smv-org-profile-card--no-photo .smv-org-profile-card__body{min-height:100%;padding:28px 18px}.smv-org-profile-copy{min-width:0;height:100%;overflow-y:auto;overflow-x:hidden;padding:24px 22px 26px 18px;background:#f3f3f3;scrollbar-width:thin;scrollbar-color:#2560ab #e2e2e2}.smv-org-profile-copy::-webkit-scrollbar{width:7px}.smv-org-profile-copy::-webkit-scrollbar-track{background:#e2e2e2;border-radius:6px}.smv-org-profile-copy::-webkit-scrollbar-thumb{background:#2560ab;border-radius:6px}.smv-org-profile-copy section+section{margin-top:26px}.smv-org-profile-copy h4{font-size:18px;line-height:1.1;margin:0 0 10px;font-weight:700;color:#111}.smv-org-profile-copy p,.smv-org-profile-copy li{font-size:13px;line-height:1.38;margin:0 0 8px;color:#111}.smv-org-profile-copy a{color:#2560ab}.smv-org-profile-copy--board{grid-column:1/-1;background:#f3f3f3;padding:24px 28px;overflow-y:auto}.smv-org-board-section h3{font-size:20px;margin:0 0 16px;color:#111}.smv-org-board-section h4{font-size:16px}.smv-org-modal--board .smv-org-modal__dialog{width:min(820px,94vw);height:auto;max-height:78vh;display:block;padding:16px;background:#D9D9D9}.smv-org-modal--board .smv-org-profile-copy--board{max-height:calc(78vh - 32px)}
.smv-org-empty{padding:14px;border:1px solid #e0c36c;background:#fff8dc}.smv-org--directory-only{max-width:300px}.smv-org-modal-open{overflow:hidden}
@media(max-width:1100px){.smv-org-content{padding:16px 22px 24px}.smv-org-layout{grid-template-columns:minmax(0,1fr) 190px;gap:16px}.smv-org-title{font-size:28px;margin-bottom:8px}.smv-org-tree-scroll{padding:22px 30px 30px 18px;height:clamp(500px,60vh,630px)}}
@media(max-width:900px){.smv-org-bleed{width:min(100%,calc(100vw - 16px))}.smv-org-layout{grid-template-columns:1fr}.smv-org-directory{position:static;order:-1}.smv-org-directory nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.smv-org-tree-scroll{padding:26px 14px 34px;min-height:560px}.smv-org-tree{min-width:900px}.smv-org-title{font-size:26px}}
@media(max-width:700px){.smv-org-bleed{width:100%;max-width:100%;margin-left:0;transform:none;padding:0;background:#fff}.smv-org{width:100%;background:#fff}.smv-org-frame{width:100%;box-shadow:none}.smv-org-content{padding:16px 12px 18px}.smv-org-title{font-size:23px;margin-bottom:8px}.smv-org-intro{padding:0 2px 10px}.smv-org-intro strong{font-size:15px}.smv-org-intro p{font-size:13px;line-height:1.35}.smv-org-directory nav{grid-template-columns:1fr}.smv-org-mobile-help{display:block;padding:10px 12px;background:#eef5fd;color:#164b87;font-size:13px;border-bottom:1px solid #dbe6f1}.smv-org-tree-scroll{overflow:visible;padding:12px;min-height:0;cursor:default;touch-action:auto}.smv-org-tree{min-width:0;display:block}.smv-org-tree ul,.smv-org-tree ul ul{display:block;padding:0;margin:0}.smv-org-tree ul::before,.smv-org-tree li::before,.smv-org-tree li::after{display:none!important}.smv-org-tree li{padding:0 0 8px 16px;text-align:left}.smv-org-tree-level--0>.smv-org-tree-item{padding-left:0}.smv-org-tree-level--1{margin-left:9px!important;border-left:2px solid #d5e3f1}.smv-org-tree-level--2,.smv-org-tree-level--3,.smv-org-tree-level--4,.smv-org-tree-level--5{margin-left:11px!important;border-left:1px solid #e0e5eb}.smv-org-node{width:100%;min-height:50px;margin:0;justify-content:flex-start;text-align:left;padding:12px 44px 12px 18px;border-radius:6px;font-size:12px}.smv-org-node__cap{left:0;top:0;bottom:0;width:7px;height:auto;right:auto;border-radius:6px 0 0 6px}.smv-org-node__cap:before,.smv-org-node__cap:after,.smv-org-node__foot{display:none}.smv-org-branch-toggle{display:grid;place-items:center;position:absolute;right:8px;top:50%;transform:translateY(-50%);width:28px;height:28px;border:1px solid #c7d8eb;border-radius:50%;background:#fff;color:#2560ab;font-size:19px;line-height:1;cursor:pointer}.smv-org-tree-item.is-collapsed>.smv-org-tree-level{display:none}.smv-org-modal{padding:10px}.smv-org-modal__dialog{grid-template-columns:1fr;width:min(96vw,560px);height:min(88vh,720px);max-height:88vh;padding:10px;gap:10px}.smv-org-profile-card{max-height:275px}.smv-org-profile-card__photo{min-height:145px;padding:12px 0 10px}.smv-org-profile-card__photo img{width:112px;height:112px}.smv-org-profile-card__body{min-height:82px;padding:12px}.smv-org-profile-copy{padding:18px;min-height:0}.smv-org-directory h3{font-size:18px}.smv-org-directory a{font-size:14px;padding:10px 14px}}

/* v1.2.4 - Navegador profesional, zoom y pan horizontal/vertical */
.smv-org-explorer{position:relative;width:100%;background:#fff;border:1px solid #dde3ea;border-radius:6px;overflow:hidden;box-shadow:0 8px 22px rgba(17,60,114,.06)}
.smv-org-tree-scroll{position:relative;height:clamp(560px,62vh,760px);min-height:560px;overflow:auto;padding:34px 28px 54px;cursor:grab;overscroll-behavior:contain;scrollbar-width:none;-ms-overflow-style:none;touch-action:none;background:linear-gradient(180deg,#fff 0%,#fbfcfe 100%)}
.smv-org-tree-scroll::-webkit-scrollbar{display:none}
.smv-org-tree-scroll.is-dragging{cursor:grabbing}
.smv-org-canvas{position:relative;min-width:1px;min-height:1px}
.smv-org-tree[data-smv-org-tree]{transform-origin:0 0;will-change:transform}
.smv-org-vscroll{position:absolute;z-index:12;right:10px;top:18px;bottom:78px;width:14px;display:flex;justify-content:center;opacity:.96;transition:opacity .2s ease;pointer-events:auto}
.smv-org-vscroll.is-hidden{opacity:0;pointer-events:none}
.smv-org-vscroll__track{position:relative;width:6px;height:100%;border-radius:999px;background:rgba(37,96,171,.14);box-shadow:inset 0 0 0 1px rgba(17,60,114,.07),0 0 0 5px rgba(255,255,255,.82);cursor:pointer}
.smv-org-vscroll__thumb{position:absolute;left:-2px;top:0;width:10px;min-height:44px;border-radius:999px;background:linear-gradient(180deg,#5a91d4,#2560ab);box-shadow:0 2px 9px rgba(17,60,114,.28);cursor:ns-resize;touch-action:none}
.smv-org-navigator{min-height:60px;display:grid;grid-template-columns:auto minmax(180px,1fr) auto;align-items:center;gap:18px;padding:10px 14px 10px 16px;border-top:1px solid #dce4ed;background:linear-gradient(180deg,#fff 0%,#f1f5f9 100%);box-shadow:0 -4px 14px rgba(17,60,114,.05)}
.smv-org-navigator__hint{display:grid;grid-template-columns:30px auto;grid-template-rows:auto auto;align-items:center;column-gap:9px;min-width:196px;color:#174f86;font-size:12px;font-weight:800;line-height:1.1;white-space:nowrap}
.smv-org-navigator__hint small{grid-column:2;color:#74869a;font-size:10px;font-weight:600;margin-top:3px}
.smv-org-navigator__move{grid-row:1/3;display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#2560ab;color:#fff;font-size:17px;box-shadow:0 3px 8px rgba(37,96,171,.22)}
.smv-org-hscroll{display:flex;align-items:center;min-width:0;height:30px;padding:0 2px;touch-action:none}
.smv-org-hscroll.is-hidden{opacity:.45}
.smv-org-hscroll__track{position:relative;width:100%;height:7px;border-radius:999px;background:rgba(37,96,171,.12);box-shadow:inset 0 0 0 1px rgba(17,60,114,.05);cursor:pointer}
.smv-org-hscroll__thumb{position:absolute;left:0;top:-3px;height:13px;min-width:48px;border-radius:999px;background:linear-gradient(90deg,#4b83c9,#2560ab);box-shadow:0 2px 7px rgba(17,60,114,.25);cursor:ew-resize;touch-action:none}
.smv-org-zoom{display:flex;align-items:center;gap:5px;padding:4px;border:1px solid #d5e0ea;border-radius:999px;background:#fff;box-shadow:0 3px 10px rgba(17,60,114,.07)}
.smv-org-zoom button{font-family:inherit}
.smv-org-zoom__btn,.smv-org-center{width:30px;height:30px;border:0;border-radius:50%;display:grid;place-items:center;background:#eef4fb;color:#164d86;font-size:19px;font-weight:700;line-height:1;cursor:pointer;transition:background .18s ease,color .18s ease,transform .18s ease}
.smv-org-zoom__btn:hover,.smv-org-center:hover{background:#2560ab;color:#fff;transform:translateY(-1px)}
.smv-org-zoom__value{min-width:54px;height:30px;padding:0 8px;border:0;border-radius:16px;background:transparent;color:#174f86;font-size:12px;font-weight:800;cursor:pointer}
.smv-org-zoom__value:hover{background:#eef4fb}
.smv-org-center{font-size:18px}
@media(max-width:900px) and (min-width:701px){.smv-org-navigator{grid-template-columns:minmax(160px,1fr) auto}.smv-org-navigator__hint{display:none}.smv-org-tree-scroll{height:560px;min-height:500px}.smv-org-vscroll{bottom:76px}}
@media(max-width:700px){.smv-org-explorer{border:0;border-radius:0;box-shadow:none;overflow:visible}.smv-org-tree-scroll{height:auto;min-height:0;overflow:visible;touch-action:auto;background:#fff}.smv-org-canvas{width:auto!important;height:auto!important;min-width:0}.smv-org-tree[data-smv-org-tree]{position:static!important;width:auto!important;height:auto!important;transform:none!important}.smv-org-navigator,.smv-org-vscroll{display:none!important}}

/* v1.2.6 - Modal de perfiles refinado y mejor presentación de Junta Directiva */
.smv-org-modal{padding:18px}
.smv-org-modal__dialog{position:relative;z-index:1;width:min(920px,94vw);max-height:88vh;overflow:auto;background:#fff;border:1px solid #dbe3ec;border-radius:16px;box-shadow:0 18px 48px rgba(6,28,68,.28);display:grid;grid-template-columns:280px minmax(0,1fr)}
.smv-org-modal__close{right:12px;top:12px;width:38px;height:38px;background:#111827;font-size:24px;box-shadow:0 6px 16px rgba(0,0,0,.18)}
.smv-org-profile-card{background:linear-gradient(180deg,#f7f9fc 0%,#eef3f8 100%);border-right:1px solid #dbe3ec;padding:0;display:flex;flex-direction:column;justify-content:flex-start;min-height:100%}
.smv-org-profile-card__photo{background:linear-gradient(180deg,#2f67b2 0%,#2559a2 78%,#0f3d79 100%);padding:24px 16px 18px;position:relative;overflow:hidden}
.smv-org-profile-card__photo::after{content:'';position:absolute;left:0;right:0;bottom:0;height:18px;background:linear-gradient(180deg,rgba(255,255,255,0) 0%,rgba(14,55,108,.45) 100%)}
.smv-org-profile-card__photo img{width:128px;height:128px;object-fit:cover;border-radius:50%;border:5px solid #fff;box-shadow:0 6px 18px rgba(0,0,0,.14)}
.smv-org-profile-card__body{padding:22px 20px 24px;text-align:center}
.smv-org-profile-card h3{font-size:13px;line-height:1.25;color:#2560ab;text-transform:uppercase;letter-spacing:.02em;margin:0 auto 6px;max-width:210px}
.smv-org-profile-card__role,.smv-org-profile-card p{margin:0 auto;font-size:13px;line-height:1.25;font-weight:800;text-transform:uppercase;color:#111;max-width:210px}
.smv-org-profile-card--no-photo{justify-content:center;background:linear-gradient(180deg,#2f67b2 0%,#2559a2 42%,#eef3f8 42.5%,#eef3f8 100%)}
.smv-org-profile-card--no-photo .smv-org-profile-card__body{padding:38px 24px 34px}
.smv-org-profile-card--no-photo h3{font-size:22px;line-height:1.05;color:#fff;margin-bottom:12px;text-transform:none;letter-spacing:0;max-width:none}
.smv-org-profile-card--no-photo .smv-org-profile-card__role{color:#0a2858;background:#fff;border:1px solid #dbe3ec;border-radius:999px;padding:10px 14px;display:inline-block;max-width:none}
.smv-org-profile-copy{padding:28px 28px 30px;background:#fff}
.smv-org-profile-copy section+section{margin-top:22px;padding-top:20px;border-top:1px solid #edf1f5}
.smv-org-profile-copy h4{font-size:18px;line-height:1.15;margin:0 0 12px;color:#111;font-weight:700}
.smv-org-profile-copy p,.smv-org-profile-copy li{font-size:15px;line-height:1.5;color:#263445}
.smv-org-profile-copy p{margin:0 0 12px}
.smv-org-profile-copy ul{list-style:none;padding:0;margin:8px 0 0;display:grid;gap:12px}
.smv-org-profile-copy li{margin:0;padding:14px 16px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;box-shadow:0 6px 18px rgba(15,61,121,.06)}
.smv-org-profile-copy li strong{display:block;color:#0a2858;font-size:17px;line-height:1.2;margin-bottom:4px}
.smv-org-profile-copy a{color:#2560ab;font-weight:700}
.smv-org-modal--board .smv-org-modal__dialog{width:min(980px,95vw)}
.smv-org-modal--board .smv-org-profile-card__body{padding:32px 22px 28px}
.smv-org-modal--board .smv-org-profile-copy h4{margin-bottom:14px}
@media(max-width:700px){
  .smv-org-modal{padding:10px}
  .smv-org-modal__dialog{grid-template-columns:1fr;width:min(96vw,96vw);max-height:92vh;border-radius:14px}
  .smv-org-profile-card{border-right:0;border-bottom:1px solid #dbe3ec}
  .smv-org-profile-card__photo{padding:18px 14px 14px}
  .smv-org-profile-card__photo img{width:108px;height:108px}
  .smv-org-profile-card__body{padding:18px 16px 20px}
  .smv-org-profile-card--no-photo h3{font-size:20px}
  .smv-org-profile-copy{padding:20px 16px 22px}
  .smv-org-profile-copy h4{font-size:17px}
  .smv-org-profile-copy p,.smv-org-profile-copy li{font-size:14px}
  .smv-org-profile-copy li strong{font-size:16px}
}

/* v1.2.7 - Centrado inicial, conectores detrás de tarjetas y modal de tamaño estable */
.smv-org-tree li::before,.smv-org-tree li::after,.smv-org-tree ul ul::before{z-index:0;pointer-events:none}
.smv-org-node{z-index:2}
.smv-org-node__cap,.smv-org-node__foot{z-index:3}

/* El modal mantiene una medida estable y solo la columna de información hace scroll. */
.smv-org-modal__dialog{width:min(960px,94vw);height:min(560px,82vh);max-height:none;overflow:hidden;grid-template-columns:280px minmax(0,1fr);grid-template-rows:minmax(0,1fr)}
.smv-org-profile-card{height:100%;min-height:0;overflow:hidden}
.smv-org-profile-copy{height:100%;min-height:0;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:#4d83c7 #edf3f8;padding-right:22px}
.smv-org-profile-copy::-webkit-scrollbar{width:9px}
.smv-org-profile-copy::-webkit-scrollbar-track{background:#edf3f8;border-radius:999px;margin:10px 0}
.smv-org-profile-copy::-webkit-scrollbar-thumb{background:linear-gradient(180deg,#5c92d2,#2560ab);border:2px solid #edf3f8;border-radius:999px}
.smv-org-profile-copy::-webkit-scrollbar-thumb:hover{background:#164d86}
.smv-org-modal--board .smv-org-modal__dialog{width:min(980px,95vw);height:min(570px,84vh)}
@media(max-width:700px){
  .smv-org-modal__dialog{width:min(96vw,96vw);height:min(760px,92vh);max-height:92vh;grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr);overflow:hidden}
  .smv-org-profile-card{height:auto;min-height:0;overflow:visible}
  .smv-org-profile-copy{height:auto;min-height:0;overflow-y:auto;padding-right:14px}
  .smv-org-modal--board .smv-org-modal__dialog{width:min(96vw,96vw);height:min(760px,92vh)}
}

/* v1.2.8 - Junta Directiva compacta sin foto + retrato vertical para perfiles */
/* Perfiles normales: la foto deja de ser circular y pasa a retrato vertical. */
.smv-org-profile-card__photo{padding:24px 20px 18px;display:flex;justify-content:center;align-items:flex-start}
.smv-org-profile-card__photo img{width:176px;height:218px;object-fit:cover;object-position:center top;border-radius:14px;border:4px solid #fff;box-shadow:0 8px 22px rgba(0,0,0,.18)}
.smv-org-profile-card__body{padding:18px 18px 22px}

/* Junta Directiva: no usa columna de foto y presenta todos los miembros sin scroll en desktop. */
.smv-org-modal--board .smv-org-modal__dialog{display:block;width:min(920px,94vw);height:auto;max-height:none;overflow:visible;padding:0;background:#fff}
.smv-org-modal--board .smv-org-profile-copy--board{height:auto;max-height:none;overflow:visible;padding:26px 30px 28px}
.smv-org-modal--board .smv-org-board-section{margin:0;padding:0;border:0}
.smv-org-modal--board .smv-org-board-section>h3{margin:0 52px 4px 0;color:#0a2858;font-size:25px;line-height:1.08;font-weight:800}
.smv-org-modal--board .smv-org-board-section>h4{margin:0 52px 16px 0;color:#526172;font-size:14px;font-weight:700}
.smv-org-modal--board .smv-org-profile-copy ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px;margin:0;padding:0}
.smv-org-modal--board .smv-org-profile-copy li{min-height:64px;padding:10px 13px;border-radius:10px;box-shadow:none;background:#f8fafc;border:1px solid #dde6f0;display:flex;flex-direction:column;justify-content:center}
.smv-org-modal--board .smv-org-profile-copy li strong{font-size:15px;line-height:1.18;margin-bottom:2px}
.smv-org-modal--board .smv-org-profile-copy li{font-size:13px;line-height:1.28;color:#263445}
.smv-org-modal--board .smv-org-profile-copy section+section{margin-top:14px;padding-top:14px}

@media(max-width:700px){
  .smv-org-profile-card__photo{padding:16px 16px 12px}
  .smv-org-profile-card__photo img{width:138px;height:174px;border-radius:12px}
  .smv-org-modal--board .smv-org-modal__dialog{width:min(96vw,96vw);height:auto;max-height:92vh;overflow:auto;border-radius:14px}
  .smv-org-modal--board .smv-org-profile-copy--board{height:auto;overflow:visible;padding:20px 14px 18px}
  .smv-org-modal--board .smv-org-board-section>h3{font-size:21px;margin-right:44px}
  .smv-org-modal--board .smv-org-board-section>h4{font-size:13px;margin:3px 44px 13px 0}
  .smv-org-modal--board .smv-org-profile-copy ul{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .smv-org-modal--board .smv-org-profile-copy li{min-height:62px;padding:9px 10px;font-size:12px}
  .smv-org-modal--board .smv-org-profile-copy li strong{font-size:13px}
}


/* v1.2.9 - Modal centrado respecto al viewport real */
/* Los modales se mueven al body por JS para que ningún transform del layout pueda alterar position:fixed. */
body > .smv-org-modal{
  position:fixed!important;
  inset:0!important;
  width:100vw!important;
  height:100dvh!important;
  margin:0!important;
  transform:none!important;
  align-items:center!important;
  justify-content:center!important;
  padding:24px!important;
}
body > .smv-org-modal .smv-org-modal__dialog{
  width:min(900px,calc(100vw - 48px));
  height:min(500px,calc(100dvh - 48px));
  max-height:calc(100dvh - 48px);
  margin:auto;
  overflow:hidden;
}
body > .smv-org-modal .smv-org-profile-copy{
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
}
/* Junta Directiva sigue siendo compacta y sin altura forzada. */
body > .smv-org-modal--board .smv-org-modal__dialog{
  width:min(900px,calc(100vw - 48px));
  height:auto;
  max-height:calc(100dvh - 48px);
  overflow:auto;
}
@media(max-width:700px){
  body > .smv-org-modal{padding:10px!important;align-items:center!important}
  body > .smv-org-modal .smv-org-modal__dialog{
    width:calc(100vw - 20px);
    height:min(680px,calc(100dvh - 20px));
    max-height:calc(100dvh - 20px);
  }
  body > .smv-org-modal--board .smv-org-modal__dialog{
    width:calc(100vw - 20px);
    height:auto;
    max-height:calc(100dvh - 20px);
  }
}


/* v1.2.13 - Móvil en modo lienzo: marco vertical con pan y zoom, no acordeón alargado. */
@media(max-width:700px){
  .smv-org-mobile-help{
    display:block!important;
    margin:0;
    padding:10px 12px;
    background:#eef5fd;
    color:#164b87;
    border-bottom:1px solid #dbe6f1;
    font-size:12.5px;
    line-height:1.35;
  }
  .smv-org-explorer{
    display:block!important;
    position:relative!important;
    overflow:hidden!important;
    border:1px solid #d9e3ed!important;
    border-radius:10px!important;
    box-shadow:0 8px 22px rgba(17,60,114,.08)!important;
    background:#fff!important;
  }
  .smv-org-tree-scroll{
    position:relative!important;
    height:65dvh!important;
    min-height:480px!important;
    max-height:680px!important;
    overflow:auto!important;
    padding:28px 26px 46px!important;
    cursor:grab!important;
    touch-action:none!important;
    overscroll-behavior:contain!important;
    scrollbar-width:none!important;
    background:linear-gradient(180deg,#fff 0%,#fbfcfe 100%)!important;
  }
  .smv-org-tree-scroll::-webkit-scrollbar{display:none!important}
  .smv-org-tree-scroll.is-dragging{cursor:grabbing!important}
  .smv-org-canvas{
    position:relative!important;
    width:auto!important;
    height:auto!important;
    min-width:1px!important;
    min-height:1px!important;
  }
  .smv-org-tree[data-smv-org-tree]{
    position:absolute!important;
    left:0!important;
    top:0!important;
    display:flex!important;
    justify-content:center!important;
    min-width:1080px!important;
    transform-origin:0 0!important;
    will-change:transform!important;
  }
  .smv-org-tree ul,
  .smv-org-tree ul ul{
    display:flex!important;
    position:relative!important;
    justify-content:center!important;
    padding-top:28px!important;
    padding-left:0!important;
    margin:0!important;
    border-left:0!important;
  }
  .smv-org-tree li{
    position:relative!important;
    list-style:none!important;
    text-align:center!important;
    padding:28px 8px 0!important;
  }
  .smv-org-tree li::before,
  .smv-org-tree li::after{
    display:block!important;
    content:''!important;
    position:absolute!important;
    top:0!important;
    right:50%!important;
    border-top:1px solid var(--smv-org-line)!important;
    width:50%!important;
    height:28px!important;
    z-index:0!important;
  }
  .smv-org-tree li::after{
    right:auto!important;
    left:50%!important;
    border-left:1px solid var(--smv-org-line)!important;
  }
  .smv-org-tree li:only-child::before,
  .smv-org-tree li:only-child::after{display:none!important}
  .smv-org-tree li:only-child{padding-top:0!important}
  .smv-org-tree li:first-child::before,
  .smv-org-tree li:last-child::after{border:0!important}
  .smv-org-tree li:last-child::before{border-right:1px solid var(--smv-org-line)!important}
  .smv-org-tree ul ul::before{
    display:block!important;
    content:''!important;
    position:absolute!important;
    top:0!important;
    left:50%!important;
    width:0!important;
    height:28px!important;
    border-left:1px solid var(--smv-org-line)!important;
    z-index:0!important;
  }
  .smv-org-node{
    width:150px!important;
    min-height:62px!important;
    margin:0 auto!important;
    justify-content:center!important;
    text-align:center!important;
    padding:17px 9px 11px!important;
    border-radius:10px!important;
    font-size:12px!important;
    line-height:1.08!important;
  }
  .smv-org-node__cap{
    display:block!important;
    position:absolute!important;
    left:8px!important;
    right:8px!important;
    top:-10px!important;
    bottom:auto!important;
    width:auto!important;
    height:15px!important;
    border-radius:4px 4px 1px 1px!important;
  }
  .smv-org-node__cap:before,.smv-org-node__cap:after{display:block!important}
  .smv-org-node__foot{display:block!important}
  .smv-org-branch-toggle{display:none!important}
  .smv-org-navigator{
    display:grid!important;
    grid-template-columns:minmax(90px,1fr) auto!important;
    gap:10px!important;
    min-height:54px!important;
    padding:8px 9px!important;
    border-top:1px solid #dce4ed!important;
  }
  .smv-org-navigator__hint{display:none!important}
  .smv-org-hscroll{display:flex!important;height:28px!important;min-width:0!important}
  .smv-org-hscroll__track{height:6px!important}
  .smv-org-hscroll__thumb{height:12px!important;top:-3px!important}
  .smv-org-zoom{display:flex!important;gap:3px!important;padding:3px!important}
  .smv-org-zoom__btn,.smv-org-center{width:28px!important;height:28px!important;font-size:18px!important}
  .smv-org-zoom__value{min-width:48px!important;height:28px!important;padding:0 5px!important;font-size:11px!important}
  .smv-org-vscroll{
    display:flex!important;
    right:7px!important;
    top:56px!important;
    bottom:66px!important;
    width:12px!important;
  }
  .smv-org-vscroll__track{width:5px!important}
  .smv-org-vscroll__thumb{width:9px!important;left:-2px!important}
}
@media(max-width:390px){
  .smv-org-tree-scroll{height:62dvh!important;min-height:455px!important;padding-inline:20px!important}
  .smv-org-content{padding-left:10px!important;padding-right:10px!important}
}

/* v1.3.1 - Estructura visual Figma 2026 + encabezado opcional + modal final */
.smv-org-bleed,.smv-org,.smv-org-frame,.smv-org-content{background:#EEEEDD!important}
.smv-org-content{padding:0!important}
.smv-org-layout{padding-top:0!important;gap:0!important}
.smv-org-chart-wrap{background:#EEEEDD!important;border:0!important}
.smv-org-explorer{background:#EEEEDD!important;border:0!important;border-radius:0!important;box-shadow:none!important}
.smv-org-tree-scroll{background:#EEEEDD!important;height:clamp(500px,60vh,620px)!important;min-height:500px!important;padding:18px 18px 48px!important}
.smv-org-mobile-help{background:#e9e9da!important;border-color:#d2d2c2!important;color:#294d78!important}
.smv-org-navigator{background:linear-gradient(180deg,#f7f7ee 0%,#e8e8d9 100%)!important;border-top:1px solid #d0d0c0!important}

.smv-org-tree--figma{position:absolute!important;left:0!important;top:0!important;display:block!important;min-width:0!important;transform-origin:0 0!important;will-change:transform!important}
.smv-org-tree--figma .smv-org-figma-node{position:absolute!important;margin:0!important;width:112px!important;min-height:42px!important;padding:11px 6px 7px!important;z-index:3!important;font-size:8.5px!important;line-height:1.03!important;background:linear-gradient(180deg,#dadada 0%,#efefef 18%,#fff 42%)!important;border-color:#c5c5c5!important;border-radius:7px!important}
.smv-org-tree--figma .smv-org-node__cap{top:-7px!important;height:10px!important;left:7px!important;right:7px!important}
.smv-org-tree--figma .smv-org-node__foot{height:8px!important;bottom:-5px!important}
.smv-org-figma-connectors{position:absolute;inset:0;width:100%;height:100%;overflow:visible;z-index:1;pointer-events:none}
.smv-org-figma-connector{fill:none;stroke:#c6c6bc;stroke-width:1.25;vector-effect:non-scaling-stroke}
.smv-org-figma-connector.is-dashed{stroke-dasharray:5 5;stroke:#b9b9b0}

/* El encabezado se controla desde Configuración y por defecto queda oculto. */
.smv-org-title,.smv-org-intro{background:transparent}

/* Popup final según la guía Figma */
body > .smv-org-modal{padding:18px!important}
body > .smv-org-modal .smv-org-modal__backdrop{background:rgba(22,35,53,.52)!important;backdrop-filter:blur(1.5px)}
body > .smv-org-modal .smv-org-modal__dialog{
  width:min(820px,calc(100vw - 36px))!important;
  height:min(430px,calc(100dvh - 36px))!important;
  max-height:calc(100dvh - 36px)!important;
  min-height:360px!important;
  margin:auto!important;
  display:grid!important;
  grid-template-columns:286px minmax(0,1fr)!important;
  grid-template-rows:minmax(0,1fr)!important;
  gap:14px!important;
  padding:14px!important;
  background:#D9D9D9!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:0 14px 38px rgba(0,0,0,.28)!important;
  overflow:hidden!important;
}
body > .smv-org-modal .smv-org-modal__close{
  right:6px!important;top:5px!important;width:22px!important;height:22px!important;
  border:0!important;border-radius:50%!important;background:#111!important;color:#fff!important;
  font:700 16px/20px Arial,sans-serif!important;padding:0!important;box-shadow:0 2px 5px rgba(0,0,0,.18)!important
}
body > .smv-org-modal .smv-org-profile-card{
  height:100%!important;min-height:0!important;overflow:hidden!important;
  background:#fff!important;border:1px solid #58a8ef!important;border-radius:2px!important;
  display:flex!important;flex-direction:column!important
}
body > .smv-org-modal .smv-org-profile-card__photo{
  min-height:185px!important;height:auto!important;padding:20px 0 18px!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  background:linear-gradient(180deg,#eff7ff 0%,#dbeafb 7%,#2f6db7 28%,#2560ab 74%,#0f3e79 100%)!important;
  border-top:16px solid #fff!important;position:relative!important
}
body > .smv-org-modal .smv-org-profile-card__photo:after{display:none!important}
body > .smv-org-modal .smv-org-profile-card__photo img{
  width:138px!important;height:138px!important;object-fit:cover!important;object-position:center top!important;
  border-radius:50%!important;border:5px solid #fff!important;box-shadow:0 2px 7px rgba(0,0,0,.18)!important
}
body > .smv-org-modal .smv-org-profile-card__body{background:#fff!important;padding:16px 12px 18px!important;min-height:96px!important;display:flex!important;flex-direction:column!important;justify-content:center!important}
body > .smv-org-modal .smv-org-profile-card h3{font-size:14px!important;line-height:1.15!important;color:#2560ab!important;text-transform:uppercase!important;margin:0 0 5px!important;font-weight:700!important;max-width:none!important}
body > .smv-org-modal .smv-org-profile-card__role{font-size:13px!important;line-height:1.18!important;font-weight:700!important;color:#111!important;text-transform:uppercase!important;margin:0!important;max-width:none!important}
body > .smv-org-modal .smv-org-profile-copy{
  height:100%!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;
  padding:24px 22px 26px 18px!important;background:#f3f3f3!important;color:#111!important;
  scrollbar-width:thin!important;scrollbar-color:#2560ab #e2e2e2!important
}
body > .smv-org-modal .smv-org-profile-copy::-webkit-scrollbar{width:7px!important}
body > .smv-org-modal .smv-org-profile-copy::-webkit-scrollbar-track{background:#e2e2e2!important;border-radius:6px!important}
body > .smv-org-modal .smv-org-profile-copy::-webkit-scrollbar-thumb{background:#2560ab!important;border:0!important;border-radius:6px!important}
body > .smv-org-modal .smv-org-profile-copy section+section{margin-top:26px!important;padding-top:0!important;border-top:0!important}
body > .smv-org-modal .smv-org-profile-copy h4{font-size:18px!important;line-height:1.1!important;margin:0 0 10px!important;font-weight:700!important;color:#111!important}
body > .smv-org-modal .smv-org-profile-copy p,body > .smv-org-modal .smv-org-profile-copy li{font-size:13px!important;line-height:1.38!important;color:#111!important;margin:0 0 8px!important}

/* Junta Directiva: compacta y sin foto. */
body > .smv-org-modal--board .smv-org-modal__dialog{display:block!important;width:min(820px,calc(100vw - 36px))!important;height:auto!important;max-height:calc(100dvh - 36px)!important;padding:14px!important;background:#D9D9D9!important;overflow:auto!important}
body > .smv-org-modal--board .smv-org-profile-copy--board{height:auto!important;max-height:none!important;overflow:visible!important;background:#f3f3f3!important;padding:22px 24px!important}

@media(max-width:900px){
  .smv-org-bleed{width:100%!important;max-width:100%!important}
  .smv-org-tree-scroll{height:60dvh!important;min-height:500px!important;background:#EEEEDD!important}
}
@media(max-width:700px){
  .smv-org,.smv-org-frame,.smv-org-content,.smv-org-explorer,.smv-org-tree-scroll{background:#EEEEDD!important}
  .smv-org-tree-scroll{height:62dvh!important;min-height:470px!important;max-height:650px!important;overflow:auto!important;padding:20px 16px 46px!important;touch-action:none!important;cursor:grab!important}
  .smv-org-canvas{position:relative!important;width:auto!important;height:auto!important;min-width:1px!important;min-height:1px!important}
  .smv-org-tree--figma{position:absolute!important;width:1260px!important;height:620px!important;display:block!important;transform-origin:0 0!important}
  .smv-org-tree--figma .smv-org-figma-node{width:112px!important;min-height:42px!important;text-align:center!important;justify-content:center!important;padding:11px 6px 7px!important}
  .smv-org-tree--figma .smv-org-node__cap{display:block!important;position:absolute!important;left:7px!important;right:7px!important;top:-7px!important;bottom:auto!important;width:auto!important;height:10px!important;border-radius:4px 4px 1px 1px!important}
  .smv-org-tree--figma .smv-org-node__cap:before,.smv-org-tree--figma .smv-org-node__cap:after,.smv-org-tree--figma .smv-org-node__foot{display:block!important}
  .smv-org-navigator{display:grid!important}.smv-org-vscroll{display:flex!important}
  body > .smv-org-modal{padding:10px!important}
  body > .smv-org-modal .smv-org-modal__dialog{width:calc(100vw - 20px)!important;height:min(720px,calc(100dvh - 20px))!important;max-height:calc(100dvh - 20px)!important;grid-template-columns:1fr!important;grid-template-rows:auto minmax(0,1fr)!important;gap:10px!important;padding:10px!important}
  body > .smv-org-modal .smv-org-profile-card{height:auto!important;max-height:260px!important}
  body > .smv-org-modal .smv-org-profile-card__photo{min-height:142px!important;padding:12px 0 10px!important;border-top-width:10px!important}
  body > .smv-org-modal .smv-org-profile-card__photo img{width:112px!important;height:112px!important}
  body > .smv-org-modal .smv-org-profile-card__body{min-height:80px!important;padding:10px 12px!important}
  body > .smv-org-modal .smv-org-profile-copy{padding:17px!important}
  body > .smv-org-modal--board .smv-org-modal__dialog{display:block!important;height:auto!important;max-height:calc(100dvh - 20px)!important;overflow:auto!important}
}

/* v1.4.1 - Ajuste fino al organigrama aprobado y tarjeta de perfil Figma */
.smv-org-tree--figma .smv-org-figma-node{
  width:102px!important;
  min-height:36px!important;
  padding:9px 5px 6px!important;
  font-size:7.6px!important;
  line-height:1.02!important;
  border-radius:6px!important;
}
.smv-org-tree--figma .smv-org-node__cap{left:7px!important;right:7px!important;top:-6px!important;height:8px!important}
.smv-org-tree--figma .smv-org-node__foot{height:7px!important;bottom:-5px!important}
.smv-org-figma-connector{stroke:#c4c4b8!important;stroke-width:1.15!important}
.smv-org-figma-connector.is-dashed{stroke:#b7b7ab!important;stroke-dasharray:4 4!important}

/* Tarjeta izquierda del popup: medidas y estilo exactos del frame Figma. */
body > .smv-org-modal:not(.smv-org-modal--board) .smv-org-modal__dialog{
  width:min(820px,calc(100vw - 36px))!important;
  height:min(420px,calc(100dvh - 36px))!important;
  grid-template-columns:268px minmax(0,1fr)!important;
  align-items:start!important;
  gap:16px!important;
  padding:14px!important;
  background:#D9D9D9!important;
}
body > .smv-org-modal:not(.smv-org-modal--board) .smv-org-profile-card{
  width:268px!important;
  height:254px!important;
  min-height:254px!important;
  align-self:start!important;
  background:#F9F9F9!important;
  border:1px solid #BABABA!important;
  border-radius:8px!important;
  overflow:hidden!important;
  display:block!important;
  position:relative!important;
  box-sizing:border-box!important;
}
body > .smv-org-modal:not(.smv-org-modal--board) .smv-org-profile-card__photo{
  position:relative!important;
  width:100%!important;
  height:167px!important;
  min-height:167px!important;
  margin-top:18px!important;
  padding:0!important;
  border:0!important;
  display:block!important;
  background:linear-gradient(180deg,#113C72 0%,#2560AB 15.38%,#2560AB 84.62%,#113C72 100%)!important;
  overflow:visible!important;
}
body > .smv-org-modal:not(.smv-org-modal--board) .smv-org-profile-card__photo::before{
  content:""!important;
  display:block!important;
  position:absolute!important;
  left:0!important;right:0!important;top:5px!important;
  height:57px!important;
  background:linear-gradient(180deg,rgba(255,255,255,0) 0%,rgba(255,255,255,.76) 14.42%,rgba(255,255,255,0) 100%)!important;
  z-index:1!important;
  pointer-events:none!important;
}
body > .smv-org-modal:not(.smv-org-modal--board) .smv-org-profile-card__photo::after{display:none!important}
body > .smv-org-modal:not(.smv-org-modal--board) .smv-org-profile-card__photo img{
  position:absolute!important;
  left:50%!important;top:17px!important;
  transform:translateX(-50%)!important;
  width:137px!important;height:137px!important;
  border:4px solid #fff!important;
  border-radius:50%!important;
  object-fit:cover!important;object-position:center top!important;
  box-sizing:border-box!important;
  box-shadow:none!important;
  z-index:2!important;
}
body > .smv-org-modal:not(.smv-org-modal--board) .smv-org-profile-card__body{
  position:relative!important;
  height:68px!important;
  min-height:68px!important;
  padding:10px 2px 8px!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  align-items:center!important;
  background:#F9F9F9!important;
  box-sizing:border-box!important;
}
/* Separadores exactos extraidos del PDF maestro Group 524.
   Se guardan como recursos reutilizables en assets/images. */
body > .smv-org-modal:not(.smv-org-modal--board) .smv-org-profile-card__body::before,
body > .smv-org-modal:not(.smv-org-modal--board) .smv-org-profile-card__body::after{
  content:""!important;
  position:absolute!important;
  left:50%!important;
  width:201.32px!important;
  height:6.07px!important;
  transform:translateX(-50%)!important;
  background-position:center!important;
  background-repeat:no-repeat!important;
  background-size:201.32px 6.07px!important;
  opacity:1!important;
  pointer-events:none!important;
}
body > .smv-org-modal:not(.smv-org-modal--board) .smv-org-profile-card__body::before{
  top:6.28px!important;
  background-image:url("../images/popup-separator-top.png")!important;
}
body > .smv-org-modal:not(.smv-org-modal--board) .smv-org-profile-card__body::after{
  bottom:9.91px!important;
  background-image:url("../images/popup-separator-bottom.png")!important;
}
body > .smv-org-modal:not(.smv-org-modal--board) .smv-org-profile-card h3{
  width:265px!important;
  height:auto!important;
  margin:0!important;
  font-family:'Roboto Condensed','Arial Narrow',Arial,sans-serif!important;
  font-style:normal!important;
  font-weight:700!important;
  font-size:13px!important;
  line-height:22px!important;
  text-align:center!important;
  color:#2560AB!important;
  text-transform:uppercase!important;
  white-space:normal!important;
}
body > .smv-org-modal:not(.smv-org-modal--board) .smv-org-profile-card__role{
  width:265px!important;
  height:auto!important;
  margin:-2px 0 0!important;
  font-family:'Roboto Condensed','Arial Narrow',Arial,sans-serif!important;
  font-style:normal!important;
  font-weight:600!important;
  font-size:13px!important;
  line-height:22px!important;
  text-align:center!important;
  color:#000!important;
  text-transform:uppercase!important;
}
body > .smv-org-modal:not(.smv-org-modal--board) .smv-org-profile-copy{
  height:100%!important;
  max-height:392px!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  align-self:stretch!important;
}

@media(max-width:700px){
  body > .smv-org-modal:not(.smv-org-modal--board) .smv-org-modal__dialog{
    grid-template-columns:1fr!important;
    grid-template-rows:auto minmax(0,1fr)!important;
    height:min(720px,calc(100dvh - 20px))!important;
    overflow:hidden!important;
  }
  body > .smv-org-modal:not(.smv-org-modal--board) .smv-org-profile-card{
    width:268px!important;height:254px!important;min-height:254px!important;
    margin:0 auto!important;
  }
  body > .smv-org-modal:not(.smv-org-modal--board) .smv-org-profile-copy{max-height:none!important;min-height:0!important}
}


/* v1.4.8 - Conectores visibles y nítidos en móvil */
@media(max-width:700px){
  .smv-org-tree--figma .smv-org-figma-connectors{
    display:block!important;
    visibility:visible!important;
    opacity:1!important;
    z-index:2!important;
    overflow:visible!important;
    pointer-events:none!important;
    shape-rendering:geometricPrecision;
  }
  .smv-org-tree--figma .smv-org-figma-connector{
    display:block!important;
    visibility:visible!important;
    opacity:1!important;
    stroke:#9d9d91!important;
    stroke-width:1.8!important;
    vector-effect:non-scaling-stroke!important;
    stroke-linecap:square!important;
    stroke-linejoin:miter!important;
  }
  .smv-org-tree--figma .smv-org-figma-connector.is-dashed{
    stroke:#929287!important;
    stroke-width:1.7!important;
    stroke-dasharray:5 4!important;
  }
  .smv-org-tree--figma .smv-org-figma-node{z-index:3!important}
}


/* v1.4.9 - Móvil: conectores reforzados + gestos táctiles pan/pinch */
@media(max-width:700px){
  .smv-org-tree-scroll{
    touch-action:none!important;
    -webkit-user-select:none!important;
    user-select:none!important;
    -webkit-touch-callout:none!important;
  }
  .smv-org-tree--figma{
    background:transparent!important;
    isolation:isolate!important;
  }
  .smv-org-tree--figma .smv-org-figma-connectors{
    position:absolute!important;
    left:0!important;
    top:0!important;
    width:1260px!important;
    height:620px!important;
    display:block!important;
    visibility:visible!important;
    opacity:1!important;
    z-index:1!important;
    overflow:visible!important;
    pointer-events:none!important;
  }
  .smv-org-tree--figma .smv-org-figma-connectors path,
  .smv-org-tree--figma .smv-org-figma-connector{
    fill:none!important;
    stroke:#858579!important;
    stroke-width:2.25!important;
    vector-effect:non-scaling-stroke!important;
    opacity:1!important;
    visibility:visible!important;
    display:block!important;
  }
  .smv-org-tree--figma .smv-org-figma-connector.is-dashed{
    stroke:#7f7f74!important;
    stroke-width:2.1!important;
    stroke-dasharray:6 5!important;
  }
  .smv-org-tree--figma .smv-org-figma-node{z-index:3!important}
  .smv-org-mobile-help{font-size:12px!important;line-height:1.35!important}
}


/* v1.5.0 - Zoom móvil fiable: controles táctiles grandes + pinch directo */
.smv-org-mobile-zoom{display:none}
@media(max-width:700px){
  .smv-org-explorer{position:relative!important}
  .smv-org-mobile-zoom{
    display:flex!important;
    position:absolute!important;
    right:12px!important;
    bottom:74px!important;
    z-index:30!important;
    align-items:center!important;
    gap:4px!important;
    padding:5px!important;
    border:1px solid rgba(37,96,171,.22)!important;
    border-radius:999px!important;
    background:rgba(255,255,255,.94)!important;
    box-shadow:0 4px 14px rgba(17,60,114,.20)!important;
    -webkit-backdrop-filter:blur(6px)!important;
    backdrop-filter:blur(6px)!important;
    touch-action:manipulation!important;
  }
  .smv-org-mobile-zoom button{
    -webkit-appearance:none!important;
    appearance:none!important;
    border:0!important;
    margin:0!important;
    padding:0!important;
    min-width:44px!important;
    height:44px!important;
    display:grid!important;
    place-items:center!important;
    border-radius:999px!important;
    font-family:Roboto Condensed,Arial,sans-serif!important;
    font-weight:800!important;
    line-height:1!important;
    touch-action:manipulation!important;
    -webkit-tap-highlight-color:transparent!important;
  }
  .smv-org-mobile-zoom__btn{
    background:#2560AB!important;
    color:#fff!important;
    font-size:26px!important;
  }
  .smv-org-mobile-zoom__value{
    min-width:58px!important;
    padding-inline:8px!important;
    background:#f1f5f9!important;
    color:#174f86!important;
    font-size:13px!important;
  }
  .smv-org-mobile-zoom__btn:active,.smv-org-mobile-zoom__value:active{transform:scale(.95)!important}
  .smv-org-tree-scroll{
    touch-action:none!important;
    -ms-touch-action:none!important;
  }
}


/* v1.5.2 - Fondos administrables desde SMV Organigrama > Configuración. */
.smv-org-bleed,
.smv-org,
.smv-org-frame,
.smv-org-content,
.smv-org-chart-wrap,
.smv-org-explorer,
.smv-org-tree-scroll{
  background:var(--smv-org-canvas-bg,#FAFAFA)!important;
}
.smv-org-navigator{
  background:var(--smv-org-controls-bg,#FCFCFC)!important;
  border-top-color:#e5e5e5!important;
}
@media(max-width:700px){
  .smv-org,
  .smv-org-frame,
  .smv-org-content,
  .smv-org-explorer,
  .smv-org-tree-scroll{
    background:var(--smv-org-canvas-bg,#FAFAFA)!important;
  }
  .smv-org-mobile-zoom{
    background:var(--smv-org-controls-bg,#FCFCFC)!important;
  }
}

/* v1.5.6 - Popup: nombres/cargos de varias lineas sin desbordarse */
body > .smv-org-modal:not(.smv-org-modal--board) .smv-org-profile-card{
  height:auto!important;
  min-height:254px!important;
}
body > .smv-org-modal:not(.smv-org-modal--board) .smv-org-profile-card__body{
  height:auto!important;
  min-height:68px!important;
  padding:15px 5px 15px!important;
}
body > .smv-org-modal:not(.smv-org-modal--board) .smv-org-profile-card h3{
  width:255px!important;
  line-height:17px!important;
  margin:0 0 2px!important;
  overflow-wrap:anywhere!important;
}
body > .smv-org-modal:not(.smv-org-modal--board) .smv-org-profile-card__role{
  width:255px!important;
  line-height:15px!important;
  margin:0!important;
  overflow-wrap:anywhere!important;
}
body > .smv-org-modal:not(.smv-org-modal--board) .smv-org-profile-card__body::before{
  top:5px!important;
}
body > .smv-org-modal:not(.smv-org-modal--board) .smv-org-profile-card__body::after{
  bottom:5px!important;
}
@media(max-width:700px){
  body > .smv-org-modal:not(.smv-org-modal--board) .smv-org-profile-card{
    height:auto!important;
    min-height:254px!important;
    max-height:none!important;
  }
}
