/* Un Turista – portada y cajas de afiliación
   Concepto: azulejo de Talavera (cobalto) + albero/azafrán sobre piedra clara. */
.uth, .uth-box {
	--uth-ink: #12213f;
	--uth-cobalt: #1f46a8;
	--uth-cobalt-deep: #142f74;
	--uth-saffron: #e9a23b;
	--uth-stone: #f2f4f6;
	--uth-line: #d9dee8;
	--uth-muted: #5b6579;
	--uth-white: #ffffff;
	--uth-display: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
	--uth-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
	--uth-radius: 14px;
	font-family: var(--uth-body);
	color: var(--uth-ink);
	box-sizing: border-box;
}
.uth *, .uth-box * { box-sizing: border-box; }
.uth a { color: inherit; text-decoration: none; }
.uth h1, .uth h2, .uth h3 { font-family: var(--uth-display); margin: 0; text-wrap: balance; letter-spacing: -0.01em; }

.uth { display: grid; gap: 56px; width: 100%; margin: 0; padding-block: 0 56px; --uth-max: 1280px; --uth-gutter: clamp(16px, 3vw, 32px); }
.uth-page { display: block; width: 100%; clear: both; }
body.uth-fullwidth { overflow-x: clip; }
body.uth-fullwidth .td-main-content-wrap, body.uth-fullwidth .td-container { width: auto; }

.uth-eyebrow {
	display: block; font-size: 11px; font-weight: 600; letter-spacing: .12em;
	text-transform: uppercase; color: var(--uth-cobalt);
}

/* Hero */
.uth-hero {
	position: relative; overflow: hidden;
	background: var(--uth-cobalt-deep) var(--uth-hero, none) center / cover no-repeat;
	color: var(--uth-white);
}
.uth-hero::before {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(100deg, rgba(18,33,63,.92) 0%, rgba(18,33,63,.72) 45%, rgba(18,33,63,.25) 100%);
}
.uth-hero__inner { position: relative; display: grid; gap: 18px; width: 100%; max-width: var(--uth-max); margin: 0 auto; padding: clamp(40px, 7vw, 96px) var(--uth-gutter); }
.uth-hero__kicker a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.uth-hero__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.uth-hero--slim .uth-hero__inner { padding-block: clamp(32px, 5vw, 64px); }
.uth-hero__kicker { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--uth-saffron); }
.uth-hero__title { font-size: clamp(34px, 5.4vw, 64px); font-weight: 800; line-height: 1.02; max-width: 15ch; color: var(--uth-white); }
.uth-hero__sub { margin: 0; font-size: 18px; max-width: 46ch; opacity: .9; }
.uth-hero__feature { display: inline-grid; gap: 4px; margin-top: 8px; font-weight: 600; justify-self: start; border-bottom: 2px solid var(--uth-saffron); padding-bottom: 4px; }
.uth-hero__feature .uth-eyebrow { color: var(--uth-saffron); }

/* Buscador */
.uth-search {
	display: grid; grid-template-columns: 2fr 1fr 1fr .7fr auto; gap: 10px; align-items: end;
	background: var(--uth-white); color: var(--uth-ink); padding: 14px; border-radius: var(--uth-radius);
	box-shadow: 0 18px 40px rgba(8,16,40,.28); max-width: 960px; margin-top: 10px;
}
.uth-search__field { display: grid; gap: 4px; min-width: 0; }
.uth-search label { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--uth-muted); }
.uth-search input, .uth-search select {
	width: 100%; min-width: 0; height: 46px; border: 1px solid var(--uth-line); border-radius: 10px; padding: 0 12px;
	font: 500 16px var(--uth-body); color: var(--uth-ink); background: var(--uth-stone);
}
.uth-search input:focus, .uth-search select:focus { outline: 2px solid var(--uth-cobalt); outline-offset: 1px; background: var(--uth-white); }

