/* Página Comercios — Figma 1657:761 (hero) + 1666:1333 (destacados row) */

.comercios-site {
	--bc-purple: #853dff;
	--bc-purple-4: #d6c6fb;
	--bc-lila: #f3ecff;
	--bc-blue: #2719e6;
	--bc-card-body: #f5f2fb;
	--bc-white: #fff;
	--bc-radius-panel: 60px;
	--bc-radius-card-lg: 24px;
	--bc-radius-card-md: 16px;
	--bc-radius-chip: 64px;
}

/* ── Hero ─────────────────────────────────────────────────────────────── */

.comercios-hero {
	padding: 120px 0 0 0;
	background: var(--bc-white);
}

.comercios-hero__panel {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 420px;
	padding: 70px 115px;
	border-radius: var(--bc-radius-panel);
	overflow: hidden;
	background-color: var(--bc-purple);
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
}

.comercios-hero__overlay {
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: linear-gradient(133deg, rgba(0, 0, 0, 0.34) 48%, rgba(122, 122, 122, 0) 63.3%);
	pointer-events: none;
}

.comercios-hero__title {
	position: relative;
	z-index: 1;
	max-width: 683px;
	margin: 0;
	font-family: "Cocogoose Pro", sans-serif;
	font-size: clamp(2rem, 5vw, 4rem);
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: var(--bc-white);
}

.comercios-site .buscador-comercios--sin-hero-title {
	padding-top: 50px;
}

.comercios-site .buscador-comercios--con-hero {
	padding-top: 40px;
}

/* ── Destacados ───────────────────────────────────────────────────────── */

.comercios-dest {
	padding: 80px 0;
	font-family: inherit;
}

.comercios-dest__title {
	margin: 0 0 80px;
	font-family: "Cocogoose Pro", sans-serif;
	font-size: clamp(1.75rem, 3vw, 3rem);
	font-weight: 400;
	line-height: 1.2;
	color: var(--bc-blue);
}

.comercios-dest__desktop {
	display: flex;
	gap: 32px;
	align-items: stretch;
	min-height: 713px;
}

.comercios-dest__mobile {
	display: none;
}

.comercios-dest__featured {
	position: relative;
	flex: 1 1 54%;
	max-width: 864px;
	min-width: 0;
	min-height: 713px;
}

.comercios-dest__big-card {
	display: none;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	border: 2px solid var(--bc-purple);
	border-radius: var(--bc-radius-card-lg);
	background: var(--bc-white);
}

.comercios-dest__big-card.is-active {
	display: flex;
	animation: bc-dest-fade 0.35s ease;
}

@keyframes bc-dest-fade {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.comercios-dest__big-img-wrap {
	flex-shrink: 0;
	height: 381px;
	overflow: hidden;
	background: #e8edf7;
}

.comercios-dest__big-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.comercios-dest__big-img-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: var(--bc-purple);
	opacity: 0.35;
}

.comercios-dest__big-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 48px;
	background: var(--bc-card-body);
}

.comercios-dest__big-header {
	display: flex;
	gap: 24px;
	align-items: center;
	margin-bottom: 24px;
}

.comercios-dest__big-header > div:last-child {
	display: flex;
	flex-direction: column;
	gap: 17px;
	min-width: 0;
}

.comercios-dest__icon {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	overflow: hidden;
	border-radius: 50%;
	background: var(--bc-lila);
	color: var(--bc-purple);
}

.comercios-dest__icon--lg {
	width: 65px;
	height: 65px;
}

.comercios-dest__icon img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.comercios-dest__icon--emoji {
	font-size: 28px;
	line-height: 1;
}

.comercios-dest__big-name {
	margin: 0;
	font-family: "Cocogoose Pro", sans-serif;
	font-size: clamp(1.5rem, 2.2vw, 2rem);
	font-weight: 400;
	line-height: 1.3;
	color: var(--bc-blue);
}

.comercios-dest__big-cat {
	margin: 0;
	font-size: 20px;
	font-weight: 500;
	line-height: 1.5;
	color: var(--bc-blue);
}

.comercios-dest__chips-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin-bottom: 16px;
}

.comercios-dest__chips-label {
	font-size: 18px;
	font-weight: 500;
	line-height: 1.5;
	color: var(--bc-blue);
	white-space: nowrap;
}

