/* ============================================================
   Gran Salón: Robert al centro, el nombre a los costados y el bigote que los une
   ============================================================ */
.hero {
  --hero-h: clamp(660px, 100svh, 1080px);
  --fig-h: calc(var(--hero-h) * 1.22);
  --fig-w: calc(var(--fig-h) * .5656);   /* proporción del recorte 1100×1945 */
  --fig-top: calc(var(--topbar-h) + 3vh);
  --mous: calc(var(--fig-top) + var(--fig-h) * .149); /* altura del bigote en pantalla */
  --gap: calc(var(--fig-w) * .3);
  --word: min(calc((50vw - var(--gap) - var(--gutter)) / 4.3), 12rem);
  position: relative; height: var(--hero-h); overflow: hidden; isolation: isolate;
  background:
    radial-gradient(40% 55% at 50% 30%, rgba(197,161,94,.20), transparent 70%),
    radial-gradient(70% 60% at 50% 110%, rgba(169,29,50,.35), transparent 70%),
    linear-gradient(180deg, rgba(20,4,9,.65), rgba(36,7,16,.15) 40%, rgba(20,4,9,.6));
}
.hero__ball { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero__sunburst {
  position: absolute; z-index: 0; left: 50%; top: calc(var(--fig-top) + var(--fig-h) * .1);
  width: calc(var(--fig-w) * 2.1); aspect-ratio: 1; border-radius: 50%;
  translate: -50% -50%;
  background: repeating-conic-gradient(from 0deg, rgba(230,204,147,.13) 0 5deg, rgba(0,0,0,0) 5deg 10deg);
  -webkit-mask: radial-gradient(closest-side, #000 20%, transparent 100%);
          mask: radial-gradient(closest-side, #000 20%, transparent 100%);
  animation: spin 90s linear infinite;
  scale: calc(1 + var(--beat) * .06);
}
@keyframes spin { to { rotate: 360deg; } }

.hero__figure { position: absolute; z-index: 2; margin: 0; left: 50%; top: var(--fig-top); height: var(--fig-h); width: var(--fig-w); translate: -50% 0; }
.hero__robert { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 30px 40px rgba(0,0,0,.55)); position: relative; z-index: 1; }
.js .hero__robert { animation: robert-in 1.6s .2s var(--ease-out) both; }
@keyframes robert-in { from { opacity: 0; translate: 0 40px; } }

/* el bigote continúa en una línea dorada hasta los bordes de la pantalla */
.hero__whisker {
  position: absolute; z-index: 0; top: 14.9%; left: 50%; width: 100vw; height: 2px; translate: -50% -50%;
  background: linear-gradient(90deg, transparent, var(--oro) 12%, var(--oro-claro) 30%, rgba(197,161,94,.2) 47%, rgba(197,161,94,.2) 53%, var(--oro-claro) 70%, var(--oro) 88%, transparent);
  transform: scaleX(0); transform-origin: center;
}
.js .hero__whisker { animation: whisker 1.8s 1s var(--ease-out) forwards; }
@keyframes whisker { to { transform: scaleX(1); } }

.hero__title { margin: 0; position: static; font-weight: 900; }
.hero__word {
  position: absolute; z-index: 1; top: var(--mous); translate: 0 -86%;
  font-size: var(--word); line-height: .8; letter-spacing: -.01em;
  font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 1;
  color: var(--oro-claro);
  text-shadow: 1px 1px 0 #b18d4c, 2px 2px 0 #9c7a3d, 3px 3px 0 var(--oro-viejo), 4px 4px 0 var(--rojo), 5px 5px 0 var(--rojo),
    6px 6px 0 var(--bordo), 7px 7px 0 var(--bordo), 8px 8px 0 var(--bordo-hondo), 12px 14px 24px rgba(0,0,0,.5);
  white-space: nowrap;
}
.hero__word sup { font-size: .28em; vertical-align: top; position: relative; top: .25em; text-shadow: none; color: var(--oro); }
.hero__word--a { right: calc(50% + var(--gap)); }
.hero__word--b { left: calc(50% + var(--gap)); }
/* eco de neón que respira con los graves */
.hero__word::after {
  content: attr(data-text); position: absolute; left: 0; top: 0; z-index: -1;
  color: transparent; -webkit-text-stroke: 1.5px rgba(230,204,147,.55); text-shadow: none;
  translate: calc(-6px - var(--beat) * 14px) calc(-6px - var(--beat) * 14px);
  opacity: calc(.25 + var(--beat) * .75);
}
.js .hero__word--a { animation: word-a 1.2s .5s var(--ease-groove) both; }
.js .hero__word--b { animation: word-b 1.2s .7s var(--ease-groove) both; }
@keyframes word-a { from { opacity: 0; transform: translateX(-60px); } }
@keyframes word-b { from { opacity: 0; transform: translateX(60px); } }

.hero__kicker {
  position: absolute; z-index: 3; left: calc(50% + var(--gap)); right: var(--gutter); top: calc(var(--mous) + 34px);
  font-family: var(--f-tipo); font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--oro); line-height: 1.6;
  margin: 0; max-width: 34ch;
}
.hero__copy {
  position: absolute; z-index: 3; left: var(--gutter); right: calc(50% + var(--gap) * .9); bottom: clamp(40px, 9vh, 110px);
  max-width: 520px; margin-left: auto;
}
.hero__tagline {
  font-size: clamp(1.6rem, 1rem + 1.9vw, 2.7rem); line-height: 1.02; font-style: italic; font-weight: 600;
  font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 1; color: var(--marfil); margin-bottom: .3em; text-wrap: balance;
}
.hero__sub { font-family: var(--f-tipo); color: var(--oro); font-size: .9rem; letter-spacing: .06em; margin-bottom: .9em; }
.hero__desc { color: var(--txt-suave); font-size: 1rem; max-width: 40ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.2em; }
.hero__scroll {
  position: absolute; z-index: 3; right: var(--gutter); bottom: clamp(40px, 9vh, 110px);
  display: grid; justify-items: end; gap: 6px; text-decoration: none; color: var(--oro-claro);
  font-family: var(--f-tipo); font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; min-height: 44px;
}
.hero__scroll svg { width: 150px; height: 14px; color: var(--oro); animation: whisk 3s ease-in-out infinite; }
@keyframes whisk { 50% { transform: translateY(6px) scaleX(.85); } }

/* --- Pantallas angostas o verticales: nombre arriba, Robert abajo --- */
@media (max-aspect-ratio: 5/4), (max-width: 899px) {
  .hero { height: auto; padding: calc(var(--topbar-h) + 18px) 0 0; display: flex; flex-direction: column; }
  .hero__kicker { position: relative; inset: auto; order: 1; text-align: center; margin: 0 auto 14px; padding: 0 var(--gutter); font-size: .72rem; max-width: 40ch; }
  .hero__title { order: 2; position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; padding: 0 var(--gutter); }
  .hero__word { position: relative; inset: auto; translate: none; font-size: min(17.5vw, 9rem); }
  .hero__word + .hero__word { margin-top: .06em; }
  .hero__figure {
    order: 3; position: relative; left: auto; top: auto; translate: none;
    width: 100%; height: min(118vw, 74svh); margin-top: -6vw; overflow: hidden;
  }
  .hero__robert { position: absolute; width: 150%; max-width: none; height: auto; left: -29.5%; top: 0; object-fit: initial; }
  .hero__whisker { top: calc(150vw * 1.768 * .149); }
  .hero__sunburst { top: calc(var(--topbar-h) + 60vw); width: 160vw; }
  .hero__copy { order: 4; position: relative; inset: auto; margin: -22vw 0 0; max-width: none; padding: 26px var(--gutter) 30px; background: linear-gradient(180deg, transparent, rgba(30,6,13,.92) 22%); }
  .hero__scroll { order: 5; position: relative; inset: auto; justify-items: center; margin: 0 auto 26px; }
}
@media (max-aspect-ratio: 5/4) and (min-width: 600px) {
  .hero__figure { height: min(100vw, 70svh); }
  .hero__robert { width: 100%; left: 0; }
  .hero__whisker { top: calc(100vw * 1.768 * .149); }
}

/* ------- Marquesinas de máximas ------- */
.marquees { position: relative; padding: 46px 0 70px; overflow: hidden; }
.marquee { position: relative; overflow: hidden; white-space: nowrap; padding: 14px 0; }
.marquee--a { background: var(--oro); color: var(--bordo-hondo); rotate: -2.5deg; margin: 0 -2vw; box-shadow: 0 10px 30px -12px rgba(0,0,0,.6); z-index: 1; }
.marquee--b { background: var(--negro); color: var(--oro); rotate: 2deg; margin: -6px -2vw 0; border-block: 1px solid rgba(197,161,94,.5); }
.marquee__track { display: inline-flex; width: max-content; animation: marquee 80s linear infinite; }
.marquee--b .marquee__track { animation-direction: reverse; animation-duration: 95s; }
.marquee__track span { font-size: clamp(1.15rem, 1rem + .8vw, 1.7rem); font-style: italic; font-weight: 600; font-variation-settings: 'opsz' 72, 'SOFT' 100, 'WONK' 1; padding: 0 .6em; display: inline-flex; align-items: center; gap: 1.2em; }
.marquee__track span::after { content: ''; width: .7em; height: .7em; border-radius: 50%; background: var(--rojo); box-shadow: .35em -.2em 0 -.08em var(--rojo), -.3em -.25em 0 -.1em var(--rojo); }
.marquee--b .marquee__track span::after { background: var(--oro); box-shadow: none; width: .4em; height: .4em; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquees__bigote { position: absolute; left: 0; top: 50%; width: 130vw; height: 60px; color: var(--negro); z-index: 2; translate: -100% -50%; filter: drop-shadow(0 6px 8px rgba(0,0,0,.4)); pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } .marquees__bigote { display: none; } }
