/* ==========================================================================
   Estilos del detalle de tour y de los listados.
   Se cargan solo en esas paginas, no en toda la web.
   ========================================================================== */

/* ---------- Portada del tour ---------- */
.tour-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 440px;
	padding-block: 72px 44px;
	background: var(--tc-primary-dark, #15291F);
	overflow: hidden;
}

.tour-hero__media {
	position: absolute;
	inset: 0;
}

.tour-hero__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tour-hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(21, 41, 31, .25) 0%, rgba(21, 41, 31, .55) 45%, rgba(21, 41, 31, .86) 100%);
}

.tour-hero__inner {
	position: relative;
	z-index: 1;
	color: #fff;
}

.tour-hero__eyebrow {
	margin: 0 0 12px;
	font-size: .8rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	opacity: .9;
}

.tour-hero__eyebrow a {
	color: #fff;
	text-decoration: none;
	border-bottom: 1px solid rgba(255, 255, 255, .4);
}

.tour-hero__title {
	margin: 0;
	max-width: 820px;
	font-size: clamp(1.45rem, 3.1vw, 2.25rem);
	line-height: 1.18;
	color: #fff;
	text-wrap: balance;
}

.tour-hero__lead {
	margin: 16px 0 0;
	max-width: 660px;
	font-size: 1.05rem;
	line-height: 1.6;
	color: rgba(255, 255, 255, .92);
}

