/* Página Representaciones (page-representaciones.php) */

.ec-rep-pagina {
	--ec-rojo: #E4002B;
	--ec-rojo-oscuro: #b80023;
	--ec-texto: #25282A;
	--ec-gris: #6b7075;
	--ec-fondo-suave: #f4f5f7;
	--ec-borde: #e4e6e9;
	color: var(--ec-texto);
	font-family: "Roboto", sans-serif;
}

/* Nota: pagina-base.css fuerza el tamaño de h1-h3 con !important; por eso los tamaños de títulos llevan !important */

/* ---------- Cabecera ---------- */
.ec-rep-hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 440px;
	padding: 5rem 0 4rem;
	background-color: var(--ec-texto);
	background-image:
		linear-gradient(100deg, rgba(18, 20, 22, .92) 0%, rgba(18, 20, 22, .72) 45%, rgba(18, 20, 22, .2) 100%),
		var(--ec-rep-hero, none);
	background-size: cover;
	background-position: center;
	border-bottom: 6px solid var(--ec-rojo);
	color: #fff;
}

.ec-rep-hero--sin-imagen {
	background-image: linear-gradient(120deg, #25282A 0%, #3a3e42 100%);
}

.ec-rep-hero .container {
	max-width: 1140px;
}

.ec-rep-hero-antetitulo {
	margin: 0 0 .75rem;
	font-family: Futura, "Trebuchet MS", Arial, sans-serif;
	font-size: .85rem;
	font-weight: 700;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--ec-rojo);
}

.ec-rep-pagina h1.ec-rep-hero-titulo {
	margin: 0;
	max-width: 14ch;
	font-family: Futura, "Trebuchet MS", Arial, sans-serif;
	font-weight: 700;
	font-size: clamp(2.4rem, 5vw, 3.6rem) !important;
	line-height: 1.05;
	color: #fff;
}

.ec-rep-hero-bajada {
	max-width: 560px;
	margin: 1.25rem 0 0;
	font-size: 1.15rem;
	line-height: 1.6;
	color: rgba(255, 255, 255, .88);
}


/* ---------- Introducción opcional (editor de la página) ---------- */
.ec-rep-intro {
	padding: 3rem 0 0;
}

.ec-rep-intro .container {
	max-width: 760px;
	font-size: 1.1rem;
	line-height: 1.7;
	text-align: center;
}

/* ---------- Bloques de marcas ---------- */
.ec-rep-bloque {
	padding: 4.5rem 0;
	scroll-margin-top: 90px; /* menú fijo */
}

.ec-rep-bloque .container {
	max-width: 1140px;
}

.ec-rep-bloque--ventas {
	background: var(--ec-fondo-suave);
}

.ec-rep-pagina h2.ec-rep-titulo {
	position: relative;
	margin: 0 0 2.75rem;
	padding-top: 1.1rem;
	text-align: center;
	font-family: Futura, "Trebuchet MS", Arial, sans-serif;
	font-weight: 700;
	font-size: clamp(1.5rem, 2.6vw, 2rem) !important;
	line-height: 1.2;
	color: var(--ec-texto);
}

.ec-rep-pagina h2.ec-rep-titulo::before {
	content: "";
	position: absolute;
	top: 0;
	left: 50%;
	width: 48px;
	height: 4px;
	margin-left: -24px;
	border-radius: 2px;
	background: var(--ec-rojo);
}

/* Tarjetas de representación de ventas */
.ec-rep-tarjeta {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 100%;
	min-height: 240px;
	padding: 2rem 1.5rem 1.5rem;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 10px 30px rgba(37, 40, 42, .07);
	transition: transform .25s ease, box-shadow .25s ease;
}

.ec-rep-tarjeta:hover {
	transform: translateY(-4px);
	box-shadow: 0 18px 40px rgba(37, 40, 42, .12);
}

.ec-rep-tarjeta-logo {
	display: flex;
	flex: 1;
	align-items: center;
	justify-content: center;
	width: 100%;
}

.ec-rep-tarjeta .ec-rep-img {
	max-width: 80%;
	max-height: 100px;
	object-fit: contain;
}

.ec-rep-tarjeta .ec-rep-img--alto {
	max-height: 140px;
}

.ec-rep-tarjeta-nombre {
	margin: 1.25rem 0 0;
	padding-top: 1rem;
	width: 100%;
	border-top: 1px solid var(--ec-borde);
	text-align: center;
	font-family: Futura, "Trebuchet MS", Arial, sans-serif;
	font-size: .85rem;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--ec-gris);
}

