/*
 * CORTINA_LOGO_ABEJITA
 * V563 componente global para intro de portada.
 * Estética V1 conservada.
 */

:root {
  --abdz-logo-curtain-yellow: #FFD501;
}

html.abdz-logo-curtain-lock,
html.abdz-logo-curtain-lock body {
  overflow: hidden !important;
  overscroll-behavior: none !important;
}

#abdz-logo-curtain-root {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  pointer-events: auto;
  contain: layout paint style;
  overflow: hidden;
  background: transparent;
  transform: translateZ(0);
}

#abdz-logo-curtain-waves {
  position: absolute;
  inset: 0;
  width: 100%;
  min-height: 100dvh;
  pointer-events: none;
  contain: layout paint style;
  transform: translateZ(0);
  background: transparent;
  overflow: hidden;
}

#abdz-logo-curtain-waves.reverse {
  transform: rotate(180deg) translateZ(0);
}

#abdz-logo-curtain-waves canvas,
#abdz-logo-curtain-waves svg {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  display: block;
}

#abdz-logo-curtain-brand {
  position: absolute;
  inset: 0;
  text-align: center;
  pointer-events: none;
  contain: layout paint style;
}

.abdz-logo-curtain-inner {
  position: absolute;
  width: 100%;
  top: 50%;
  transform: translateY(-50%);
}

.abdz-logo-curtain-logo {
  display: block;
  width: min(360px, 68vw);
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  opacity: 0;
  clip-path: inset(0 100% 0 0);
  transform: translateY(8px);
  filter: drop-shadow(0 10px 24px rgba(35,31,32,.11));
  will-change: opacity, transform, clip-path;
}

#abdz-logo-curtain-brand.brand-on .abdz-logo-curtain-logo {
  animation: abdzLogoCurtainBrandReveal .82s cubic-bezier(.2,.78,.2,1) forwards;
}

#abdz-logo-curtain-brand.brand-out .abdz-logo-curtain-logo {
  animation: abdzLogoCurtainBrandExit .58s cubic-bezier(.72,0,.18,1) forwards;
}

@keyframes abdzLogoCurtainBrandReveal {
  0% {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
    transform: translateY(8px);
  }
  45% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transform: translateY(0);
  }
}

@keyframes abdzLogoCurtainBrandExit {
  0% {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    clip-path: inset(0 0 0 0);
    transform: translateY(-10px);
  }
}

.abdz-logo-curtain-fallback {
  background: var(--abdz-logo-curtain-yellow);
}

.abdz-logo-curtain-fallback.is-opening {
  animation: abdzLogoCurtainFallbackOpen .7s cubic-bezier(.72,0,.18,1) forwards;
}

@keyframes abdzLogoCurtainFallbackOpen {
  to {
    transform: translate3d(0,100%,0);
  }
}

@media (max-width: 700px) {
  .abdz-logo-curtain-logo {
    width: min(270px, 76vw);
  }
}

@media (prefers-reduced-motion: reduce) {
  #abdz-logo-curtain-root {
    display: none !important;
  }
}


/* V564: en intro, la portada no se ve detrás hasta el momento de revelar */
html.abdz-logo-intro-page-hidden body {
  opacity: 0 !important;
  visibility: hidden !important;
}

html.abdz-logo-intro-page-revealed body {
  opacity: 1 !important;
  visibility: visible !important;
}


/* V567: llegada cubierta para transición dividida LAVA_CON_LOGO */
html.abdz-lava-arrival-prepaint body {
  opacity: 0 !important;
  visibility: hidden !important;
}

html.abdz-lava-arrival-prepaint::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2147482999;
  background: #FFD501;
  pointer-events: auto;
}
