/* ============================================================
   HEAD HOME SLIDER
   Shortcode: [HeadHome]
   Estructura idéntica al Revolution Slider pero sin dependencias externas
   ============================================================ */

/* --- Contenedor principal --- */
.head-home-slider {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-bottom: 50px;
  height: 600px;
  max-height: 900px;
  min-height: 520px;
  overflow: hidden;
  background: #0a420d;
  margin-top: -40px !important;
}

/* --- Slides --- */
.hhs-slides-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.hhs-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  z-index: 1;
  transition: opacity 1s ease;
}

.hhs-slide.active {
  opacity: 1;
  z-index: 2;
}

.hhs-slide.leaving {
  opacity: 0;
  z-index: 2;
  transition: opacity 1s ease;
}

/* --- Overlay oscuro sobre la imagen --- */
.hhs-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgb(57 57 57 / 78%), rgba(10, 35, 66, 0.38));
  z-index: 1;
}

/* --- Contenedor del texto --- */
.hhs-container {
  position: relative;
  z-index: 2;
  max-width: 1290px;
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 80px;
}

/* ============================================================
   CAPAS DE TEXTO (layers) — estado inicial: ocultas
   ============================================================ */
.hhs-layer {
  opacity: 0;
  will-change: transform, opacity;
}

/* Subtítulo: entra desde abajo */
.hhs-layer--subtitle {
  transform: translateY(50px);
  transition: opacity 1s ease 0.3s, transform 1s ease 0.3s;
  margin-bottom: 20px;
}

/* Título: entra desde la izquierda (como Revolution Slider) */
.hhs-layer--title {
  transform: translateX(-80px);
  transition: opacity 1s cubic-bezier(0.215, 0.61, 0.355, 1) 0.5s,
              transform 1s cubic-bezier(0.215, 0.61, 0.355, 1) 0.5s;
  margin-bottom: 20px;
}

/* Párrafo: entra desde abajo */
.hhs-layer--paragraph {
  transform: translateY(-50px);
  transition: opacity 1s ease 0.7s, transform 1s ease 0.7s;
  margin-bottom: 30px;
}

/* Botones: entran desde abajo */
.hhs-layer--buttons {
  transform: translateY(-50px);
  transition: opacity 0.7s ease 0.9s, transform 0.7s ease 0.9s;
}

/* --- Estado activo: mostrar capas --- */
.hhs-slide.active .hhs-layer {
  opacity: 1;
  transform: translate(0, 0);
}

/* ============================================================
   ESTILOS DE CADA CAPA
   ============================================================ */

/* Badge de subtítulo */
.hhs-layer--subtitle {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hhs-layer--subtitle span {
  display: inline-block;
  background: rgba(29, 36, 29, 0.75);
  color: #fff;
  font-family: 'Rubik', sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 25px;
  padding: 12px 22px 12px 65px;
  border-radius: 100px;
  letter-spacing: 0.5px;
}

/* Icono dentro del badge (si se usa slide{n}_icon) */
.hhs-subtitle-icon {
  position: absolute;
  width: 28px;
  height: 28px;
  object-fit: contain;
  margin-left: 33px;
  margin-top: -2px;
}

/* Título principal */
.hhs-layer--title {
  font-family: 'Roboto', sans-serif;
  font-size: 80px;
  line-height: 80px;
  font-weight: 900;
  color: #fff;
  max-width: 774px;
  margin: 0 0 20px;
}

/* Párrafo */
.hhs-layer--paragraph {
  font-family: 'Rubik', sans-serif;
  font-size: 16px;
  line-height: 25px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 563px;
  margin: 0 0 30px;
}

/* Botón CTA */
.hhs-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  color: var(--color-primary, #03bfcb);
  font-family: 'Rubik', sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 25px;
  padding: 14px 28px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
}

.hhs-btn:hover {
  background: var(--color-primary, #03bfcb);
  color: #fff;
}

.hhs-btn-arrow {
  font-size: 18px;
  line-height: 1;
}

/* Navegación eliminada — el slider avanza automáticamente */

/* ============================================================
   RESPONSIVE — mismos breakpoints que Revolution Slider
   ============================================================ */

/* Tablet grande (≤ 1240px) */
@media (max-width: 1240px) {
  .head-home-slider {
    height: 768px;
    max-height: 768px;
  }
  .hhs-layer--title {
    font-size: 63px;
    line-height: 63px;
    max-width: 614px;
  }
  .hhs-layer--subtitle span {
    font-size: 14px;
    line-height: 19px;
  }
  .hhs-layer--paragraph {
    max-width: 526px;
  }
}

/* Tablet (≤ 1024px) */
@media (max-width: 1024px) {
  .head-home-slider {
    height: 660px;
    max-height: 660px;
  }
  .hhs-layer--title {
    font-size: 47px;
    line-height: 47px;
    max-width: 466px;
  }
  .hhs-container {
    padding: 0 30px;
    padding-top: 70px;
  }
}

/* Móvil grande (≤ 778px) */
@media (max-width: 778px) {
  .head-home-slider {
    height: 520px;
    max-height: 520px;
    min-height: 450px;
  }
  .hhs-layer--title {
    font-size: 40px;
    line-height: 47px;
    max-width: 428px;
  }
  .hhs-layer--subtitle span {
    font-size: 15px;
    line-height: 25px;
    padding-left: 45px;
  }
  .hhs-subtitle-icon {
    width: 17px;
    height: 17px;
    margin-left: 27px;
  }
  .hhs-layer--paragraph {
    font-size: 15px;
    line-height: 23px;
    max-width: 460px;
  }

}

/* Móvil (≤ 480px) */
@media (max-width: 480px) {
  .head-home-slider {
    height: 520px;
    min-height: 400px;
  }
  .hhs-container {
    padding: 0 16px;
    padding-top: 60px;
  }
  .hhs-layer--title {
    font-size: 32px;
    line-height: 38px;
  }

}
