/* Estilos base */
.hero-headers-slider {
  width: 100%;
  height: 80vh;
  position: relative;
  overflow: hidden;
}

.swiper-slide {
  height: 100%;
  transition: all 0.3s ease;
}

.hero-header {
  height: 100%;
  display: flex;

  background-size: cover;
  background-position: center;
  position: relative;
}

.hero-content {
  text-align: center;
  color: white;
  width: 100%;
  padding: 20px;
  position: relative;
  z-index: 2;
  /* Nuevos estilos para alineación vertical */
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center; /* Valor por defecto (center) */
}


/* Efectos especiales */
.swiper-container-3d .swiper-slide {
  height: 100% !important;
}

.hero-headers-slider[data-effect="cube"] {
  height: 70vh !important;
}

.hero-headers-slider[data-effect="flip"] .swiper-slide {
  background-color: transparent !important;
}

/* Overlay para mejor legibilidad */
.hero-header::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

/* Tipografía */
.hero-title {
  font-size: 3.5em;
  margin-bottom: 15px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.5em;
  margin-bottom: 0;
  line-height: 1.4;
}

/* Alineaciones responsivas */
.hero-title,
.hero-subtitle {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* POR */
[class*="elementor-align-"] .hero-title {
    margin-left: 0;
    margin-right: auto;
    width: fit-content;
}

.elementor-align-center .hero-title {
    margin-left: auto;
    margin-right: auto;
}

.elementor-align-right .hero-title {
    margin-left: auto;
    margin-right: 0;
}

/* Para alineaci¨®n izquierda */
.elementor-align-left .hero-title,
.elementor-align-left .hero-subtitle {
    margin-left: 0;
    margin-right: auto;
}

/* Para alineaci¨®n derecha */
.elementor-align-right .hero-title,
.elementor-align-right .hero-subtitle {
    margin-left: auto;
    margin-right: 0;
}

/* Navegaci¨®n */
.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 30px;
  color: white;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.swiper-pagination-bullet {
  background: white;
  opacity: 0.5;
  width: 12px;
  height: 12px;
  transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
  opacity: 1;
  transform: scale(1.2);
}

/* Responsivo */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2em;
  }

  .hero-subtitle {
    font-size: 1.2em;
  }

  .hero-headers-slider {
    height: 60vh !important;
  }

  .swiper-button-next::after,
  .swiper-button-prev::after {
    font-size: 20px;
  }
}

/* Video Background */
.hero-video-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.hero-video-wrap iframe,
.hero-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Enlace */
.hero-link {
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 3;
  text-decoration: none;
}

/* Botones */
.hero-buttons {
  margin-top: 25px;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-btn {
  padding: 12px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.hero-btn.primary {
  background: #007bff;
  color: white !important;
}

.hero-btn.secondary {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}

/* Posici¨®n navegaci¨®n */
.hero-headers-slider.nav-outside {
  padding-bottom: 40px;
}

.hero-headers-slider.nav-outside .swiper-pagination {
  bottom: -25px !important;
}

.hero-headers-slider.nav-outside .swiper-button-next,
.hero-headers-slider.nav-outside .swiper-button-prev {
  top: auto;
  bottom: -40px;
}

.hhs-preloader {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 9999;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* RTL Support */
.rtl .swiper-button-prev {
  right: auto;
  left: 10px;
}
.rtl .swiper-button-next {
  left: auto;
  right: 10px;
}

/* AMP Styles */
amp-carousel.hero-slider-amp {
  /* Estilos espec¨ªficos para AMP */
}

/* Hover Effects */
.hero-title {
  transition: transform 0.3s ease;
}

.elementor-element:hover .hero-title {
  transform: translateY(-5px);
}

/* Flechas - Estilo Base */
.swiper-button-next,
.swiper-button-prev {
  background: rgba(0, 0, 0, 0.3);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: rgba(0, 0, 0, 0.6);
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-family: "elementor-icons" !important;
  font-size: 25px;
}

/* Paginaci¨®n - Estilo Base */
.swiper-pagination-bullet {
  transition: all 0.3s ease;
  opacity: 1 !important;
  background: rgba(255, 255, 255, 0.5);
}

.swiper-pagination-bullet-active {
  background: #fff;
  transform: scale(1.2);
}

/* Fix para temas con overflow oculto */
.elementor-section .elementor-container {
    overflow: visible !important;
}

.hhs-slider-container {
    width: 100%;
    position: relative;
}

.swiper.hero-headers-slider {
    overflow: hidden;
}
