/* LH Blog — Mallorca Living */
.lhb {
	--lhb-navy: #012c6d;
	--lhb-blue: #0c5284;
	--lhb-orange: #f09400;
	--lhb-ink: #333;
	--lhb-muted: #5f6672;
	--lhb-line: #e3e8ef;
	--lhb-soft: #f3f7fa;
	--lhb-cream: #f7f5f0;
	--lhb-serif: "Lora", Georgia, "Times New Roman", serif;
	--lhb-sans: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
	--lhb-gutter: 16px;
	font-family: var(--lhb-sans);
	color: var(--lhb-ink);
	font-size: 16px;
	line-height: 1.65;
	background: #fff;
}
.lhb *, .lhb *::before, .lhb *::after { box-sizing: border-box; }
.lhb a { color: var(--lhb-navy); }
.lhb img { max-width: 100%; height: auto; display: block; }
.lhb-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--lhb-gutter); }
.lhb .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.lhb-icon { flex: none; vertical-align: -3px; }

/* Etiquetas, metadatos, enlaces */
.lhb-kicker {
	display: inline-block;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--lhb-orange);
	text-decoration: none;
	margin-bottom: 6px;
}
a.lhb-kicker:hover { color: var(--lhb-navy); }
.lhb-meta { font-size: 13px; color: var(--lhb-muted); margin: 0 0 10px; }
.lhb-more {
	display: inline-flex; align-items: center; gap: 6px;
	font-size: 14px; font-weight: 600; color: var(--lhb-navy);
	text-decoration: none; border-bottom: 2px solid var(--lhb-orange); padding-bottom: 2px;
}
.lhb-more:hover { color: var(--lhb-blue); }
.lhb-more .lhb-icon { transition: transform .2s; }
.lhb-more:hover .lhb-icon { transform: translateX(3px); }
.lhb-btn {
	display: inline-flex; align-items: center; gap: 8px;
	background: var(--lhb-navy); color: #fff !important;
	font-size: 14px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
	padding: 13px 22px; border-radius: 3px; text-decoration: none; transition: background .2s;
}
.lhb-btn:hover { background: var(--lhb-blue); }
.lhb-btn--light { background: #fff; color: var(--lhb-navy) !important; }
.lhb-btn--light:hover, .lhb-btn--light:focus-visible { background: var(--lhb-orange); color: #fff !important; }
.lhb-section { margin: 40px 0; }
.lhb-section__title {
	font-family: var(--lhb-sans); font-size: 13px; font-weight: 600;
	letter-spacing: .16em; text-transform: uppercase; color: var(--lhb-navy);
	margin: 0 0 18px;
}

/* Cabecera del listado */
.lhb-hero {
	position: relative;
	background: var(--lhb-navy) var(--lhb-hero) center bottom / cover no-repeat;
	color: #fff;
}
.lhb-hero::before {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(90deg, rgba(1, 26, 64, .82) 0%, rgba(1, 26, 64, .55) 55%, rgba(1, 26, 64, .25) 100%);
}
.lhb-hero__inner { position: relative; padding-top: 48px; padding-bottom: 48px; }
.lhb-hero__kicker {
	display: inline-block; margin: 0 0 18px; padding-bottom: 8px;
	font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
	border-bottom: 3px solid var(--lhb-orange);
}
.lhb-hero__title {
	font-family: var(--lhb-serif); font-weight: 500; color: #fff;
	font-size: clamp(32px, 6vw, 52px); line-height: 1.12; margin: 0 0 14px; max-width: 640px;
}
.lhb-hero__text { font-size: 16px; max-width: 520px; margin: 0 0 24px; color: rgba(255, 255, 255, .92); }
.lhb-search {
	display: flex; align-items: center; max-width: 560px;
	background: #fff; border-radius: 3px; overflow: hidden; color: var(--lhb-muted);
	box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
}
.lhb-search > .lhb-icon { margin-left: 14px; }
.lhb-search input[type="search"] {
	flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
	font: 15px var(--lhb-sans); color: var(--lhb-ink); padding: 14px 12px; margin: 0; border-radius: 0;
}
.lhb-search button {
	border: 0; border-radius: 0; background: var(--lhb-navy); color: #fff;
	width: 52px; align-self: stretch; display: flex; align-items: center; justify-content: center;
	cursor: pointer; padding: 0;
}
.lhb-search button:hover { background: var(--lhb-blue); }
.lhb-search button .lhb-icon { width: 18px; height: 18px; }

/* Pestañas */
.lhb-tabs { border-bottom: 1px solid var(--lhb-line); background: #fff; }
.lhb-tabs ul {
	list-style: none; display: flex; gap: 6px 26px; margin: 0 auto; padding-top: 0; padding-bottom: 0;
	overflow-x: auto; white-space: nowrap; scrollbar-width: none;
}
.lhb-tabs ul::-webkit-scrollbar { display: none; }
.lhb-tabs li { margin: 0; }
.lhb-tabs a {
	display: block; padding: 16px 2px 13px; font-size: 14px; color: var(--lhb-ink);
	text-decoration: none; border-bottom: 3px solid transparent;
}
.lhb-tabs a:hover { color: var(--lhb-navy); }
.lhb-tabs a[aria-current="page"] { color: var(--lhb-navy); font-weight: 600; border-bottom-color: var(--lhb-orange); }

/* Destacado */
.lhb-featured { display: grid; gap: 20px; }
.lhb-featured__img { display: block; border-radius: 4px; overflow: hidden; aspect-ratio: 16 / 10; }
.lhb-featured__img img, .lhb-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.lhb-featured__img:hover img, .lhb-card__img:hover img { transform: scale(1.03); }
.lhb-featured__title {
	font-family: var(--lhb-serif); font-weight: 500; font-size: clamp(24px, 3vw, 32px);
	line-height: 1.2; margin: 0 0 12px;
}
.lhb-featured__title a, .lhb-card__title a { color: var(--lhb-navy); text-decoration: none; }
.lhb-featured__title a:hover, .lhb-card__title a:hover { color: var(--lhb-blue); text-decoration: underline; text-underline-offset: 3px; }
.lhb-featured__excerpt { margin: 0 0 12px; font-size: 15px; }

/* Rejilla de tarjetas */
.lhb-grid { display: grid; gap: 32px 28px; grid-template-columns: 1fr; }
.lhb-card { display: flex; flex-direction: column; }
.lhb-card__img { display: block; border-radius: 4px; overflow: hidden; aspect-ratio: 16 / 9; margin-bottom: 14px; background: var(--lhb-soft); }
.lhb-card__body { display: flex; flex-direction: column; align-items: flex-start; flex: 1; }
.lhb-card__title { font-family: var(--lhb-serif); font-weight: 500; font-size: 20px; line-height: 1.3; margin: 0 0 8px; }
.lhb-card__excerpt {
	font-size: 14px; line-height: 1.6; color: var(--lhb-muted); margin: 0 0 10px;
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.lhb-card .lhb-meta { margin-top: auto; }
.lhb-meta--updated { color: var(--lhb-blue); font-style: italic; }
.lhb-meta + .lhb-meta--updated { margin-top: -8px !important; }
.lhb-empty { padding: 40px 0; text-align: center; color: var(--lhb-muted); }

/* Paginación */
.lhb-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 8px 0 56px; }
.lhb-pagination .page-numbers {
	display: inline-flex; align-items: center; gap: 6px; min-width: 40px; height: 40px;
	justify-content: center; padding: 0 12px; font-size: 14px; color: var(--lhb-navy);
	text-decoration: none; border: 1px solid transparent; border-radius: 3px;
}
.lhb-pagination a.page-numbers:hover { border-color: var(--lhb-line); background: var(--lhb-soft); }
.lhb-pagination .current { font-weight: 600; border-bottom: 2px solid var(--lhb-orange); border-radius: 0; }
.lhb-pagination .prev, .lhb-pagination .next { border-color: var(--lhb-navy); }
.lhb-pagination .dots { min-width: 24px; padding: 0; }

/* Artículo */
.lhb-article__header { padding-top: 20px; }
.lhb-breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 26px; padding: 0; font-size: 12px; color: var(--lhb-muted); }
.lhb-breadcrumbs li { margin: 0; max-width: 100%; }
.lhb-breadcrumbs li + li::before { content: "›"; margin-right: 4px; }
.lhb-breadcrumbs a { color: var(--lhb-muted); text-decoration: none; }
.lhb-breadcrumbs a:hover { color: var(--lhb-navy); text-decoration: underline; }
.lhb-breadcrumbs li[aria-current] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lhb-article__intro { max-width: 820px; }
.lhb-article__intro .lhb-kicker { border-bottom: 3px solid var(--lhb-orange); padding-bottom: 6px; margin-bottom: 16px; }
.lhb-article__title {
	font-family: var(--lhb-serif); font-weight: 500; color: var(--lhb-navy);
	font-size: clamp(30px, 4.6vw, 46px); line-height: 1.15; margin: 0 0 16px;
}
.lhb-article__lead { font-size: 18px; line-height: 1.6; color: #444; margin: 0 0 18px; }
.lhb-article__meta { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0 0 28px; padding: 0; font-size: 13px; color: var(--lhb-muted); }
.lhb-article__meta li { display: flex; align-items: center; gap: 6px; margin: 0; }
.lhb-article__meta .lhb-icon { color: var(--lhb-navy); }
.lhb-article__layout { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); padding-bottom: 48px; }
.lhb-article__image { margin: 0 0 28px; border-radius: 4px; overflow: hidden; }
.lhb-article__image img { width: 100%; }

/* Índice */
.lhb-toc ul { list-style: none; margin: 0; padding: 0; }
.lhb-toc li { margin: 0; padding: 7px 0 7px 14px; position: relative; font-size: 13px; line-height: 1.45; }
.lhb-toc li::before { content: ""; position: absolute; left: 0; top: 14px; width: 5px; height: 5px; border-radius: 50%; background: var(--lhb-orange); }
.lhb-toc a { color: var(--lhb-navy); text-decoration: none; }
.lhb-toc a:hover { text-decoration: underline; text-underline-offset: 3px; }
.lhb-toc--mobile { border: 1px solid var(--lhb-line); border-radius: 4px; padding: 0 16px; margin: 0 0 28px; background: var(--lhb-soft); }
.lhb-toc--mobile summary { cursor: pointer; padding: 14px 0; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--lhb-navy); }
.lhb-toc--mobile ul { padding-bottom: 12px; }
.lhb-article__aside { display: none; }
.lhb-toc__title { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--lhb-navy); margin: 0 0 10px; padding-bottom: 10px; border-bottom: 3px solid var(--lhb-orange); display: inline-block; }

