/**
 * La Cochera - Work Filters
 * Estilos de las píldoras.
 * Padding: 8px arriba/abajo, 14px izquierda/derecha. Radius 58px, border 2px.
 * Tipografía DM Sans 800 (ExtraBold), 16px fijo (también en mobile), uppercase.
 * Todas las píldoras son "outline" (fondo transparente): nunca se rellenan de color,
 * solo cambian el color de borde+texto+icono entre activo/inactivo.
 * Los colores son variables CSS (--lcwf-*) inyectadas por PHP desde los Ajustes del plugin.
 *
 * NOTA: los elementos son <button>. Muchos temas y el propio Elementor traen reglas
 * globales para "button" (background, box-shadow, border-width) con bastante especificidad
 * que pueden pisar nuestros estilos. Por eso las propiedades críticas (fondo, borde, sombra)
 * llevan !important: no es capricho, es necesario para garantizar el outline en cualquier tema.
 */

:root {
	--lcwf-active-bg: transparent;
	--lcwf-active-border: #FF3D00;
	--lcwf-active-text: #FF3D00;
	--lcwf-inactive-bg: transparent;
	--lcwf-inactive-border: #202020;
	--lcwf-inactive-text: #202020;
}

.lc-pills {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

button.lc-pill,
.lc-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 8px 14px !important;
	margin: 0;
	border-radius: 58px !important;
	border-style: solid !important;
	border-width: 2px !important;
	border-color: var(--lcwf-inactive-border) !important;
	background-color: var(--lcwf-inactive-bg) !important;
	background-image: none !important;
	box-shadow: none !important;
	color: var(--lcwf-inactive-text) !important;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	font-family: 'DM Sans', sans-serif;
	font-weight: 800;
	font-size: 16px !important;
	line-height: 1.4;
	text-transform: uppercase;
	letter-spacing: 0;
	white-space: nowrap;
	text-decoration: none !important;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

button.lc-pill:hover,
.lc-pill:hover {
	opacity: 0.85;
	background-color: var(--lcwf-inactive-bg) !important;
}

button.lc-pill:focus,
button.lc-pill:focus-visible,
.lc-pill:focus,
.lc-pill:focus-visible {
	outline: 2px solid var(--lcwf-active-border);
	outline-offset: 2px;
	box-shadow: none !important;
}

/* Activa: sigue sin rellenar el fondo, solo cambia borde + texto + icono a naranja */
button.lc-pill.is-active,
.lc-pill.is-active {
	background-color: var(--lcwf-active-bg) !important;
	border-color: var(--lcwf-active-border) !important;
	color: var(--lcwf-active-text) !important;
}

button.lc-pill.is-active:hover,
.lc-pill.is-active:hover {
	background-color: var(--lcwf-active-bg) !important;
}

.lc-pill__label {
	font-size: 16px !important;
	line-height: 1.2;
	color: inherit;
}

/* Icono: hereda color de currentColor tanto si es Font Awesome como SVG inline */
.lc-pill__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	color: currentColor;
}

.lc-pill__icon--fa i {
	font-size: 16px;
	color: currentColor !important;
}

.lc-pill__icon--svg svg {
	width: 100%;
	height: 100%;
	max-width: 18px;
	max-height: 18px;
	fill: currentColor;
	color: currentColor;
}

/* Mobile: mismo tamaño de texto (16px) y mismo border (2px), no se reducen */
@media (max-width: 767px) {
	button.lc-pill,
	.lc-pill,
	.lc-pill__label {
		font-size: 16px !important;
	}
	button.lc-pill,
	.lc-pill {
		border-width: 2px !important;
	}
}

/* Elementos filtrados: ocultos sin animación brusca */
[data-filter].lcwf-hidden {
	display: none !important;
}

[data-filter] {
	transition: opacity 0.2s ease;
}