.comercios-dest__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.comercios-dest__chip {
	display: inline-block;
	padding: 4px 16px;
	border-radius: var(--bc-radius-chip);
	background: var(--bc-purple-4);
	color: var(--bc-purple);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.5;
}

.comercios-dest__chip--side {
	background: var(--bc-lila);
}

.comercios-dest__meta {
	display: flex;
	gap: 8px;
	align-items: center;
	margin: 0;
	font-size: 16px;
	line-height: 1.5;
	color: var(--bc-blue);
}

.comercios-dest__meta + .comercios-dest__meta {
	margin-top: 16px;
}

.comercios-dest__meta svg {
	flex-shrink: 0;
	color: var(--bc-blue);
}

.comercios-dest__meta-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.comercios-dest__sidebar {
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	gap: 32px;
	justify-content: center;
	align-items: stretch;
	min-width: 0;
	min-height: 713px;
}

.comercios-dest__side-card {
	display: flex;
	gap: 48px;
	align-items: flex-start;
	min-height: 215px;
	padding: 24px;
	border: 2px solid var(--bc-purple);
	border-radius: var(--bc-radius-card-md);
	background: var(--bc-white);
	cursor: pointer;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.comercios-dest__side-card.is-hidden {
	display: none;
}

.comercios-dest__side-card:hover {
	box-shadow: 0 4px 16px rgba(133, 61, 255, 0.18);
	transform: translateY(-2px);
}

.comercios-dest__side-card:focus-visible {
	outline: 3px solid var(--bc-purple);
	outline-offset: 2px;
}

.comercios-dest__side-info {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
}

.comercios-dest__side-name {
	margin: 0;
	font-family: "Cocogoose Pro", sans-serif;
	font-size: 24px;
	font-weight: 400;
	line-height: 1.4;
	color: var(--bc-blue);
}

.comercios-dest__side-cat {
	margin: 0;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.5;
	color: var(--bc-blue);
}

.comercios-dest__side-card .comercios-dest__chips-row {
	align-items: flex-start;
}

.comercios-dest__side-card .comercios-dest__chips-label {
	font-size: 18px;
}

.comercios-dest__side-card .comercios-dest__meta {
	font-size: 14px;
}

/* ── Mobile ───────────────────────────────────────────────────────────── */

@media (max-width: 1080px) {
	.comercios-hero__panel {
		padding: 48px 32px;
		min-height: 220px;
	}

	.comercios-dest {
		padding: 48px 0 64px;
	}

	.comercios-dest__title {
		margin-bottom: 32px;
	}

	.comercios-dest__desktop {
		display: none;
	}

	.comercios-dest__mobile {
		display: block;
	}

	.comercios-dest-swiper {
		overflow: visible;
		padding: 0 4px;
	}

	.comercios-dest__mobile-card {
		display: flex;
		flex-direction: column;
		overflow: hidden;
		height: 100%;
		border: 2px solid var(--bc-purple);
		border-radius: var(--bc-radius-card-lg);
		background: var(--bc-white);
	}

	.comercios-dest__mobile-card .comercios-dest__big-img-wrap {
		height: 220px;
	}

	.comercios-dest__mobile-card .comercios-dest__big-body {
		padding: 24px;
	}

	.comercios-dest-dots {
		position: relative !important;
		bottom: auto !important;
		display: flex;
		justify-content: center;
		gap: 6px;
		margin-top: 20px;
	}

	.comercios-dest-dots .swiper-pagination-bullet {
		width: 8px;
		height: 8px;
		border-radius: 50%;
		background: #ccc;
		opacity: 1;
		transition: background 0.25s, transform 0.25s;
	}

	.comercios-dest-dots .swiper-pagination-bullet-active {
		background: var(--bc-purple);
		transform: scale(1.3);
	}
}

@media (max-width: 650px) {
	.comercios-hero {
		padding-top: 24px;
	}

	.comercios-hero__panel {
		padding: 40px 24px;
		border-radius: 32px;
	}
}

/* Hero con bajada: el panel pasa a columna (título arriba, bajada abajo) y
   conserva el centrado vertical y la alineación a la izquierda de antes. */
.comercios-hero__panel {
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
}

.comercios-hero__subtitle {
	position: relative;
	z-index: 1;
	max-width: 683px;
	margin: 20px 0 0;
	font-family: "Onest", sans-serif;
	/* en px: el tema pone la raíz en 62,5% (1rem = 10px) y en rem quedaba diminuta */
	font-size: clamp(18px, 1.6vw, 24px);
	font-weight: 400;
	line-height: 1.3;
	color: var(--bc-white);
}

@media (max-width: 767px) {
	.comercios-hero__subtitle {
		margin-top: 12px;
		font-size: 15px;
	}
}

/* Destacados en grupos de 4: los laterales de otro grupo no se muestran. */
.comercios-dest__side-card.is-out-group {
	display: none;
}

/* Título y bajada del hero: reparten las líneas parejas para no dejar una palabra
   sola abajo ("Comercios con Directo en todo el / país", "...estés donde / estés."). */
.comercios-hero__title,
.comercios-hero__subtitle {
	text-wrap: balance;
}

/* ── Destacados desde la planilla de marketing (cambio 2026-10-14) ───────── */

/* Botón al sitio del comercio: misma anatomía que el CTA del hero del sitio, más chico. */
.comercios-dest__cta {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	justify-content: center;
	height: 48px;
	margin-top: 32px;
	padding: 0 32px;
	border-radius: 100px;
	background: var(--bc-purple);
	color: var(--bc-white);
	font-family: "Onest", sans-serif;
	font-size: 16px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
	transition: background 0.2s ease, transform 0.2s ease;
}

.comercios-dest__cta:hover {
	background: #6f2ee0;
	color: var(--bc-white);
	transform: translateY(-1px);
}

.comercios-dest__cta:focus-visible {
	outline: 3px solid var(--bc-purple);
	outline-offset: 3px;
}

.comercios-dest__cta .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* Inicial de la marca mientras no haya logo. */
.comercios-dest__icon--inicial {
	font-family: "Cocogoose Pro", sans-serif;
	font-size: 20px;
	line-height: 1;
}

.comercios-dest__icon--lg.comercios-dest__icon--inicial {
	font-size: 28px;
}

/* Tarjeta grande sin foto: el contenido se centra en el alto de la tarjeta y el logo crece. */
.comercios-dest__big-card--sin-foto .comercios-dest__big-body {
	justify-content: center;
	padding: 64px;
}

.comercios-dest__big-card--sin-foto .comercios-dest__icon--lg {
	width: 120px;
	height: 120px;
}

.comercios-dest__big-card--sin-foto .comercios-dest__icon--lg.comercios-dest__icon--inicial {
	font-size: 48px;
}

@media (max-width: 1080px) {
	.comercios-dest__cta {
		margin-top: 24px;
	}
}

/* Tamaños en px: el tema pone la raíz en 62,5% (1rem = 10px) y en rem el título del bloque y el
   nombre de la tarjeta grande quedaban más chicos que el rubro y que las tarjetas laterales
   (mismo caso que la bajada del hero). Equivale a los rem originales con raíz de 16px. */
.comercios-dest__title {
	font-size: clamp(28px, 3vw, 48px);
}

.comercios-dest__big-name {
	font-size: clamp(24px, 2.2vw, 32px);
}

/* Logos de fondo blanco sobre las tarjetas laterales (también blancas): un borde lila suave marca el círculo. */
.comercios-dest__side-card .comercios-dest__icon {
	box-shadow: 0 0 0 1px var(--bc-purple-4);
}

@media (max-width: 1080px) {
	/* Mobile: todas las tarjetas del carrusel con el alto de la más alta; si no, las más cortas
	   dejaban un hueco grande antes de los puntos de navegación. */
	.comercios-dest-swiper .swiper-slide {
		height: auto;
	}
}

/* ── Versión compacta: ningún destacado de la planilla tiene foto (cambio 2026-10-15) ──
   Sin fotos, la tarjeta grande quedaba como un recuadro lila de ~850px casi vacío. Se sacan los
   altos mínimos del diseño con foto, se achican las laterales y la grande se arma centrada en
   columna (logo grande, nombre, rubro, beneficios y botón). Con al menos una foto, vuelve el diseño completo. */
.comercios-dest--sin-fotos .comercios-dest__title {
	margin-bottom: 48px;
}

.comercios-dest--sin-fotos .comercios-dest__desktop,
.comercios-dest--sin-fotos .comercios-dest__featured,
.comercios-dest--sin-fotos .comercios-dest__sidebar {
	min-height: 0;
}

.comercios-dest--sin-fotos .comercios-dest__sidebar {
	gap: 16px;
}

.comercios-dest--sin-fotos .comercios-dest__side-card {
	min-height: 0;
	gap: 20px;
	padding: 20px;
}

/* La grande ya no se queda con casi todo el ancho: la columna lateral tiene 360px como mínimo,
   así las etiquetas entran en una línea ("Cuotas sin interés con Débito" no deja "Débito" abajo). */
.comercios-dest--sin-fotos .comercios-dest__featured {
	flex: 0 1 864px;
}

.comercios-dest--sin-fotos .comercios-dest__sidebar {
	flex: 1 1 360px;
	min-width: 360px;
}

.comercios-dest--sin-fotos .comercios-dest__side-info {
	gap: 10px;
}

.comercios-dest--sin-fotos .comercios-dest__side-card .comercios-dest__chips-row {
	margin-bottom: 0;
}

.comercios-dest--sin-fotos .comercios-dest__side-card .comercios-dest__chips-label {
	display: none;
}

.comercios-dest--sin-fotos .comercios-dest__chip--side {
	padding: 3px 10px;
	font-size: 13px;
	white-space: nowrap;
}

.comercios-dest--sin-fotos .comercios-dest__big-card--sin-foto .comercios-dest__big-body {
	align-items: center;
	padding: 40px 48px;
	text-align: center;
}

.comercios-dest--sin-fotos .comercios-dest__big-card--sin-foto .comercios-dest__big-header {
	flex-direction: column;
	gap: 20px;
	margin-bottom: 20px;
}

.comercios-dest--sin-fotos .comercios-dest__big-card--sin-foto .comercios-dest__big-header > div:last-child {
	align-items: center;
	gap: 6px;
}

.comercios-dest--sin-fotos .comercios-dest__big-card--sin-foto .comercios-dest__icon--lg {
	width: 140px;
	height: 140px;
}

.comercios-dest--sin-fotos .comercios-dest__big-card--sin-foto .comercios-dest__chips-row {
	justify-content: center;
}

.comercios-dest--sin-fotos .comercios-dest__big-card--sin-foto .comercios-dest__cta {
	align-self: center;
	margin-top: 24px;
}

/* ── Puntitos en desktop y flechas en el celular (cambio 2026-10-16) ──
   Desktop: un puntito por bloque, debajo de las tarjetas; el del bloque activo se resalta.
   Celular: puntitos más chicos (uno por comercio) con flechas a los costados. */
.comercios-dest__dots-desktop {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-top: 28px;
}

.comercios-dest__dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #d6d0e8;
	cursor: pointer;
	transition: background 0.25s ease, transform 0.25s ease;
}

