/* HUB · 05-nosotros (#nosotros) — «el díptico»: dos hojas con una costura de oro líquido. Prefijo hn- */
#nosotros{overflow:hidden;overflow:clip;isolation:isolate}
#nosotros .hn-bg{position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:radial-gradient(56% 34% at 50% 24%,rgba(216,166,70,.075) 0%,rgba(216,166,70,0) 72%),
             linear-gradient(180deg,var(--ink) 0%,var(--ink-2) 50%,var(--ink) 100%)}
#nosotros .hn-head{margin-bottom:clamp(28px,3.4vw,52px);max-width:min(1180px,100%)}
#nosotros .hn-title{margin-top:18px;text-wrap:balance}

/* ---------- Control segmentado (solo celular) ---------- */
#nosotros .hn-seg{display:none}

/* ---------- El díptico ---------- */
#nosotros .hn-dip{position:relative;display:flex;align-items:stretch;height:clamp(560px,74vh,760px);perspective:2200px;perspective-origin:50% 40%}
#nosotros .hn-leaf{position:relative;flex:1 1 0;min-width:0;border-radius:var(--r);overflow:hidden;background:var(--ink-2);
  transition:flex-grow 1s var(--ease);transform-style:flat;will-change:auto;contain:paint}
#nosotros .hn-leaf--a{transform-origin:0% 50%}
#nosotros .hn-leaf--b{transform-origin:100% 50%}
#nosotros .hn-leaf:after{content:"";position:absolute;inset:0;border-radius:inherit;border:1px solid var(--hair);pointer-events:none;z-index:4;transition:border-color .6s var(--ease)}
#nosotros .hn-media{position:absolute;inset:0;overflow:hidden}
#nosotros .hn-media picture,#nosotros .hn-media img,#nosotros .hn-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
#nosotros .hn-leaf--a .hn-img,#nosotros .hn-leaf--a .hn-video{object-position:64% 50%}
#nosotros .hn-leaf--b .hn-img,#nosotros .hn-leaf--b .hn-video{object-position:26% 50%}
#nosotros .hn-img,#nosotros .hn-video{transform:scale(1.04);transition:transform 1.6s var(--ease)}
#nosotros .hn-video{opacity:0;transition:opacity 1.2s var(--ease),transform 1.6s var(--ease)}
#nosotros .hn-video.is-on{opacity:1}
/* superficie: oscurecida en reposo, se aclara con el foco/hover (no hay nada que siga al puntero) */
#nosotros .hn-dim{position:absolute;inset:0;background:rgba(5,9,15,.46);transition:background-color .9s var(--ease)}
#nosotros .hn-shade{z-index:1;background:linear-gradient(180deg,rgba(5,9,15,.25) 0%,rgba(5,9,15,0) 22%,rgba(5,9,15,.55) 48%,rgba(5,9,15,.93) 78%,rgba(5,9,15,.97) 100%)}

#nosotros .hn-body{position:absolute;left:0;right:0;bottom:0;z-index:3;padding:clamp(28px,3.2vw,56px);max-width:600px}
#nosotros .hn-ico{width:44px;height:44px;color:var(--gold-2);display:block;margin-bottom:18px}
#nosotros .hn-t{font:500 clamp(2rem,3.1vw,3.1rem)/1 var(--serif);letter-spacing:-.02em;color:var(--cream);margin:0 0 14px}
#nosotros .hn-p{max-width:44ch;margin:0 0 22px;color:var(--cream-2)}
#nosotros .hn-checks{margin:0 0 30px;padding:0;list-style:none;gap:10px}
#nosotros .hn-checks li{color:var(--cream);font-size:clamp(.96rem,1vw,1.02rem)}
#nosotros .hn-checks strong{font-family:var(--sans);font-weight:800;font-variant-numeric:tabular-nums lining-nums;letter-spacing:-.01em;color:var(--gold-2)}
#nosotros .hn-cta{min-height:52px}
#nosotros .hn-cta--ghost{border-color:rgba(216,166,70,.62);color:var(--gold-2);background:rgba(5,9,15,.35)}
#nosotros .hn-cta--ghost:hover,#nosotros .hn-cta--ghost:focus-visible{border-color:var(--gold-2);color:var(--ink);background:var(--gold-2)}
#nosotros .hn-cta:focus-visible{outline:2px solid var(--gold-2);outline-offset:4px}

