/* ==========================================================
   HERO — depende de base.css (tokens, nav)
   ========================================================== */
/* ---------- HERO ---------- */
.hero{position:relative;min-height:100svh;display:grid;place-items:center;overflow:hidden;isolation:isolate;
  background:var(--grafito) center/cover no-repeat url("../img/hero-poster.webp")}
@media(max-width:768px){.hero{background-image:url("../img/hero-poster-960.webp")}}
.hero__video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-3;
  opacity:0;transition:opacity 1.2s ease}
.hero__video.is-ready{opacity:1}

/* Velo: degradado para que logo y texto se lean sobre cualquier fotograma */
.hero__scrim{position:absolute;inset:0;z-index:-2;pointer-events:none;
  background:
    linear-gradient(90deg,rgba(11,13,16,.72) 0%,rgba(11,13,16,.25) 55%,rgba(11,13,16,.08) 100%),
    linear-gradient(180deg,rgba(11,13,16,.55) 0%,rgba(11,13,16,.05) 30%,rgba(11,13,16,.35) 65%,rgba(11,13,16,.9) 100%)}
/* Rejilla técnica muy sutil */
.hero__grid{position:absolute;inset:0;z-index:-1;pointer-events:none;opacity:.5;
  background-image:linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px);
  background-size:56px 56px;
  mask-image:radial-gradient(ellipse 80% 70% at 50% 50%,#000 30%,transparent 80%)}

/* Texto abajo a la izquierda */
.hero{place-items:end start}
.hero__inner{width:100%;max-width:1320px;margin:0 auto;padding:0 clamp(24px,4vw,56px) clamp(64px,9vh,110px);text-align:left;display:block}
.hero__eyebrow{font-family:var(--mono);font-size:11px;letter-spacing:.28em;text-transform:uppercase;color:var(--azul-luz);margin:0 0 16px;
  display:flex;align-items:center;gap:12px;opacity:0;animation:rise .9s .3s cubic-bezier(.2,.7,.2,1) forwards}
h1.hero__title{margin:0;font-weight:300;text-transform:none;font-size:clamp(28px,3.6vw,54px);line-height:1.12;letter-spacing:-.005em;
  color:var(--hueso);max-width:20ch;text-wrap:balance;text-shadow:0 2px 28px rgba(0,0,0,.5);
  opacity:0;animation:rise .9s .45s cubic-bezier(.2,.7,.2,1) forwards}
h1.hero__title span{color:var(--azul-luz)}

/* Indicador de scroll visible siempre (móvil y táctil incluidos) */
.hero__scroll{position:absolute;right:clamp(24px,4vw,56px);bottom:clamp(64px,9vh,110px);display:flex;flex-direction:column;align-items:center;gap:10px;
  font-family:var(--mono);font-size:10px;letter-spacing:.32em;text-transform:uppercase;color:var(--hueso);text-decoration:none;opacity:.85;transition:opacity .2s}
.hero__scroll:hover{opacity:1}
.hero__scroll i{display:block;width:1px;height:46px;background:linear-gradient(var(--azul-luz),transparent);position:relative;overflow:hidden}
.hero__scroll i::after{content:"";position:absolute;left:0;top:-100%;width:1px;height:100%;background:#fff;animation:drip 2.2s ease-in-out infinite}
@keyframes drip{0%{top:-100%}60%,100%{top:100%}}
@keyframes rise{to{opacity:1;transform:none}}

/* ---------- Cursor "scroll down" (solo dentro del hero, solo con ratón) ---------- */
.cursor{position:fixed;left:0;top:0;z-index:60;width:80px;height:80px;margin:-40px 0 0 -40px;pointer-events:none;
  opacity:0;transform:translate3d(-200px,-200px,0) scale(.6);transition:opacity .3s ease,scale .3s ease;will-change:transform}
.cursor.is-on{opacity:1}
.cursor svg{width:100%;height:100%;display:block;overflow:visible;animation:spin 14s linear infinite}
.cursor text{font-family:var(--mono);font-size:8px;letter-spacing:0;fill:#fff;text-transform:uppercase}
.cursor__dot{position:absolute;left:50%;top:50%;width:6px;height:6px;margin:-3px 0 0 -3px;border-radius:50%;background:var(--azul);
  box-shadow:0 0 0 4px var(--azul-glow),0 0 16px var(--azul)}
.cursor__ring{position:absolute;inset:17px;border-radius:50%;border:1px solid rgba(255,255,255,.28);backdrop-filter:blur(2px)}
@keyframes spin{to{transform:rotate(360deg)}}
@media (hover:none),(pointer:coarse){.cursor{display:none}}
@media (hover:hover) and (pointer:fine){.hero{cursor:none}.hero a{cursor:pointer}}

@media(max-width:600px){.hero__inner{padding-right:104px}.hero__scroll{right:20px}.hero__eyebrow{display:block;letter-spacing:.18em;font-size:10px;line-height:1.7}.hero__eyebrow::before{display:none}}
@media(prefers-reduced-motion:reduce){
  .hero__eyebrow,h1.hero__title{opacity:1;transform:none}
  .cursor svg{animation:none}
}
