.hsa-wrap{
  width: 100%;
  --hsa-max-height: 450px;
  --hsa-img-height: 360px;
}

.hsa-empty{ padding: 12px; background: #fff3cd; border: 1px solid #ffeeba; }

/* Solo la animación del Swiper necesita RTL/LTR */
.hsa-swiper[dir="rtl"]{ direction: rtl; }
.hsa-swiper[dir="ltr"]{ direction: ltr; }

/* El contenido del card SIEMPRE en LTR para que grid-areas no se invierta */
.hsa-card{ direction: ltr; }

/* Swipe feel */
.hsa-wrap .hsa-swiper{
  cursor: grab;
  touch-action: pan-y; /* deja scroll vertical de la página */
  user-select: none;
  -webkit-user-select: none;
}
.hsa-wrap .hsa-swiper:active{ cursor: grabbing; }

.hsa-wrap .swiper-slide{
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Card */
.hsa-card{
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 1200px;
  height: var(--hsa-max-height);
  display: grid;
  gap: 28px;
  align-items: center;
  padding: 22px 26px;
  background: transparent;
  grid-template-areas: "media content";
}

.hsa-media{ grid-area: media; }
.hsa-content{ grid-area: content; }

.hsa-content,
.hsa-media{ position: relative; z-index: 1; }

.hsa-media{
  display: flex;
  justify-content: center;
  align-items: center;
}

.hsa-media img{
  width: 100%;
  max-width: 760px;
  height: var(--hsa-img-height);
  object-fit: cover;
  display:block;
}

.hsa-media-empty{
  width:100%;
  max-width: 760px;
  height: var(--hsa-img-height);
  background:#eee;
}

.hsa-content{
  background: rgba(255,255,255,.72);
  padding: 22px 22px 20px;
  backdrop-filter: blur(2px);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hsa-title{
  margin: 0 0 12px;
  font-size: 40px;
  line-height: 1.05;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #1b1f4b;
}
.hsa-title a{ color: inherit; text-decoration: none; }

.hsa-text{
  margin: 0 0 18px;
  line-height: 1.7;
  font-size: 14px;
  color: #111;
  max-width: 560px;
}

.hsa-btn{
  display:inline-block;
  border: 1px solid #111;
  padding: 10px 18px;
  text-decoration:none;
  font-size: 13px;
  letter-spacing: .6px;
  color: #111;
  background: transparent;
  width: fit-content;
}

/* Layout */
.hsa-layout-image-text .hsa-card{
  grid-template-columns: 1.35fr 0.95fr;
  grid-template-areas: "media content";
}
.hsa-layout-text-image .hsa-card{
  grid-template-columns: 0.95fr 1.35fr;
  grid-template-areas: "content media";
}

/* Bullets */
.hsa-wrap .hsa-pagination{
  position: relative;
  margin-top: 14px;
  text-align: center;
}
.hsa-wrap .swiper-pagination-bullet{ opacity: 0.55; }
.hsa-wrap .swiper-pagination-bullet-active{ opacity: 1; }

@media (max-width: 1024px){
  .hsa-card{ max-width: 980px; }
  .hsa-title{ font-size: 30px; }
}

@media (max-width: 900px){
  .hsa-card{
    height: auto;
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "media"
      "content" !important;
    padding: 16px;
    gap: 14px;
  }

  .hsa-media img,
  .hsa-media-empty{
    height: 240px;
    max-width: 100%;
  }

  .hsa-content{ height: auto; }
  .hsa-title{ font-size: 24px; }
}