.uth-btn {
	display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 22px;
	border-radius: 10px; font: 600 15px var(--uth-body); cursor: pointer; border: 0; white-space: nowrap;
	transition: transform .15s ease, background .15s ease;
}
.uth-btn--primary { background: var(--uth-saffron); color: var(--uth-ink) !important; }
.uth-btn--primary:hover { background: #f2b65a; transform: translateY(-1px); }
.uth-btn--ghost { background: transparent; color: var(--uth-cobalt) !important; box-shadow: inset 0 0 0 2px var(--uth-cobalt); }
.uth-btn--ghost:hover { background: var(--uth-cobalt); color: var(--uth-white) !important; }
.uth-btn:focus-visible, .uth a:focus-visible { outline: 2px solid var(--uth-saffron); outline-offset: 3px; }

/* Secciones */
.uth-section { display: grid; gap: 22px; width: 100%; max-width: var(--uth-max); margin-inline: auto; padding-inline: var(--uth-gutter); }
.uth-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; border-bottom: 2px solid var(--uth-ink); padding-bottom: 10px; }
.uth-head h2 { font-size: 30px; font-weight: 800; }
.uth-head p { margin: 0; color: var(--uth-muted); }

/* Destinos */
.uth-dests { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.uth-dest {
	position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 220px;
	border-radius: var(--uth-radius); overflow: hidden; color: var(--uth-white); padding: 16px;
	background: var(--uth-cobalt) var(--uth-img, none) center / cover no-repeat;
}
.uth-dest::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,33,63,.78) 0%, rgba(18,33,63,.2) 38%, rgba(18,33,63,.2) 60%, rgba(18,33,63,.88) 100%); transition: opacity .2s ease; }
.uth-dest > * { position: relative; }
.uth-dest__cover { position: absolute !important; inset: 0; z-index: 0; }
.uth-dest__top, .uth-dest__actions { z-index: 1; pointer-events: none; }
.uth-dest__actions a { pointer-events: auto; }
.uth-dest:hover::before { opacity: .85; }
.uth-dest .uth-eyebrow { color: #ffd48a; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.uth-dest h3 { font-size: 26px; font-weight: 800; color: var(--uth-white); }
.uth-dest__actions { display: flex; gap: 6px; flex-wrap: wrap; }
.uth-dest__actions a {
	font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 99px;
	background: rgba(255,255,255,.16); backdrop-filter: blur(4px); color: var(--uth-white);
}
.uth-dest__actions a:hover { background: var(--uth-saffron); color: var(--uth-ink); }

/* Tarjetas */
.uth-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 22px; }
.uth-card__link { display: grid; gap: 12px; }
.uth-card__img { display: block; aspect-ratio: 16 / 10; border-radius: var(--uth-radius); background: var(--uth-stone) center / cover no-repeat; transition: transform .25s ease; }
.uth-card__link:hover .uth-card__img { transform: scale(1.02); }
.uth-card__body { display: grid; gap: 6px; }
.uth-card__title { font: 700 20px/1.2 var(--uth-display); }
.uth-card__link:hover .uth-card__title { color: var(--uth-cobalt); }
.uth-card__excerpt { color: var(--uth-muted); font-size: 15px; line-height: 1.5; }

/* Prepara el viaje */
.uth-planner { background: var(--uth-stone); border-radius: var(--uth-radius); padding: 32px var(--uth-gutter); width: calc(100% - 2 * var(--uth-gutter)); }
.uth-tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.uth-tool { display: grid; gap: 6px; padding: 18px; background: var(--uth-white); border-radius: 12px; border: 1px solid var(--uth-line); transition: border-color .15s ease; }
.uth-tool:hover { border-color: var(--uth-cobalt); }
.uth-tool__name { font: 700 18px var(--uth-display); }
.uth-tool__name::after { content: " →"; color: var(--uth-cobalt); }
.uth-tool__desc { color: var(--uth-muted); font-size: 14px; }

