/* ===== CMS HOME BLOCKS ===== */
.cms-section {
  padding: 70px 0;
}

.cms-section.alt {
  background: #f7fbff;
}

/* HERO */
.cms-hero{
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  background: #111; /* fallback si no hay imagen */
}

/* QUITA esto si lo tienes, porque ya usaremos overlay con div */
.cms-hero::before{
  content:none !important;
}

.cms-hero-bg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;          /* ✅ cubre todo sin “partirse” */
  object-position: center;
  z-index: 0;
}

.cms-hero-overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 1;
}

.cms-hero .content{
  position: relative;
  z-index: 2;
}


/* Cards */
.cms-card {
  border: 0;
  border-radius: 14px;
  transition: transform .15s ease, box-shadow .15s ease;
}

.cms-card:hover {
  transform: translateY(-3px);
}

.cms-icon {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #e9f2ff;
  font-size: 22px;
}

/* Location */
.cms-map {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.08);
}

.cms-muted {
  color: #6c757d;
}

.carousel-caption{
  background: rgba(0,0,0,.45);
  border-radius: 12px;
  padding: 14px 16px;
}

/* Anula el layout de Bootstrap para captions del carrusel */
.carousel-caption.promo-caption{
  left: 50% !important;
  right: auto !important;
  bottom: 16px !important;

  transform: translateX(-50%) !important;

  width: auto !important;     /* importante: evita que ocupe 70% */
  padding: 0 !important;
  text-align: center !important;

  background: transparent !important; /* por si hay fondo */
}

/* ===== PROMO CAROUSEL (sin recorte + fondo blur) ===== */
.promo-carousel{
  border-radius: 18px;
}

.promo-frame{
  position: relative;
  width: 100%;
  background: #e9ecef;
  overflow: hidden;
}

/* Fondo con blur para que no se vea “vacío” */
.promo-bg{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
  filter: blur(16px);
  opacity: .45;
}

/* Imagen completa (se adapta, NO recorta) */
.promo-img{
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;      /* ✅ muestra todo */
  object-position: center;
  display: block;
}

/* Botón pequeño sin tapar */
.promo-caption{
  position: absolute;
  left: 16px;
  bottom: 16px;
  right: auto;
  top: auto;
  padding: 0;
  z-index: 2;
}

/* móvil */
@media (max-width: 768px){
  .promo-caption{
    left: 12px;
    bottom: 12px;
  }
}
