@property --entrada-ayb-radio {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 0%;
}

.entrada-ayb { display: none; }
.entrada-ayb-activa .entrada-ayb {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  touch-action: none;
  animation: entrada-ayb-seguro 4s steps(1, end) forwards;
}
.entrada-ayb-fondo { position: absolute; inset: 0; overflow: hidden; background: #060b17; }
.entrada-ayb-fondo::before {
  content: '';
  position: absolute;
  inset: 8% 0;
  background: repeating-linear-gradient(90deg, #7ccfff16 0 1px, #7ccfff07 1px 5px, transparent 5px clamp(20px, 4vw, 58px));
  mask-image: radial-gradient(ellipse at center, #000, transparent 76%);
  animation: entrada-ayb-nervaduras .92s cubic-bezier(.2,.8,.2,1) both;
}
.entrada-ayb-marca { position: relative; width: min(calc(64vw - 64px), 236px); }
.entrada-ayb-marca img { display: block; width: 100%; height: auto; opacity: 0; }
.entrada-ayb-logo .entrada-ayb-marca img { animation: entrada-ayb-logo .55s cubic-bezier(.2,.8,.2,1) both; }
.entrada-ayb-carga {
  position: absolute;
  inset: auto 14% -19px;
  height: 1px;
  background: #9edfff36;
}
.entrada-ayb-carga::before {
  content: '';
  display: block;
  height: 100%;
  background: #9edfff;
  scale: .08 1;
  transform-origin: left;
  transition: scale .15s var(--ease);
}
.entrada-ayb-logo .entrada-ayb-carga::before { scale: .37 1; }
.entrada-ayb-html .entrada-ayb-carga::before { scale: .58 1; }
.entrada-ayb-lista .entrada-ayb-carga::before { scale: 1; }
.entrada-ayb-abriendo .entrada-ayb-fondo {
  mask-image: radial-gradient(circle farthest-corner at center, transparent var(--entrada-ayb-radio), #000 calc(var(--entrada-ayb-radio) + 2%));
  animation: entrada-ayb-circulo .7s cubic-bezier(.6,0,.4,1) forwards;
}
.entrada-ayb-abriendo .entrada-ayb-marca { animation: entrada-ayb-salida .36s cubic-bezier(.4,0,1,1) forwards; }

@keyframes entrada-ayb-nervaduras { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes entrada-ayb-logo { from { opacity: .45; transform: scale(.72); } to { opacity: 1; transform: scale(1); } }
@keyframes entrada-ayb-circulo { to { --entrada-ayb-radio: 102%; } }
@keyframes entrada-ayb-salida { to { opacity: 0; transform: scale(.78); } }
@keyframes entrada-ayb-seguro { to { visibility: hidden; } }
@keyframes entrada-ayb-suave { from { opacity: .65; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .entrada-ayb-activa .entrada-ayb { display: none; }
  /* El fundido corto es la única excepción al bloqueo global de animaciones. */
  .entrada-ayb-reducida body { animation: entrada-ayb-suave .2s ease-out both !important; }
}

