/* ==========================================================================
   Hub de paquetes turísticos (page-templates/paquetes.php)
   ========================================================================== */

/* --- Cabecera --- */
.ci-hub-hero.ci-page-hero--image {
	min-height: clamp(460px, 62vh, 620px);
}

.ci-hub-hero .ci-page-hero__title {
	max-width: 15ch;
}

.ci-hub-hero .ci-page-hero__subtitle {
	max-width: 60ch;
}

.ci-hub-hero__kicker {
	display: block;
	margin-top: 18px;
	color: var(--ci-dorado-claro);
}

.ci-hub-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 28px;
}

.ci-hub-hero__trust {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 28px;
	margin: 32px 0 0;
	padding: 20px 0 0;
	list-style: none;
	border-top: 1px solid rgba(219, 197, 165, 0.25);
	font-size: var(--fs-sm);
	color: var(--ci-arena);
}

.ci-hub-hero__trust li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.ci-hub-hero__trust .ci-icon {
	color: var(--ci-dorado-claro);
	flex: none;
}

/* --- Cifras --- */
.ci-hub-intro {
	padding-top: 0;
	padding-bottom: 0;
}

.ci-hub-stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	margin: -40px 0 0;
	padding: 0;
	list-style: none;
	background: #fff;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	position: relative;
	z-index: 2;
	overflow: hidden;
}

.ci-hub-stats li {
	padding: 22px 24px;
	text-align: center;
	border-right: 1px solid var(--ci-gris-claro);
}

.ci-hub-stats li:last-child {
	border-right: 0;
}

.ci-hub-stats strong {
	display: block;
	font-family: var(--font-heading);
	font-size: var(--fs-xl);
	line-height: 1.1;
	color: var(--ci-cafe);
}

.ci-hub-stats span {
	display: block;
	margin-top: 6px;
	font-size: var(--fs-sm);
	color: var(--ci-gris);
}

/* --- Comparativa --- */
.ci-hub-table-wrap {
	overflow-x: auto;
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
	background: #fff;
	-webkit-overflow-scrolling: touch;
}

.ci-hub-table {
	width: 100%;
	min-width: 620px;
	border-collapse: collapse;
	font-size: var(--fs-sm);
}

.ci-hub-table thead th {
	background: var(--ci-cafe);
	color: var(--ci-marfil);
	font-weight: 600;
	text-align: left;
	padding: 14px 18px;
	font-size: var(--fs-xs);
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.ci-hub-table tbody th,
.ci-hub-table td {
	padding: 14px 18px;
	border-bottom: 1px solid var(--ci-gris-claro);
	text-align: left;
	vertical-align: top;
	font-weight: 400;
}

.ci-hub-table tbody tr:last-child th,
.ci-hub-table tbody tr:last-child td {
	border-bottom: 0;
}

.ci-hub-table tbody tr:nth-child(even) {
	background: #faf7f1;
}

.ci-hub-table tbody th a {
	font-weight: 600;
	color: var(--ci-cafe);
	text-decoration: none;
}

.ci-hub-table tbody th a:hover {
	color: var(--ci-dorado-oscuro);
	text-decoration: underline;
}

.ci-hub-table .ci-badge {
	margin-left: 6px;
	vertical-align: middle;
}

.ci-hub-table__price {
	text-align: right !important;
	white-space: nowrap;
	font-weight: 600 !important;
	color: var(--ci-dorado-oscuro);
}

.ci-hub-table tr[hidden] {
	display: none;
}

/* --- Listado por duración --- */
.ci-hub-filters {
	margin-bottom: 40px;
}

.ci-hub-filters__n {
	font-size: var(--fs-xs);
	opacity: 0.6;
}

.ci-hub-group + .ci-hub-group {
	margin-top: 64px;
}

.ci-hub-group[hidden],
.ci-hub-item[hidden] {
	display: none;
}

.ci-hub-group .ci-section-head {
	margin-bottom: 28px;
}

.ci-hub-item {
	display: flex;
}

.ci-hub-item > .ci-card {
	width: 100%;
}

.ci-hub-empty {
	text-align: center;
	color: var(--ci-gris);
}

/* --- Viaje a medida --- */
.ci-hub-custom__inner {
	display: grid;
	grid-template-columns: 1.6fr 1fr;
	gap: 40px;
	align-items: center;
}

.ci-hub-custom .ci-section-title,
.ci-hub-custom .ci-section-text {
	text-align: left;
	margin-left: 0;
}

.ci-hub-custom__actions {
	display: flex;
	flex-direction: column;
	gap: 12px;
	align-items: stretch;
}

.ci-hub-custom__actions .btn {
	justify-content: center;
}

/* --- Guía final --- */
.ci-hub-guide h2 {
	font-size: var(--fs-xl);
}

/* --- Móvil --- */
@media (max-width: 900px) {
	.ci-hub-stats {
		grid-template-columns: repeat(2, 1fr);
	}

	.ci-hub-stats li:nth-child(2) {
		border-right: 0;
	}

	.ci-hub-stats li:nth-child(-n + 2) {
		border-bottom: 1px solid var(--ci-gris-claro);
	}

	.ci-hub-custom__inner {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 560px) {
	.ci-hub-hero__actions .btn {
		width: 100%;
		justify-content: center;
	}

	.ci-hub-stats li {
		padding: 16px 12px;
	}
}
