/**
 * Zenth Brand Grid — Widget Elementor.
 * =====================================================================
 * Grilla de marcas/sponsors (nombre + categoría) con cards especiales:
 * CTA ("¿Tu marca aquí?") de borde rojo punteado y placeholders "por
 * anunciar". El widget genera el markup; este CSS controla solo lo visual.
 * Usa tokens --cr-* del child theme con fallbacks (standalone-safe).
 *
 * ─────────────────────────────────────────────────────────────────────────
 * ÍNDICE
 *   §1  Wrapper        → .zenth-brandgrid (+ __inner)
 *   §2  Header         → eyebrow + título split (solid/outline) + regla
 *   §3  Grid           → columnas vía --zbg-cols
 *   §4  Card           → base (nombre + categoría) + hover
 *   §5  Variantes      → --cta (rojo punteado) / --tba (atenuada)
 *   §6  Responsive     → columnas tablet/mobile + a11y al final
 * ─────────────────────────────────────────────────────────────────────────
 * BREAKPOINTS: 1024 (tablet → --zbg-cols-t) · 600 (mobile → --zbg-cols-m).
 *   Más 1 media de accesibilidad (prefers-reduced-motion) en su subsección.
 * ─────────────────────────────────────────────────────────────────────────
 */


/* ═══════════════════════════════════════════════════════════════════════
   §1 · WRAPPER
   ═══════════════════════════════════════════════════════════════════════ */

.zenth-brandgrid {
	width: 100%;
	padding: clamp(48px, 7vw, 96px) var(--cr-container-pad, 32px);
	background: transparent;
	font-family: var(--cr-font-body, 'Montserrat', system-ui, sans-serif);
}

.zenth-brandgrid__inner {
	max-width: var(--cr-container-max, 1440px);
	margin: 0 auto;
	width: 100%;
}


/* ═══════════════════════════════════════════════════════════════════════
   §2 · HEADER — eyebrow + título split + regla
   ═══════════════════════════════════════════════════════════════════════ */

.zenth-brandgrid__header {
	margin-bottom: clamp(32px, 4vw, 56px);
}