/* Listas */
.uth-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; width: 100%; max-width: var(--uth-max); margin-inline: auto; padding-inline: var(--uth-gutter); }
.uth-split .uth-section { padding-inline: 0; }
.uth-list { display: grid; gap: 14px; }
.uth-row__link { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: center; }
.uth-row__img { display: block; aspect-ratio: 1; border-radius: 10px; background: var(--uth-stone) center / cover no-repeat; }
.uth-row__body { display: grid; gap: 4px; }
.uth-row__title { font: 600 17px/1.25 var(--uth-display); }
.uth-row__link:hover .uth-row__title { color: var(--uth-cobalt); }

.uth-disclosure { width: 100%; max-width: var(--uth-max); margin: 0 auto; padding-inline: var(--uth-gutter); font-size: 13px; color: var(--uth-muted); }

/* Botones extra */
.uth-btn--light { background: rgba(255,255,255,.14); color: var(--uth-white) !important; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.6); }
.uth-btn--light:hover { background: var(--uth-white); color: var(--uth-ink) !important; }
.uth-btn--block { width: 100%; }

/* Página de destino */
.uth-destpage { gap: 40px; }
.uth-hero--dest .uth-hero__title { font-size: clamp(44px, 8vw, 96px); max-width: none; }
.uth-hero--dest .uth-hero__sub { max-width: 60ch; }
.uth-facts {
	display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0;
	width: calc(100% - 2 * var(--uth-gutter)); max-width: calc(var(--uth-max) - 2 * var(--uth-gutter)); margin: -64px auto 0;
	position: relative; background: var(--uth-white); border-radius: var(--uth-radius);
	box-shadow: 0 14px 36px rgba(8,16,40,.14); overflow: hidden;
}
.uth-fact { padding: 18px 20px; border-right: 1px solid var(--uth-line); display: grid; gap: 4px; align-content: start; }
.uth-fact:last-child { border-right: 0; }
.uth-fact dt { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--uth-cobalt); }
.uth-fact dd { margin: 0; font-weight: 600; line-height: 1.35; }

.uth-guide-layout {
	display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start;
	width: 100%; max-width: var(--uth-max); margin-inline: auto; padding-inline: var(--uth-gutter);
}
.uth-guide { font-size: 18px; line-height: 1.7; max-width: 72ch; }
.uth-guide h2 { font-size: 30px; font-weight: 800; margin: 40px 0 12px; padding-top: 22px; border-top: 2px solid var(--uth-ink); }
.uth-guide h2:first-child { margin-top: 0; }
.uth-guide p { margin: 0 0 16px; }
.uth-guide strong { color: var(--uth-ink); }
.uth-zones { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 8px 0 20px; }
.uth-zone { display: grid; gap: 8px; align-content: start; padding: 18px; background: var(--uth-stone); border-radius: 12px; font-size: 15px; line-height: 1.5; }
.uth-zone h3 { font-size: 19px; font-weight: 700; }
.uth-zone p { margin: 0; color: var(--uth-muted); }
.uth-zone__link { font-weight: 600; color: var(--uth-cobalt) !important; text-decoration: none !important; }
.uth-zone__link:hover { text-decoration: underline !important; }
.uth-guide-aside { position: sticky; top: 90px; }
.uth-aside-card { min-width: 0; display: grid; gap: 12px; padding: 20px; border: 1px solid var(--uth-line); border-radius: var(--uth-radius); background: var(--uth-white); }
.uth-aside-card__title { margin: 0; font: 800 20px var(--uth-display); }
.uth-search--compact { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); box-shadow: none; padding: 0; margin: 0; max-width: none; }
.uth-search--compact .uth-search__field--dest, .uth-search--compact .uth-btn, .uth-search--compact .uth-search__field--small { grid-column: 1 / -1; }

