/* Espacios publicitarios Matrimonio.pe */
.mat-ad-slot {
  --mat-ad-w: 970px;
  --mat-ad-h: 250px;
  display: block;
  width: 100%;
  max-width: min(100%, var(--mat-ad-w));
  margin: 1.25rem auto;
  box-sizing: border-box;
}

.mat-ad-listing-wrap .mat-ad-slot {
  margin: 0.15rem 0 0.35rem;
  max-width: 100%;
}

.mat-ad-slot__link,
.mat-ad-slot__creative {
  display: block;
  line-height: 0;
  border-radius: 8px;
  overflow: hidden;
}

.mat-ad-slot__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: var(--mat-ad-h);
  object-fit: contain;
  background: rgba(88, 115, 96, 0.04);
}

.mat-ad-slot__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: min(var(--mat-ad-h), 42vw);
  padding: 1rem 1.15rem;
  text-align: center;
  text-decoration: none;
  color: #3d4f42;
  border-radius: 10px;
  border: 1px dashed rgba(88, 115, 96, 0.45);
  background: rgba(88, 115, 96, 0.12);
  backdrop-filter: blur(2px);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.mat-ad-slot__placeholder:hover,
.mat-ad-slot__placeholder:focus-visible {
  background: rgba(88, 115, 96, 0.2);
  border-color: rgba(88, 115, 96, 0.7);
  color: #2a382f;
  outline: none;
}

.mat-ad-slot__badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(61, 79, 66, 0.75);
}

.mat-ad-slot__copy {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-width: 36rem;
  font-size: 0.92rem;
  line-height: 1.45;
}

.mat-ad-slot__copy strong {
  font-size: 1.05rem;
  font-weight: 700;
}

.mat-ad-slot__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.15rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: #25d366;
}

.mat-ad-slot--blog_post_sidebar,
.mat-ad-slot--blog_index_sidebar,
.mat-ad-slot--categoria_filtro_sidebar,
.mat-ad-slot--categoria_filtro_sidebar_2 {
  margin: 0 0 1rem;
  max-width: 100%;
}

.mat-ad-slot--blog_post_sidebar .mat-ad-slot__placeholder,
.mat-ad-slot--blog_index_sidebar .mat-ad-slot__placeholder,
.mat-ad-slot--categoria_filtro_sidebar .mat-ad-slot__placeholder,
.mat-ad-slot--categoria_filtro_sidebar_2 .mat-ad-slot__placeholder {
  min-height: 220px;
}

.blog-subcats-ad .mat-ad-slot,
.categoria-filtro-ad .mat-ad-slot {
  margin: 0;
}

.categoria-filtro-ad__gap {
  height: 0.75rem;
}

/* Card en carrusel (antes de “Ver más”) */
.mat-ad-slot--categoria_carousel_card {
  margin: 0;
  max-width: 100%;
  height: 100%;
}

.recepciones-premium-slide--ad {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.recepciones-premium-slide--ad .mat-ad-slot,
.recepciones-premium-slide--ad .mat-ad-slot__link,
.recepciones-premium-slide--ad .mat-ad-slot__creative,
.recepciones-premium-slide--ad .mat-ad-slot__placeholder {
  flex: 1;
  height: 100%;
  min-height: 280px;
}

.recepciones-premium-slide--ad .mat-ad-slot__img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  border-radius: 20px;
}

.recepciones-premium-slide--ad .mat-ad-slot__placeholder {
  border-radius: 20px;
  min-height: 280px;
}

/* Modal flyer home */
.mat-ad-modal__dialog {
  max-width: min(92vw, 420px);
}

.mat-ad-modal__content {
  position: relative;
  overflow: visible;
}

.mat-ad-modal__frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.mat-ad-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #1a2e22;
  font-size: 1.65rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  opacity: 1;
}

.mat-ad-modal__close:hover,
.mat-ad-modal__close:focus-visible {
  background: #f0f3f1;
  color: #000;
  outline: none;
}

.mat-ad-modal__close span {
  display: block;
  margin-top: -0.1rem;
}

.mat-ad-modal__link {
  display: block;
  line-height: 0;
}

.mat-ad-modal__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(78vh, 720px);
  object-fit: contain;
  background: #f4f6f5;
}

.mat-ad-modal__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: min(70vh, 520px);
  padding: 1.5rem 1.25rem;
  text-align: center;
  text-decoration: none;
  color: #3d4f42;
  background: rgba(88, 115, 96, 0.14);
}

.mat-ad-modal__placeholder strong {
  font-size: 1.15rem;
}

.mat-ad-modal__caption {
  margin: 0;
  padding: 0.45rem 0.75rem 0.65rem;
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(61, 79, 66, 0.7);
  background: #fff;
}

.mat-ad-modal__indicators {
  margin-bottom: 0.5rem;
}

.mat-ad-modal .carousel-control-prev,
.mat-ad-modal .carousel-control-next {
  width: 12%;
}

.mat-ad-modal .carousel-control-prev-icon,
.mat-ad-modal .carousel-control-next-icon {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}

@media (max-width: 575.98px) {
  .mat-ad-slot__copy {
    font-size: 0.85rem;
  }

  .mat-ad-slot__copy strong {
    font-size: 0.95rem;
  }

  .mat-ad-modal__dialog {
    max-width: 94vw;
  }
}
