/* ============================================================
   HUB · 01-hero (#inicio) — prefijo hh
   «El monolito que explica»: cuatro losas de vidrio con canto de oro (WebGL, js/pages/hub/hero.js),
   una por capacidad confirmada. Respaldo: <picture> hub-monolito (+ video si existe).
   ============================================================ */
#inicio.hh{position:relative;display:flex;flex-direction:column;min-height:100vh;min-height:100svh;overflow:clip;isolation:isolate;
  background:var(--ink);color:var(--cream)}

/* ---------- Escenario ---------- */
#inicio .hh__stage{position:absolute;inset:0;z-index:0;overflow:hidden;background:var(--ink)}
/* Atrio: luz cenital y dos columnas de piedra apenas sugeridas (se ve con WebGL y mientras carga) */
#inicio .hh__atrium{position:absolute;inset:0;pointer-events:none;
  background:
    radial-gradient(ellipse 30% 46% at 64% 0%,rgba(244,213,138,.13) 0%,rgba(216,166,70,.05) 45%,transparent 75%),
    radial-gradient(ellipse 38% 12% at 64% 86%,rgba(216,166,70,.07) 0%,transparent 70%),
    linear-gradient(180deg,#070C14 0%,var(--ink) 62%,#04070C 100%)}
#inicio .hh__beam{position:absolute;left:64%;top:-8%;width:min(30vw,460px);height:96%;transform:translateX(-50%);
  background:linear-gradient(180deg,rgba(244,213,138,.10) 0%,rgba(244,213,138,.035) 55%,transparent 100%);
  clip-path:polygon(38% 0,62% 0,100% 100%,0 100%);filter:blur(18px)}
#inicio .hh__col{position:absolute;top:0;bottom:10%;width:clamp(60px,7vw,120px);
  background:linear-gradient(90deg,transparent,rgba(243,234,219,.035) 50%,transparent);
  -webkit-mask:linear-gradient(180deg,transparent,#000 30%,#000 70%,transparent);mask:linear-gradient(180deg,transparent,#000 30%,#000 70%,transparent)}
#inicio .hh__col--l{left:43%}
#inicio .hh__col--r{right:4%}

#inicio .hh__img,#inicio .hh__video{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:cover;object-position:72% 50%;
  user-select:none;-webkit-user-drag:none;pointer-events:none;color:transparent;font-size:0}
#inicio .hh__video{opacity:0;transition:opacity 1.4s var(--ease)}
@media (min-width:900px){
  /* El video encuadra el monolito más grande que la foto: se acota a la derecha, bajo el menú y sobre la franja */
  #inicio .hh__video{inset:auto;left:42%;top:calc(var(--nav-h) + 10px);width:58%;height:calc(87% - var(--nav-h) - 10px);object-position:100% 55%;
    -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 16%),linear-gradient(0deg,transparent 0,#000 14%,#000 88%,transparent 100%);-webkit-mask-composite:source-in;
    mask-image:linear-gradient(90deg,transparent 0,#000 16%),linear-gradient(0deg,transparent 0,#000 14%,#000 88%,transparent 100%);mask-composite:intersect}
  #inicio.hh--video .hh__img{opacity:0;transition:opacity 1.4s var(--ease)}
}
#inicio.hh--video .hh__video{opacity:1}
#inicio .hh__gl{position:absolute;inset:0;opacity:0;transition:opacity 1.1s ease}
#inicio .hh__gl canvas{position:absolute;inset:0;width:100%!important;height:100%!important;display:block}
#inicio.hh--gl .hh__gl{opacity:1}
#inicio .hh__img{transition:opacity 1.1s ease,visibility 0s linear 0s}
#inicio.hh--gl .hh__img,#inicio.hh--gl .hh__video{opacity:0;visibility:hidden;transition:opacity 1.1s ease,visibility 0s linear 1.1s}

/* Velos de lectura: menú (arriba), titular (izquierda) y franja (abajo) */
#inicio .hh__shade{position:absolute;inset:0;pointer-events:none;
  background:
    linear-gradient(180deg,rgba(5,9,15,.8) 0,rgba(5,9,15,.4) calc(var(--nav-h)*.9),rgba(5,9,15,0) calc(var(--nav-h) + 90px)),
    linear-gradient(0deg,rgba(5,9,15,1) 0%,rgba(5,9,15,.88) 8%,rgba(5,9,15,.3) 17%,rgba(5,9,15,0) 27%),
    linear-gradient(90deg,rgba(5,9,15,.94) 0%,rgba(5,9,15,.78) 30%,rgba(5,9,15,.36) 46%,rgba(5,9,15,0) 58%)}
