/* =========================================================================
   ARCORP — Marcas (page-marcas.php del hijo)
   Migas, título y cuadrícula de logos enmarcados (sin sombras).
   Usa las variables --ar-* de home-arcorp.css.
   ========================================================================= */

.ar-brands {
	--ar-brands-max: 1600px;
	--ar-brands-gutter: clamp(16px, 2.5vw, 32px);
	--ar-brands-border: #d9d9d9;
	background: #fff;
	color: var(--ar-ink);
}
.ar-brands *,
.ar-brands *::before,
.ar-brands *::after { box-sizing: border-box; }

html body .site:has(.ar-brands) { background: #fff; }

/* ---------- Migas ---------- */
.ar-brands-crumbs { border-bottom: 1px solid #e5e5e5; }
.ar-brands-crumbs__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	max-width: calc(var(--ar-brands-max) + 2 * var(--ar-brands-gutter));
	margin-inline: auto;
	padding: 10px var(--ar-brands-gutter);
	font-family: var(--ar-font-head);
	font-size: 16px;
	line-height: 1.3;
	color: var(--ar-ink);
}
.ar-brands-crumbs__inner a { color: var(--ar-ink); text-decoration: none; }
.ar-brands-crumbs__inner a:hover { color: var(--ar-red); }
.ar-brands-crumbs__sep { font-size: 16px; line-height: 1; }

/* ---------- Contenedor ---------- */
.ar-brands__wrap {
	max-width: calc(var(--ar-brands-max) + 2 * var(--ar-brands-gutter));
	margin-inline: auto;
	padding: clamp(28px, 3vw, 46px) var(--ar-brands-gutter) clamp(48px, 5vw, 72px);
}

.ar-brands__head {
	max-width: 760px;
	margin: 0 auto clamp(28px, 3vw, 44px);
	text-align: center;
}
.ar-brands__title {
	margin: 0 0 12px;
	font-family: var(--ar-font-head);
	font-size: clamp(28px, 3.2vw, 42px);
	font-weight: 800;
	line-height: 1.15;
	color: var(--ar-black);
}
.ar-brands__title span { color: var(--ar-red); }
.ar-brands__lead {
	margin: 0;
	font-family: var(--ar-font-head);
	font-size: clamp(15px, 1.2vw, 17px);
	line-height: 1.6;
	color: var(--ar-muted);
}
.ar-brands__empty { text-align: center; color: var(--ar-muted); }

/* ---------- Cuadrícula ---------- */
.ar-brands__grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: clamp(12px, 1.4vw, 20px);
	margin: 0;
	padding: 0;
	list-style: none;
}
.ar-brand { margin: 0; }

.ar-brand__frame {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 5 / 3;
	padding: clamp(14px, 1.6vw, 24px);
	background: #fff;
	border: 1px solid var(--ar-brands-border);
	border-radius: var(--ar-radius, 14px);
	box-shadow: none;
	text-decoration: none;
	transition: border-color .2s ease;
}
a.ar-brand__frame:hover,
a.ar-brand__frame:focus-visible {
	border-color: var(--ar-red);
	text-decoration: none;
}
a.ar-brand__frame:focus-visible { outline: 2px solid var(--ar-red); outline-offset: 2px; }

.ar-brand__img {
	display: block;
	width: 100%;
	height: 100%;
	max-height: 72px;
	object-fit: contain;
}

@media (max-width: 1199px) {
	.ar-brands__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
	.ar-brands__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	.ar-brands__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
	.ar-brands__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ar-brand__img { max-height: 56px; }
}
