/* Hero de contenido y escultura sobre el fondo global. */
.ag-hero {
  position: relative;
  padding: calc(var(--ag-nav-h) + clamp(46px, 6vw, 96px)) 0 clamp(12px, 2vw, 28px);
  background: transparent;
}
.ag-hero__container { max-width: calc(1480px + var(--ag-gutter) * 2); }
.ag-hero__sculpture {
  position: relative;
  width: 100%;
  height: clamp(290px, 45svh, 520px);
  isolation: isolate;
  overflow: hidden;
  touch-action: pan-y;
}
.ag-hero__canvas { position: absolute; inset: 0; z-index: 1; display: block; width: 100%; height: 100%; opacity: 0; pointer-events: none; transition: opacity 350ms ease; }
.ag-hero__fallback { position: absolute; z-index: 1; max-width: none; opacity: 0; pointer-events: none; user-select: none; transition: opacity 350ms ease; }
.ag-hero__sculpture[data-ready="true"] .ag-hero__fallback { opacity: 1; }
.ag-hero__sculpture[data-gl="on"] .ag-hero__canvas { opacity: 1; }
.ag-hero__sculpture[data-gl="on"] .ag-hero__fallback { opacity: 0; }
/* Respaldo de bajo costo en táctiles y cuando WebGL2 no está disponible. */
@media (prefers-reduced-motion: no-preference) {
  .ag-hero__sculpture[data-ready="true"][data-mode="static"] .ag-hero__fallback {
    animation: ag-escultura-flotar 8s ease-in-out infinite alternate;
    animation-play-state: paused;
  }
  .ag-hero__sculpture[data-ready="true"][data-mode="static"][data-visible="true"] .ag-hero__fallback {
    animation-play-state: running;
  }
}
@keyframes ag-escultura-flotar {
  from { transform: translate(-5px, 4px); }
  to { transform: translate(5px, -6px); }
}
.ag-hero__backdrop {
  position: absolute; inset: 0; z-index: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0.09;
  pointer-events: none; user-select: none;
}
.ag-hero__backdrop .ag-logo { width: min(86%, 1140px); }
.ag-hero__hint {
  position: absolute; bottom: 1px; left: 50%; z-index: 2; transform: translateX(-50%);
  display: flex; gap: 12px; align-items: center; white-space: nowrap;
  color: var(--ag-muted); font-size: 10px; letter-spacing: 0.08em;
  opacity: 0; pointer-events: none; transition: opacity 400ms ease;
}
.ag-hero__hint span { color: var(--ag-accent); }
.ag-hero__sculpture[data-gl="on"]:not([data-touched="true"]) .ag-hero__hint { opacity: 0.7; }
.ag-hero .ag-h1 { font-size: clamp(2.2rem, 4.1vw, 4.5rem); line-height: 1.05; max-width: 23ch; text-wrap: balance; }
.ag-hero .ag-h1__acento { display: block; color: var(--ag-accent); }
.ag-hero__accion {
  margin-top: clamp(24px, 3vw, 36px);
}
@media (max-width: 959px) {
  .ag-hero .ag-h1 { font-size: clamp(2.2rem, 6.5vw, 3.6rem); max-width: 24ch; }
  .ag-hero__sculpture { height: clamp(260px, 36svh, 420px); }
}
@media (max-width: 639px) {
  .ag-hero { padding-top: calc(var(--ag-nav-h) + 34px); padding-bottom: 20px; }
  .ag-hero__sculpture { height: 240px; }
  .ag-hero .ag-h1 { font-size: clamp(2rem, 7.9vw, 3rem); line-height: 1.1; }
  .ag-hero .ag-etiqueta { font-size: 10px; letter-spacing: 0.12em; }
  .ag-hero__accion { width: 100%; }
}
@media (pointer: coarse) { .ag-hero__hint { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .ag-hero__canvas, .ag-hero__fallback, .ag-hero__hint { transition: none; }
  .ag-hero__hint { display: none; }
  .ag-hero__accion { transition: none; }
}
