/* AMARELO HUB · Inicio v2 (beta). Activo con <html data-ui="next" data-uiv="2">. */
:root[data-uiv="2"]{
  --glass-fill:linear-gradient(180deg,rgba(38,36,26,.52),rgba(16,17,20,.56));
  --glass-edge:linear-gradient(135deg,rgba(255,211,42,.6),rgba(255,255,255,.12) 32%,rgba(255,255,255,.04) 62%,rgba(255,211,42,.32));
  --glass-glow:0 0 30px -10px rgba(255,211,42,.38),0 26px 60px -26px rgba(0,0,0,.95),inset 0 1px 0 rgba(255,255,255,.08);
}
/* Glass luminoso: relleno translúcido + borde degradado + halo amarillo suave */
:root[data-uiv="2"] :is(.fnav,.v2-dock,.v2-tabs,.v2-welcome-card,.fnav-menu,.productive-home .journey-metrics){background:var(--glass-fill) padding-box,var(--glass-edge) border-box!important;border:1px solid transparent!important;-webkit-backdrop-filter:blur(22px) saturate(160%);backdrop-filter:blur(22px) saturate(160%);box-shadow:var(--glass-glow)!important}
@media (prefers-reduced-transparency:reduce){:root[data-uiv="2"] :is(.fnav,.v2-dock,.v2-tabs,.v2-welcome-card,.fnav-menu,.productive-home .journey-metrics){background:#16171a!important;backdrop-filter:none}}

/* Fondo: rejilla de puntos tenue que se desvanece hacia abajo */
:root[data-uiv="2"] body::after{content:"";position:fixed;inset:0;z-index:0;pointer-events:none;background-image:radial-gradient(rgba(255,211,42,.13) 1px,transparent 1.4px);background-size:28px 28px;-webkit-mask-image:radial-gradient(90% 60% at 50% 0,#000 0,transparent 75%);mask-image:radial-gradient(90% 60% at 50% 0,#000 0,transparent 75%);opacity:.55}

/* Portada detrás del saludo */
:root[data-uiv="2"] .hub-cover{position:fixed;inset:0 0 auto 0;width:auto;height:min(64vh,620px);z-index:0;pointer-events:none;opacity:0;transition:opacity 700ms ease}
:root[data-uiv="2"] .hub-cover.is-on{opacity:1}
:root[data-uiv="2"] .hub-cover img{width:100%;height:100%;object-fit:cover;object-position:50% 50%;filter:saturate(.9) contrast(1.05) brightness(.8);transform:scale(1.03)}
@keyframes hub-cover-drift{from{transform:scale(1.03)}to{transform:scale(1.09) translate(-1%,1%)}}
:root[data-uiv="2"] .hub-cover::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(16,17,19,.82) 0%,rgba(16,17,19,.42) 45%,rgba(16,17,19,.25) 100%),linear-gradient(180deg,rgba(16,17,19,.2) 0%,rgba(16,17,19,.35) 55%,var(--bg) 100%)}
:root[data-uiv="2"] .main{position:relative;z-index:1}
@media (prefers-reduced-motion:reduce){:root[data-uiv="2"] .hub-cover img{animation:none}}

/* Dock flotante configurable */
:root[data-uiv="2"] .v2-dock{position:fixed;left:50%;bottom:20px;transform:translateX(-50%);z-index:55;display:flex;align-items:center;gap:4px;padding:6px;border-radius:20px}
:root[data-uiv="2"] .v2-dock-item{display:inline-flex;align-items:center;gap:8px;height:42px;padding:0 15px;border:0;border-radius:14px;background:transparent;color:#d7d9dc;font:500 13.5px var(--font);white-space:nowrap;cursor:pointer;transition:background-color 160ms ease,transform 160ms var(--ease-out)}
:root[data-uiv="2"] .v2-dock-item .nav-icon{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
@media (hover:hover) and (pointer:fine){:root[data-uiv="2"] .v2-dock-item:not(.is-primary):hover{background:rgba(255,255,255,.07)}}
:root[data-uiv="2"] .v2-dock-item:active{transform:scale(.96)}
:root[data-uiv="2"] .v2-dock-item.is-primary{background:var(--yellow);color:var(--yellow-ink);font-weight:600;box-shadow:0 0 22px -4px rgba(255,211,42,.55)}
:root[data-uiv="2"] .v2-dock-config{width:42px;padding:0;justify-content:center;color:var(--muted)}
:root[data-uiv="2"] .v2-dock-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:10px 0}
:root[data-uiv="2"] .v2-dock-option{display:flex;align-items:center;gap:10px;padding:9px 10px;border:1px solid var(--line);border-radius:10px;cursor:pointer}
:root[data-uiv="2"] .v2-dock-option span{display:flex;align-items:center;gap:8px;color:var(--ink)}
:root[data-uiv="2"] .v2-dock-option .nav-icon{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8}
:root[data-uiv="2"] .v2-dock-option:has(input:checked){border-color:rgba(255,211,42,.45);background:rgba(255,211,42,.07)}
@media (min-width:761px){:root[data-uiv="2"] .content{padding-bottom:92px}}
@media (max-width:760px){:root[data-uiv="2"] .v2-dock{display:none}:root[data-uiv="2"] #hub-navigation .in-mobile-dock{display:none!important}}

/* ── Inicio en una sola pantalla (web) ── */
:root[data-uiv="2"] .productive-home :is(.page-head,.journey-heading,.home-command,.welcome-progress,.home-operations>.form-help){display:none!important}
:root[data-uiv="2"] .productive-home .home-hero{position:fixed;top:92px;right:clamp(16px,2vw,32px);min-height:0;padding:0;background:none!important;border:0;overflow:visible;z-index:6}
:root[data-uiv="2"] .productive-home .home-hero>:not(.home-hero-tools),:root[data-uiv="2"] .productive-home .home-hero::before,:root[data-uiv="2"] .productive-home .home-hero::after{display:none}
:root[data-uiv="2"] .productive-home .home-hero-tools{position:static;opacity:0;transition:opacity 180ms ease}
:root[data-uiv="2"] .productive-home:hover .home-hero-tools,:root[data-uiv="2"] .productive-home .home-hero-tools:focus-within{opacity:1}
@media (hover:none){:root[data-uiv="2"] .productive-home .home-hero-tools{opacity:1}}
:root[data-uiv="2"] body:not(.has-cover) .productive-home :is(.home-hero-remove,.home-hero-frame){display:none!important}
:root[data-uiv="2"] body.has-cover .productive-home :is(.home-hero-remove,.home-hero-frame){display:inline-flex!important}

@media (min-width:1100px) and (min-height:640px){
  :root[data-uiv="2"] body.v2-home{overflow:hidden}
  :root[data-uiv="2"] body.v2-home .content.productive-home{height:100dvh;padding:92px clamp(16px,2.4vw,40px) 90px;display:grid;grid-template-columns:minmax(0,1.6fr) minmax(320px,1fr);grid-template-rows:auto auto minmax(0,1fr) 44px;grid-template-areas:"greet metrics" "tabs team" "main act" "brands brands";column-gap:clamp(28px,3vw,56px);row-gap:clamp(12px,2vh,22px);overflow:hidden}
  :root[data-uiv="2"] .productive-home :is(.dashboard-grid,.home-operations){display:contents!important}
  :root[data-uiv="2"] .productive-home .welcome-profile{grid-area:greet!important;align-self:center}
  :root[data-uiv="2"] .productive-home .journey-metrics{grid-area:metrics!important;align-self:center}
  :root[data-uiv="2"] .productive-home .v2-tabs{grid-area:tabs!important;align-self:end}
  :root[data-uiv="2"] .productive-home .v2-tab-panel{grid-area:main!important;min-height:0;overflow:auto;overscroll-behavior:contain}
  :root[data-uiv="2"] .productive-home .home-operations>.panel{grid-area:team!important;align-self:end}
  :root[data-uiv="2"] .productive-home .dashboard-grid>.panel:nth-child(5){grid-area:act!important;min-height:0;overflow:auto;overscroll-behavior:contain}
  :root[data-uiv="2"] .productive-home .recognition-home{display:none!important}
  :root[data-uiv="2"] .productive-home .home-brands{grid-area:brands!important;align-self:center}
}
:root[data-uiv="2"] body.v2-home .content.productive-home .v2-tab-off.v2-tab-off.v2-tab-off{display:none!important}
:root[data-uiv="2"] body.v2-home .content.productive-home .v2-tab-panel.v2-tab-panel.v2-tab-panel{padding:0!important;overflow:auto!important;height:auto;min-height:0}

/* Saludo sobre la foto */
:root[data-uiv="2"] .productive-home .welcome-profile{display:block!important;padding:0!important;background:transparent!important;border:0!important}
:root[data-uiv="2"] .productive-home .welcome-identity h2{font-size:clamp(46px,5vw,80px);line-height:.95;letter-spacing:-.045em;font-weight:600;margin:0 0 14px;text-shadow:0 2px 24px rgba(0,0,0,.45)}
:root[data-uiv="2"] .productive-home .welcome-identity .welcome-role{display:none}
:root[data-uiv="2"] .greet-word{display:inline-block;min-width:1ch}
:root[data-uiv="2"] .greet-word.is-typing::after{content:"";display:inline-block;width:3px;height:.8em;margin-left:4px;background:var(--yellow);vertical-align:-.05em;animation:hub-caret 700ms steps(1) infinite}
@keyframes hub-caret{50%{opacity:0}}
:root[data-uiv="2"] .welcome-brief{font-size:clamp(15px,1.2vw,18px)!important;line-height:1.5;color:#d6d8db!important;max-width:40ch;text-shadow:0 1px 14px rgba(0,0,0,.5)}
:root[data-uiv="2"] .brief-bad{color:#ff8a8a!important;font-weight:600}
:root[data-uiv="2"] .brief-info{color:#9cc9ff!important;font-weight:600}

/* Indicadores en ficha glass */
:root[data-uiv="2"] .productive-home .journey-metrics{border-radius:20px!important;padding:16px 18px!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;row-gap:12px!important;margin:0!important}
:root[data-uiv="2"] .productive-home .journey-metrics .metric{padding:2px 0 2px 14px!important;border:0!important;border-left:1px solid rgba(255,255,255,.08)!important;background:transparent!important;min-height:0}
:root[data-uiv="2"] .productive-home .journey-metrics .metric:nth-child(4n+1){border-left:0!important;padding-left:0!important}
:root[data-uiv="2"] .productive-home .journey-metrics .metric::before,:root[data-uiv="2"] .productive-home .journey-metrics .metric::after{display:none!important}
:root[data-uiv="2"] .productive-home .journey-metrics .metric strong{font-size:clamp(26px,2.3vw,36px)!important;letter-spacing:-.04em}
:root[data-uiv="2"] .productive-home .journey-metrics .metric span{font-size:12px}
:root[data-uiv="2"] .productive-home .journey-metrics [aria-label^="Ver solicitudes"] strong{color:var(--yellow)}
:root[data-uiv="2"] .productive-home .journey-metrics :is([aria-label^="Ver atrasadas"],[aria-label^="Ver vencidas"]) strong{color:var(--bad)}
:root[data-uiv="2"] .productive-home .journey-metrics :is([aria-label^="Ver finalizadas"],[aria-label^="Ver completadas"]) strong{color:var(--ok)}

/* Pestañas con píldora deslizante */
:root[data-uiv="2"] .v2-tabs{position:relative;display:inline-flex;gap:2px;padding:4px;border-radius:14px;justify-self:start;max-width:100%;overflow-x:auto}
:root[data-uiv="2"] .v2-tabs-pill{position:absolute;left:0;top:4px;bottom:4px;width:0;border-radius:10px;background:rgba(255,211,42,.12);box-shadow:inset 0 0 0 1px rgba(255,211,42,.35);transition:transform 220ms var(--ease-out),width 220ms var(--ease-out);pointer-events:none}
:root[data-uiv="2"] .v2-tab{position:relative;z-index:1;display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 13px;border:0;border-radius:10px;background:transparent;color:var(--muted);font:500 13px var(--font);white-space:nowrap;cursor:pointer;transition:color 160ms ease}
:root[data-uiv="2"] .v2-tab[aria-selected="true"]{color:var(--yellow)}
:root[data-uiv="2"] .v2-tab small{font:600 10.5px/1 var(--font);padding:3px 6px;border-radius:6px;background:rgba(255,255,255,.08);color:inherit}
@media (prefers-reduced-motion:reduce){:root[data-uiv="2"] .v2-tabs-pill{transition:none}}

/* Paneles sin caja */
:root[data-uiv="2"] .productive-home :is(.dashboard-grid>.panel,.home-operations>.panel,.home-agencies){background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;height:auto}
:root[data-uiv="2"] .productive-home .v2-tab-panel>:is(.panel-head,.home-panel-head,.home-section-head){display:none}
:root[data-uiv="2"] .productive-home :is(.home-operations>.panel,.dashboard-grid>.panel:nth-child(5))>:is(.panel-head,.home-panel-head){position:sticky!important;top:0;z-index:2;margin:0 0 8px!important;padding:0 0 8px!important;background:transparent!important;border-bottom:1px solid var(--line)!important}
:root[data-uiv="2"] .productive-home :is(.panel-head,.home-panel-head) h2::before{display:none}
:root[data-uiv="2"] .productive-home :is(.panel-head,.home-panel-head) .btn{background:transparent!important;border-color:transparent!important;color:var(--muted)!important;min-height:28px;padding:4px 8px}
:root[data-uiv="2"] .productive-home .v2-tab-panel thead{position:sticky;top:0;z-index:1;background:rgba(16,17,19,.92)}
:root[data-uiv="2"] .productive-home .v2-tab-panel tbody tr{transition:background-color 160ms ease,box-shadow 160ms ease}
@media (hover:hover) and (pointer:fine){:root[data-uiv="2"] .productive-home .v2-tab-panel tbody tr:hover{background:var(--surface)!important;box-shadow:inset 0 0 0 1px var(--line-strong)}}
:root[data-uiv="2"] .productive-home .v2-tab-panel td .btn{min-height:26px!important;padding:2px 8px!important;font-size:11px!important}
/* Actividad como línea de tiempo */
:root[data-uiv="2"] .productive-home .dashboard-grid>.panel:nth-child(5) .task-row{position:relative;border:0!important;padding:0 0 12px 22px!important;display:block}
:root[data-uiv="2"] .productive-home .dashboard-grid>.panel:nth-child(5) .task-row::before{content:"";position:absolute;left:4px;top:14px;bottom:-2px;width:1px;background:var(--line-strong)}
:root[data-uiv="2"] .productive-home .dashboard-grid>.panel:nth-child(5) .task-row::after{content:"";position:absolute;left:0;top:5px;width:9px;height:9px;border-radius:50%;background:var(--bg);border:2px solid var(--faint)}
:root[data-uiv="2"] .productive-home .dashboard-grid>.panel:nth-child(5) .task-row:first-of-type::after{border-color:var(--yellow);box-shadow:0 0 0 4px rgba(255,211,42,.12)}
:root[data-uiv="2"] .productive-home .dashboard-grid>.panel:nth-child(5) .task-row small{display:block;margin-top:2px;font-size:11.5px;color:var(--faint)}
/* Equipo compacto */
:root[data-uiv="2"] .productive-home .home-team{display:flex!important;flex-wrap:wrap;gap:4px 10px}
:root[data-uiv="2"] .productive-home .home-person{width:64px;padding:2px 0!important;background:transparent!important}
:root[data-uiv="2"] .productive-home .home-person :is(.profile-circle,.presence-ring){width:44px!important;height:44px!important}
:root[data-uiv="2"] .productive-home .home-person :is(small,.presence-caption,.load-label,.person-meta){display:none!important}
:root[data-uiv="2"] .productive-home .home-person strong{font-size:11px;font-weight:500}
/* Marcas sin caja */
:root[data-uiv="2"] .productive-home .home-brands{background:transparent!important;border:0!important;padding:0!important}
:root[data-uiv="2"] .productive-home .home-brands h2{border-right:0!important;font-size:13px!important;color:var(--muted);font-weight:500}
:root[data-uiv="2"] .productive-home .home-brand-group img{height:40px}

/* Editor de encuadre */
:root[data-uiv="2"] .v2-frame{position:relative;aspect-ratio:16/6;border-radius:14px;overflow:hidden;cursor:grab;touch-action:none;user-select:none;border:1px solid var(--line-strong);margin:10px 0}
:root[data-uiv="2"] .v2-frame img{width:100%!important;height:100%!important;object-fit:cover!important;pointer-events:none}
:root[data-uiv="2"] .v2-frame.is-dragging{cursor:grabbing}
:root[data-uiv="2"] .v2-frame-hint{position:absolute;left:12px;bottom:12px;padding:5px 10px;border-radius:999px;background:rgba(16,17,19,.75);font-size:12px;color:var(--ink);pointer-events:none}

/* Bienvenida: zoom a través de las esferas y ficha glass */
:root[data-uiv="2"] .v2-welcome{position:fixed;inset:0;z-index:20000;display:grid;place-items:center;isolation:isolate}
:root[data-uiv="2"] .v2-welcome::before{content:"";position:absolute;inset:0;z-index:-2;background:rgba(10,11,13,.45);-webkit-backdrop-filter:blur(18px) saturate(140%);backdrop-filter:blur(18px) saturate(140%)}
:root[data-uiv="2"] .v2-welcome::after{content:"";position:absolute;inset:0;z-index:-1;background:#000;transition:opacity 700ms ease 450ms}
:root[data-uiv="2"] .v2-welcome.is-in::after{opacity:0}
:root[data-uiv="2"] .v2-welcome-zoom{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none;z-index:1}
:root[data-uiv="2"] .v2-welcome-zoom img{width:min(520px,90vw);height:auto;filter:url(#brand-white-letters);transform-origin:52% 39%}
:root[data-uiv="2"] .v2-welcome.is-in .v2-welcome-zoom img{animation:hub-sphere-zoom 1100ms cubic-bezier(.7,0,.2,1) forwards}
@keyframes hub-sphere-zoom{0%{transform:scale(1);opacity:1}70%{opacity:1}100%{transform:scale(22);opacity:0}}
:root[data-uiv="2"] .v2-welcome-card{position:relative;z-index:2;width:min(420px,calc(100vw - 32px));padding:34px 32px 28px;border-radius:26px;text-align:center;opacity:0;transform:translateY(14px) scale(.96)}
:root[data-uiv="2"] .v2-welcome.is-in .v2-welcome-card{transition:opacity 420ms var(--ease-out) 950ms,transform 520ms var(--ease-out) 950ms;opacity:1;transform:none}
:root[data-uiv="2"] .v2-welcome-avatar{width:92px;height:92px;margin:0 auto 18px;border-radius:50%;overflow:hidden;box-shadow:0 0 0 3px rgba(16,17,19,.9),0 0 0 4px rgba(255,211,42,.6),0 0 30px -4px rgba(255,211,42,.5)}
:root[data-uiv="2"] .v2-welcome-avatar :is(img,.profile-circle){width:100%;height:100%;object-fit:cover;border:0;margin:0}
:root[data-uiv="2"] .v2-welcome-kicker{margin:0;color:var(--yellow)!important;font-size:14px;font-weight:500}
:root[data-uiv="2"] .v2-welcome-card h2{margin:4px 0 10px;font-size:40px;letter-spacing:-.04em;font-weight:600}
:root[data-uiv="2"] .v2-welcome-card p:not(.v2-welcome-kicker){margin:0 auto 24px;max-width:28ch;color:#c9cbcf;font-size:15px;line-height:1.5}
:root[data-uiv="2"] .v2-welcome-enter{display:inline-flex;align-items:center;gap:10px;height:48px;padding:0 26px;border:0;border-radius:14px;background:var(--yellow);color:var(--yellow-ink);font:600 15px var(--font);cursor:pointer;box-shadow:0 0 28px -4px rgba(255,211,42,.6);transition:transform 160ms var(--ease-out),box-shadow 200ms ease}
:root[data-uiv="2"] .v2-welcome-enter svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;transition:transform 200ms var(--ease-out)}
@media (hover:hover) and (pointer:fine){:root[data-uiv="2"] .v2-welcome-enter:hover svg{transform:translateX(3px)}:root[data-uiv="2"] .v2-welcome-enter:hover{box-shadow:0 0 36px -2px rgba(255,211,42,.75)}}
:root[data-uiv="2"] .v2-welcome-enter:active{transform:scale(.97)}
:root[data-uiv="2"] .v2-welcome.is-leaving{transition:opacity 380ms ease;opacity:0}
:root[data-uiv="2"] .v2-welcome.is-leaving .v2-welcome-card{transition:transform 300ms var(--ease-out),opacity 260ms ease;transform:scale(.97);opacity:0}
:root[data-uiv="2"] .v2-welcome.is-static .v2-welcome-zoom{display:none}
:root[data-uiv="2"] .v2-welcome.is-static::after{opacity:0}
:root[data-uiv="2"] .v2-welcome.is-static .v2-welcome-card{opacity:1;transform:none;transition:none}
:root[data-uiv="2"] .hub-cover{overflow:hidden}
:root[data-uiv="2"] .productive-home .home-team{flex-wrap:nowrap!important;overflow-x:auto;scrollbar-width:none;gap:2px 8px!important;padding-bottom:2px}
:root[data-uiv="2"] .productive-home .home-team::-webkit-scrollbar{display:none}
:root[data-uiv="2"] .productive-home .home-person{flex:none;width:56px!important}
:root[data-uiv="2"] .productive-home .home-person :is(.profile-circle,.presence-ring){width:38px!important;height:38px!important}
:root[data-uiv="2"] .productive-home .home-person strong{display:block;max-width:56px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
:root[data-uiv="2"] .productive-home .journey-metrics .metric{grid-column:auto!important}
@media (max-width:600px){:root[data-uiv="2"] .productive-home .journey-metrics .metric span{white-space:normal!important;overflow:visible!important;font-size:11px;line-height:1.25}:root[data-uiv="2"] .productive-home .journey-metrics .metric{padding-left:10px!important}}
:root[data-uiv="2"] .productive-home .journey-metrics .metric{text-align:left!important;align-items:flex-start!important}
@media not ((min-width:1100px) and (min-height:640px)){
  :root[data-uiv="2"] .productive-home .welcome-profile{order:-6!important}
  :root[data-uiv="2"] .productive-home .journey-metrics{order:-5!important}
  :root[data-uiv="2"] .productive-home .v2-tabs{order:-4!important;display:flex;margin:4px 0 0}
  :root[data-uiv="2"] .productive-home .dashboard-grid{order:-3!important}
  :root[data-uiv="2"] .productive-home .home-agencies{order:-3!important}
  :root[data-uiv="2"] .productive-home .home-operations{order:-2!important}
}