#inicio.hh--gl .hh__shade{background:
    linear-gradient(180deg,rgba(5,9,15,.7) 0,rgba(5,9,15,.3) calc(var(--nav-h)*.9),rgba(5,9,15,0) calc(var(--nav-h) + 70px)),
    linear-gradient(0deg,rgba(5,9,15,1) 0%,rgba(5,9,15,.86) 7%,rgba(5,9,15,.2) 15%,rgba(5,9,15,0) 22%),
    linear-gradient(90deg,rgba(5,9,15,.8) 0%,rgba(5,9,15,.5) 30%,rgba(5,9,15,0) 50%)}

/* ---------- Rótulos del diagrama (solo escritorio con WebGL; los coloca hero.js junto a su losa) ---------- */
#inicio .hh__tags{position:absolute;inset:0;z-index:1;margin:0;padding:0;list-style:none;pointer-events:none;display:none}
#inicio.hh--gl.hh--diagram .hh__tags{display:block}
#inicio .hh__tag{position:absolute;left:0;top:0;display:flex;align-items:center;gap:12px;white-space:nowrap;opacity:0;visibility:hidden;will-change:transform,opacity}
#inicio .hh__tag-l{display:block;width:clamp(36px,4vw,64px);height:1px;transform-origin:0 50%;transform:scaleX(var(--k,0));
  background:linear-gradient(90deg,rgba(244,213,138,.95),rgba(216,166,70,.55))}
#inicio .hh__tag-l:before{content:"";position:absolute;width:5px;height:5px;margin:-2px 0 0 -3px;border-radius:50%;background:var(--gold-2);box-shadow:0 0 10px rgba(244,213,138,.8)}
#inicio .hh__tag-n{font:700 .74rem/1 var(--sans);letter-spacing:.18em;color:var(--gold-2);font-variant-numeric:tabular-nums lining-nums}
#inicio .hh__tag-b{display:flex;flex-direction:column;gap:4px}
#inicio .hh__tag-t{font:600 clamp(.92rem,1vw,1.04rem)/1.2 var(--sans);color:var(--cream);text-shadow:0 2px 14px rgba(5,9,15,.9)}
#inicio .hh__tag-d{font:500 clamp(.8rem,.86vw,.9rem)/1.25 var(--sans);color:var(--gold-2);text-shadow:0 2px 14px rgba(5,9,15,.9)}

/* ---------- Texto ---------- */
#inicio .hh__body{position:relative;z-index:2;flex:1 1 auto;display:flex;align-items:center;pointer-events:none;
  padding:calc(var(--nav-h) + clamp(16px,4vh,52px)) 0 clamp(20px,4vh,44px)}
#inicio .hh__copy{pointer-events:auto;max-width:min(48%,760px)}
#inicio .hh__badge{display:inline-flex;align-items:center;gap:12px;margin:0 0 clamp(22px,3.4vh,36px);padding:9px 16px 9px 13px;
  border:1px solid var(--hair);border-radius:999px;background:rgba(5,9,15,.45);
  font:700 .72rem/1.35 var(--sans);letter-spacing:.18em;text-transform:uppercase;color:var(--gold-2)}
#inicio .hh__dot{position:relative;flex:none;width:7px;height:7px;border-radius:50%;background:var(--gold-2);box-shadow:0 0 10px rgba(244,213,138,.7)}
#inicio .hh__dot:after{content:"";position:absolute;inset:-5px;border-radius:50%;border:1px solid rgba(244,213,138,.6);opacity:0}
#inicio.hh--pulse .hh__dot:after{animation:hh-pulse 2.6s var(--ease) infinite}
@keyframes hh-pulse{0%{transform:scale(.4);opacity:.9}70%,100%{transform:scale(1.9);opacity:0}}
html.reduce #inicio .hh__dot:after{animation:none}

#inicio .hh__title{font-size:calc(clamp(2.6rem,4.3vw,5.1rem)*var(--hh-fit,1));line-height:1.02;letter-spacing:-.03em;margin:0}
#inicio .hh__title em.gold{font-style:italic;font-weight:500;letter-spacing:-.02em;padding-right:.08em}
#inicio .hh__ln{display:block;overflow:hidden;overflow:clip;padding:.08em .14em .16em 0;margin:-.08em -.14em -.16em 0}
#inicio .hh__ln + .hh__ln{margin-top:-.1em}
#inicio .hh__ln-in{display:inline-block;will-change:transform}
#inicio .hh__lead{margin-top:clamp(20px,3.2vh,34px);max-width:46ch;color:var(--cream-2);text-wrap:pretty}
#inicio .hh__lead .tn-line-mask{padding-bottom:.12em;margin-bottom:-.12em}
#inicio .hh__cta{margin:clamp(24px,3.8vh,42px) 0 0;display:flex}
#inicio .hh__cta .btn{min-height:56px;padding-inline:2em;font-size:1rem}

