/*
 * Bloques promocionales del módulo Hostelbar Home Blocks.
 * Replica el lenguaje visual del héroe a una escala adecuada para el módulo:
 * imagen a sangre, degradado de contraste y contenido superpuesto.
 */
.hb-homeblocks {
  --hb-homeblocks-red: #eb4640;
  --hb-homeblocks-ink: #101820;
}

.hb-homeblocks-card {
  position: relative;
  display: flex;
  min-height: clamp(300px, 22vw, 350px);
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  border-radius: 12px;
  background: var(--hb-homeblocks-ink);
  box-shadow: 0 14px 36px rgba(16, 24, 32, 0.16);
}

.hb-homeblocks-card__image,
.hb-homeblocks-card__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hb-homeblocks-card__image {
  z-index: 0;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform 320ms ease;
}

.hb-homeblocks-card__shade {
  z-index: 1;
  background:
    linear-gradient(
      90deg,
      rgba(7, 12, 17, 0.92) 0%,
      rgba(7, 12, 17, 0.76) 42%,
      rgba(7, 12, 17, 0.22) 74%,
      rgba(7, 12, 17, 0.28) 100%
    );
  pointer-events: none;
}

.hb-homeblocks-card__content {
  position: relative;
  z-index: 2;
  display: flex;
  width: min(68%, 520px);
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(26px, 3vw, 46px);
  color: #fff;
}

.hb-homeblocks-card__eyebrow {
  margin: 0 0 7px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(11px, 0.8vw, 13px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.hb-homeblocks-card__title {
  max-width: 500px;
  margin: 0 0 12px;
  color: var(--hb-homeblocks-red);
  font-size: clamp(25px, 2vw, 34px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.025em;
}

.hb-homeblocks-card__title strong,
.hb-homeblocks-card__title em,
.hb-homeblocks-card__title span {
  color: var(--hb-homeblocks-red);
  font-style: normal;
}

.hb-homeblocks-card__description {
  max-width: 460px;
  margin: 0 0 19px;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(14px, 1.05vw, 17px);
  line-height: 1.4;
}

.hb-homeblocks-card__description > :last-child {
  margin-bottom: 0;
}

.hb-homeblocks-card__cta {
  display: inline-flex;
  box-sizing: border-box;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 8px 19px;
  border: 1px solid var(--hb-homeblocks-red);
  border-radius: 8px;
  background: var(--hb-homeblocks-red);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: 0 9px 22px rgba(235, 70, 64, 0.28);
  transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.hb-homeblocks-card__cta:hover,
.hb-homeblocks-card__cta:focus-visible {
  transform: translateY(-2px);
  background: #d93833;
  color: #fff;
  box-shadow: 0 13px 28px rgba(235, 70, 64, 0.36);
}

.hb-homeblocks-card:hover .hb-homeblocks-card__image {
  transform: scale(1.02);
}

.hb-homeblocks .swiper-buttons-bottom {
  min-height: 30px;
  margin-top: 8px;
}

@media (min-width: 769px) and (max-width: 991px) {
  .hb-homeblocks .swiper-preload.preload-3 .swiper-slide {
    width: 100%;
  }
}

@media (min-width: 992px) and (max-width: 1279px) {
  .hb-homeblocks .swiper-preload.preload-3 .swiper-slide {
    width: calc(50% - 8px);
  }

  .hb-homeblocks-card {
    min-height: 300px;
  }

  .hb-homeblocks-card__shade {
    background:
      linear-gradient(
        90deg,
        rgba(7, 12, 17, 0.94) 0%,
        rgba(7, 12, 17, 0.8) 50%,
        rgba(7, 12, 17, 0.4) 82%,
        rgba(7, 12, 17, 0.34) 100%
      );
  }

  .hb-homeblocks-card__content {
    width: 90%;
    padding: 26px;
  }

  .hb-homeblocks-card__title {
    font-size: 25px;
  }

  .hb-homeblocks-card__description {
    font-size: 14px;
  }
}

@media (min-width: 1280px) {
  .hb-homeblocks-card {
    min-height: 280px;
  }

  .hb-homeblocks-card__shade {
    background:
      linear-gradient(
        90deg,
        rgba(7, 12, 17, 0.95) 0%,
        rgba(7, 12, 17, 0.82) 50%,
        rgba(7, 12, 17, 0.48) 82%,
        rgba(7, 12, 17, 0.38) 100%
      );
  }

  .hb-homeblocks-card__content {
    width: 90%;
    padding: 22px;
  }

  .hb-homeblocks-card__eyebrow {
    margin-bottom: 6px;
    font-size: 10px;
  }

  .hb-homeblocks-card__title {
    margin-bottom: 9px;
    font-size: 24px;
  }

  .hb-homeblocks-card__description {
    margin-bottom: 14px;
    font-size: 13px;
    line-height: 1.35;
  }

  .hb-homeblocks-card__cta {
    min-height: 36px;
    padding: 7px 16px;
    font-size: 10.5px;
  }
}

@media (max-width: 767px) {
  .hb-homeblocks-card {
    min-height: 360px;
  }

  .hb-homeblocks-card__shade {
    background:
      linear-gradient(
        90deg,
        rgba(7, 12, 17, 0.92) 0%,
        rgba(7, 12, 17, 0.72) 58%,
        rgba(7, 12, 17, 0.3) 100%
      );
  }

  .hb-homeblocks-card__content {
    width: 88%;
    padding: 24px;
  }

  .hb-homeblocks-card__title {
    margin-bottom: 10px;
    font-size: clamp(24px, 7vw, 29px);
  }

  .hb-homeblocks-card__description {
    margin-bottom: 16px;
    font-size: 14px;
  }

  .hb-homeblocks-card__cta {
    min-height: 38px;
    padding: 8px 17px;
    font-size: 11px;
  }
}

@media (max-width: 374px) {
  .hb-homeblocks-card {
    min-height: 350px;
  }

  .hb-homeblocks-card__content {
    width: 92%;
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hb-homeblocks-card__image,
  .hb-homeblocks-card__cta {
    transition: none;
  }
}
