/* =================================
   CARRUSEL VERTICAL
================================= */

.vertical-carousel {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  touch-action: pan-y;
}

/* Difuminación inferior del carrusel */
.slide[data-slide="4"]::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(to top, #2e4894 0%, transparent 100%);
  z-index: 10;
  pointer-events: none;
}

/* Video de fondo */
.carousel-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

/* Overlay del video */
.carousel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
  pointer-events: none;
}

/* Contenedor de slides */
.carousel-slides {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 2;
}

/* Slides individuales */
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  will-change: opacity;
}

.slide.active {
  opacity: 1;
  visibility: visible;
}

/* Contenido de slides */
.slide-content {
  width: 100%;
  height: 100%;
  padding: 20px;
  flex-direction: column;
  gap: 24px;
}

/* Logo en slides */
.slide-logo {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Texto de slide 2 */
.slide-text {
  font-size: 18px;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

/* Claim de slide 4 */
.slide-claim {
  margin-top: 24px;
  max-width: 600px;
  line-height: 1.4;
}

/* =================================
   INDICADOR DE SCROLL (FLECHAS)
================================= */

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 50px;
  z-index: 3;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  pointer-events: none;
}

.scroll-indicator.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-indicator.fade-out {
  opacity: 0;
  visibility: hidden;
}

/* Flechas animadas */
.arrow {
  opacity: 0;
  position: absolute;
  left: 50%;
  top: 50%;
  transform-origin: 50% 50%;
  transform: translate3d(-50%, -50%, 0);
  width: 30px;
  height: 30px;
}

.arrow-first {
  animation: arrow-movement 2s ease-in-out infinite;
}

.arrow-second {
  animation: arrow-movement 2s 1s ease-in-out infinite;
}

.arrow::before,
.arrow::after {
  background: #fff;
  content: '';
  display: block;
  height: 3px;
  position: absolute;
  top: 0;
  left: 0;
  width: 30px;
}

.arrow::before {
  transform: rotate(45deg) translateX(-23%);
  transform-origin: top left;
}

.arrow::after {
  transform: rotate(-45deg) translateX(23%);
  transform-origin: top right;
}

/* Animación de las flechas */
@keyframes arrow-movement {
  0% {
    opacity: 0;
    top: 35%;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    top: 65%;
  }
}

/* =================================
   RESPONSIVE - MOBILE FIRST
================================= */

/* Mobile (por defecto) */
.slide-logo {
  width: 304px;
  height: 134px;
}

.slide h1 {
  font-size: 20px;
  line-height: 1.2;
}

.slide h2 {
  font-size: 48px;
 /* line-height: 1.3;*/
}

.slide-text {
  font-size: 32px;
}

/* Tablet */
@media (min-width: 768px) {
  .slide-logo {
    width: 450px;
    height: 198px;
  }
  
.slide h1 {font-size: 42px;}
.slide h2 {font-size: 62px;}
  
 /* .slide-text {
    font-size: 32px;
  }*/
  
  .scroll-indicator {
    bottom: 40px;
  }
  
  /* Aumentar difuminación en desktop */
  .vertical-carousel::after {
    height: 150px;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .slide-logo {
    width: 592px;
    height: 261px;
  }
  
  /*.slide h1 {
    font-size: 56px;
  }
  
  .slide h2 {
    font-size: 28px;
  }*/
  
  .slide-content {
    padding: 40px;
  }
  
  .scroll-indicator {
    bottom: 48px;
  }
}

/* Safe area para móviles con notch */
@supports (padding: max(0px)) {
  .scroll-indicator {
    bottom: max(32px, env(safe-area-inset-bottom, 32px));
  }
}