/* Contenido */
.lhb-content { font-size: 16px; line-height: 1.75; }
.lhb-content > * { margin-top: 0; margin-bottom: 1.15em; }
.lhb-content h2 {
	font-family: var(--lhb-serif); font-weight: 500; color: var(--lhb-navy);
	font-size: clamp(24px, 3vw, 30px); line-height: 1.25; margin: 1.8em 0 .6em; scroll-margin-top: 140px;
}
.lhb-content h3 { font-family: var(--lhb-serif); font-weight: 600; color: var(--lhb-navy); font-size: 20px; line-height: 1.35; margin: 1.5em 0 .5em; }
.lhb-content p, .lhb-content li { color: var(--lhb-ink); }
.lhb-content a { color: var(--lhb-blue); text-decoration: underline; text-underline-offset: 3px; }
.lhb-content a:hover { color: var(--lhb-navy); }
.lhb-content strong { color: #222; }
.lhb-content ul, .lhb-content ol { padding-left: 1.3em; }
.lhb-content li { margin-bottom: .4em; }
.lhb-content ul li::marker { color: var(--lhb-orange); }
.lhb-content figure { margin-left: 0; margin-right: 0; }
.lhb-content .wp-block-image img { border-radius: 4px; }
.lhb-content figcaption { font-size: 13px; color: var(--lhb-muted); margin-top: 6px; }
.lhb-content table { width: 100%; border-collapse: collapse; font-size: 15px; border: 1px solid var(--lhb-line); }
.lhb-content th, .lhb-content td { border: 1px solid var(--lhb-line); padding: 11px 14px; text-align: left; vertical-align: top; }
.lhb-content th, .lhb-content tr td:first-child { font-weight: 600; color: var(--lhb-navy); }
.lhb-content thead th { background: var(--lhb-soft); }
.lhb-content .wp-block-table { overflow-x: auto; }
.lhb-content blockquote, .lhb-content .wp-block-quote {
	margin-left: 0; margin-right: 0; padding: 18px 22px; background: var(--lhb-soft);
	border-left: 4px solid var(--lhb-orange); border-radius: 0 4px 4px 0; font-style: normal;
}
.lhb-content blockquote p:last-child { margin-bottom: 0; }

/* Banner de vendedores */
.lhb-seller { display: grid; grid-template-columns: 1fr; margin: 2em 0; background: var(--lhb-soft); border-radius: 4px; overflow: hidden; }
.lhb-seller__img { min-height: 160px; background-size: cover; background-position: center; }
.lhb-seller__body { padding: 22px 24px 26px; }
.lhb-seller__title { font-family: var(--lhb-serif); font-size: 22px; line-height: 1.3; color: var(--lhb-navy); margin: 0 0 8px; }
.lhb-seller__body p { margin: 0 0 16px; font-size: 15px; }
.lhb-content .lhb-seller a.lhb-btn { text-decoration: none; }

/* Recuadro final */
.lhb-cta {
	display: grid; gap: 20px; align-items: center; margin: 40px 0 0; padding: 28px 24px;
	background: var(--lhb-navy); color: #fff; border-radius: 4px;
	background-image: linear-gradient(135deg, var(--lhb-navy) 0%, var(--lhb-blue) 100%);
}
.lhb-cta__title { font-family: var(--lhb-serif); font-size: clamp(22px, 2.6vw, 28px); line-height: 1.25; color: #fff; margin: 0 0 8px; }
.lhb-cta__text p { margin: 0; color: rgba(255, 255, 255, .9); }
.lhb-cta__text p + p { font-size: 15px; }
.lhb-cta__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.lhb-cta__phone { margin: 0; font-size: 14px; color: rgba(255, 255, 255, .85); }
.lhb .lhb-cta__phone a { color: #fff; font-weight: 600; text-decoration: none; white-space: nowrap; }
.lhb .lhb-cta__phone a:hover { text-decoration: underline; }

/* Relacionados */
.lhb-related { background: var(--lhb-cream); padding: 44px 0 52px; }
.lhb-related .lhb-card__img { background: #fff; }

/* Tableta */
@media (min-width: 640px) {
	.lhb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.lhb-seller { grid-template-columns: 2fr 3fr; }
	.lhb-seller__img { min-height: 100%; }
}
@media (min-width: 768px) {
	.lhb { --lhb-gutter: 24px; }
	.lhb-hero__inner { padding-top: 64px; padding-bottom: 64px; }
	.lhb-tabs ul { justify-content: center; }
	.lhb-featured { grid-template-columns: 1.15fr 1fr; gap: 32px; align-items: center; }
	.lhb-cta { grid-template-columns: 1fr auto; padding: 32px 36px; gap: 28px; }
	.lhb-cta__actions { align-items: center; text-align: center; }
	.lhb-article__header { padding-top: 28px; }
}

/* Escritorio */
@media (min-width: 1024px) {
	.lhb-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.lhb-article__layout { grid-template-columns: minmax(0, 1fr) 260px; gap: 48px; }
	.lhb-article__aside { display: block; }
	.lhb-toc--desktop { position: sticky; top: 140px; border: 1px solid var(--lhb-line); border-radius: 4px; padding: 20px 20px 14px; max-height: calc(100vh - 170px); overflow-y: auto; }
	.lhb-toc--mobile { display: none; }
	.lhb-article__main { max-width: 800px; }
}

/* Cabecera del artículo: texto a la izquierda, imagen a la derecha */
.lhb-article__hero { background: #fff; border-bottom: 1px solid var(--lhb-line); margin-bottom: 36px; }
.lhb-article__hero-inner { display: grid; gap: 24px; align-items: center; padding-top: 20px; padding-bottom: 32px; }
.lhb-article__hero .lhb-article__intro { max-width: none; }
.lhb-article__hero-inner > * { min-width: 0; }
.lhb-breadcrumbs ol { min-width: 0; }
.lhb-breadcrumbs li[aria-current] { flex: 1 1 0; min-width: 0; }
.lhb-article__hero .lhb-breadcrumbs ol { margin-bottom: 20px; }
.lhb-article__hero .lhb-article__meta { margin-bottom: 0; }
.lhb-article__hero .lhb-article__image { margin: 0; border-radius: 6px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--lhb-soft); box-shadow: 0 14px 34px rgba(1, 44, 109, .14); }
.lhb-article__hero .lhb-article__image img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 1024px) {
	.lhb-article__hero-inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; padding-top: 32px; padding-bottom: 48px; }
	.lhb-article__hero .lhb-article__title { font-size: clamp(34px, 3.4vw, 46px); }
}

@media (prefers-reduced-motion: reduce) {
	.lhb * { transition: none !important; }
}
