/* ============================================================
   EB 2026 — CATEGORÍAS MODERNAS
   Mobile-first · CSS Grid · Filtros chip · object-fit
   Archivo independiente — enlazar en index_fixed.php
   ============================================================ */

/* -- Layout: header y listado a ancho completo -- */
#header-categoria {
	width: 100%;
	float: none;
	clear: both;
	margin-bottom: 16px;
	border-radius: 10px;
}
#filtros {
	width: 100%;
	float: none;
	clear: both;
	border: none;
	background: none;
	min-height: 0;
	margin-bottom: 20px;
	border-radius: 0;
}
#listado-categoria {
	width: 100%;
	float: none;
	clear: both;
}

/* -- Filtros chip -- */
.filtros-bar {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	align-items: center;
	margin-bottom: 4px;
}
.filtro-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 9px 15px;
	border: 1.5px solid #e0e0e0;
	border-radius: 24px;
	background: #fff;
	cursor: pointer;
	font-size: 13px;
	color: #555;
	transition: border-color 0.2s, color 0.2s, background 0.2s;
	user-select: none;
	white-space: nowrap;
	line-height: 1.2;
}
.filtro-chip:hover,
.filtro-chip.filtro-chip--open {
	border-color: #FC6B6E;
	color: #FC6B6E;
	background: #fff5f5;
}
.filtro-chip-icon  { color: #FC6B6E; font-size: 12px; }
.filtro-chip-label { color: #aaa; font-size: 11px; }
.filtro-chip-value { font-weight: 600; color: #333; }
.filtro-chip.filtro-chip--open .filtro-chip-value { color: #FC6B6E; }
.filtro-chip-arrow {
	font-size: 10px;
	margin-left: 2px;
	transition: transform 0.2s;
	color: #aaa;
}
.filtro-chip.filtro-chip--open .filtro-chip-arrow {
	transform: rotate(180deg);
	color: #FC6B6E;
}

/* -- Paneles inline -- */
.filtro-panels-wrap { width: 100%; }
.filtro-panel {
	width: 100%;
	background: #fff;
	border: 1px solid #e8e8e8;
	border-radius: 10px;
	box-shadow: 0 4px 16px rgba(0,0,0,0.08);
	max-height: 260px;
	overflow-y: auto;
	margin-top: 6px;
	display: flex;
	flex-wrap: wrap;
}
.filtro-panel a {
	display: block;
	width: 33.333%;
	box-sizing: border-box;
	text-decoration: none;
}
.filtro-panel .td-filtro,
.filtro-panel .td-filtro-selected {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 14px;
	width: 100%;
	box-sizing: border-box;
	height: 100%;
}
.filtro-panel .td-filtro:hover    { background: #fff5f5; }
.filtro-panel .td-filtro-selected { background: #fff0f0; }
.filtro-panel .titulo-filtro  { float: none; color: #333; font-size: 13px; }
.filtro-panel .contador-filtro {
	float: none;
	background: #FC6B6E;
	color: #fff;
	border-radius: 20px;
	padding: 1px 7px;
	font-size: 11px;
	font-weight: 700;
}

/* -- Grid de cards -- */
.eb-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 18px;
}

/* -- Card -- */
.eb-card {
	background: #fff;
	border-radius: 12px;
	border: 1px solid #e8e8e8;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.eb-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 28px rgba(0,0,0,0.10);
}
.eb-card--premium { border: 2px solid #FC6B6E; }

/* Imagen */
.eb-card__img-link { display: block; overflow: hidden; }
.eb-card__img {
	width: 100%;
	height: 210px;
	overflow: hidden;
	position: relative;
	background: #f5f5f5;
}
.eb-card__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
	transition: transform 0.35s ease;
}
.eb-card:hover .eb-card__img img { transform: scale(1.04); }
.eb-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	background: #FC6B6E;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 20px;
	z-index: 2;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	box-shadow: 0 2px 8px rgba(252,107,110,0.4);
}

/* Cuerpo */
.eb-card__body {
	padding: 14px 16px 10px;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 7px;
}
.eb-card__meta {
	display: flex;
	flex-direction: column;
	gap: 4px;
	align-items: flex-start;
}
.eb-tag {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: #fff0f0;
	color: #FC6B6E;
	font-size: 11px;
	padding: 3px 9px;
	border-radius: 20px;
	text-decoration: none;
	font-weight: 600;
	white-space: nowrap;
	transition: background 0.2s, color 0.2s;
}
.eb-tag:hover { background: #FC6B6E; color: #fff; }
.eb-location {
	font-size: 12px;
	color: #999;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}
.eb-location-link { color: #999; text-decoration: none; }
.eb-location-link:hover { color: #FC6B6E; }
.eb-card__title {
	font-size: 17px;
	font-weight: 700;
	color: #1a1a1a;
	line-height: 1.3;
	margin: 0;
}
.eb-card__title a { color: #1a1a1a; text-decoration: none; transition: color 0.2s; }
.eb-card__title a:hover { color: #FC6B6E; }
.eb-card__text {
	font-size: 13px;
	color: #666;
	line-height: 1.55;
	margin: 0;
	flex: 1;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Footer */
.eb-card__footer {
	padding: 12px 16px;
	border-top: 1px solid #f0f0f0;
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}
.eb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #FC6B6E;
	color: #fff !important;
	border-radius: 8px;
	padding: 9px 16px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.2s;
	flex: 1;
	white-space: nowrap;
	min-height: 38px;
}
.eb-btn:hover { background: #e55a5d; color: #fff !important; }
.eb-card__stats { display: flex; gap: 6px; flex-shrink: 0; }
.eb-stat {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 12px;
	color: #888;
	text-decoration: none;
	padding: 5px 9px;
	border-radius: 7px;
	border: 1px solid #eee;
	white-space: nowrap;
	transition: color 0.2s, border-color 0.2s;
	line-height: 1;
}
.eb-stat:hover { color: #FC6B6E; border-color: #FC6B6E; }
.eb-stat--promo { color: #d97706; border-color: #fde68a; background: #fffbeb; }
.eb-stat--promo:hover { background: #d97706; color: #fff; border-color: #d97706; }

/* Estado vacío */
.eb-empty {
	grid-column: 1 / -1;
	text-align: center;
	padding: 60px 20px;
	color: #bbb;
}
.eb-empty i { font-size: 48px; display: block; margin-bottom: 16px; }
.eb-empty p { font-size: 16px; color: #999; margin-bottom: 30px; }

/* -- Responsive -- */
@media screen and (max-width: 1100px) {
	.eb-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}
@media screen and (max-width: 760px) {
	.eb-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
@media screen and (max-width: 480px) {
	.eb-grid { grid-template-columns: 1fr; gap: 12px; }
	.filtros-bar {
		overflow-x: auto;
		flex-wrap: nowrap;
		padding-bottom: 6px;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}
	.filtros-bar::-webkit-scrollbar { display: none; }
	.filtro-chip { padding: 8px 13px; font-size: 12px; }
	.filtro-panel a { width: 50%; }
	.eb-card__img { height: 190px; }
	.eb-btn { font-size: 14px; padding: 11px 16px; }
	.eb-card__title { font-size: 16px; }
}
@media screen and (max-width: 400px) {
	.filtro-panel a { width: 100%; }
	.eb-card__img { height: 170px; }
	.eb-card__body { padding: 12px 14px 8px; }
	.eb-card__footer { padding: 10px 14px; }
}