/* Grilla de partes y repuestos */
.ec-rep-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 130px;
	padding: 18px;
	background: #fff;
	border: 1px solid var(--ec-borde);
	border-radius: 14px;
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.ec-rep-logo:hover {
	transform: translateY(-3px);
	border-color: rgba(228, 0, 43, .35);
	box-shadow: 0 12px 28px rgba(37, 40, 42, .1);
}

.ec-rep-logo .ec-rep-img {
	max-width: 82%;
	max-height: 62px;
	object-fit: contain;
}

.ec-rep-logo .ec-rep-img--alto {
	max-height: 90px;
}

.ec-rep-logo-texto {
	font-family: Futura, "Trebuchet MS", Arial, sans-serif;
	font-weight: 700;
	font-size: 1.1rem;
	text-align: center;
}

/* ---------- Llamado a la acción ---------- */
.ec-rep-cta {
	padding: 4rem 0;
	background: var(--ec-texto);
	color: #fff;
	text-align: center;
}

.ec-rep-cta .container {
	max-width: 820px;
}

.ec-rep-pagina h2.ec-rep-cta-titulo {
	margin: 0 0 1.75rem;
	font-family: Futura, "Trebuchet MS", Arial, sans-serif;
	font-weight: 700;
	font-size: clamp(1.4rem, 2.4vw, 1.9rem) !important;
	line-height: 1.3;
	color: #fff;
}

.ec-rep-cta-boton {
	display: inline-block;
	padding: .9rem 2.2rem;
	border-radius: 999px;
	background: var(--ec-rojo);
	color: #fff;
	font-family: Futura, "Trebuchet MS", Arial, sans-serif;
	font-weight: 700;
	letter-spacing: .04em;
	text-decoration: none;
	transition: background .2s ease, transform .2s ease;
}

.ec-rep-cta-boton:hover,
.ec-rep-cta-boton:focus-visible {
	background: var(--ec-rojo-oscuro);
	color: #fff;
	transform: translateY(-2px);
}

/* ---------- Animación de entrada (solo si hay JS y el usuario no pidió reducir movimiento) ---------- */
@media (prefers-reduced-motion: no-preference) {
	.ec-js .ec-rep-anim {
		opacity: 0;
		transform: translateY(18px);
		transition: opacity .6s ease, transform .6s ease;
		transition-delay: calc(var(--ec-i, 0) * 80ms);
	}

	.ec-js .ec-rep-anim.ec-visible {
		opacity: 1;
		transform: none;
	}

	.ec-js .ec-rep-anim.ec-visible:hover {
		transform: translateY(-3px);
		transition-delay: 0s;
	}
}

/* ---------- Móvil ---------- */
@media (max-width: 767.98px) {
	.ec-rep-hero {
		min-height: 360px;
		padding: 3.5rem 0 3rem;
		background-image:
			linear-gradient(180deg, rgba(18, 20, 22, .75) 0%, rgba(18, 20, 22, .9) 100%),
			var(--ec-rep-hero, none);
	}

	.ec-rep-hero--sin-imagen {
		background-image: linear-gradient(120deg, #25282A 0%, #3a3e42 100%);
	}

	.ec-rep-hero-bajada {
		font-size: 1rem;
	}

	.ec-rep-bloque {
		padding: 3rem 0;
	}

	.ec-rep-bloque--ventas .row {
		--bs-gutter-y: 1rem;
	}

	.ec-rep-tarjeta {
		flex-direction: row;
		min-height: 0;
		padding: 1rem 1.25rem;
		gap: 1rem;
	}

	.ec-rep-tarjeta-logo {
		justify-content: flex-start;
		height: 64px;
	}

	.ec-rep-tarjeta .ec-rep-img {
		max-width: 100%;
		max-height: 48px;
	}

	.ec-rep-tarjeta .ec-rep-img--alto {
		max-height: 64px;
	}

	.ec-rep-tarjeta-nombre {
		flex: 0 0 auto;
		width: auto;
		margin: 0;
		padding: 0 0 0 1rem;
		border-top: 0;
		border-left: 1px solid var(--ec-borde);
		font-size: .75rem;
	}

	.ec-rep-logo {
		height: 100px;
		padding: 12px;
	}

	.ec-rep-logo .ec-rep-img {
		max-height: 48px;
	}

	.ec-rep-logo .ec-rep-img--alto {
		max-height: 70px;
	}
}
