/*
 * Home page promo banner "El Mundo de Mitsou" (templates/promo-banner.php).
 * Plain CSS, not part of the Gulp build: enqueued as-is on the home page by lib/setup.php.
 * Self-contained: every rule is prefixed .pb-em and the layout follows the width
 * of its container (container queries), not the viewport.
 */
/* clear: the hero cards above are floats; without it this box (a new formatting
   context because of container-type) is squeezed beside them to 0px wide. */
.pb-em-wrap { container-type: inline-size; clear: both; max-width: 1200px; margin: 0 auto 2rem; }
.pb-em, .pb-em * { box-sizing: border-box; }

.pb-em {
  --pb-black: #0B0A09;
  --pb-text: #F4EFEC;
  --pb-muted: #B9AFAA;
  --pb-red: #E10A1E;
  --pb-red-hover: #C10817;
  --pb-red-text: #FF4D5A;
  --pb-font: futura, 'Futura PT', 'Futura Std', Futura, Helvetica, Arial, sans-serif;

  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 46fr) minmax(0, 54fr);
  min-height: clamp(300px, 30cqi, 360px);
  background: var(--pb-black);
  color: var(--pb-text);
  font-family: var(--pb-font);
  text-decoration: none;
}
.pb-em:hover, .pb-em:focus { color: var(--pb-text); text-decoration: none; }

/* Photo: right side, fading to black on the left and at the bottom */
.pb-em__photo {
  position: absolute;
  inset: 0 0 0 auto;
  width: 64%;
  z-index: -1;
  margin: 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 30%), linear-gradient(to top, transparent 0%, #000 18%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0%, #000 30%), linear-gradient(to top, transparent 0%, #000 18%);
  mask-composite: intersect;
}
.pb-em__photo img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 30%;
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.pb-em:hover .pb-em__photo img { transform: scale(1.03); }

/* Content on the left */
.pb-em__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 32px 0 32px 40px;
}
.pb-em__eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--pb-red-text);
}
.pb-em__title { margin: 0; padding: 0; line-height: 0; }
.pb-em__title img { display: block; width: clamp(240px, 32cqi, 380px); max-width: 100%; height: auto; }

.pb-em__details {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--pb-text);
}
.pb-em__details span { color: var(--pb-red-text); }

.pb-em__actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 16px 28px; margin-top: 4px; }
.pb-em__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 24px;
  background: var(--pb-red);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 10px 32px -10px rgba(225, 10, 30, .75);
  transition: background-color .15s ease, gap .2s ease;
}
.pb-em:hover .pb-em__cta { background: var(--pb-red-hover); gap: 16px; }
.pb-em__cta svg { width: 16px; height: 16px; flex-shrink: 0; }

.pb-em__presenter {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--pb-muted);
}
.pb-em__presenter img { display: block; height: 18px; width: auto; }

/* Visually hidden, still read by screen readers.
   The theme's .screen-reader-text is display:none, which hides it from screen readers too. */
.pb-em__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.pb-em:focus { outline: none; }
.pb-em:focus-visible { outline: 3px solid var(--pb-red); outline-offset: 3px; }

/* Medium container (tablet) */
@container (max-width: 760px) {
  .pb-em { grid-template-columns: minmax(0, 1fr); min-height: 300px; }
  .pb-em__photo { width: 62%; }
  .pb-em__content { padding: 28px; max-width: 56%; }
  .pb-em__title img { width: clamp(220px, 40cqi, 300px); }
  .pb-em__details { font-size: 13px; }
  .pb-em__actions { flex-direction: column; align-items: center; gap: 14px; }
}

/* Narrow container (mobile): photo on top, centred content below */
@container (max-width: 520px) {
  .pb-em { min-height: 0; }
  .pb-em__photo {
    position: relative;
    inset: auto;
    width: 100%;
    aspect-ratio: 4 / 3;
    -webkit-mask-image: linear-gradient(to top, transparent 0%, #000 45%);
    mask-image: linear-gradient(to top, transparent 0%, #000 45%);
  }
  .pb-em__photo img { object-position: 50% 25%; }
  .pb-em__content { max-width: none; align-items: center; text-align: center; padding: 0 20px 28px; margin-top: -28px; gap: 14px; }
  .pb-em__title img { width: min(88cqi, 340px); }
  .pb-em__actions { align-items: stretch; width: 100%; }
  .pb-em__cta { justify-content: center; width: 100%; padding: 0 16px; font-size: 12px; letter-spacing: .14em; }
  .pb-em__presenter { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .pb-em__photo img, .pb-em__cta { transition: none; }
  .pb-em:hover .pb-em__photo img { transform: none; }
  .pb-em:hover .pb-em__cta { gap: 12px; }
}
