/* Prelafit · Clientes por industria
   Variables ajustables: cambia aquí colores, radios y tamaños. */
.pf-clientes {
	--pf-ink: #14171a;
	--pf-muted: #5b5e59;
	--pf-line: #dadcd8;
	--pf-panel: #f5f5f5;
	--pf-card: #ffffff;
	--pf-radius-card: 12px;
	--pf-radius-panel: 20px;
	--pf-title-size: 28px;

	display: grid;
	width: 100%;
	max-width: 100%;
	flex: 1 1 100%;
	align-self: stretch;
	grid-template-columns: 340px minmax(0, 1fr);
	gap: 48px;
	align-items: start;
	font-family: inherit;
	color: var(--pf-ink);
}

.pf-clientes * { box-sizing: border-box; }
.pf-clientes [hidden] { display: none !important; }

/* ---------- Selector ---------- */
.pf-eyebrow {
	margin: 0 0 12px;
	font-size: 12px;
	line-height: 16px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--pf-muted);
}

.pf-filter-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.pf-filter-list li { margin: 0; padding: 0; }
.pf-divider { height: 1px; background: var(--pf-line); margin: 0 0 1px !important; }

.pf-filter {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 11px 16px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--pf-ink);
	font: inherit;
	font-size: 15px;
	line-height: 20px;
	font-weight: 600;
	text-align: left;
	cursor: pointer;
	transition: background-color .15s ease, color .15s ease;
}
/* Estados explícitos (con más especificidad) para que el tema no los pise con su estilo de botón */
.pf-clientes .pf-filter:hover,
.pf-clientes .pf-filter:focus,
.pf-clientes .pf-filter:active {
	background: rgba(20, 23, 26, .06);
	color: var(--pf-ink);
	box-shadow: none;
}
.pf-clientes .pf-filter:hover .pf-filter__count,
.pf-clientes .pf-filter:focus .pf-filter__count { color: var(--pf-muted); }
.pf-clientes .pf-filter:focus-visible { outline: 2px solid var(--pf-ink); outline-offset: 2px; }
.pf-filter__label { flex: 1 1 auto; min-width: 0; }
.pf-filter__count {
	flex: 0 0 32px;
	text-align: right;
	font-size: 14px;
	line-height: 22px;
	font-weight: 400;
	color: var(--pf-muted);
}
.pf-clientes .pf-filter.is-active,
.pf-clientes .pf-filter.is-active:hover,
.pf-clientes .pf-filter.is-active:focus,
.pf-clientes .pf-filter.is-active:active { background: var(--pf-ink); color: #fff; }
.pf-clientes .pf-filter.is-active .pf-filter__count,
.pf-clientes .pf-filter.is-active:hover .pf-filter__count,
.pf-clientes .pf-filter.is-active:focus .pf-filter__count { color: #fff; }

.pf-select-wrap { display: none; }
.pf-select {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--pf-line);
	border-radius: 8px;
	background: #fff;
	font: inherit;
	font-size: 15px;
	color: var(--pf-ink);
}

/* ---------- Panel ---------- */
.pf-panel {
	width: 100%;
	min-width: 0;
	background: var(--pf-panel);
	border-radius: var(--pf-radius-panel);
	padding: 40px;
}

.pf-panel__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 32px;
}
.pf-title {
	margin: 0;
	font-size: var(--pf-title-size);
	line-height: 1.2;
	font-weight: 600;
	color: var(--pf-ink);
}
.pf-count { flex: 0 0 auto; font-size: 15px; line-height: 22px; color: var(--pf-muted); }

.pf-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}
.pf-card {
	margin: 0;
	padding: 0;
	aspect-ratio: 2 / 1; /* los logos se exportaron en cajas de 240x120 con su aire incluido */
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background: var(--pf-card);
	border-radius: var(--pf-radius-card);
}
.pf-card .pf-logo {
	display: block;
	width: 80%; /* tamaño del logo dentro de la tarjeta; sube o baja este valor para ajustarlo */
	height: 80%;
	max-width: none;
	max-height: none;
	object-fit: contain;
}

/* Aparición suave de los logos (la activa el script en cada filtrado) */
.pf-card.is-in {
	animation: pf-in .5s ease both;
	animation-delay: var(--pf-d, 0ms);
}
@keyframes pf-in {
	from { opacity: 0; transform: translateY(8px); }
	to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
	.pf-card.is-in { animation: none; }
}

/* Nombre de la empresa: al pasar el mouse (escritorio) o al tocar (celular/tablet) */
.pf-card { position: relative; }
.pf-card::after {
	content: attr(data-nombre);
	position: absolute;
	left: 50%;
	bottom: 8px;
	z-index: 2;
	max-width: calc(100% - 16px);
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--pf-ink);
	color: #fff;
	font-size: 13px;
	line-height: 18px;
	font-weight: 500;
	text-align: center;
	pointer-events: none;
	opacity: 0;
	transform: translate(-50%, 4px);
	transition: opacity .15s ease, transform .15s ease;
}
.pf-card.is-tip::after { opacity: 1; transform: translate(-50%, 0); }
@media (hover: hover) and (pointer: fine) {
	.pf-card:hover::after { opacity: 1; transform: translate(-50%, 0); }
}
@media (max-width: 680px) {
	.pf-card::after { font-size: 12px; line-height: 16px; bottom: 6px; padding: 3px 8px; border-radius: 4px; }
}

.pf-card--pendiente { background: transparent; border: 1px dashed #9d9d9d; }
.pf-pendiente { font-size: 14px; font-weight: 500; color: #666; }

.pf-more {
	display: block;
	margin: 32px auto 0;
	padding: 12px 24px;
	border: 1px solid var(--pf-ink);
	border-radius: 8px;
	background: transparent;
	color: var(--pf-ink);
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
}
.pf-more:hover { background: var(--pf-ink); color: #fff; }

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

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.pf-clientes { grid-template-columns: 1fr; gap: 24px; }
	.pf-filter-list { display: none; }
	.pf-select-wrap { display: block; }
	.pf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
	.pf-panel { padding: 24px 16px; }
	.pf-panel__head { flex-direction: column; align-items: flex-start; gap: 4px; margin-bottom: 20px; }
	.pf-clientes { --pf-title-size: 22px; }
	.pf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