/* ---------- Ficha rapida ---------- */
.tour-facts {
	background: #fff;
	border-bottom: 1px solid var(--tc-line, #e2e8e6);
	box-shadow: 0 6px 20px rgba(21, 33, 31, .05);
}

.tour-facts__grid {
	display: grid;
	gap: 0;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 900px) {
	.tour-facts__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

.tour-fact {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 18px 16px;
	border-right: 1px solid var(--tc-line, #e2e8e6);
	border-bottom: 1px solid var(--tc-line, #e2e8e6);
}

@media (min-width: 900px) {
	.tour-fact { border-bottom: 0; }
	.tour-fact:last-child { border-right: 0; }
}

.tour-fact__ico {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	color: var(--tc-primary, #1F3F31);
	background: rgba(31, 63, 49, .09);
}

.tour-fact__ico svg { width: 21px; height: 21px; }

.tour-fact__texto {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.tour-fact__label {
	font-size: .72rem;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--tc-muted, #5f6f6c);
}

.tour-fact__value {
	font-size: .98rem;
	font-weight: 600;
	color: var(--tc-ink, #15211f);
}

/* ---------- Dos columnas ---------- */
.tour-layout {
	display: grid;
	gap: 40px;
	padding-block: 48px;
	align-items: start;
}

@media (min-width: 1000px) {
	.tour-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; }
}

/* ---------- Bloques de contenido ---------- */
.tour-block { margin-bottom: 44px; }
.tour-block:last-child { margin-bottom: 0; }

.tour-block__title {
	margin: 0 0 18px;
	padding-bottom: 12px;
	font-size: 1.4rem;
	line-height: 1.25;
	border-bottom: 2px solid var(--tc-primary, #1F3F31);
	display: inline-block;
}

.tour-block__body { font-size: 1rem; line-height: 1.7; }
.tour-block__body > :last-child { margin-bottom: 0; }

.tour-cols {
	display: grid;
	gap: 28px;
}

@media (min-width: 680px) {
	.tour-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.tour-col__title {
	margin: 0 0 14px;
	font-size: 1.05rem;
	font-weight: 700;
}

/* ---------- Itinerario ---------- */
.tour-itinerary h3 {
	position: relative;
	margin: 30px 0 8px;
	padding-left: 20px;
	font-size: 1.08rem;
	color: var(--tc-primary, #1F3F31);
}

.tour-itinerary h3::before {
	content: "";
	position: absolute;
	left: 0;
	top: .35em;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--tc-accent, #D7B48C);
	box-shadow: 0 0 0 4px rgba(215, 180, 140, .18);
}

.tour-itinerary h3:first-child { margin-top: 0; }
.tour-itinerary p { margin: 0 0 14px; }

/* ---------- Preguntas frecuentes ---------- */
.tour-faq h4 {
	margin: 24px 0 6px;
	font-size: 1rem;
	font-weight: 700;
	color: var(--tc-ink, #15211f);
}

.tour-faq h4:first-child { margin-top: 0; }
.tour-faq p { margin: 0 0 12px; color: var(--tc-muted, #5f6f6c); }

/* ---------- Video y mapa ---------- */
.tour-embed { position: relative; }

.tour-embed iframe,
.tour-embed video {
	width: 100%;
	aspect-ratio: 16 / 9;
	border: 0;
	border-radius: 14px;
	display: block;
}

.tour-embed--map iframe { aspect-ratio: 16 / 10; }

/* ---------- Ficha de reserva ---------- */
.tour-side { position: relative; }

@media (min-width: 1000px) {
	.tour-booking { position: sticky; top: 24px; }
}

.tour-booking {
	display: grid;
	gap: 12px;
	padding: 24px;
	background: #fff;
	border: 1px solid var(--tc-line, #e2e8e6);
	border-radius: 16px;
	box-shadow: 0 2px 4px rgba(21, 33, 31, .05), 0 18px 44px rgba(21, 33, 31, .10);
}

.tour-booking__price {
	padding-bottom: 14px;
	border-bottom: 1px solid var(--tc-line, #e2e8e6);
}

.tour-booking__price .tc-price__amount { font-size: 1.9rem; }

.tour-booking__note {
	margin: 2px 0 0;
	font-size: .86rem;
	text-align: center;
	color: var(--tc-muted, #5f6f6c);
}

.tour-booking__trust {
	margin: 6px 0 0;
	padding: 14px 0 0;
	list-style: none;
	border-top: 1px solid var(--tc-line, #e2e8e6);
	display: grid;
	gap: 8px;
	font-size: .85rem;
	color: var(--tc-muted, #5f6f6c);
}

.tour-booking__trust li { padding-left: 20px; position: relative; }

.tour-booking__trust li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .42em;
	width: 5px;
	height: 9px;
	border-right: 2px solid var(--tc-primary, #1F3F31);
	border-bottom: 2px solid var(--tc-primary, #1F3F31);
	transform: rotate(45deg);
}

/* ---------- Formulario ---------- */
.tour-form__box {
	max-width: 760px;
	margin-inline: auto;
	padding: 28px;
	background: #fff;
	border: 1px solid var(--tc-line, #e2e8e6);
	border-radius: 16px;
}

/* ---------- Listados ---------- */
.tours-archive__head {
	padding-block: 56px 28px;
	background: #f5f8f7;
	border-bottom: 1px solid var(--tc-line, #e2e8e6);
}

.tours-archive__title {
	margin: 0;
	font-size: clamp(1.6rem, 4vw, 2.5rem);
	line-height: 1.15;
}

.tours-archive__lead {
	margin-top: 12px;
	max-width: 680px;
	color: var(--tc-muted, #5f6f6c);
	line-height: 1.65;
}

.tours-filter {
	background: #fff;
	border-bottom: 1px solid var(--tc-line, #e2e8e6);
	position: sticky;
	top: 0;
	z-index: 5;
}

.tours-filter__row {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding-block: 14px;
	scrollbar-width: none;
}

.tours-filter__row::-webkit-scrollbar { display: none; }

.tours-filter__item {
	flex: 0 0 auto;
	padding: 9px 16px;
	font-size: .88rem;
	font-weight: 600;
	color: var(--tc-muted, #5f6f6c);
	text-decoration: none;
	border: 1px solid var(--tc-line, #e2e8e6);
	border-radius: 999px;
	white-space: nowrap;
	transition: all .18s ease;
}

.tours-filter__item:hover {
	color: var(--tc-primary, #1F3F31);
	border-color: var(--tc-primary, #1F3F31);
}

.tours-filter__item.is-active {
	background: var(--tc-primary, #1F3F31);
	border-color: var(--tc-primary, #1F3F31);
	color: #fff;
}

.tours-archive__body { padding-block: 40px 64px; }

.tours-pagination { margin-top: 40px; text-align: center; }

.tours-pagination .page-numbers {
	display: inline-block;
	min-width: 42px;
	padding: 10px 12px;
	margin: 0 3px;
	border: 1px solid var(--tc-line, #e2e8e6);
	border-radius: 10px;
	text-decoration: none;
	color: var(--tc-ink, #15211f);
	font-size: .9rem;
}

.tours-pagination .page-numbers.current,
.tours-pagination .page-numbers:hover {
	background: var(--tc-primary, #1F3F31);
	border-color: var(--tc-primary, #1F3F31);
	color: #fff;
}

/* ---------- Impresion ---------- */
@media print {
	.tour-hero__media, .tour-side, .tours-filter, .tour-form { display: none !important; }
	.tour-hero { min-height: auto; background: none; padding-block: 0 20px; }
	.tour-hero__title, .tour-hero__lead, .tour-hero__eyebrow { color: #000; }
}

/* ==========================================================================
   Itinerario como línea de tiempo.
   El trazo se va llenando al bajar y el vehículo avanza con él.
   ========================================================================== */
.itin {
	position: relative;
	padding-left: 58px;
	--itin-p: 0;
}

/* Riel de fondo */
.itin__via {
	position: absolute;
	left: 19px;
	top: 6px;
	bottom: 6px;
	width: 3px;
	border-radius: 3px;
	background: var(--tc-line, #e2e8e6);
}

/* Trazo recorrido */
.itin__avance {
	position: absolute;
	inset: 0 0 auto 0;
	height: calc(var(--itin-p) * 100%);
	background: var(--tc-primary, #1F3F31);
	border-radius: 3px;
	transition: height .15s linear;
}

/* Vehículo que viaja por el riel */
.itin__movil {
	position: absolute;
	left: 50%;
	top: calc(var(--itin-p) * 100%);
	transform: translate(-50%, -50%);
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	color: #fff;
	background: var(--tc-primary, #1F3F31);
	box-shadow: 0 4px 14px rgba(31, 63, 49, .35);
	transition: top .15s linear;
	z-index: 2;
}

.itin__movil svg { width: 22px; height: 22px; }

/* ---------- Días ---------- */
.itin__dias {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 30px;
}

.itin__dia { position: relative; }

.itin__punto {
	position: absolute;
	left: -58px;
	top: -2px;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	color: var(--tc-muted, #5f6f6c);
	background: #fff;
	border: 2px solid var(--tc-line, #e2e8e6);
	transition: color .25s ease, border-color .25s ease, background .25s ease;
}

.itin__punto svg { width: 20px; height: 20px; }

.itin__dia.is-visto .itin__punto {
	color: #fff;
	background: var(--tc-accent, #D7B48C);
	border-color: var(--tc-accent, #D7B48C);
}

.itin__titulo {
	margin: 0 0 8px;
	font-size: 1.06rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--tc-primary, #1F3F31);
}

.itin__cuerpo { font-size: .97rem; line-height: 1.65; }
.itin__cuerpo p { margin: 0 0 12px; }
.itin__cuerpo > :last-child { margin-bottom: 0; }

@media (max-width: 600px) {
	.itin { padding-left: 46px; }
	.itin__via { left: 15px; }
	.itin__punto { left: -46px; width: 32px; height: 32px; }
	.itin__punto svg { width: 16px; height: 16px; }
	.itin__movil { width: 32px; height: 32px; }
	.itin__movil svg { width: 18px; height: 18px; }
}

/* Si el visitante pidió menos movimiento, el trazo se muestra completo. */
@media (prefers-reduced-motion: reduce) {
	.itin { --itin-p: 1; }
	.itin__avance,
	.itin__movil { transition: none; }
	.itin__movil { display: none; }
}

/* ==========================================================================
   Pasada de estilo a la columna de contenido.
   La página tenía todo al mismo peso visual: ahora cada bloque se distingue.
   ========================================================================== */

/* Encabezado de bloque con marca de color */
.tour-block__title {
	position: relative;
	display: block;
	margin: 0 0 20px;
	padding: 0 0 14px;
	font-size: 1.35rem;
	border-bottom: 1px solid var(--tc-line, #e2e8e6);
}

.tour-block__title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -1px;
	width: 58px;
	height: 3px;
	border-radius: 3px;
	background: var(--tc-accent-dark, #9B6E3F);
}

/* Lo mejor de este viaje: tarjeta clara que lo separa del resto */
#destacados .tour-block__body {
	padding: 24px 26px;
	background: var(--tc-soft, #f5f8f7);
	border-radius: 16px;
	border: 1px solid var(--tc-line, #e2e8e6);
}

/* Incluye y no incluye: dos tarjetas, cada una con su color de borde */
#incluye .tour-col {
	padding: 22px 24px;
	background: #fff;
	border: 1px solid var(--tc-line, #e2e8e6);
	border-radius: 16px;
	box-shadow: 0 1px 2px rgba(21, 33, 31, .05);
}

#incluye .tour-col:first-child { border-top: 3px solid var(--tc-primary, #1F3F31); }
#incluye .tour-col:last-child { border-top: 3px solid #b4463a; }

.tour-col__title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 16px;
	font-size: 1rem;
	font-weight: 700;
}

/* Qué llevar: dos columnas para que no sea una lista interminable */
@media (min-width: 680px) {
	#llevar .tc-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
}

/* Horario de salida */
.tour-horario {
	display: inline-flex;
	align-items: center;
	gap: 11px;
	margin: 0;
	padding: 14px 20px;
	font-size: 1.02rem;
	font-weight: 600;
	color: var(--tc-ink, #15211f);
	background: var(--tc-soft, #f5f8f7);
	border-radius: 999px;
	border: 1px solid var(--tc-line, #e2e8e6);
}

.tour-horario svg { width: 20px; height: 20px; color: var(--tc-primary, #1F3F31); }

/* Descripción: un poco más de aire y tipografía más cómoda */
#descripcion .tour-block__body { font-size: 1.03rem; line-height: 1.75; }

/* ---------- Itinerario: título del día con calendario ---------- */
.itin__titulo {
	display: flex;
	align-items: center;
	gap: 9px;
}

.itin__titulo svg {
	width: 19px;
	height: 19px;
	flex: 0 0 auto;
	color: var(--tc-accent-dark, #9B6E3F);
}

.itin__dia {
	padding: 18px 22px;
	background: #fff;
	border: 1px solid var(--tc-line, #e2e8e6);
	border-radius: 14px;
	transition: border-color .25s ease, box-shadow .25s ease;
}

.itin__dia.is-visto {
	border-color: rgba(31, 63, 49, .28);
	box-shadow: 0 2px 14px rgba(21, 33, 31, .07);
}

.itin__punto { top: 16px; }

/* ==========================================================================
   Preguntas frecuentes desplegables
   ========================================================================== */
.faq {
	display: grid;
	gap: 10px;
}

.faq__item {
	background: #fff;
	border: 1px solid var(--tc-line, #e2e8e6);
	border-radius: 14px;
	overflow: hidden;
	transition: border-color .2s ease, box-shadow .2s ease;
}

.faq__item[open] {
	border-color: rgba(31, 63, 49, .3);
	box-shadow: 0 2px 16px rgba(21, 33, 31, .08);
}

.faq__pregunta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 17px 20px;
	font-size: 1rem;
	font-weight: 650;
	line-height: 1.4;
	color: var(--tc-ink, #15211f);
	cursor: pointer;
	list-style: none;
	transition: color .18s ease;
}

.faq__pregunta::-webkit-details-marker { display: none; }
.faq__pregunta:hover { color: var(--tc-primary, #1F3F31); }
.faq__item[open] .faq__pregunta { color: var(--tc-primary, #1F3F31); }

/* Signo de más que gira hasta volverse un menos */
.faq__signo {
	position: relative;
	flex: 0 0 auto;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--tc-soft, #f5f8f7);
	transition: background .2s ease, transform .25s ease;
}

.faq__signo::before,
.faq__signo::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	background: var(--tc-primary, #1F3F31);
	border-radius: 2px;
	transform: translate(-50%, -50%);
	transition: opacity .2s ease;
}

.faq__signo::before { width: 11px; height: 2px; }
.faq__signo::after { width: 2px; height: 11px; }

.faq__item[open] .faq__signo { background: var(--tc-primary, #1F3F31); }
.faq__item[open] .faq__signo::before { background: #fff; }
.faq__item[open] .faq__signo::after { opacity: 0; }

.faq__respuesta {
	padding: 0 20px 18px;
	font-size: .97rem;
	line-height: 1.68;
	color: var(--tc-muted, #5f6f6c);
}

.faq__respuesta p { margin: 0 0 12px; }
.faq__respuesta > :last-child { margin-bottom: 0; }

@media (prefers-reduced-motion: reduce) {
	.faq__item,
	.faq__signo { transition: none; }
}
