/* V111 - Animación luxury para imágenes y banners.
   Más sobria que la versión anterior: sin blur fuerte, sin salto evidente,
   con revelado tipo máscara cinematográfica y zoom muy fino. */

.andorra-deluxe-reveal,
.andorra-deluxe-bg-reveal {
  --andorra-luxury-duration: 1450ms;
  --andorra-luxury-ease: cubic-bezier(.16, 1, .3, 1);
  opacity: 0.001;
  transform: translate3d(0, 18px, 0) scale(1.035);
  clip-path: inset(0 0 18% 0);
  filter: contrast(.96) saturate(.94) brightness(.98);
  transition:
    opacity var(--andorra-luxury-duration) var(--andorra-luxury-ease),
    transform calc(var(--andorra-luxury-duration) + 250ms) var(--andorra-luxury-ease),
    clip-path calc(var(--andorra-luxury-duration) + 100ms) var(--andorra-luxury-ease),
    filter calc(var(--andorra-luxury-duration) + 200ms) var(--andorra-luxury-ease);
  transition-delay: var(--andorra-reveal-delay, 0ms);
  will-change: opacity, transform, clip-path, filter;
  backface-visibility: hidden;
}

.andorra-deluxe-reveal.andorra-deluxe-visible,
.andorra-deluxe-bg-reveal.andorra-deluxe-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  clip-path: inset(0 0 0 0);
  filter: contrast(1) saturate(1) brightness(1);
}

/* Banners y fondos: revelado un poco más lento y cinematográfico. */
.andorra-deluxe-bg-reveal {
  position: relative;
  overflow: hidden;
  transform: translate3d(0, 14px, 0) scale(1.045);
  clip-path: inset(0 0 14% 0);
}

/* Luz luxury muy sutil sobre banners/fondos. No se aplica a imágenes <img>. */
.andorra-deluxe-bg-reveal::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  background: linear-gradient(105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.03) 36%,
    rgba(255, 255, 255, 0.16) 48%,
    rgba(255, 255, 255, 0.035) 58%,
    transparent 100%);
  transform: translateX(-48%);
}

.andorra-deluxe-bg-reveal.andorra-deluxe-visible::after {
  animation: andorraLuxurySheen 1850ms cubic-bezier(.16, 1, .3, 1) var(--andorra-reveal-delay, 0ms) 1 both;
}

@keyframes andorraLuxurySheen {
  0% {
    opacity: 0;
    transform: translateX(-52%);
  }
  22% {
    opacity: .55;
  }
  100% {
    opacity: 0;
    transform: translateX(52%);
  }
}

/* Secuencia elegante para galerías: cada imagen entra con poca diferencia. */
.andorra-deluxe-reveal:nth-child(2n) {
  transform: translate3d(0, 14px, 0) scale(1.03);
}

.andorra-deluxe-reveal.andorra-deluxe-visible:nth-child(2n) {
  transform: translate3d(0, 0, 0) scale(1);
}

/* Evita que controles interactivos o imágenes dentro de botones se vean raros. */
a .andorra-deluxe-reveal,
button .andorra-deluxe-reveal {
  transition-duration: 900ms;
}

@media (max-width: 768px) {
  .andorra-deluxe-reveal,
  .andorra-deluxe-bg-reveal {
    transform: translate3d(0, 12px, 0) scale(1.025);
    clip-path: inset(0 0 10% 0);
    transition-duration: 1050ms;
  }
}

@media (prefers-reduced-motion: reduce) {
  .andorra-deluxe-reveal,
  .andorra-deluxe-bg-reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    clip-path: none !important;
    transition: none !important;
    animation: none !important;
  }

  .andorra-deluxe-bg-reveal::after {
    display: none !important;
  }
}
