/* Nuestras marcas (12:516): panel oscuro + imagen lateral que llega al borde derecho */
.vsc-brands {
	overflow: hidden;
	overflow: clip;
	background: var(--vs-primary-600);
}

.vsc-brands__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	row-gap: 24px;
}

.vsc-brands__panel {
	display: flex;
	flex: 1 0 0;
	flex-direction: column;
	gap: 32px;
	min-width: min(375px, 100%);
	padding: 64px var(--vs-pad) 80px;
}

.vsc-brands__grid {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
}

.vsc-brand {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 112px;
	border: 1px solid var(--vs-primary-200);
	border-radius: 12px;
	background: var(--vs-white);
	text-decoration: none;
	transition: border-color var(--vs-transition), box-shadow var(--vs-transition);
}

a.vsc-brand:hover,
a.vsc-brand:focus-visible {
	border-color: var(--vs-primary-base);
	box-shadow: var(--vs-shadow);
}

.vsc-brand__logo {
	display: block;
	max-width: calc(100% - 64px);
	height: auto;
}

.vsc-brand__ext {
	position: absolute;
	top: 15px;
	right: 15px;
	line-height: 0;
	color: var(--vs-primary-base);
}

.vsc-brands__media {
	/* A sangre por la derecha en pantallas más anchas que el frame: el sangrado
	   se suma a la base y se resta con el margen, así el panel conserva su ancho
	   de 1440 (824) y solo crece la imagen. */
	--vsc-bleed: max(0px, (100vw - var(--vs-frame)) / 2);
	position: relative;
	flex: 1 0 var(--vsc-bleed);
	min-width: min(400px, 100%);
	min-height: 320px;
	margin-right: calc(-1 * var(--vsc-bleed));
}

.vsc-brands__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Tablet: la imagen pasa debajo, a ancho completo y 320 de alto */
@media (max-width: 1024px) {
	.vsc-brands__inner {
		row-gap: 24px;
	}

	.vsc-brands__media {
		flex-basis: 100%;
		height: 320px;
		margin-right: 0;
	}
}

/* Móvil: sin imagen */
@media (max-width: 600px) {
	.vsc-brands__media {
		display: none;
	}
}