.zenth-brandgrid__eyebrow {
	display: block;
	color: var(--cr-color-primary, #c00000);
	font-size: clamp(13px, 1vw, 15px);
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	line-height: 1;
	margin: 0 0 14px;
}

.zenth-brandgrid__title {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: clamp(2px, 0.3vw, 6px);
	margin: 0;
	font-family: var(--cr-font-display, 'Super Brigade', Impact, sans-serif);
	font-style: italic;
	font-size: clamp(40px, 6vw, 96px);
	font-weight: 400;
	line-height: 0.95;
	letter-spacing: -0.01em;
	text-transform: uppercase;
	color: var(--cr-color-white, #fff);
}

/* La línea 1 lleva la regla decorativa que crece hacia la derecha. */
.zenth-brandgrid__title-line {
	display: flex;
	align-items: center;
	gap: clamp(16px, 2vw, 32px);
	width: 100%;
}

.zenth-brandgrid__title-solid {
	color: var(--cr-color-white, #fff);
	-webkit-text-fill-color: var(--cr-color-white, #fff);
	flex: 0 0 auto;
}

.zenth-brandgrid__title-outline {
	display: inline-block;
	color: transparent;
	-webkit-text-fill-color: transparent;
	-webkit-text-stroke: var(--cr-outline-width, 1.5px) var(--cr-color-white, #fff);
}

.zenth-brandgrid__rule {
	flex: 1 1 auto;
	height: 2px;
	min-width: 40px;
	background: rgba(255, 255, 255, 0.22);
}


/* ═══════════════════════════════════════════════════════════════════════
   §3 · GRID
   ═══════════════════════════════════════════════════════════════════════ */

.zenth-brandgrid__grid {
	display: grid;
	grid-template-columns: repeat(var(--zbg-cols, 5), minmax(0, 1fr));
	gap: clamp(16px, 1.6vw, 24px);
}


/* ═══════════════════════════════════════════════════════════════════════
   §4 · CARD — base (nombre + categoría) + hover
   ═══════════════════════════════════════════════════════════════════════ */

.zenth-brandgrid__card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	text-align: center;
	text-decoration: none;
	min-height: clamp(120px, 11vw, 150px);
	padding: 28px 18px;
	background: var(--cr-color-dark, #1a1a1a);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 14px;
	transition:
		transform var(--cr-transition-base, 250ms ease),
		border-color var(--cr-transition-base, 250ms ease),
		background var(--cr-transition-base, 250ms ease);
}

a.zenth-brandgrid__card:hover {
	transform: translateY(-4px);
	border-color: var(--cr-color-primary, #c00000);
	background: #242424;
}

.zenth-brandgrid__name {
	font-size: clamp(16px, 1.4vw, 20px);
	font-weight: 800;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	line-height: 1.1;
	color: var(--cr-color-white, #fff);
}

.zenth-brandgrid__cat {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--cr-color-text-muted, #81817f);
}


/* ═══════════════════════════════════════════════════════════════════════
   §5 · VARIANTES — CTA (rojo punteado) / TBA (atenuada)
   ═══════════════════════════════════════════════════════════════════════ */

/* CTA: borde rojo punteado + tinte granate + "+" */
.zenth-brandgrid__card--cta {
	border: 2px dashed var(--cr-color-primary, #c00000);
	background: rgba(192, 0, 0, 0.07);
}

a.zenth-brandgrid__card--cta:hover {
	background: rgba(192, 0, 0, 0.14);
	border-color: var(--cr-color-primary-hover, #e60000);
}

.zenth-brandgrid__card--cta .zenth-brandgrid__name {
	color: var(--cr-color-primary, #c00000);
	font-weight: 700;
	font-size: clamp(14px, 1.2vw, 16px);
}

.zenth-brandgrid__card--cta .zenth-brandgrid__cat {
	color: rgba(192, 0, 0, 0.7);
}

.zenth-brandgrid__plus {
	font-size: clamp(22px, 2vw, 28px);
	font-weight: 700;
	line-height: 1;
	color: var(--cr-color-primary, #c00000);
	margin-bottom: 2px;
}

/* TBA: placeholder atenuado, no interactivo */
.zenth-brandgrid__card--tba {
	background: rgba(255, 255, 255, 0.02);
	border-style: dashed;
	border-color: rgba(255, 255, 255, 0.10);
}

.zenth-brandgrid__card--tba .zenth-brandgrid__name {
	color: rgba(255, 255, 255, 0.32);
	font-weight: 700;
}

.zenth-brandgrid__card--tba .zenth-brandgrid__cat {
	color: rgba(255, 255, 255, 0.22);
}


/* ═══════════════════════════════════════════════════════════════════════
   §6 · RESPONSIVE — columnas tablet/mobile + a11y al final
   ═══════════════════════════════════════════════════════════════════════ */

/* ───────────────────────── TABLET · max-width: 1024px ─────────────────── */
@media (max-width: 1024px) {
	.zenth-brandgrid__grid {
		grid-template-columns: repeat(var(--zbg-cols-t, 3), minmax(0, 1fr));
	}

	.zenth-brandgrid__title {
		font-size: clamp(36px, 8vw, 72px);
	}
}

/* ───────────────────────── MOBILE · max-width: 600px ──────────────────── */
@media (max-width: 600px) {
	.zenth-brandgrid__grid {
		grid-template-columns: repeat(var(--zbg-cols-m, 2), minmax(0, 1fr));
	}

	.zenth-brandgrid__title {
		font-size: clamp(30px, 9vw, 48px);
	}
}

/* ───────────────────── A11Y · prefers-reduced-motion ─────────────────────
   Subsección de accesibilidad: NO es un breakpoint de tamaño. */
@media (prefers-reduced-motion: reduce) {
	.zenth-brandgrid__card {
		transition: none !important;
	}

	a.zenth-brandgrid__card:hover {
		transform: none;
	}
}
