/*! HospediaPro — pl-related.css */

/* =========================================================================
   PRODUCTOS RELACIONADOS — Carrusel
   ========================================================================= */

.hp-pl-related {
	background: #f8faff;
	border-top: 1px solid #e2e8f0;
	padding: 3.5rem 0;
}

.hp-pl-related__inner {
	max-width: 1160px;
	margin: 0 auto;
	padding: 0 var(--hp-container-pad, 1.5rem);
	box-sizing: border-box;
}

/* Cabecera */
.hp-pl-related__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.75rem;
}

.hp-pl-related__header-text {
	display: flex;
	align-items: center;
	gap: .6rem;
	color: #3b82f6;
}

.hp-pl-related__title {
	font-family: var(--hp-font-heading);
	font-size: 1.25rem;
	font-weight: 800;
	color: #0f172a;
	letter-spacing: -.02em;
	margin: 0;
}

.hp-pl-related__see-all {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: .82rem;
	font-weight: 700;
	color: #3b82f6;
	text-decoration: none;
	padding: .4rem .9rem;
	border: 1.5px solid rgba(59,130,246,.2);
	border-radius: 99px;
	white-space: nowrap;
	transition: background .2s, border-color .2s;
}

.hp-pl-related__see-all:hover {
	background: rgba(59,130,246,.06);
	border-color: #3b82f6;
	text-decoration: none;
}

/* Track wrap con flechas */
.hp-pl-related__track-wrap {
	position: relative;
	display: flex;
	align-items: center;
	gap: .75rem;
}

/* Flechas */
.hp-pl-related__arrow {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1.5px solid #e2e8f0;
	background: #fff;
	color: #334155;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background .2s, border-color .2s, color .2s, transform .15s;
	box-shadow: 0 2px 8px rgba(0,0,0,.06);
	z-index: 1;
}

.hp-pl-related__arrow:hover {
	background: #3b82f6;
	border-color: #3b82f6;
	color: #fff;
	transform: scale(1.08);
}

.hp-pl-related__arrow:disabled {
	opacity: .35;
	cursor: not-allowed;
	transform: none;
}

/* Track scrollable */
.hp-pl-related__track {
	display: flex;
	gap: 1rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-ms-overflow-style: none;
	scroll-behavior: smooth;
	flex: 1;
	padding-bottom: 4px; /* evita cortar sombras */
}

.hp-pl-related__track::-webkit-scrollbar { display: none; }

/* Cards */
.hp-pl-related__card {
	flex: 0 0 220px;
	scroll-snap-align: start;
	background: #fff;
	border: 1.5px solid #e2e8f0;
	border-radius: 14px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform .2s, box-shadow .2s;
}

.hp-pl-related__card:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 28px rgba(0,0,0,.09);
}

/* Imagen */
.hp-pl-related__card-thumb {
	position: relative;
	display: block;
	height: 140px;
	overflow: hidden;
	background: #f1f5f9;
}

.hp-pl-related__card-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .35s;
}

.hp-pl-related__card:hover .hp-pl-related__card-img {
	transform: scale(1.05);
}

.hp-pl-related__card-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
	color: #94a3b8;
}

/* Badge tipo */
.hp-pl-related__card-badge {
	position: absolute;
	top: .6rem;
	left: .6rem;
	font-size: .65rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	border-radius: 99px;
	padding: .2rem .6rem;
}

.hp-pl-related__card-badge--plugin {
	background: rgba(59,130,246,.9);
	color: #fff;
}

.hp-pl-related__card-badge--theme {
	background: rgba(139,92,246,.9);
	color: #fff;
}

/* Cuerpo */
.hp-pl-related__card-body {
	padding: .9rem;
	display: flex;
	flex-direction: column;
	gap: .4rem;
	flex: 1;
}

.hp-pl-related__card-cat {
	font-size: .68rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .07em;
	color: #3b82f6;
}

.hp-pl-related__card-name {
	font-size: .875rem;
	font-weight: 700;
	color: #0f172a;
	margin: 0;
	line-height: 1.3;
	/* Limitar a 2 líneas */
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.hp-pl-related__card-name a {
	color: inherit;
	text-decoration: none;
	transition: color .2s;
}

.hp-pl-related__card-name a:hover { color: #3b82f6; }

/* Footer de la card */
.hp-pl-related__card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .5rem;
	margin-top: auto;
	padding-top: .6rem;
	border-top: 1px solid #f1f5f9;
}

.hp-pl-related__card-price {
	display: flex;
	align-items: baseline;
	gap: .25rem;
	font-size: .8rem;
}

.hp-pl-related__card-price-from {
	font-size: .65rem;
	color: #94a3b8;
	font-weight: 500;
}

.hp-pl-related__card-price .hp-price {
	font-weight: 800;
	color: #0f172a;
	font-size: .875rem;
}

.hp-pl-related__card-cta {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: .75rem;
	font-weight: 700;
	color: #3b82f6;
	text-decoration: none;
	white-space: nowrap;
	transition: gap .15s;
}

.hp-pl-related__card-cta:hover {
	gap: 7px;
	text-decoration: none;
}

/* Dots */
.hp-pl-related__dots {
	display: flex;
	justify-content: center;
	gap: .4rem;
	margin-top: 1.25rem;
}

.hp-pl-related__dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #e2e8f0;
	cursor: pointer;
	transition: background .2s, transform .2s;
	border: none;
	padding: 0;
}

.hp-pl-related__dot--active {
	background: #3b82f6;
	transform: scale(1.3);
}

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
	.hp-pl-related__arrow { display: none; }
	.hp-pl-related__card  { flex: 0 0 180px; }
	.hp-pl-related__card-thumb { height: 120px; }
}

@media (max-width: 480px) {
	.hp-pl-related__card { flex: 0 0 160px; }
}