/* ============================================
   SWIPER HERO SLIDER
   El slider ocupa 100vh MENOS la altura del header (~70px)
   para que el header quede visible debajo del slider
   ============================================ */

.swiper-hero {
  position: relative;
  width: 100%;
  height: calc(100dvh - 70px);
  height: calc(100vh - 70px); /* fallback */
  min-height: 420px;
  overflow: hidden;
}

.swiper-hero .swiper {
  width: 100%;
  height: 100%;
}

/* Slides con imagen de fondo */
.swiper-slide.slide-img {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* Slide con video */
.swiper-slide.slide-video {
  background-color: #000;
  overflow: hidden;
}

/* Overlay oscuro */
.swiper-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.30);
  z-index: 1;
}

/* Video iframe fullscreen */
.video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.video-bg iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 177.78vh;
  height: 100vh;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  border: 0;
  pointer-events: none;
}

/* Texto centrado */
.slide-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
  color: #fff;
  opacity: 0;
  width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
}
.slide-content.slide-animate {
  opacity: 1;
}
.slide-content.slide-animate .slide-title {
  animation: slideFromTop 0.8s cubic-bezier(0.23,1,0.32,1) forwards;
}
.slide-content.slide-animate .slide-sub {
  animation: slideFromBottom 0.8s cubic-bezier(0.23,1,0.32,1) 0.25s forwards;
}

.slide-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 100px;
  font-weight: 700;
  font-style: italic;
  line-height: 1;
  color: #fff;
  text-shadow: 0 0 20px rgba(0,0,0,1), 0 0 60px rgba(0,0,0,0.8), 0 2px 4px rgba(0,0,0,1);
  opacity: 0;
  transform: translateY(-50px);
}
.slide-sub {
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 10px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  margin-top: 20px;
  opacity: 0;
  transform: translateY(35px);
  text-shadow: 0 0 10px rgba(0,0,0,1), 0 0 30px rgba(0,0,0,0.9), 0 2px 4px rgba(0,0,0,1);
}

@keyframes slideFromTop    { to { opacity:1; transform:translateY(0); } }
@keyframes slideFromBottom { to { opacity:1; transform:translateY(0); } }

/* Flechas */
.swiper-button-prev,
.swiper-button-next {
  color: rgba(255,255,255,0.85) !important;
  width: 50px !important;
  height: 50px !important;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  transition: all 0.3s;
}
.swiper-button-prev:hover,
.swiper-button-next:hover {
  background: rgba(0,231,180,0.75);
  border-color: transparent;
  color: #fff !important;
}
.swiper-button-prev::after,
.swiper-button-next::after {
  font-size: 17px !important;
  font-weight: 700;
}

/* Paginación */
.swiper-pagination {
  bottom: 25px !important;
}
.swiper-pagination-bullet {
  background: rgba(255,255,255,0.55) !important;
  opacity: 1 !important;
  width: 9px !important;
  height: 9px !important;
  transition: background 0.3s, transform 0.3s;
}
.swiper-pagination-bullet-active {
  background: #00e7b4 !important;
  transform: scale(1.4);
}

/* Scroll-down */
.swiper-hero .scroll-down-button {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  cursor: pointer;
  text-align: center;
  animation: bounce 2.2s ease-in-out infinite;
}
.swiper-hero .scroll-down-button .down-button { display: none; }
.swiper-hero .scroll-down-button i {
  font-size: 28px;
  color: rgba(255,255,255,0.8);
  display: block;
  transition: color 0.3s;
}
.swiper-hero .scroll-down-button:hover i { color: #00e7b4; }

@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(9px); }
}

/* ============================================
   HEADER — sticky natural
   Al inicio: posición normal debajo del slider
   Al hacer scroll: se fija en top:0
   ============================================ */

/* El wrapper ocupa el espacio del header normalmente */
.stick-wrapper {
  position: relative !important;
  height: auto !important;
  top: auto !important;
  background-color: white !important;
}

/* Estado inicial: relativo, dentro del flujo */
.sticky {
  position: relative !important;
  top: auto !important;
  bottom: auto !important;
  left: 0;
  right: 0;
  z-index: 9999 !important;
  background-color: rgba(255, 255, 255, 1) !important;
  border-bottom: 1px solid #e5e5e5 !important;
  border-top: none !important;
  box-shadow: none !important;
  transition: box-shadow 0.4s ease,
              background-color 0.4s ease !important;
}

/* Estado fixed: cuando el usuario hace scroll y pasa el slider */
.sticky.is-fixed {
  position: fixed !important;
  top: 0 !important;
  bottom: auto !important;
  background-color: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 2px 18px rgba(0,0,0,0.10) !important;
  border-bottom: 1px solid #e5e5e5 !important;
}

/* Links normales (negros) en ambos estados */
.sticky .nav a {
  color: #000 !important;
}
.sticky .nav a:hover {
  color: #00e7b4 !important;
}
.sticky .nav>ul>li>a:after {
  color: #00e7b4 !important;
}
.sticky .logo img {
  filter: none !important;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .swiper-hero   { height: calc(100dvh - 60px); }
  .slide-title   { font-size: 58px; }
  .slide-sub     { font-size: 12px; letter-spacing: 6px; }
  .swiper-button-prev,
  .swiper-button-next { display: none !important; }
}
@media (max-width: 480px) {
  .swiper-hero   { height: calc(100dvh - 55px); }
  .slide-title   { font-size: 40px; }
  .slide-sub     { letter-spacing: 4px; }
}
