@keyframes idxFadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

#stats-slider-content {
  animation: idxFadeUp 900ms cubic-bezier(.22, 1, .36, 1) 200ms both;
}

.idx-fade {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 900ms cubic-bezier(.22, 1, .36, 1), transform 900ms cubic-bezier(.22, 1, .36, 1);
}

.idx-fade.idx-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  #stats-slider-content {
    animation: none;
  }

  .idx-fade {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Noticias: el bloque blanco sube y descubre detrás la foto fija de las oficinas */
.d-noticias-reveal {
  clip-path: inset(0);
  padding-bottom: calc(100vh - var(--hh, 0px));
}

.d-noticias-bg {
  position: fixed;
  top: var(--hh, 0px);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--hh, 0px));
  z-index: 0;
  overflow: hidden;
}

.d-noticias-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.hdr-autohide .d-noticias-bg {
  transition: top 350ms cubic-bezier(0.4, 0, 0.2, 1), height 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

body.hdr-is-off .d-noticias-bg {
  top: 0;
  height: 100vh;
}

/* Header oculto en el inicio: la primera vista recupera su espacio */
:root {
  --hh-real: var(--hh, 0px);
}

body.idx-full {
  --hh: 0px;
}

body.idx-full > header {
  margin-bottom: calc(-1 * var(--hh-real));
}
