/* ==========================================
   SECCIÓN HERO BANNER
   ========================================== */

.hero-banner {
  width: 100%;
  position: relative;
  overflow: hidden;
  background-color: #0f172a; /* Color de carga de respaldo */
}

.slider-container {
  width: 100%;
  position: relative;
}

.slider-wrapper {
  width: 100%;
  position: relative;
}

/* ==========================================
   ESTILOS DE CADA SLIDE
   ========================================== */

.slide {
  position: relative;
  width: 100%;
  min-height: 520px; /* Altura predeterminada en escritorio */
  display: none;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

.slide.active {
  display: flex;
  align-items: center;
  opacity: 1;
}

/* Imagen de fondo adaptable (<picture>) */
.slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.slide-bg picture {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Capa de degradado sobre la imagen para legibilidad del texto */
.slide-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(128, 128, 128, 0.30) 0%, rgba(245, 245, 245, 0.2) 80%, rgba(15, 23, 42, 0) 100%);
  z-index: 2;
}

/* ==========================================
   CONTENIDO TEXTO Y BOTONES
   ========================================== */

.hero-container {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  box-sizing: border-box;
}

.hero-content {
  max-width: 540px;
  color: #0f172a;
}

.hero-title {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.15;
  color: #0f172a;
  margin: 0 0 16px 0;
  letter-spacing: -0.5px;
}

.hero-title .text-highlight {
  color: #0052cc; /* Azul destacado */
  display: inline-block;
}

.hero-description {
  font-size: 16px;
  line-height: 1.5;
  color: #ffffff;
  margin: 0 0 28px 0;
  font-weight: 400;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #0052cc;
  color: #ffffff;
  padding: 12px 26px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
  transition: all 0.25s ease;
}

.btn-hero:hover {
  background-color: #0369a1;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.45);
}

.btn-hero svg {
  transition: transform 0.2s ease;
}

.btn-hero:hover svg {
  transform: translateX(4px);
}

/* ==========================================
   FLECHAS Y PUNTOS DE NAVEGACIÓN
   ========================================== */

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background-color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 50%;
  color: #0052cc;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
}

.slider-arrow:hover {
  background-color: #ffffff;
  color: #0052cc;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.prev-arrow {
  left: 20px;
}

.next-arrow {
  right: 20px;
}

/* Puntos de Paginación */
.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.slider-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.25s ease;
}

.slider-dots .dot.active {
  background-color: #0052cc;
  width: 24px;
  border-radius: 10px;
}

/* ==========================================
   AJUSTES RESPONSIVE PARA MÓVIL (< 768px)
   ========================================== */

@media (max-width: 767px) {
  
  /* Forzamos a flex y la alineación arriba */
  .slide.active {
    display: flex !important;
    align-items: flex-start !important; 
    min-height: 480px; 
    position: relative;
  }

  /* Ocultar el degradado oscuro para ver la foto nítida */
  .slide-bg::after {
    display: none !important; 
  }

  /* Posicionamiento en la parte superior del banner */
  .hero-container {
    padding: 30px 20px 0 20px !important;
    width: 100% !important;
    margin: 0 !important;
  }

  .hero-content {
    max-width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important; /* Centra el botón horizontalmente */
    text-align: center !important;
  }

  /* Ocultamos los textos del banner en pantallas móviles */
  .hero-title,
  .hero-description {
    display: none !important;
  }

  /* Estilos y centrado del botón */
  .btn-hero {
    margin: 0 auto !important;
    padding: 12px 28px !important;
    font-size: 15px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25) !important;
  }

  /* Ocultar flechas laterales de navegación en móvil */
  .slider-arrow {
    display: none !important;
  }

  .slider-dots {
    bottom: 15px !important;
  }
}