/* ---------- La costura de oro líquido ---------- */
#nosotros .hn-seam{position:relative;flex:0 0 2px;margin-inline:clamp(10px,1vw,16px);border-radius:2px;background:rgba(216,166,70,.16)}
#nosotros .hn-seam__flow{position:absolute;inset:0;overflow:hidden;border-radius:inherit}
#nosotros .hn-seam__flow:before{content:"";position:absolute;left:0;right:0;top:-360px;height:calc(100% + 360px);
  background:repeating-linear-gradient(180deg,rgba(216,166,70,.08) 0px,rgba(216,166,70,.08) 80px,#A77927 150px,#F4D58A 220px,#FFF3CC 236px,#D8A646 262px,rgba(216,166,70,.08) 360px);
  box-shadow:0 0 12px rgba(216,166,70,.4);animation:hn-flow 7s linear infinite}
#nosotros .hn-seam:after{content:"";position:absolute;left:50%;bottom:-2px;width:8px;height:10px;margin-left:-4px;border-radius:50% 50% 50% 50%/40% 40% 60% 60%;
  background:radial-gradient(circle at 40% 35%,#FFF3CC,#D8A646 55%,#8F6520);transform-origin:50% 0;animation:hn-lip 4.8s var(--ease-io) infinite}
#nosotros .hn-seam__drop{position:absolute;left:50%;bottom:-6px;width:7px;height:9px;margin-left:-3.5px;border-radius:50% 50% 50% 50%/38% 38% 62% 62%;
  background:radial-gradient(circle at 38% 32%,#FFF6D8,#E9BF62 50%,#8F6520);box-shadow:0 0 10px rgba(216,166,70,.55);opacity:0;animation:hn-drip 4.8s cubic-bezier(.55,0,.9,.5) infinite}
@keyframes hn-flow{to{transform:translate3d(0,360px,0)}}
@keyframes hn-lip{0%,8%{transform:scale(.4,.3)}62%{transform:scale(1,1.25)}70%,100%{transform:scale(.45,.3)}}
@keyframes hn-drip{0%,64%{opacity:0;transform:translate3d(0,0,0) scale(.8)}66%{opacity:1;transform:translate3d(0,4px,0) scale(1)}92%{opacity:1;transform:translate3d(0,64px,0) scale(.9,1.15)}100%{opacity:0;transform:translate3d(0,80px,0) scale(.6)}}

/* ---------- Escritorio: foco/hover = +8 % de ancho y superficie más clara ---------- */
@media (min-width:900px){
  #nosotros .hn-leaf:focus-within{flex-grow:1.17}
  #nosotros .hn-leaf:focus-within .hn-dim{background:rgba(5,9,15,.2)}
  #nosotros .hn-leaf:focus-within:after{border-color:rgba(216,166,70,.62)}
  #nosotros .hn-leaf:focus-within .hn-img,#nosotros .hn-leaf:focus-within .hn-video{transform:scale(1)}
}
@media (min-width:900px) and (hover:hover){
  #nosotros .hn-leaf:hover{flex-grow:1.17}
  #nosotros .hn-leaf:hover .hn-dim{background:rgba(5,9,15,.2)}
  #nosotros .hn-leaf:hover:after{border-color:rgba(216,166,70,.62)}
  #nosotros .hn-leaf:hover .hn-img,#nosotros .hn-leaf:hover .hn-video{transform:scale(1)}
}
@media (min-width:900px) and (max-height:760px){
  #nosotros .hn-dip{height:clamp(520px,80vh,640px)}
  #nosotros .hn-ico{width:36px;height:36px;margin-bottom:12px}
  #nosotros .hn-p{margin-bottom:16px}
  #nosotros .hn-checks{margin-bottom:22px;gap:8px}
}
@media (min-width:900px) and (max-width:1180px){
  #nosotros .hn-body{padding:28px}
  #nosotros .hn-t{font-size:clamp(1.8rem,3vw,2.4rem)}
}
@media (min-width:1100px){#nosotros .wrap{padding-right:max(var(--gut),70px)}}

/* ---------- Celular y tableta vertical: dos tarjetas apiladas ---------- */
@media (max-width:899px){
  #nosotros .hn-head{margin-bottom:28px}
  #nosotros .eyebrow{font-size:.8125rem}
  /* control fijo: fondo opaco, compacto (botones de 44 px), sigue al nav; cuando está pegado lleva una banda tinta
     a todo lo ancho con borde inferior en degradado para que el texto se desvanezca antes de llegar a él */
  #nosotros .hn-seg{position:sticky;top:calc(var(--nav-h,72px) + 8px);z-index:6;display:grid;grid-template-columns:1fr 1fr;
    margin:0 auto 22px;max-width:420px;padding:3px;border-radius:999px;transition:top .7s var(--ease)}
  #nosotros.hn-navoff .hn-seg{top:10px}
  /* :before = banda tinta a todo lo ancho (solo pegado) con borde inferior en degradado; :after = la pista redonda opaca */
  #nosotros .hn-seg:before,#nosotros .hn-seg:after{content:"";position:absolute;z-index:-1;pointer-events:none}
  #nosotros .hn-seg:before{left:50%;width:100vw;margin-left:-50vw;top:-12px;bottom:-30px;opacity:0;transition:opacity .3s;
    background:linear-gradient(180deg,var(--ink-2) 0%,var(--ink-2) calc(100% - 30px),rgba(8,18,28,.92) calc(100% - 16px),rgba(8,18,28,0) 100%)}
  #nosotros .hn-seg.is-stuck:before{opacity:1}
  #nosotros .hn-seg:after{inset:0;border-radius:inherit;border:1px solid var(--hair);background:var(--ink-2);box-shadow:0 14px 40px -18px rgba(0,0,0,.8)}
  #nosotros .hn-seg__pill{position:absolute;top:3px;bottom:3px;left:3px;width:calc(50% - 3px);border-radius:999px;background:var(--gold-grad);
    transition:transform .6s var(--ease)}
  #nosotros .hn-seg.is-b .hn-seg__pill{transform:translateX(100%)}
  #nosotros .hn-seg__b{position:relative;z-index:1;min-height:44px;padding:0 12px;border:0;border-radius:999px;background:transparent;cursor:pointer;
    font:700 .95rem/1 var(--sans);letter-spacing:.01em;color:var(--cream-2);transition:color .4s;-webkit-tap-highlight-color:transparent}
  /* respuesta al toque: brillo breve de la pastilla dorada (recortado a su forma), no un anillo genérico */
  #nosotros .hn-seg.is-tap .hn-seg__pill{animation:hnPillTap .5s var(--ease)}
  @keyframes hnPillTap{0%{filter:brightness(1);box-shadow:0 0 0 0 rgba(244,213,138,0)}35%{filter:brightness(1.18);box-shadow:0 0 18px 0 rgba(244,213,138,.45)}100%{filter:brightness(1);box-shadow:0 0 0 0 rgba(244,213,138,0)}}
  #nosotros .hn-seg__b.is-on{color:var(--ink)}
  #nosotros .hn-seg__b:focus-visible{outline:2px solid var(--gold-2);outline-offset:2px}

  #nosotros .hn-dip{display:flex;flex-direction:column;height:auto;perspective:none}
  #nosotros .hn-leaf{flex:none;display:flex;flex-direction:column;contain:none;scroll-margin-top:calc(var(--nav-h,72px) + 70px);background:var(--ink-2)}
  #nosotros .hn-media{position:relative;inset:auto;aspect-ratio:16/10;flex:none}
  #nosotros .hn-leaf--a .hn-img,#nosotros .hn-leaf--a .hn-video{object-position:70% 40%}
  #nosotros .hn-leaf--b .hn-img,#nosotros .hn-leaf--b .hn-video{object-position:22% 50%}
  #nosotros .hn-dim{background:rgba(5,9,15,.18)}
  #nosotros .hn-shade{background:linear-gradient(180deg,rgba(5,9,15,0) 55%,rgba(8,18,28,1) 100%)}
  #nosotros .hn-body{position:relative;max-width:none;padding:6px 22px 26px}
  #nosotros .hn-ico{width:40px;height:40px;margin:-28px 0 14px;position:relative}
  #nosotros .hn-t{font-size:clamp(1.9rem,8vw,2.4rem)}
  #nosotros .hn-p{font-size:1rem;margin-bottom:18px}
  #nosotros .hn-checks{margin-bottom:24px}
  #nosotros .hn-checks li{font-size:1rem}
  #nosotros .hn-cta{display:flex;width:100%;min-height:54px;white-space:normal;text-align:center}

  /* la costura se vuelve un hilo horizontal entre las dos tarjetas */
  #nosotros .hn-seam{flex:none;height:2px;margin:26px 14% 30px;align-self:stretch}
  #nosotros .hn-seam__flow:before{top:0;bottom:0;left:-360px;right:auto;width:calc(100% + 360px);height:auto;
    background:repeating-linear-gradient(90deg,rgba(216,166,70,.08) 0px,rgba(216,166,70,.08) 80px,#A77927 150px,#F4D58A 220px,#FFF3CC 236px,#D8A646 262px,rgba(216,166,70,.08) 360px);
    animation-name:hn-flow-x}
  #nosotros .hn-seam:after{bottom:-6px}
  #nosotros .hn-seam__drop{bottom:-10px}
  @keyframes hn-flow-x{to{transform:translate3d(360px,0,0)}}
}
@media (max-width:899px) and (min-width:600px){
  #nosotros .hn-body{padding:8px 32px 32px}
}

