/* Aents' own banners in an empty sponsorship slot. Each wears its product's colours, so it reads as
   that product's ad and not as ComprasEC data; every text/ground pair is at least 4.5:1. */
.house-ad {
  --ha-bg: #0A0A0A; --ha-text: #FFFFFF; --ha-muted: rgb(255 255 255 / 78%); --ha-accent: #A78BFA;
  --ha-cta-bg: #FFFFFF; --ha-cta-text: #0A0A0A; --ha-border: transparent;
  display: grid; grid-template-columns: auto 1fr; gap: var(--space-3) var(--space-4); align-items: center;
  padding: var(--space-4) var(--space-5); background: var(--ha-bg); color: var(--ha-text);
  border: 1px solid var(--ha-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs);
}
.house-ad-aents_web { --ha-cta-bg: #25D366; --ha-cta-text: #0A0A0A; }
.house-ad-aents_shop {
  --ha-bg: #EDEBFE; --ha-text: #1E1B4B; --ha-muted: #4C4677; --ha-accent: #5B4CF1;
  --ha-cta-bg: #5B4CF1; --ha-cta-text: #FFFFFF; --ha-border: #D9D4FD;
}
.house-ad-geo { --ha-accent: #00E67E; --ha-cta-bg: #00E67E; --ha-cta-text: #020618; }
.house-ad-yqph { --ha-bg: #16111F; --ha-accent: #C4B0FF; --ha-cta-bg: #FFD23F; --ha-cta-text: #16111F; }

.house-ad-logo { display: grid; place-items: center; width: 56px; height: 56px; padding: 6px; background: #FFFFFF; border-radius: 14px; }
.house-ad-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; }
.house-ad-copy { min-width: 0; }
.house-ad-product { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin: 0; color: var(--ha-accent); font-size: var(--text-xs); font-weight: var(--weight-bold); }
.house-ad-label { padding: 1px 6px; border: 1px solid currentColor; border-radius: 6px; color: var(--ha-muted); font-weight: var(--weight-medium); }
.house-ad-headline { margin: 2px 0 0; color: var(--ha-text); font-size: 1.125rem; font-weight: var(--weight-heavy, 800); line-height: 1.3; letter-spacing: -0.01em; text-wrap: balance; }
.house-ad-body { margin: 2px 0 0; color: var(--ha-muted); font-size: var(--text-sm); line-height: 1.45; }
.house-ad-cta {
  grid-column: 1 / -1; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: var(--target); padding: 0 var(--space-5); background: var(--ha-cta-bg); color: var(--ha-cta-text);
  border-radius: var(--radius-md); font-weight: var(--weight-bold); font-size: var(--text-sm); text-decoration: none;
  transition: filter 150ms ease;
}
.house-ad-cta:hover { filter: brightness(1.08); }
.house-ad-cta:focus-visible { outline: 3px solid var(--ha-accent); outline-offset: 3px; }
.house-ad-cta .icon { width: 18px; height: 18px; }
@media (min-width: 720px) {
  .house-ad { grid-template-columns: auto 1fr auto; }
  .house-ad-cta { grid-column: auto; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) { .house-ad-cta { transition: none; } }