@media (min-width:900px){
  #inicio .hh__copy{width:fit-content;max-width:none}
  #inicio .hh__title{white-space:nowrap;width:max-content}
  #inicio .hh__lead{max-width:min(46ch,40vw)}
}

/* ---------- Franja inferior: los 4 sellos ---------- */
#inicio .hh__foot{position:relative;z-index:2;pointer-events:none;padding-bottom:clamp(20px,3.4vh,38px)}
#inicio .hh__foot-in{position:relative;display:flex;align-items:flex-start;justify-content:space-between;gap:clamp(20px,4vw,64px);padding-top:clamp(16px,2.4vh,24px)}
#inicio .hh__rule{position:absolute;left:var(--gut);right:var(--gut);top:0;height:1px;transform-origin:0 50%;
  background:linear-gradient(90deg,rgba(244,213,138,.75) 0%,rgba(216,166,70,.34) 30%,rgba(216,166,70,.16) 64%,rgba(216,166,70,.06) 100%)}
#inicio .hh__sellos{pointer-events:auto;list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,auto));gap:clamp(22px,3.6vw,64px)}
#inicio .hh__sello{display:flex;align-items:baseline;gap:12px;min-width:0}
#inicio .hh__sello-n{flex:none;font-size:.8rem;font-variant-numeric:tabular-nums lining-nums}
#inicio .hh__sello-t{font:500 clamp(.95rem,1.1vw,1.08rem)/1.35 var(--sans);color:var(--cream);white-space:nowrap}
#inicio .hh__sello-b{display:flex;flex-direction:column;gap:3px;min-width:0}
#inicio .hh__sello-d{font:500 .86rem/1.35 var(--sans);color:var(--cream-2);white-space:nowrap}
/* En reposo la franja va plena (título + dato); solo durante la vista explotada se atenúa (AA: crema a .66 sobre tinta ≈ 7:1) */
#inicio .hh__sello{transition:opacity .45s var(--ease)}
#inicio .hh__sello-t{transition:color .4s}
#inicio.hh--exploding .hh__sello{opacity:.66}
#inicio.hh--exploding .hh__sello.is-on{opacity:1}
#inicio .hh__sello.is-on .hh__sello-t{color:var(--gold-2)}

#inicio .hh__scroll{pointer-events:auto;flex:none;display:inline-flex;align-items:center;gap:14px;min-height:44px;margin:-10px 0 0;padding:0 2px;border:0;background:none;cursor:pointer;
  font:600 .75rem/1 var(--sans);letter-spacing:.28em;text-transform:uppercase;color:var(--cream-2);transition:color .4s}
#inicio .hh__scroll:hover{color:var(--gold-2)}
#inicio .hh__scroll-l{position:relative;display:block;width:1px;height:38px;background:var(--line-2);overflow:hidden}
#inicio .hh__scroll-l i{position:absolute;left:0;top:0;width:100%;height:100%;background:var(--gold-2);transform:translateY(-101%);animation:hh-scroll 2.4s var(--ease-io) infinite}
@keyframes hh-scroll{0%{transform:translateY(-101%)}55%{transform:translateY(0)}100%{transform:translateY(101%)}}
html.no-js #inicio .hh__scroll{display:none}
html.reduce #inicio .hh__scroll-l i{animation:none;transform:none}

/* Pantallas anchas pero bajas (1280×720) */
@media (min-width:900px) and (max-height:760px){
  #inicio .hh__body{padding-top:calc(var(--nav-h) + 8px)}
  #inicio .hh__badge{margin-bottom:18px}
  #inicio .hh__title{font-size:calc(clamp(2.4rem,min(4.1vw,8.4svh),4.6rem)*var(--hh-fit,1))}
  #inicio .hh__lead{margin-top:18px}
  #inicio .hh__cta{margin-top:20px}
  #inicio .hh__cta .btn{min-height:52px}
}
/* Escritorio estrecho (900–1180): el sello largo puede partirse */
@media (min-width:900px) and (max-width:1180px){
  #inicio .hh__sello-t{white-space:normal}
}