/* ---------- Respaldo: movimiento reducido / gama baja ---------- */
html.reduce #nosotros .hn-seam__flow:before,html.reduce #nosotros .hn-seam:after,html.reduce #nosotros .hn-seam__drop{animation:none}
html.reduce #nosotros .hn-seam__flow:before{transform:none;background:linear-gradient(180deg,#A77927,#F4D58A 50%,#D8A646)}
html.reduce #nosotros .hn-seam:after{transform:scale(.8,.8)}
html.reduce #nosotros .hn-leaf,html.reduce #nosotros .hn-img,html.reduce #nosotros .hn-video,html.reduce #nosotros .hn-seg__pill,html.reduce #nosotros .hn-seg{transition:none}
#nosotros.hn-low .hn-seg{backdrop-filter:none}
#nosotros.hn-low .hn-seam__flow:before{animation-duration:12s}
@media (max-width:899px){html.reduce #nosotros .hn-seam__flow:before{left:0;width:100%;background:linear-gradient(90deg,#A77927,#F4D58A 50%,#D8A646)}}
/* respaldo mientras carga la imagen: degradado tinta/oro, sin texto alternativo visible */
#nosotros .hn-media{background:radial-gradient(80% 70% at 70% 20%,rgba(216,166,70,.22),rgba(216,166,70,0) 70%),linear-gradient(180deg,var(--ink-3),var(--ink-2))}
#nosotros .hn-img{color:transparent;font-size:0}
