/*
 UNIVERSIA · HERO EN RELIEVE · V0.20 · geometría calibrada
 29 octubre 2026 · BORRADOR PRIVADO

 Regla institucional: el lettering superpuesto NO se desplaza ni escala
 durante las animaciones. La imagen original lleva palabras quemadas;
 mover la capa cromada sobre ellas genera duplicación de contornos.

 Coordenadas calibradas sobre los dos artes fuente:
  - escritorio 1672 x 744 (hero-integrado-estrella.webp)
  - móvil 824 x 337 (lettering-original.png)
 Se conservan siempre ambas imágenes originales y ?relieve=original.
 Sólo se mueven reflejos ópticos y la intensidad de sombras.
*/

/* Coordenadas normalizadas al lienzo de origen; no valores px de viewport. */
.hero.hero-v07 {
  --uni-main-x:4.690%; --uni-main-y:27.870%;
  --uni-main-w:47.660%; --uni-main-h:16.310%;
  --uni-sub-x:11.734%; --uni-sub-y:46.302%;
  --uni-sub-w:32.823%; --uni-sub-h:8.167%;
}
.hero.hero-v07 > .hero-chrome-3d .hero-chrome-line.main {
  left:var(--uni-main-x)!important;top:var(--uni-main-y)!important;
  width:var(--uni-main-w)!important;height:var(--uni-main-h)!important;
}
.hero.hero-v07 > .hero-chrome-3d .hero-chrome-line.subtitle {
  left:var(--uni-sub-x)!important;top:var(--uni-sub-y)!important;
  width:var(--uni-sub-w)!important;height:var(--uni-sub-h)!important;
}

/* El mismo registro geométrico sobre la imagen de letras exclusiva de móvil. */
.mobile-wordmark-stage {
  --uni-mobile-main-x:1.601%; --uni-mobile-main-y:38.830%;
  --uni-mobile-main-w:96.748%; --uni-mobile-main-h:34.20%;
  --uni-mobile-sub-x:15.923%; --uni-mobile-sub-y:78.786%;
  --uni-mobile-sub-w:66.601%; --uni-mobile-sub-h:17.463%;
}
.mobile-wordmark-chrome .hero-chrome-line.main {
  left:var(--uni-mobile-main-x)!important;
  top:var(--uni-mobile-main-y)!important;
  width:var(--uni-mobile-main-w)!important;
  height:var(--uni-mobile-main-h)!important;
}
.mobile-wordmark-chrome .hero-chrome-line.subtitle {
  left:var(--uni-mobile-sub-x)!important;
  top:var(--uni-mobile-sub-y)!important;
  width:var(--uni-mobile-sub-w)!important;
  height:var(--uni-mobile-sub-h)!important;
}

/*
  NO transform:translate ni transform:scale en la palabra cromada.
  El relieve se obtiene con un doble plano de sombras ópticas.
*/
html:not(.hero-relieve-original) .hero-chrome-line.main {
  transform:none!important;
  filter:drop-shadow(0 4px 3px rgba(35,76,119,.26))
         drop-shadow(0 7px 12px rgba(36,83,124,.14))
         drop-shadow(0 -1px 1px rgba(255,255,255,.82));
  animation:uni-v020-depth 10s ease-in-out infinite!important;
}
html:not(.hero-relieve-original) .hero-chrome-line.subtitle {
  transform:none!important;
  filter:drop-shadow(0 1.4px 1.5px rgba(33,79,113,.16))
         drop-shadow(0 -0.4px .6px rgba(255,255,255,.72));
  animation:none!important;
}
html:not(.hero-relieve-original) .hero-chrome-line.main > img.chrome-motion{opacity:.88!important}
html:not(.hero-relieve-original) .hero-chrome-line.subtitle > img.chrome-motion{opacity:.38!important}
/* No cambiar el carácter fino/arquitectónico de METAFÍSICA. */

/* La luz atraviesa SOLO la máscara alpha de las letras, no todo el panel. */
html:not(.hero-relieve-original) .hero-chrome-line::after {
  transform:none!important;
  background:linear-gradient(113deg,
    transparent 0%, transparent 30%, rgba(255,255,255,.025) 38%,
    rgba(245,252,255,.32) 45%, rgba(255,255,255,.73) 49%,
    rgba(169,213,242,.33) 53%, rgba(255,255,255,.06) 59%,
    transparent 66%, transparent 100%);
  background-size:278% 100%;
  background-position:155% 0;
  opacity:0;
  animation:uni-v020-shine 8.2s ease-in-out infinite!important;
}
html:not(.hero-relieve-original) .hero-chrome-line.subtitle::after {
  animation-duration:8.2s!important;
  animation-delay:.18s!important;
}
@keyframes uni-v020-shine {
   0%,10% {background-position:155% 0;opacity:0}
   20% {opacity:.35}
   51% {background-position:18% 0;opacity:.54}
   68% {background-position:-60% 0;opacity:.28}
   75%,100% {background-position:-60% 0;opacity:0}
}
@keyframes uni-v020-depth {
  0%,100% {filter:drop-shadow(0 4px 3px rgba(35,76,119,.26))
                    drop-shadow(0 7px 12px rgba(36,83,124,.14))
                    drop-shadow(0 -1px 1px rgba(255,255,255,.82))}
  50% {filter:drop-shadow(0 5px 3.5px rgba(35,76,119,.29))
              drop-shadow(0 9px 14px rgba(36,83,124,.17))
              drop-shadow(0 -1px 1px rgba(255,255,255,.88))}
}
/* Las variantes continúan disponibles sin reconstruir la página. */
html.hero-relieve-estatico .hero-chrome-line.main,
html.hero-relieve-estatico .hero-chrome-line.subtitle,
html.hero-relieve-estatico .hero-chrome-line.main::after,
html.hero-relieve-estatico .hero-chrome-line.subtitle::after {
 animation:none!important;
}
html.hero-relieve-estatico .hero-chrome-line::after {opacity:0!important}
html.hero-relieve-estatico .hero-chrome-line.main > img.chrome-static{opacity:.85!important}
html.hero-relieve-estatico .hero-chrome-line.subtitle > img.chrome-static{opacity:.36!important}
html.hero-relieve-suave .hero-chrome-line::after{animation-duration:12.8s!important}
html.hero-relieve-suave .hero-chrome-line.main{animation-duration:14s!important}
html.hero-relieve-original .hero-chrome-3d,
html.hero-relieve-original .mobile-wordmark-chrome{display:none!important}
@media(prefers-reduced-motion:reduce){
  html:not(.hero-relieve-original) .hero-chrome-line.main,
  html:not(.hero-relieve-original) .hero-chrome-line.subtitle,
  html:not(.hero-relieve-original) .hero-chrome-line.main::after,
  html:not(.hero-relieve-original) .hero-chrome-line.subtitle::after {
    animation:none!important;transition:none!important;
  }
  html:not(.hero-relieve-original) .hero-chrome-line::after{opacity:0!important}
}
