html {
  min-height: 100%;
  overscroll-behavior-y: none;
}

body {
  min-height: 100%;
  margin: 0;
  overscroll-behavior-y: none;
}

body[data-current-slug="home"] {
  background: #000;
}

body[data-current-slug="home"]::before {
  content: "";
  position: fixed;
  inset: 0;
  background: #000;
  pointer-events: none;
  z-index: -1;
}

/* Efecto de hundirse para el botón de login (igual que los botones de platform) */
.btn-log-in {
  transition: box-shadow 0.15s, transform 0.15s;
}
.btn-log-in:hover {
  box-shadow: none !important;
  transform: translate(4px, 4px);
}
.button.button-v1 {
  background-color: #43A3DB;
  padding: 12px 14px;
  display: flex;
  align-content: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
}

.button.button-v1 span{
  text-decoration: none;
  text-transform: uppercase;
  color: #fff;
  font-size: 16px;
}

.button-v2{
  background-color: #FF0000;
  padding: 15px 30px;
  height: stretch;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 5px 6px 0px 0px rgba(0, 0, 0, 1);
}


.reveal {
  opacity: 0;
  transform: translateY(20px); /* fallback */
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: transform, opacity;
}

.reveal.revealed {
  opacity: 1;
  transform: translate(0, 0);
}

.reveal-right {
  transform: translateX(100px);
}
.reveal-left {
  transform: translateX(-100px);
}
.reveal-top {
  transform: translateY(-100px);
}
.reveal-bottom {
  transform: translateY(100px);
}
.reveal-fade {
  transform: none;
}

.swiper-button-next:after, .swiper-rtl .swiper-button-prev:after{
  color: #fff;
  font-size: 14px !important;
  font-weight: 900;
}

.swiper-button-prev:after, .swiper-rtl .swiper-button-next:after{
  color: #fff;
  font-size: 14px !important;
  font-weight: 900;
}


/* Siempre relativo para poder usar el overlay */
.wrapper{
  position: relative;
  background: #FFFF; /* fallback cuando no hay imagen */
}

/* Si hay imagen de sección, ya la tenías así */
.has-section-bg{
  background-image: var(--section-bg);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
@supports (-webkit-touch-callout: none) {
  .has-section-bg{ background-attachment: scroll; }
}

/* Overlay negro que SÍ tapa la imagen (controlado por --bg-black) */
.wrapper::before{
  content: "";
  position: absolute;
  inset: 0;
  background: #000;
  opacity: var(--bg-black, 0);   /* 0..1 */
  transition: opacity 320ms ease;
  pointer-events: none;
  z-index: 0;
}

/* Contenido siempre por encima del overlay */
.wrapper > *{
  position: relative;
}

/* Fade overlay for smooth transitions */
.fade-overlay {
  position: fixed;
  inset: 0;
  background: white;
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  transition: opacity 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.fade-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.fade-overlay.active.fade-overlay--exit .fade-overlay__loader {
  opacity: 0;
  transition: opacity 0.08s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-overlay--exit .fade-overlay__loader-path {
  animation: none !important;
}

.fade-overlay__loader {
  width: min(24vw, 128px);
  height: min(36vw, 208px);
  min-width: 88px;
  min-height: 132px;
  opacity: 1;
}

.fade-overlay__loader svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.08));
}

.fade-overlay__loader-path {
  animation: fade-overlay-travel var(--dur, 2500ms) linear infinite;
  will-change: stroke-dashoffset;
}

.fade-overlay__loader-path.is-secondary {
  animation-delay: calc(var(--dur, 2500ms) / -2);
}

@keyframes fade-overlay-travel {
  from {
    stroke-dashoffset: 0;
  }
  to {
    stroke-dashoffset: var(--len, 1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fade-overlay,
  .fade-overlay__loader,
  .fade-overlay__loader-path {
    transition: none !important;
    animation: none !important;
  }
}

@media (max-width: 1023px){
  body[data-current-slug="home"] .wrapper::before{
    opacity: 1 !important;
    transition: none !important;
  }
  body[data-current-slug="home"] .wrapper{
    background: #000 !important;
  }
}