.uth-head__more { margin-left: auto; font-weight: 600; color: var(--uth-cobalt) !important; }
.uth-faqs { display: grid; gap: 8px; }
.uth-faqs h3 { font-size: 19px; font-weight: 700; margin: 14px 0 2px; }
.uth-faq { border: 1px solid var(--uth-line); border-radius: 12px; background: var(--uth-white); }
.uth-faq summary { cursor: pointer; padding: 14px 18px; font: 700 17px/1.35 var(--uth-display); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.uth-faq summary::-webkit-details-marker { display: none; }
.uth-faq summary::after { content: "+"; color: var(--uth-cobalt); font-size: 22px; line-height: 1; }
.uth-faq[open] summary::after { content: "−"; }
.uth-faq p { margin: 0; padding: 0 18px 16px; font-size: 16px; color: var(--uth-muted); }
.uth-hero__pre { display: block; font-size: .3em; font-weight: 600; letter-spacing: .01em; color: var(--uth-saffron); margin-bottom: .1em; }
.uth-guide ul { margin: 0 0 16px; padding-left: 1.2em; }

.uth-hero__credit { position: absolute; right: var(--uth-gutter); bottom: 76px; z-index: 1; margin: 0; font-size: 11px; color: rgba(255,255,255,.75); }
.uth-hero__credit a { color: inherit; text-decoration: underline; }
.uth-credit { font-size: 12px; color: #6b7280; margin-top: 24px; }
.uth-credit a { color: inherit; }

/* Caja de afiliación en artículos */
.uth-box {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
	margin: 28px 0; padding: 20px 22px; border-radius: var(--uth-radius);
	background: var(--uth-stone); border: 1px solid var(--uth-line);
}
.uth-box__text { display: grid; gap: 4px; min-width: 0; }
.uth-box p { margin: 0; }
.uth-box__title { font: 800 22px/1.15 var(--uth-display); color: var(--uth-ink); }
.uth-box__sub { color: var(--uth-muted); font-size: 15px; }
.uth-box__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.uth-box a { text-decoration: none !important; }

@media (max-width: 1000px) {
	.uth-guide-layout { grid-template-columns: minmax(0, 1fr); }
	.uth-guide-aside { position: static; }
	.uth-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.uth-fact:nth-child(2) { border-right: 0; }
	.uth-fact:nth-child(-n+2) { border-bottom: 1px solid var(--uth-line); }
}
@media (max-width: 900px) {
	.uth-search { grid-template-columns: 1fr 1fr; }
	.uth-search__field--dest, .uth-search .uth-btn { grid-column: 1 / -1; }
	.uth-dests { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.uth-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.uth-split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
	.uth { gap: 40px; }
	.uth-grid { grid-template-columns: minmax(0, 1fr); }
	.uth-dest { min-height: 170px; }
	.uth-dest h3 { font-size: 21px; }
	.uth-head h2 { font-size: 24px; }
	.uth-facts { grid-template-columns: minmax(0, 1fr); margin-top: -40px; }
	.uth-fact { border-right: 0; border-bottom: 1px solid var(--uth-line); }
	.uth-guide { font-size: 17px; }
	.uth-hero__credit { bottom: 50px; left: var(--uth-gutter); }
}
@media (prefers-reduced-motion: reduce) {
	.uth *, .uth-box * { transition: none !important; }
}

.uth-search--compact input[type="date"] { padding: 0 8px; font-size: 14px; }


/* ---------- Blindaje frente a estilos del tema (Newspaper) ---------- */
.uth h1, .uth h2, .uth h3, .uth-box p { text-transform: none; font-style: normal; }
.uth h1, .uth h2, .uth h3 { line-height: 1.15 !important; color: inherit; }
.uth .uth-guide h2, .uth .uth-head h2 { color: var(--uth-ink); margin-bottom: 12px; }
.uth .uth-head h2 { margin: 0; }
.uth p { font-family: var(--uth-body); }
.uth input, .uth select, .uth button { font-family: var(--uth-body) !important; box-sizing: border-box; margin: 0; line-height: normal; }
.uth img { max-width: 100%; height: auto; }

/* ---------- Barra fija de reserva (solo móvil, en guías) ---------- */
.uth-mbar { display: none; }

@media (max-width: 760px) {
	.uth { gap: 36px; }
	.uth-hero__inner { padding-block: 28px 32px; gap: 14px; }
	.uth-hero__sub { font-size: 16px; }
	.uth-hero__ctas .uth-btn { flex: 1 1 auto; }

	/* Destinos: botones más pequeños para que quepan en una línea */
	.uth-dests { gap: 10px; }
	.uth-dest { min-height: 150px; padding: 12px; border-radius: 12px; }
	.uth-dest h3 { font-size: 20px; }
	.uth-dest .uth-eyebrow { font-size: 10px; letter-spacing: .08em; }
	.uth-dest__actions { gap: 4px; }
	.uth-dest__actions a { font-size: 11.5px; padding: 6px 9px; }

	/* Últimas guías y relacionados: en fila con miniatura, menos scroll */
	.uth-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.uth-card__link { grid-template-columns: 112px minmax(0, 1fr); gap: 12px; align-items: start; }
	.uth-card__img { aspect-ratio: 1; border-radius: 10px; }
	.uth-card__title { font-size: 17px; }
	.uth-card__excerpt { display: none; }

	/* Datos rápidos en 2×2 */
	.uth-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: -32px; }
	.uth-fact { padding: 12px 14px; border-right: 1px solid var(--uth-line); border-bottom: 1px solid var(--uth-line); }
	.uth-fact:nth-child(2n) { border-right: 0; }
	.uth-fact:nth-last-child(-n+2) { border-bottom: 0; }
	.uth-fact dd { font-size: 14px; }

	.uth-guide { font-size: 17px; }
	.uth-guide h2 { font-size: 25px; margin-top: 32px; }
	.uth-zones { grid-template-columns: minmax(0, 1fr); }
	.uth-planner { padding: 22px 16px; }
	.uth-tools { grid-template-columns: minmax(0, 1fr); }
	.uth-hero__credit { position: static; padding: 0 var(--uth-gutter) 40px; max-width: var(--uth-max); }

	/* Barra fija abajo con el botón de hoteles */
	.uth-destpage { padding-bottom: 96px; }
	.uth-mbar {
		display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990;
		padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
		background: var(--uth-white); box-shadow: 0 -6px 20px rgba(8,16,40,.12);
	}
	.uth-mbar .uth-btn { flex: 1 1 auto; height: 48px; }
	.uth-mbar .uth-btn--ghost { flex: 0 0 auto; }
}


/* ---------- Alturas de línea a prueba del tema ---------- */
.uth, .uth p, .uth span, .uth a, .uth li, .uth dd, .uth dt, .uth label, .uth summary { line-height: 1.5 !important; }
.uth .uth-guide p, .uth .uth-guide li { line-height: 1.7 !important; }
.uth .uth-hero__title { line-height: 1.02 !important; }
.uth .uth-hero__pre { line-height: 1.2 !important; }
.uth .uth-card__title, .uth .uth-row__title, .uth .uth-tool__name, .uth .uth-box__title, .uth .uth-aside-card__title, .uth .uth-faq summary { line-height: 1.25 !important; }
.uth .uth-eyebrow, .uth .uth-hero__kicker { line-height: 1.3 !important; }
.uth .uth-btn { line-height: 1.2 !important; }
.uth h1, .uth h2, .uth h3, .uth p, .uth dl, .uth dd { position: static; float: none; height: auto; }
.uth-box, .uth-box p, .uth-box span, .uth-box a { line-height: 1.4 !important; }

/* En móvil la tarjeta entera ya lleva a la guía: se oculta el botón "Guía" para que quepan Hoteles y Tours */
@media (max-width: 760px) {
	.uth-dest__actions { flex-wrap: nowrap; }
	.uth-dest__actions a:first-child { display: none; }
}