.comercios-dest__dot:hover {
	background: var(--bc-purple-4);
}

.comercios-dest__dot.is-active {
	background: var(--bc-purple);
	transform: scale(1.3);
}

.comercios-dest__dot:focus-visible {
	outline: 3px solid var(--bc-purple);
	outline-offset: 3px;
}

.comercios-dest__nav-mobile {
	display: none;
}

@media (max-width: 1080px) {
	.comercios-dest__dots-desktop {
		display: none;
	}

	.comercios-dest__nav-mobile {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 12px;
		margin-top: 20px;
	}

	.comercios-dest__nav-mobile .comercios-dest-dots {
		flex: 0 1 auto;
		width: auto !important;
		margin-top: 0;
		gap: 5px;
	}

	.comercios-dest-dots .swiper-pagination-bullet {
		width: 6px;
		height: 6px;
		margin: 0 !important;
	}

	.comercios-dest__arrow {
		display: inline-flex;
		flex: 0 0 auto;
		align-items: center;
		justify-content: center;
		width: 36px;
		height: 36px;
		padding: 0;
		border: 2px solid var(--bc-purple);
		border-radius: 50%;
		background: var(--bc-white);
		color: var(--bc-purple);
		cursor: pointer;
	}

	.comercios-dest__arrow.swiper-button-disabled {
		opacity: 0.35;
		cursor: default;
	}
}
