/* HACERLO V2 · Audiencias: home ejecutivo y operación en lectura progresiva */
.ah-home{--ah-bg:#091f32;--ah-panel:#0b273a;--ah-edge:rgba(80,146,170,.31);--ah-accent:#43d5c6;--ah-muted:#9bb9c9;color:#eaf6ff}
.ah-home *{box-sizing:border-box}
.ah-home button{font:inherit}
.ah-eyebrow{display:inline-flex;align-items:center;gap:8px;color:#70dcd4;font-size:10px;font-weight:850;letter-spacing:1.6px;text-transform:uppercase}
.ah-overview{position:relative;overflow:hidden;border:1px solid #254e65;border-radius:19px;background:linear-gradient(128deg,rgba(16,56,76,.89),rgba(8,30,48,.99) 72%);padding:20px 23px 21px;margin:0 0 15px;box-shadow:0 12px 36px rgba(0,7,15,.12)}
.ah-overview:after{content:"";position:absolute;width:460px;height:260px;right:-170px;top:-170px;border-radius:50%;border:1px solid rgba(89,223,210,.12);box-shadow:0 0 0 34px rgba(88,217,212,.025),0 0 0 80px rgba(88,217,212,.018);pointer-events:none}
.ah-overview-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:19px;position:relative;z-index:1}
.ah-overview-tag{font-size:11px;color:#8db7c7}
.ah-live-dot,.ah-pulse{display:inline-block;width:7px;height:7px;border-radius:50%;background:#50dfc1;box-shadow:0 0 0 5px rgba(60,211,180,.1)}
.ah-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));position:relative;z-index:1}
.ah-kpi{display:flex;flex-direction:column;align-items:flex-start;min-width:0;padding:0 23px;border-left:1px solid rgba(112,170,184,.22);gap:3px}
.ah-kpi-click{background:transparent;border-top:0;border-right:0;border-bottom:0;text-align:left;color:inherit;cursor:pointer;border-radius:0;transition:background .2s}.ah-kpi-click:hover{background:rgba(55,145,148,.08)}.ah-kpi-click:focus-visible{outline:2px solid #70e8d3;outline-offset:3px}
.ah-kpi:first-child{padding-left:0;border-left:0}.ah-kpi:last-child{padding-right:0}
.ah-kpi-icon{display:grid;place-items:center;width:30px;height:30px;margin-bottom:9px;border:1px solid rgba(77,212,196,.24);border-radius:9px;background:rgba(52,158,157,.13);color:#65dbc9;font-size:18px;line-height:1}
.ah-kpi-caption{font-size:12px;font-weight:650;color:#bbd5e1}
.ah-kpi>strong{font-size:clamp(27px,2.7vw,39px);font-variant-numeric:tabular-nums;line-height:1.25;letter-spacing:-1.25px;color:#f0fcff}
.ah-kpi>small{font-size:11px;color:#86aebf;line-height:1.4;min-height:17px}
.ah-nav{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 13px;margin:0 0 17px;background:rgba(9,34,53,.92);border:1px solid #25506a;border-radius:15px;scroll-margin-top:16px}
.ah-nav-tabs,.ah-nav-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.ah-nav-tabs{min-width:0}
.ah-nav-tabs button{border:1px solid transparent;background:transparent;color:#a4c0d0;padding:11px 16px;border-radius:9px;font-size:12px;font-weight:730;white-space:normal;text-align:center;transition:background .18s,border-color .18s,color .18s}
.ah-nav-tabs button:hover{background:#17415a;color:#e9faff}
.ah-nav-tabs button.is-active{color:#ebffff;background:linear-gradient(135deg,#0a7e97,#129caa);border-color:#2db5b6;box-shadow:0 4px 20px rgba(6,130,147,.23)}
.ah-nav-actions button{border-radius:9px;font-size:12px;font-weight:750;padding:11px 14px;transition:filter .2s,transform .2s}
.ah-nav-actions button:hover,.ah-view-map:hover,.ah-audience-card:hover{transform:translateY(-2px)}
.ah-action-secondary{background:rgba(26,66,89,.7);border:1px solid #376680;color:#d3edf7}
.ah-action-primary{background:#26b6b7;border:1px solid #3dc8c8;color:#062737}
.ah-nav-actions button:hover{filter:brightness(1.13)}
.ah-main-grid{display:grid;grid-template-columns:minmax(0,1.72fr) minmax(280px,.85fr);gap:15px;align-items:stretch;margin:0 0 22px}
.ah-focus,.ah-insight{position:relative;min-width:0;border:1px solid var(--ah-edge);border-radius:18px;padding:22px 23px;background:linear-gradient(155deg,#102c40,#0a2134 70%);overflow:hidden}
.ah-focus:before{content:"";position:absolute;width:250px;height:250px;right:-180px;bottom:-190px;background:#28a6a35c;filter:blur(90px);border-radius:50%;pointer-events:none}
.ah-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:19px;position:relative;z-index:1}
.ah-heading h2,.ah-detail-heading h2{font-size:20px;line-height:1.3;letter-spacing:-.35px;margin:7px 0 6px;color:#f0f9ff}
.ah-heading p,.ah-detail-heading p{color:#94b6c7;font-size:12px;line-height:1.5;margin:0}
.ah-text-link{flex:none;padding:7px 0;border:0;background:transparent;color:#75e5d2;font-weight:750;font-size:12px}
.ah-text-link span{margin-left:5px}.ah-text-link:hover{text-decoration:underline}
.ah-audiences{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;position:relative;z-index:1}
.ah-audience-card{display:flex;flex-direction:column;min-height:162px;text-align:left;border:1px solid #2c5368;border-radius:13px;padding:14px;background:linear-gradient(135deg,rgba(22,65,85,.78),rgba(11,40,58,.9));color:#e9f7ff;transition:transform .17s,border-color .17s,background .17s,box-shadow .17s;min-width:0}
.ah-audience-card:hover{border-color:#4bcaba;background:linear-gradient(125deg,rgba(26,81,95,.9),rgba(12,47,65,.94));box-shadow:0 12px 25px rgba(0,10,23,.25)}
.ah-audience-card:focus-visible,.ah-nav button:focus-visible,.ah-view-map:focus-visible{outline:2px solid #77eadb;outline-offset:3px}
.ah-audience-top,.ah-audience-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%}
.ah-audience-index{color:#61d8ce;font-size:11px;font-weight:850;letter-spacing:.1em}
.ah-audience-type{border:1px solid rgba(122,180,201,.26);background:rgba(74,131,157,.13);padding:4px 8px;border-radius:999px;font-size:10px;color:#b0cedd}
.ah-audience-name{font-size:16px;font-weight:760;line-height:1.26;letter-spacing:-.35px;margin:11px 0 6px;overflow-wrap:anywhere;max-width:100%}
.ah-audience-meta{color:#9ab9c9;font-size:11px;line-height:1.5;min-height:15px}
.ah-audience-progress,.ah-track{display:block;width:100%;height:5px;border-radius:99px;background:#24465a;overflow:hidden}
.ah-audience-progress{margin:12px 0 11px}
.ah-audience-progress i,.ah-track i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#188ca6,#60d9be)}
.ah-quadrant-label{border-radius:999px;padding:4px 8px;font-size:10px;font-weight:720;line-height:1.35;max-width:100%}
.ah-quadrant-label.ah-teal{background:#174e49;color:#8ae1c6}
.ah-quadrant-label.ah-blue{background:#203f65;color:#91c6f9}
.ah-quadrant-label.ah-slate{background:#2a4150;color:#bed4df}
.ah-quadrant-label.ah-amber{background:#56402b;color:#f5c792}
.ah-quadrant-label.ah-unset{background:#314052;color:#c6d0dd}
.ah-chevron{font-size:19px;color:#66dccc}
.ah-more{border:0;padding:14px 0 0;background:transparent;color:#7ce5d7;font-size:12px;font-weight:750}
.ah-insight{background:radial-gradient(ellipse at 105% 0%,rgba(42,151,155,.18),transparent 57%),linear-gradient(153deg,#0f3043,#092136 80%)}
.ah-insight .ah-heading{margin-bottom:15px}
.ah-total{display:flex;align-items:center;justify-content:space-between;gap:8px;border:1px solid rgba(79,142,158,.27);border-radius:10px;background:rgba(19,62,78,.45);padding:12px;font-size:11px;color:#bfe5e6;margin-bottom:19px}
.ah-total>span{display:flex;align-items:center;gap:10px;font-weight:750}
.ah-total small{color:#a6bbc7;font-size:10px}
.ah-pulse{width:8px;height:8px}
.ah-quadrant-stack{display:flex;flex-direction:column;gap:17px}
.ah-quadrant-copy{display:flex;align-items:center;gap:10px;margin-bottom:8px}
.ah-color-dot{display:inline-block;flex:none;width:9px;height:9px;border-radius:3px;background:#4bbfb1}
.ah-color-dot.ah-blue,.ah-track i.ah-blue{background:#5c99e5}
.ah-color-dot.ah-slate,.ah-track i.ah-slate{background:#789cac}
.ah-color-dot.ah-amber,.ah-track i.ah-amber{background:#d2a064}
.ah-color-dot.ah-teal,.ah-track i.ah-teal{background:#44ccba}
.ah-quadrant-copy>span:nth-child(2){display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}
.ah-quadrant-copy b{font-size:12px;color:#e3f3f9}
.ah-quadrant-copy small{font-size:10px;color:#88aabd;line-height:1.25}
.ah-quadrant-copy>strong{font-size:15px;color:#f4fcff;font-variant-numeric:tabular-nums}
.ah-track{height:5px;background:#1e4154}
.ah-view-map{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:22px;width:100%;padding:14px 15px;background:rgba(42,124,125,.2);border:1px solid rgba(71,201,180,.37);border-radius:10px;color:#97ebd8;font-size:12px;font-weight:760;text-align:left;transition:transform .2s,background .2s}
.ah-view-map:hover{background:#17504e}
.ah-detail-heading{margin:6px 0 12px;padding-left:2px}
.ah-detail-heading h2{margin:5px 0}
.ah-workspace{scroll-margin-top:12px}
.ah-workspace .aud-setup{padding:10px 14px 12px;margin:0 0 13px;border-color:#2c5169;background:#0b263b}
.ah-workspace .aud-setup>h2{font-size:15px;letter-spacing:-.15px;margin:8px 4px 12px}
.ah-workspace .aud-setup>details{border:1px solid #2b5367;border-radius:12px;margin:9px 0;background:rgba(11,38,57,.83);overflow:hidden;scroll-margin-top:12px}
.ah-workspace .aud-setup>details>summary{list-style:none;display:flex;align-items:center;gap:10px;background:transparent;border:0;width:100%;padding:14px 15px;border-radius:0;color:#dbf0f8;font-size:13px;font-weight:720;cursor:pointer}
.ah-workspace .aud-setup>details>summary::-webkit-details-marker{display:none}
.ah-workspace .aud-setup>details>summary:before{content:"+";display:grid;place-items:center;flex:none;width:24px;height:24px;border:1px solid #396b80;border-radius:7px;color:#76e4d3;font-size:17px;font-weight:500;line-height:1}
.ah-workspace .aud-setup>details[open]>summary{background:#12384f;border-bottom:1px solid #2d566b}
.ah-workspace .aud-setup>details[open]>summary:before{content:"−";background:#205465}
.ah-workspace .aud-setup>details>form,.ah-workspace .aud-setup>details>p,.ah-workspace .aud-setup>details>button,.ah-workspace .aud-setup>details>input,.ah-workspace .aud-setup>details>div,.ah-workspace .aud-setup>details>h3{margin-left:15px;margin-right:15px}
.ah-workspace .aud-setup>details>form{margin-top:16px;margin-bottom:16px}
.ah-workspace .aud-setup>details>div:last-child{margin-bottom:16px}
.ah-workspace .aud-setup>details>p{font-size:12px;line-height:1.5;margin-top:13px}
.ah-workspace .aud-setup>details>input[type=file]{width:calc(100% - 30px)}
.ah-workspace .aud-setup>details>h3{font-size:15px;margin-top:16px}
.ah-workspace .aud-setup .aud-v22-row{gap:10px}
.ah-workspace .aud-setup .aud-v22-row p{font-size:11px;margin:5px 0}
.ah-workspace .aud-people-panel{background:#0b263b;border-color:#2b5367;border-radius:15px;padding:5px 15px}
.ah-workspace .aud-people-panel>details>summary{list-style:none;cursor:pointer;padding:13px 0;font-size:13px}
.ah-workspace .aud-people-panel>details>summary::-webkit-details-marker{display:none}
.ah-workspace .aud-people-panel>details>summary:before{content:"◉";color:#69d6c7;margin-right:10px}
.ah-workspace .aud-people-panel>details[open]>summary{border-bottom:1px solid #2d536b;margin-bottom:16px}
.ah-workspace .aud-people-panel>details>summary b{font-weight:770}
.ah-map-content{border:1px solid #2d536b;border-radius:16px;background:#092338;padding:18px 17px}
.ah-map-content>.flex{margin-bottom:12px}
.ah-map-content>section.panel{margin-bottom:0}
.ah-empty{grid-column:1/-1;border:1px dashed #447184;background:rgba(30,78,94,.2);border-radius:13px;padding:21px;display:flex;flex-direction:column;gap:11px;align-items:flex-start}
.ah-empty strong{font-size:16px}
.ah-empty span{font-size:12px;color:#aac8d6}
.ah-empty .primary{padding:11px 15px;border-radius:9px}
@media(min-width:1500px){.ah-main-grid{grid-template-columns:minmax(0,1.9fr) minmax(300px,.88fr)}.ah-audiences{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1100px){.ah-main-grid{grid-template-columns:1fr}.ah-insight .ah-quadrant-stack{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:22px}.ah-nav{align-items:stretch;flex-direction:column}.ah-nav-actions{justify-content:flex-end}}
@media(max-width:770px){.ah-overview{padding:17px}.ah-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:20px}.ah-kpi{padding:0 13px}.ah-kpi:nth-child(odd){padding-left:0;border-left:0}.ah-kpi:nth-child(even){padding-right:0}.ah-kpi>strong{font-size:30px}.ah-focus,.ah-insight{padding:18px}.ah-audiences{grid-template-columns:1fr 1fr}.ah-nav{gap:12px}.ah-nav-actions{justify-content:stretch}.ah-nav-actions button{flex:1}.ah-map-content{padding:10px}}
@media(max-width:510px){.ah-overview-tag{display:none}.ah-audiences{grid-template-columns:1fr}.ah-audience-card{min-height:150px}.ah-insight .ah-quadrant-stack{grid-template-columns:1fr}.ah-nav-tabs{width:100%;display:grid;grid-template-columns:1fr 1fr}.ah-nav-tabs button{padding:10px 8px}.ah-nav-actions{display:grid;grid-template-columns:1fr 1fr}.ah-heading{flex-wrap:wrap}.ah-kpi-caption{font-size:11px}.ah-kpi small{font-size:10px}}
@media(prefers-reduced-motion:reduce){.ah-home *, .ah-home *:before, .ah-home *:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* Consolidado de adopción: proporciones de pares persona–comportamiento. */
.ah-home .aud-adoption-consolidated .aud-stage-summary{cursor:default;min-height:150px}
.ah-home .aud-adoption-consolidated .aud-stage-summary:hover{background:#0a273b}
.ah-home .aud-consolidated-note{margin:0 0 17px;max-width:1000px;color:#9dbcca;font-size:12px;line-height:1.55}
.ah-home .aud-consolidated-breakdown{border-top:1px solid #2a536a;padding-top:13px;margin-top:13px}
.ah-home .aud-consolidated-breakdown>summary{cursor:pointer;font-size:13px;font-weight:720;color:#a8e8e0;padding:8px 0}
.ah-home .aud-consolidated-table{max-width:100%;overflow-x:auto;margin-top:12px;border:1px solid #284d62;border-radius:10px}
.ah-home .aud-consolidated-table table{min-width:790px;width:100%;font-size:12px}
.ah-home .aud-consolidated-table th,.ah-home .aud-consolidated-table td{padding:11px 13px}
.ah-home .aud-consolidated-table th:first-child{min-width:180px;max-width:340px;overflow-wrap:anywhere}
