/* Opción B · Inventario unificado en Google Ad Manager (23317319747) + AdSense */
.eha-gam-placement {
  max-inline-size: 1120px;
  margin: 22px auto;
  padding-inline: 16px;
  text-align: center;
  clear: both;
  contain: layout style paint;
}

.eha-gam-rail-slot {
  padding-inline: 0;
  margin-block: 0 24px;
}

.eha-gam-article-inline {
  margin-block: 28px;
  padding-inline: 0;
}

.eha-gam-footer {
  max-inline-size: none;
  margin: 0;
  padding: 28px 16px;
  background: #f2eff8;
  border-top: 1px solid #ded8ec;
}

.eha-gam-unit {
  max-inline-size: 100%;
  margin-inline: auto;
}

.eha-gam-unit[hidden] {
  display: none !important;
}

.eha-gam-unit-mobile {
  display: none;
}

@media (max-width: 991px) {
  .eha-gam-unit-desktop {
    display: none;
  }
  .eha-gam-unit-mobile {
    display: block;
  }
}

.eha-gam-badge {
  display: inline-block;
  margin: 0 auto 10px;
  padding: 4px 10px;
  border: 1px solid #ded8ec;
  border-radius: 4px;
  background: #f2eff8;
  color: #51456e;
  font: 700 11px/1.4 Roboto, system-ui, sans-serif;
  letter-spacing: 0.05em;
}

.eha-gam-mount {
  min-block-size: var(--gam-reserve-h, 250px);
  display: flex;
  align-items: center;
  justify-content: center;
  max-inline-size: 100%;
  overflow: hidden;
}

.eha-gam-local-box {
  box-sizing: border-box;
  inline-size: 100%;
  max-inline-size: 970px;
  min-block-size: var(--gam-reserve-h, 250px);
  padding: 16px 20px;
  border: 1px dashed #9387b7;
  border-radius: 5px;
  background: linear-gradient(180deg, #faf8fd 0%, #f2eff8 100%);
  color: #182b3b;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font: 13px/1.45 Roboto, system-ui, sans-serif;
}

.eha-gam-rail-slot .eha-gam-local-box,
.eha-gam-article-sidebar .eha-gam-local-box {
  max-inline-size: 336px;
}

.eha-gam-local-title {
  color: #092b4d;
  font-size: 14px;
  font-weight: 700;
}

.eha-gam-local-path {
  padding: 2px 8px;
  border-radius: 4px;
  background: #e8e2f4;
  color: #3e315c;
  font: 600 12px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace;
  word-break: break-all;
}

.eha-gam-local-sizes {
  color: #465a69;
  font-size: 12px;
}

.eha-gam-local-waterfall {
  color: #356e47;
  font-size: 12px;
  font-weight: 500;
  max-inline-size: 68ch;
}

/* Zócalo fijo inferior cerrable (Sticky) */
body.eha-has-gam-zocalo {
  padding-block-end: 132px;
}

.eha-gam-sticky-zocalo {
  position: fixed;
  inset-inline: 0;
  inset-block-end: 0;
  z-index: 1050;
  background: rgb(255 255 255 / 98%);
  border-top: 2px solid #9387b7;
  box-shadow: 0 -6px 24px rgb(9 43 77 / 14%);
  padding: 6px 12px 8px;
  contain: layout style paint;
}

.eha-gam-sticky-zocalo[hidden] {
  display: none !important;
}

.eha-gam-sticky-inner {
  position: relative;
  max-inline-size: 1040px;
  margin-inline: auto;
}

.eha-gam-sticky-inner .eha-gam-placement {
  margin: 0 auto;
  padding: 0;
}

.eha-gam-sticky-inner .eha-gam-badge {
  margin-block-end: 4px;
  padding: 2px 8px;
  font-size: 10px;
}

.eha-gam-sticky-inner .eha-gam-local-box {
  padding: 8px 14px;
  gap: 2px;
}

.eha-gam-sticky-inner .eha-gam-local-waterfall {
  display: none;
}

.eha-gam-sticky-close {
  position: absolute;
  inset-block-start: 0;
  inset-inline-end: 0;
  min-inline-size: 44px;
  min-block-size: 32px;
  padding: 4px 10px;
  border: 1px solid #cbd4d8;
  border-radius: 4px;
  background: #fff;
  color: #092b4d;
  font: 600 12px/1 Roboto, system-ui, sans-serif;
  cursor: pointer;
}

.eha-gam-sticky-close:hover {
  background: #f2eff8;
  border-color: #9387b7;
}

.eha-gam-sticky-close:focus-visible,
.eha-gam-zocalo-restore:focus-visible {
  outline: 3px solid #9387b7;
  outline-offset: 2px;
}

/* Controles de estrategia comercial dentro del menú ⚙ */
.local-preview-client-strategy {
  margin-block-start: 12px;
  padding-block-start: 12px;
  border-top: 1px solid #e6e2f0;
  display: grid;
  gap: 6px;
}

.local-preview-client-strategy strong {
  color: #092b4d;
  font-size: 13px;
}

.local-preview-client-strategy a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-block-size: 44px;
  padding: 8px 10px;
  border: 1px solid #ded8ec;
  border-radius: 4px;
  color: #092b4d;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.local-preview-client-strategy a span {
  font-size: 11px;
  font-weight: 400;
  color: #516270;
}

.local-preview-client-strategy a:hover,
.local-preview-client-strategy a[aria-current="page"] {
  background: #f2eff8;
  border-color: #9387b7;
  color: #51456e;
}

.eha-gam-zocalo-restore {
  margin-block-start: 6px;
  min-block-size: 38px;
  padding: 6px 10px;
  border: 1px solid #9387b7;
  border-radius: 4px;
  background: #f2eff8;
  color: #51456e;
  font: 600 12px/1.3 Roboto, system-ui, sans-serif;
  cursor: pointer;
}
