/* La Voz Libre — espacios de publicidad (inc/anuncios.php). Tokens de lvl.css.
   Hueco fijo por ubicación para que la rotación (JS) no mueva el layout:
   ancho 970×250 (escritorio) / 300×250 (móvil); lateral 300×250 o 300×600 (.ad--alto). */

.ad { display: grid; justify-items: center; gap: 6px; margin-block: var(--s-8); }
.ad[hidden] { display: none; }
.ad__label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--grey-400);
}
.ad__slot {
	width: 100%;
	max-width: 970px;
	aspect-ratio: 970 / 250;
	overflow: hidden;
	border-radius: var(--r-sm);
	background: var(--grey-100);
}
.ad--lateral .ad__slot { max-width: 300px; aspect-ratio: 300 / 250; }
.ad--lateral.ad--alto .ad__slot { aspect-ratio: 300 / 600; }
@media (max-width: 767px) {
	.ad--ancho .ad__slot { max-width: 300px; aspect-ratio: 300 / 250; }
}

.ad__item { display: block; width: 100%; height: 100%; }
.ad__item[hidden] { display: none; }
.ad__item picture, .ad__item img { display: block; width: 100%; height: 100%; }
.ad__item img { object-fit: contain; }

/* Autoanuncio: discreto, con la marca, en el mismo hueco. */
.ad__own {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	gap: 4px;
	padding: var(--s-5) var(--s-6);
	border: 1px dashed var(--grey-200);
	border-radius: var(--r-sm);
	background: var(--paper);
	color: var(--ink);
	transition: border-color var(--t-fast);
}
.ad__own-eyebrow { font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: .09em; text-transform: uppercase; color: var(--orange-dark); }
.ad__own-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(24px, 3vw, 34px); line-height: 1.05; }
.ad__own-text { max-width: 40ch; font-size: var(--fs-small); color: var(--muted); }
.ad__own-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: var(--s-2); font-weight: 700; font-size: var(--fs-small); color: var(--red); }
@media (hover: hover) { .ad__own:hover { border-color: var(--ink); } .ad__own:hover .ad__own-cta { color: var(--red-dark); } }