/* ---------- Celular y tableta vertical: monolito arriba, texto abajo; el botón entra en el primer pantallazo ---------- */
@media (max-width:899px){
  #inicio.hh{min-height:0}
  #inicio.hh{--hh-sh:clamp(214px,34svh,380px)}
  #inicio .hh__stage{position:relative;inset:auto;flex:none;height:calc(var(--nav-h) + var(--hh-sh))}
  #inicio .hh__atrium{background:
    radial-gradient(ellipse 60% 50% at 50% 0%,rgba(244,213,138,.14) 0%,rgba(216,166,70,.05) 45%,transparent 75%),
    linear-gradient(180deg,#070C14 0%,var(--ink) 80%)}
  #inicio .hh__beam{left:50%;width:70vw}
  #inicio .hh__col{display:none}
  /* Póster/video vertical (2:3): las 4 losas ocupan del 7 % al 50 % de la imagen; se escala para que quepan completas bajo el menú */
  #inicio .hh__img,#inicio .hh__video{inset:auto;top:calc(var(--nav-h) - var(--hh-sh)*.09);left:calc(50% - var(--hh-sh)*.7);
    width:calc(var(--hh-sh)*1.4);height:calc(var(--hh-sh)*2.1);object-fit:cover;object-position:50% 0;
    -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 14%,#000 86%,transparent 100%);mask-image:linear-gradient(90deg,transparent 0,#000 14%,#000 86%,transparent 100%)}
  #inicio .hh__shade,#inicio.hh--gl .hh__shade{background:
    linear-gradient(180deg,rgba(5,9,15,1) 0,rgba(5,9,15,.7) var(--nav-h),rgba(5,9,15,0) calc(var(--nav-h) + 40px)),
    linear-gradient(0deg,rgba(5,9,15,1) 0%,rgba(5,9,15,.55) 6%,rgba(5,9,15,0) 15%)}
  /* la insignia se monta sobre la base del monolito */
  #inicio .hh__body{display:block;padding:0;margin-top:-12px}
  #inicio .hh__copy{max-width:none}
  /* insignia → rótulo sin borde, partido a propósito tras el «·» */
  #inicio .hh__badge{border:0;border-radius:0;background:none;align-items:flex-start;gap:10px;padding:0;margin-bottom:16px;
    font-size:.75rem;line-height:1.5;letter-spacing:.12em}
  #inicio .hh__badge .hh__b{display:block}
  #inicio .hh__badge .hh__bsep{display:none}
  #inicio .hh__dot{margin-top:.5em}
  /* 3 líneas también en celular: «para personas y empresas.» cabe en una línea a 360–430 */
  #inicio .hh__title{font-size:calc(clamp(1.4rem,7.15vw,3.1rem)*var(--hh-fit,1));line-height:1.06;white-space:nowrap}
  #inicio .hh__lead{margin-top:14px;font-size:1rem;line-height:1.55;max-width:46ch}
  #inicio .hh__cta{margin-top:20px}
  #inicio .hh__cta .btn{width:100%;min-height:56px}
  #inicio .hh__foot{padding:30px 0 34px}
  #inicio .hh__foot-in{display:block;padding-top:0}
  #inicio .hh__rule{display:none}
  /* sellos = lista de datos (no botones): línea fina arriba, número en .kicker, sin caja */
  #inicio .hh__sellos{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:18px;row-gap:18px}
  #inicio .hh__sello{flex-direction:column;align-items:flex-start;gap:8px;padding:12px 0 0;border-top:1px solid var(--hair)}
  #inicio .hh__sello-t{white-space:normal;font-size:1rem;line-height:1.3;font-weight:600}
  #inicio .hh__sello-d{white-space:normal;font-size:.875rem}
  #inicio .hh__scroll{display:none}
}
@media (max-width:899px) and (max-height:700px){
  #inicio.hh{--hh-sh:clamp(200px,31svh,320px)}
  #inicio .hh__badge{margin-bottom:12px}
  #inicio .hh__lead{margin-top:12px;font-size:.95rem;line-height:1.5}
  #inicio .hh__cta{margin-top:16px}
}
@media (min-width:600px) and (max-width:899px){
  #inicio .hh__lead{font-size:1.12rem}
  #inicio .hh__cta .btn{width:auto;min-width:320px}
  #inicio .hh__sellos{grid-template-columns:repeat(4,minmax(0,1fr))}
}
/* Celular en horizontal: escena corta */
@media (max-width:899px) and (max-height:500px) and (orientation:landscape){
  #inicio.hh{--hh-sh:62svh}
}
