/* =====================================================================
   SHS Hero Pro  ·  scoped .shs-hero
   ===================================================================== */
.shs-hero{
  --ink:#111214; --ink-2:#3b4048; --muted:#6b7280; --subtle:#9aa1ab;
  --line:#e4e7eb; --line-2:#eef0f3; --surface:#fff; --sunken:#f6f8fa;
  --dark:#1f2021; --dark-2:#2c2d2f;
  --ok:#12805c;
  --ease-out:cubic-bezier(.2,.7,.2,1);
  --spring:cubic-bezier(.34,1.56,.64,1);
  --tone:#187b7e;
  position:relative; box-sizing:border-box; overflow:hidden; isolation:isolate;
  display:grid; grid-template-columns:minmax(0,1fr) minmax(0,560px); align-items:stretch;
  background:linear-gradient(135deg,#fff 0%,#fafbfc 100%);
  border:1px solid var(--line); border-radius:14px;
  box-shadow:0 1px 2px #1018280a;
  color:var(--ink); font-family:inherit;
}
.shs-hero *,.shs-hero *::before,.shs-hero *::after{box-sizing:border-box}

/* ---------- Copy ---------- */
.shs-hero__copy{display:flex; flex-direction:column; padding:44px 48px 0; position:relative; z-index:2}
.shs-hero__eyebrow{display:inline-flex; align-items:center; gap:10px; margin:0 0 18px; font-size:10.5px; font-weight:600; letter-spacing:.16em; text-transform:uppercase; color:var(--muted)}
.shs-hero__eyebrow::before{content:""; width:18px; height:1.5px; background:var(--ink)}
.shs-hero__title{margin:0 0 14px; font-size:clamp(26px,2.4vw,34px); line-height:1.14; font-weight:500; letter-spacing:-.025em}
.shs-hero__title span{color:var(--subtle)}
.shs-hero__text{margin:0 0 30px; max-width:440px; font-size:14px; line-height:1.65; color:var(--ink-2)}
.shs-hero__foot{margin-top:auto; display:flex; flex-wrap:wrap; align-items:center; gap:18px; padding:18px 0 22px; border-top:1px solid var(--line-2); font-size:12px; color:var(--muted)}
.shs-hero__foot b{color:var(--ink); font-weight:600}
.shs-hero__status{display:inline-flex; align-items:center; gap:7px; padding:4px 10px; border-radius:999px; font-size:11px; font-weight:500; color:var(--ok); background:#12805c0f; border:1px solid #12805c33}
.shs-hero__status i{width:6px; height:6px; border-radius:50%; background:currentColor; animation:shs-breath 2.4s ease-in-out infinite}

/* ---------- Visual ---------- */
.shs-hero__visual{
  position:relative; min-height:360px; border-left:1px solid var(--line);
  background:linear-gradient(180deg,#fbfcfd 0%,#f4f6f9 100%);
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px;
  padding:30px 24px 22px;
}
.shs-hero__visual::before{ /* grilla de puntos */
  content:""; position:absolute; inset:0; pointer-events:none;
  background-image:radial-gradient(#cdd4dc 1px,transparent 1px); background-size:18px 18px; opacity:.55;
  -webkit-mask-image:radial-gradient(70% 70% at 55% 50%,#000 30%,transparent 100%);
          mask-image:radial-gradient(70% 70% at 55% 50%,#000 30%,transparent 100%);
}
.shs-hero__visual::after{ /* halo de color según herramienta */
  content:""; position:absolute; width:360px; height:360px; left:50%; top:46%;
  transform:translate(-50%,-50%); border-radius:50%; pointer-events:none;
  background:radial-gradient(circle,color-mix(in srgb,var(--tone) 16%,transparent) 0%,transparent 65%);
  transition:background .8s ease;
}

.shs-scene{position:relative; z-index:1; perspective:1100px; width:452px; height:286px}
.shs-stage{
  --rx:0; --ry:0;
  position:absolute; inset:0; transform-style:preserve-3d;
  transform:rotateX(calc(var(--ry) * -4deg)) rotateY(calc(-7deg + var(--rx) * 5deg)) rotateZ(.4deg);
  will-change:transform;
}

/* Ventana */
.shs-win{
  position:absolute; left:26px; top:14px; width:404px; height:252px; overflow:hidden;
  display:flex; flex-direction:column;
  background:#fff; border-radius:12px;
  box-shadow:
    0 0 0 1px #1018280f,
    0 2px 4px -1px #1018280d,
    0 30px 60px -28px #1f2a3a66,
    0 12px 24px -16px #1f2a3a26;
  transform:translateZ(0);
}
.shs-win__bar{height:28px; flex:none; display:flex; align-items:center; gap:5px; padding:0 11px; background:#fafbfc; border-bottom:1px solid var(--line-2)}
.shs-win__bar > i{width:7px; height:7px; border-radius:50%; background:#e2e5e9}
.shs-win__url{margin:0 auto; display:flex; align-items:center; gap:6px; height:16px; padding:0 12px; border-radius:5px; background:#f1f3f5; font-size:8.5px; color:var(--subtle); letter-spacing:.02em}
.shs-win__url svg{width:8px; height:8px}
.shs-win__body{flex:1; display:grid; grid-template-columns:52px 1fr; min-height:0}

/* Rail */
.shs-rail{position:relative; background:var(--dark); display:flex; flex-direction:column; align-items:center; gap:6px; padding:10px 0}
.shs-rail__brand{width:24px; height:24px; border-radius:6px; background:#fff; color:var(--dark); display:grid; place-items:center; font-size:9px; font-weight:800; margin-bottom:8px}
.shs-rail__ind{
  position:absolute; left:8px; top:0; width:36px; height:32px; border-radius:8px; background:#ffffff14;
  transform:translateY(var(--y,52px)); transition:transform .55s var(--spring);
}
.shs-rail__ind::before{content:""; position:absolute; left:-8px; top:8px; bottom:8px; width:2.5px; border-radius:0 3px 3px 0; background:var(--tone); transition:background .5s}
.shs-rail__btn{
  position:relative; z-index:1; width:36px; height:32px; border:0; border-radius:8px; padding:0;
  display:grid; place-items:center; background:transparent; color:#7d838c; cursor:pointer;
  transition:color .3s, transform .18s var(--ease-out);
}
.shs-rail__btn svg{width:15px; height:15px}
.shs-rail__btn:hover{color:#d5d8dc}
.shs-rail__btn.is-active{color:#fff}
.shs-rail__btn.is-press{transform:scale(.86)}
.shs-rail__btn:focus-visible{outline:none; box-shadow:0 0 0 2px #fff6}

/* Panel */
.shs-pane{position:relative; display:flex; flex-direction:column; min-width:0; padding:12px 14px 12px; background:#fcfcfd}
.shs-pane__head{display:flex; align-items:center; justify-content:space-between; margin-bottom:11px}
.shs-pane__label{display:flex; align-items:center; gap:8px}
.shs-pane__icon{width:24px; height:24px; border-radius:6px; display:grid; place-items:center;
  color:var(--tone); background:color-mix(in srgb,var(--tone) 9%,#fff); border:1px solid color-mix(in srgb,var(--tone) 22%,#fff);
  transition:color .5s, background .5s, border-color .5s}
.shs-pane__icon svg{width:13px; height:13px}
.shs-pane__label small{display:block; font-size:6.5px; font-weight:600; letter-spacing:.16em; text-transform:uppercase; color:var(--subtle)}
.shs-pane__title{position:relative; display:grid; height:15px; overflow:hidden; font-size:12px; font-weight:600}
.shs-pane__title span{grid-area:1/1; display:block; white-space:nowrap; transition:transform .5s var(--spring), opacity .3s}
.shs-pane__title span.out{transform:translateY(-100%); opacity:0}
.shs-pane__title span.in{transform:translateY(100%); opacity:0}
.shs-live{display:inline-flex; align-items:center; gap:5px; font-size:7.5px; font-weight:500; color:var(--ok); padding:3px 7px; border-radius:999px; background:#12805c0d; border:1px solid #12805c2b}
.shs-live i{width:5px; height:5px; border-radius:50%; background:currentColor; animation:shs-breath 1.8s ease-in-out infinite}

.shs-views{position:relative; flex:1}
.shs-view{position:absolute; inset:0; opacity:0; visibility:hidden; transform:translateY(8px) scale(.985); filter:blur(4px);
  transition:opacity .45s var(--ease-out), transform .55s var(--ease-out), filter .45s var(--ease-out), visibility 0s .5s}
.shs-view.is-active{opacity:1; visibility:visible; transform:none; filter:none; transition-delay:0s}

/* Skeleton overlay -> resuelve */
.shs-sk{position:absolute; inset:0; display:grid; grid-template-rows:auto 1fr; gap:8px; transition:opacity .35s ease}
.shs-sk__row{display:grid; grid-template-columns:repeat(3,1fr); gap:7px}
.shs-sk__row i,.shs-sk__block{display:block; height:38px; border-radius:7px}
.shs-sk__block{height:auto}
.shs-sk i,.shs-sk__block{
  background:linear-gradient(90deg,#f0f2f5 0%,#f7f8fa 40%,#f0f2f5 80%); background-size:200% 100%;
  animation:shs-shimmer 1.1s linear infinite;
}
.shs-view.is-ready .shs-sk{opacity:0}
.shs-real > *{opacity:0; transform:translateY(6px)}
.shs-view.is-ready .shs-real > *{animation:shs-rise .55s var(--spring) forwards; animation-delay:calc(var(--s,0) * 70ms)}
.shs-real{position:absolute; inset:0; display:flex; flex-direction:column; gap:8px}

/* Tiles + odómetro */
.shs-tiles{display:grid; grid-template-columns:repeat(3,1fr); gap:7px}
.shs-tile{padding:7px 8px 6px; border-radius:7px; background:#fff; border:1px solid var(--line)}
.shs-tile > i{display:block; width:60%; height:4px; border-radius:2px; background:#e9ecf0; margin-bottom:6px}
.shs-num{display:flex; align-items:baseline; height:15px; overflow:hidden; font-size:13px; font-weight:700; letter-spacing:-.01em; font-variant-numeric:tabular-nums; line-height:15px}
.shs-num .d{display:inline-block; height:15px; overflow:hidden}
.shs-num .d > span{display:flex; flex-direction:column; transition:transform 1s var(--ease-out)}
.shs-num .d > span > b{height:15px; font-weight:700}
.shs-num .c{font-weight:700}
.shs-tile em{display:inline-block; margin-top:3px; font-style:normal; font-size:7px; font-weight:600; color:var(--ok)}
.shs-tile em.tone{color:var(--tone)}

/* Barras */
.shs-bars{position:relative; flex:1; display:flex; align-items:flex-end; gap:6px; padding:8px 8px 0; border-radius:7px; background:#fff; border:1px solid var(--line)}
.shs-bars::before{content:""; position:absolute; inset:8px 8px 0; background:repeating-linear-gradient(to top,transparent 0 17px,#f1f3f5 17px 18px)}
.shs-bars span{position:relative; flex:1; height:var(--h); border-radius:4px 4px 0 0;
  background:color-mix(in srgb,var(--tone) 22%,#fff); transform-origin:bottom; transform:scaleY(0)}
.shs-bars span.hl{background:var(--tone)}
.shs-bars span.hl::after{content:""; position:absolute; left:50%; top:-14px; transform:translateX(-50%); width:6px; height:6px; border-radius:50%; background:var(--tone); box-shadow:0 0 0 3px color-mix(in srgb,var(--tone) 20%,transparent); opacity:0}
.shs-view.is-ready .shs-bars span{animation:shs-grow .8s var(--spring) forwards; animation-delay:calc(200ms + var(--i) * 55ms)}
.shs-view.is-ready .shs-bars span.hl::after{animation:shs-fade .3s ease 1s forwards}

/* Filas con estado */
.shs-rows{display:flex; flex-direction:column; border-radius:7px; background:#fff; border:1px solid var(--line); padding:2px 9px}
.shs-row{display:grid; grid-template-columns:18px 1fr auto; align-items:center; gap:9px; height:33px; border-bottom:1px solid var(--line-2)}
.shs-row:last-child{border-bottom:0}
.shs-row__av{width:18px; height:18px; border-radius:50%; background:color-mix(in srgb,var(--tone) 14%,#fff); border:1px solid color-mix(in srgb,var(--tone) 25%,#fff)}
.shs-row__tx i{display:block; height:4px; border-radius:2px; background:#e6e9ed; width:var(--w,70%)}
.shs-row__tx i + i{margin-top:4px; width:40%; background:#f0f2f5}
.shs-pill{position:relative; display:inline-flex; align-items:center; gap:4px; height:15px; padding:0 7px; border-radius:999px; font-size:7px; font-weight:600;
  color:#8a6a1f; background:#fdf6e7; border:1px solid #f3e1b6; transition:all .35s var(--ease-out)}
.shs-pill .spin{width:7px; height:7px; border-radius:50%; border:1.5px solid currentColor; border-right-color:transparent; animation:shs-spin .7s linear infinite}
.shs-pill .chk{display:none; width:8px; height:8px}
.shs-pill.done{color:var(--ok); background:#ecf7f2; border-color:#bfe3d3}
.shs-pill.done .spin{display:none}
.shs-pill.done .chk{display:block; animation:shs-pop .4s var(--spring)}
.shs-pill .t2{display:none}
.shs-pill.done .t1{display:none}
.shs-pill.done .t2{display:inline}

/* Tracks */
.shs-tracks{display:flex; flex-direction:column; gap:9px; padding:9px 10px; border-radius:7px; background:#fff; border:1px solid var(--line)}
.shs-track__top{display:flex; align-items:center; justify-content:space-between; margin-bottom:5px}
.shs-track__top i{display:block; width:var(--w,40%); height:4px; border-radius:2px; background:#e6e9ed}
.shs-track__top .shs-num{font-size:9px; height:11px; line-height:11px}
.shs-track__top .shs-num .d,.shs-track__top .shs-num .d > span > b{height:11px}
.shs-track__bar{height:5px; border-radius:3px; background:#eef0f3; overflow:hidden}
.shs-track__bar span{display:block; height:100%; width:var(--v); border-radius:3px; background:var(--tone); transform-origin:left; transform:scaleX(0)}
.shs-view.is-ready .shs-track__bar span{animation:shs-fill 1s var(--ease-out) forwards; animation-delay:calc(250ms + var(--i) * 120ms)}
.shs-cal{display:grid; grid-template-columns:repeat(7,1fr); gap:4px}
.shs-cal span{height:22px; border-radius:5px; background:#fff; border:1px solid var(--line); position:relative}
.shs-cal span.on{border-color:color-mix(in srgb,var(--tone) 45%,#fff); background:color-mix(in srgb,var(--tone) 8%,#fff)}
.shs-cal span.on::after{content:""; position:absolute; left:50%; bottom:4px; width:4px; height:4px; margin-left:-2px; border-radius:50%; background:var(--tone); animation:shs-breath 1.4s ease-in-out infinite}

/* Línea */
.shs-line{position:relative; flex:1; border-radius:7px; background:#fff; border:1px solid var(--line); padding:6px}
.shs-line svg{display:block; width:100%; height:100%; overflow:visible}
.shs-line .grid{stroke:#f1f3f5}
.shs-line .ln{fill:none; stroke:var(--tone); stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; stroke-dasharray:1; stroke-dashoffset:1}
.shs-line .ar{fill:var(--tone); opacity:0}
.shs-line .pt{fill:#fff; stroke:var(--tone); stroke-width:1.8; opacity:0}
.shs-line .pr{fill:none; stroke:var(--tone); stroke-width:1; opacity:0; transform-box:fill-box; transform-origin:center}
.shs-view.is-ready .shs-line .ln{animation:shs-draw 1.3s var(--ease-out) .2s forwards}
.shs-view.is-ready .shs-line .ar{animation:shs-area .6s ease 1s forwards}
.shs-view.is-ready .shs-line .pt{animation:shs-fade .2s ease 1.4s forwards}
.shs-view.is-ready .shs-line .pr{animation:shs-ring 1.6s ease-out 1.5s infinite}
.shs-tags{display:flex; gap:6px}
.shs-tag{display:inline-flex; align-items:center; gap:5px; height:20px; padding:0 8px; border-radius:6px; background:#fff; border:1px solid var(--line); font-size:7.5px; color:var(--muted)}
.shs-tag .shs-num{font-size:9px; height:11px; line-height:11px; color:var(--ink)}
.shs-tag .shs-num .d,.shs-tag .shs-num .d > span > b{height:11px}
.shs-tag i{width:5px; height:5px; border-radius:50%; background:var(--c,#9aa1ab)}

/* Progreso + brillo */
.shs-win__prog{position:absolute; left:52px; right:0; bottom:0; height:2px; background:transparent}
.shs-win__prog span{display:block; height:100%; width:100%; background:var(--tone); transform-origin:left; transform:scaleX(var(--p,0)); opacity:.75; transition:background .5s}
.shs-sheen{position:absolute; inset:0; pointer-events:none; z-index:6; overflow:hidden; border-radius:inherit}
.shs-sheen::before{content:""; position:absolute; top:-50%; left:-60%; width:40%; height:200%; transform:rotate(18deg) translateX(-100%);
  background:linear-gradient(90deg,transparent,#ffffff8c,transparent)}
.shs-sheen.go::before{animation:shs-sheen 1.1s var(--ease-out)}

/* Cursor */
.shs-cursor{position:absolute; left:0; top:0; z-index:7; width:15px; height:15px; pointer-events:none;
  transform:translate(var(--cx,300px),var(--cy,200px)); filter:drop-shadow(0 2px 2px #0000004d); transition:opacity .3s}
.shs-cursor svg{display:block; width:100%; height:100%; transition:transform .15s var(--ease-out); transform-origin:2px 2px}
.shs-cursor.is-press svg{transform:scale(.82)}
.shs-cursor::after{content:""; position:absolute; left:-9px; top:-9px; width:20px; height:20px; border-radius:50%; border:1.5px solid #fff; opacity:0}
.shs-cursor.is-press::after{animation:shs-click .5s ease-out}
.shs-hero.is-hover .shs-cursor{opacity:0}

/* Tarjetas flotantes (parallax) */
.shs-float{
  position:absolute; z-index:3; display:flex; align-items:center; gap:9px;
  padding:9px 12px 9px 9px; border-radius:11px; background:#ffffffeb;
  -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px);
  box-shadow:0 0 0 1px #1018280f, 0 16px 32px -16px #1f2a3a59, 0 4px 10px -6px #1f2a3a26;
  font-size:9.5px; color:var(--ink); white-space:nowrap;
}
.shs-float small{display:block; font-size:8px; color:var(--muted); margin-top:1px}
.shs-float--a{right:-30px; top:44px; transform:translate3d(calc(var(--rx) * 14px),calc(var(--ry) * 10px),60px)}
.shs-float--b{left:-6px; bottom:-4px; transform:translate3d(calc(var(--rx) * 20px),calc(var(--ry) * 14px),90px)}
.shs-float__ic{width:24px; height:24px; border-radius:7px; display:grid; place-items:center; color:#fff; background:var(--tone); transition:background .5s}
.shs-float__ic svg{width:12px; height:12px}
.shs-float--a.bump{animation:shs-bump .6s var(--spring)}
.shs-float__ring{width:26px; height:26px}
.shs-float__ring circle{fill:none; stroke-width:3}
.shs-float__ring .bg{stroke:#eef0f3}
.shs-float__ring .fg{stroke:var(--ok); stroke-linecap:round; stroke-dasharray:63; stroke-dashoffset:63; transform:rotate(-90deg); transform-origin:center}
.shs-float--b.sync .fg{animation:shs-ring-fill 1.6s var(--ease-out) forwards}
.shs-float b{font-weight:600}

/* Dots */
.shs-dots{position:relative; z-index:2; display:flex; gap:6px}
.shs-dots button{width:6px; height:6px; padding:0; border:0; border-radius:999px; background:#cfd5dc; cursor:pointer; transition:width .45s var(--spring), background .3s}
.shs-dots button.is-active{width:22px; background:var(--ink)}

/* Keyframes */
@keyframes shs-shimmer{to{background-position:-200% 0}}
@keyframes shs-rise{to{opacity:1; transform:none}}
@keyframes shs-grow{to{transform:scaleY(1)}}
@keyframes shs-fill{to{transform:scaleX(1)}}
@keyframes shs-draw{to{stroke-dashoffset:0}}
@keyframes shs-area{to{opacity:.1}}
@keyframes shs-fade{to{opacity:1}}
@keyframes shs-ring{0%{opacity:.8; transform:scale(1)}100%{opacity:0; transform:scale(3.2)}}
@keyframes shs-spin{to{transform:rotate(360deg)}}
@keyframes shs-pop{0%{transform:scale(0)}100%{transform:scale(1)}}
@keyframes shs-breath{0%,100%{opacity:1}50%{opacity:.35}}
@keyframes shs-click{0%{opacity:.9; transform:scale(.3)}100%{opacity:0; transform:scale(1.7)}}
@keyframes shs-sheen{to{transform:rotate(18deg) translateX(520%)}}
@keyframes shs-bump{0%{scale:1}40%{scale:1.06}100%{scale:1}}
@keyframes shs-ring-fill{to{stroke-dashoffset:0}}

@media (prefers-reduced-motion:reduce){
  .shs-hero *{animation-duration:.01ms!important; animation-delay:0s!important; animation-iteration-count:1!important; transition-duration:.01ms!important}
  .shs-cursor{display:none}
}
@media (max-width:1180px){
  .shs-hero{grid-template-columns:1fr}
  .shs-hero__visual{border-left:0; border-top:1px solid var(--line)}
}
@media (max-width:560px){
  .shs-hero__copy{padding:28px 22px 0}
  .shs-hero__visual{display:none}
}

/* Adaptación a la superficie de trabajo SHS (solo escritorio) */
.shs-portal-login .desktop-main > .shs-hero{width:100%;max-width:100%;margin:0 0 38px}
.shs-portal-login .desktop-main .shs-hero__title{margin:0 0 14px;font-weight:500;line-height:1.14}
.shs-portal-login .desktop-main .shs-hero__text{margin:0 0 30px;max-width:440px;color:#3b4048;font-size:13px;line-height:1.65}
.shs-portal-login .desktop-main .shs-hero__eyebrow{margin:0 0 18px}
.shs-portal-login .desktop-main .shs-hero__visual{min-width:0}
.shs-hero .shs-rail__btn:focus-visible,.shs-hero .shs-dots button:focus-visible{outline:2px solid #6fa9cf;outline-offset:2px}
@media (max-width:1350px) and (min-width:1181px){
  .shs-portal-login .desktop-main .shs-hero{grid-template-columns:minmax(0,1fr) minmax(0,49%)}
  .shs-portal-login .desktop-main .shs-hero__copy{padding:35px 26px 0}
  .shs-portal-login .desktop-main .shs-hero__visual{padding-left:8px;padding-right:8px}
  .shs-portal-login .desktop-main .shs-scene{transform:scale(.83)}
}
@media(max-width:1180px){
 .shs-portal-login .desktop-main .shs-hero__visual{min-height:310px}
}
@media(max-width:760px){
 .shs-portal-login .desktop-main > .shs-hero{margin-bottom:26px}
 .shs-portal-login .desktop-main .shs-hero__copy{padding:25px 24px 0}
 .shs-portal-login .desktop-main .shs-hero__visual{min-height:295px;padding:15px 10px 16px}
 .shs-portal-login .desktop-main .shs-scene{transform:scale(.82);margin:-20px 0}
 .shs-portal-login .desktop-main .shs-hero__foot{font-size:10px;gap:8px}
}
@media(max-width:560px){.shs-portal-login .desktop-main .shs-hero__visual{display:none}}

