/* Botón flotante: independiente de los estilos y skins de Avada. */
a.ncr-avada-download {
  position: fixed !important;
  z-index: 2147483640 !important;
  left: 50% !important;
  bottom: calc(var(--ncr-bottom, 18px) + env(safe-area-inset-bottom, 0px)) !important;
  transform: translateX(-50%) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 9px !important;
  box-sizing: border-box !important;
  max-width: calc(100vw - 30px) !important;
  padding: 12px 19px !important;
  border: 1px solid rgba(255, 255, 255, .16) !important;
  border-radius: 100px !important;
  background: #cf1933 !important;
  box-shadow: 0 5px 22px rgba(0, 0, 0, .35) !important;
  color: #fff !important;
  font: 700 14px/1.2 Arial, Helvetica, sans-serif !important;
  text-decoration: none !important;
  letter-spacing: .01em !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .2s ease, box-shadow .2s ease !important;
}
a.ncr-avada-download[hidden] { display: none !important; }
a.ncr-avada-download:hover, a.ncr-avada-download:focus-visible {
  background: #a91229 !important;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .5) !important;
  color: #fff !important;
}
a.ncr-avada-download:focus-visible { outline: 3px solid white !important; outline-offset: 3px !important; }
a.ncr-avada-download svg { width: 19px !important; height: 19px !important; flex: none !important; }
@media (max-width: 600px) {
  a.ncr-avada-download {
    font-size: 14px !important;
    padding: 13px 18px !important;
    min-height: 46px !important;
  }
}

/* Visor de respaldo para móviles: sólo se muestra al abrir una foto. */
.ncr-mobile-photo-viewer {
  position: fixed !important;
  z-index: 2147483645 !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  display: flex !important;
  flex-direction: column !important;
  box-sizing: border-box !important;
  background: #101116 !important;
  color: #fff !important;
  font-family: Arial, Helvetica, sans-serif !important;
  -webkit-tap-highlight-color: transparent;
}
.ncr-mobile-photo-viewer[hidden] { display: none !important; }
.ncr-mobile-photo-viewer * { box-sizing: border-box !important; }
.ncr-mobile-photo-top {
  flex: none; min-height: 58px; padding: max(9px, env(safe-area-inset-top)) 18px 6px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.ncr-mobile-photo-counter { font-size: 13px !important; color: #d8d8df !important; }
.ncr-mobile-photo-viewer button {
  flex: none; background: rgba(255,255,255,.10) !important; color: #fff !important;
  border: 0 !important; border-radius: 100px !important;
  display: flex; align-items: center; justify-content: center;
  font-family: Arial, sans-serif !important; cursor: pointer;
}
.ncr-mobile-photo-viewer button:focus-visible,
.ncr-mobile-photo-download:focus-visible { outline: 3px solid white !important; outline-offset: 3px !important; }
.ncr-mobile-photo-close { width: 42px; height: 42px; font-size: 29px !important; font-weight: 400 !important; }
.ncr-mobile-photo-stage {
  position: relative; flex: 1 1 auto; min-height: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 8px 0; touch-action: pan-y;
}
.ncr-mobile-photo-image {
  display: block !important; object-fit: contain !important;
  max-width: 100vw !important; max-height: 100% !important;
  width: auto !important; height: auto !important;
  box-shadow: none !important; border: none !important;
}
.ncr-mobile-photo-previous, .ncr-mobile-photo-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 38px; height: 52px; font-size: 35px !important; z-index: 2;
}
.ncr-mobile-photo-previous { left: 8px; }
.ncr-mobile-photo-next { right: 8px; }
.ncr-mobile-photo-viewer button[hidden] { display: none !important; }
.ncr-mobile-photo-footer {
  flex: none; display: flex; justify-content: center;
  padding: 12px 12px calc(16px + env(safe-area-inset-bottom));
}
a.ncr-mobile-photo-download {
  min-height: 48px; padding: 13px 23px; max-width: 100%;
  border-radius: 100px; background: #cf1933 !important;
  color: #fff !important; text-decoration: none !important;
  font-size: 14px !important; line-height: 22px !important; font-weight: 700 !important;
  box-shadow: 0 4px 15px rgba(0,0,0,.3); text-align: center;
}
a.ncr-mobile-photo-download:hover, a.ncr-mobile-photo-download:focus { color: white !important; }

/* NCR 1.4: transiciones exclusivas del visor de respaldo en móviles.
 * No altera el visor iLightbox de Avada ni la experiencia de escritorio. */
.ncr-mobile-photo-viewer img[hidden] { display: none !important; }
@media (max-width: 767px) and (pointer: coarse) and (prefers-reduced-motion: no-preference) {
  .ncr-mobile-photo-viewer.ncr-mobile-photo-animated:not([hidden]) {
    animation: ncr-viewer-reveal .22s cubic-bezier(.2,.7,.3,1) both;
  }
  .ncr-mobile-photo-animated .ncr-mobile-photo-stage > .ncr-mobile-photo-image {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    will-change: opacity, transform;
  }
  .ncr-mobile-photo-animated.ncr-mobile-photo-opening .ncr-mobile-photo-image:not(.ncr-photo-enter-next):not(.ncr-photo-enter-prev) {
    animation: ncr-photo-reveal .25s cubic-bezier(.2,.7,.3,1) both;
  }
  .ncr-mobile-photo-animated .ncr-photo-enter-next {
    z-index: 1;
    animation: ncr-photo-in-next .23s ease-out both;
  }
  .ncr-mobile-photo-animated .ncr-photo-enter-prev {
    z-index: 1;
    animation: ncr-photo-in-prev .23s ease-out both;
  }
  .ncr-mobile-photo-animated .ncr-photo-exit-next {
    animation: ncr-photo-out-next .23s ease-in both;
  }
  .ncr-mobile-photo-animated .ncr-photo-exit-prev {
    animation: ncr-photo-out-prev .23s ease-in both;
  }
  @keyframes ncr-viewer-reveal {
    from { opacity: 0; } to { opacity: 1; }
  }
  @keyframes ncr-photo-reveal {
    from { opacity: .45; transform: scale(.985); }
    to { opacity: 1; transform: scale(1); }
  }
  @keyframes ncr-photo-in-next {
    from { opacity: 0; transform: translateX(14px) scale(.992); }
    to { opacity: 1; transform: translateX(0) scale(1); }
  }
  @keyframes ncr-photo-in-prev {
    from { opacity: 0; transform: translateX(-14px) scale(.992); }
    to { opacity: 1; transform: translateX(0) scale(1); }
  }
  @keyframes ncr-photo-out-next {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(-10px); }
  }
  @keyframes ncr-photo-out-prev {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(10px); }
  }
}
