/* Benarum Blog Hub · estilos del blog (se cargan solo en blog, categorías y entradas) */
.bnb, .bnb-stay, .bnb-related {
	--bnb-rojo: #B40F1C;
	--bnb-rojo-osc: #8E0B16;
	--bnb-tinta: #1D2326;
	--bnb-tinta-2: #4F5A60;
	--bnb-gris: #7C878C;
	--bnb-cal: #F7F7F4;
	--bnb-cal-2: #EEEEE9;
	--bnb-linea: #DADBD5;
	--bnb-radio: 14px;
	--bnb-sombra: 0 1px 2px rgba(29,35,38,.06), 0 10px 30px rgba(29,35,38,.10);
	color: var(--bnb-tinta);
}
.bnb { max-width: 1200px; margin: 0 auto; padding: 0 16px 64px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.bnb > *, .bnb-section > *, .bnb-hero > * { min-width: 0; }
.bnb *, .bnb-stay *, .bnb-related * { box-sizing: border-box; }
.bnb a, .bnb-stay a, .bnb-related a { text-decoration: none; }
.bnb-eyebrow { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--bnb-rojo); }

/* Cabecera */
.bnb-hero { display: grid; gap: 14px; padding: 56px 0 8px; }
.bnb-hero__title { margin: 0; font-size: clamp(34px, 5vw, 56px); line-height: 1.05; }
.bnb-hero__intro { margin: 0; font-size: 18px; line-height: 1.6; color: var(--bnb-tinta-2); }
.bnb-search { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 6px 6px 6px 14px; background: #fff; border: 1px solid var(--bnb-linea); border-radius: 999px; box-shadow: var(--bnb-sombra); }
.bnb-search svg { width: 20px; height: 20px; color: var(--bnb-gris); flex: none; }
.bnb-search input[type=search] { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 16px; padding: 10px 4px; outline: none; }
.bnb-search button { border: 0; border-radius: 999px; background: var(--bnb-rojo); color: #fff; font-weight: 700; font-size: 15px; padding: 11px 20px; cursor: pointer; }
.bnb-search button:hover { background: var(--bnb-rojo-osc); }
.bnb-search:focus-within { border-color: var(--bnb-rojo); }

/* Temas */
.bnb-topics { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.bnb-topics::-webkit-scrollbar { display: none; }
.bnb-topic { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--bnb-linea); background: #fff; color: var(--bnb-tinta); font-weight: 600; font-size: 15px; white-space: nowrap; transition: border-color .15s, background .15s; }
.bnb-topic span { font-size: 12px; color: var(--bnb-gris); font-variant-numeric: tabular-nums; }
.bnb-topic:hover { border-color: var(--bnb-tinta); }
.bnb-topic.is-active { background: var(--bnb-tinta); border-color: var(--bnb-tinta); color: #fff; }
.bnb-topic.is-active span { color: rgba(255,255,255,.7); }

/* Tarjetas */
.bnb-card { display: grid; grid-template-rows: auto 1fr; background: #fff; border: 1px solid var(--bnb-linea); border-radius: var(--bnb-radio); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.bnb-card:hover { transform: translateY(-3px); box-shadow: var(--bnb-sombra); }
.bnb-card__media { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--bnb-cal-2); }
.bnb-card__img, .bnb-card__noimg { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.bnb-card:hover .bnb-card__img { transform: scale(1.04); }
.bnb-card__body { display: grid; gap: 10px; align-content: start; padding: 18px 20px 20px; }
.bnb-chip { justify-self: start; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--bnb-rojo); background: #F8E6E7; padding: 4px 10px; border-radius: 999px; }
.bnb-card__title { margin: 0; font-size: 21px; line-height: 1.25; text-wrap: balance; }
.bnb-card__title a { color: var(--bnb-tinta); }
.bnb-card__title a:hover { color: var(--bnb-rojo); }
.bnb-card__excerpt { margin: 0; color: var(--bnb-tinta-2); font-size: 15.5px; line-height: 1.55; }
.bnb-card__meta { margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--bnb-gris); }
.bnb-card__meta span { display: inline-flex; align-items: center; gap: 5px; }
.bnb-card__meta svg { width: 14px; height: 14px; }

/* Destacado */
.bnb-card--featured { grid-template-columns: 1.4fr 1fr; grid-template-rows: none; }
.bnb-card--featured .bnb-card__media { aspect-ratio: auto; min-height: 380px; }
.bnb-card--featured .bnb-card__body { padding: 36px; align-content: center; gap: 14px; }
.bnb-card--featured .bnb-card__title { font-size: clamp(26px, 3vw, 36px); }
.bnb-card--featured .bnb-card__excerpt { font-size: 17px; }

/* Rejilla */
.bnb-section { display: grid; gap: 20px; }
.bnb-section__title { margin: 0; font-size: 28px; line-height: 1.2; }
.bnb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

/* Llamada a la acción dentro de la rejilla */
.bnb-cta { display: grid; gap: 12px; align-content: end; padding: 28px; border-radius: var(--bnb-radio); color: #fff; background: linear-gradient(160deg, var(--bnb-rojo) 0%, var(--bnb-rojo-osc) 100%); min-height: 100%; }
.bnb-cta .bnb-eyebrow { color: rgba(255,255,255,.8); }
.bnb-cta__title { margin: 0; font-size: 24px; line-height: 1.2; font-weight: 700; }
.bnb-cta__text { margin: 0; opacity: .9; }
.bnb-cta__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }

/* Botones */
.bnb-btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 20px; border-radius: 10px; font-weight: 700; font-size: 15px; background: var(--bnb-rojo); color: #fff !important; border: 1px solid var(--bnb-rojo); transition: background .15s; }
.bnb-btn:hover { background: var(--bnb-rojo-osc); }
.bnb-btn--light { background: #fff; color: var(--bnb-rojo) !important; border-color: #fff; }
.bnb-btn--light:hover { background: var(--bnb-cal); }
.bnb-btn--ghost { background: transparent; border-color: rgba(255,255,255,.6); }
.bnb-btn--ghost:hover { background: rgba(255,255,255,.12); }
.bnb-btn--outline { background: transparent; color: var(--bnb-tinta) !important; border-color: var(--bnb-linea); }
.bnb-btn--outline:hover { background: var(--bnb-cal-2); }

/* Paginación */
.bnb-pagination ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.bnb-pagination a, .bnb-pagination span { display: inline-flex; min-width: 42px; height: 42px; align-items: center; justify-content: center; padding: 0 14px; border-radius: 10px; border: 1px solid var(--bnb-linea); background: #fff; color: var(--bnb-tinta); font-weight: 600; }
.bnb-pagination .current { background: var(--bnb-tinta); border-color: var(--bnb-tinta); color: #fff; }

/* Síguenos */
.bnb-follow { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: center; padding: 36px; border-radius: 20px; background: var(--bnb-tinta); color: #fff; }
.bnb .bnb-follow__title { margin: 0 0 8px; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.15; color: #fff !important; }
@media (min-width: 1025px) { .bnb .bnb-follow__title { white-space: nowrap; } }
.bnb-follow p { margin: 0; color: rgba(255,255,255,.8); }
.bnb-social { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.bnb-social__link { display: grid; justify-items: center; gap: 8px; padding: 16px 8px; border-radius: 14px; background: rgba(255,255,255,.08); color: #fff !important; font-weight: 600; font-size: 14px; transition: background .15s, transform .15s; }
.bnb-social__link svg { width: 26px; height: 26px; }
.bnb-social__link:hover { transform: translateY(-2px); }
.bnb-social__link--instagram:hover { background: #C13584; }
.bnb-social__link--facebook:hover { background: #1877F2; }
.bnb-social__link--youtube:hover { background: #FF0000; }
.bnb-newsletter { grid-column: 1 / -1; }

/* Al final de cada entrada */
.bnb-stay { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; align-items: center; margin: 48px 0 32px; padding: 28px; border-radius: var(--bnb-radio); background: var(--bnb-cal); border: 1px solid var(--bnb-linea); }
.bnb-stay__title { margin: 6px 0 8px; font-size: 24px; font-weight: 700; line-height: 1.2; }
.bnb-stay p { margin-top: 0; }
.bnb-stay__actions { display: grid; gap: 10px; }
.bnb-stay__phone { margin: 0; font-size: 14px; color: var(--bnb-tinta-2); text-align: center; }
.bnb-related { display: grid; gap: 20px; margin: 0 0 48px; }
.bnb-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Accesibilidad */
.bnb a:focus-visible, .bnb button:focus-visible, .bnb-stay a:focus-visible, .bnb-related a:focus-visible { outline: 3px solid var(--bnb-rojo); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .bnb *, .bnb-related * { transition: none !important; } }

/* Tablet */
@media (max-width: 1024px) {
	.bnb-grid, .bnb-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bnb-card--featured { grid-template-columns: 1fr; }
	.bnb-card--featured .bnb-card__media { min-height: 0; aspect-ratio: 16 / 9; }
	.bnb-follow { grid-template-columns: 1fr; }
}
/* Móvil */
@media (max-width: 640px) {
	.bnb { gap: 28px; }
	.bnb-hero { padding-top: 32px; }
	.bnb-hero__intro { font-size: 16px; }
	.bnb-grid, .bnb-grid--3 { grid-template-columns: 1fr; }
	.bnb-card--featured .bnb-card__body { padding: 22px; }
	.bnb-search button { padding: 11px 14px; }
	.bnb-follow { padding: 26px 20px; }
	.bnb-stay { grid-template-columns: 1fr; padding: 22px; }
}

/* Temas: flechas de desplazamiento (solo se ven si los chips no caben) */
.bnb-topics-wrap { position: relative; min-width: 0; }
.bnb-topics__arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border-radius: 999px; border: 1px solid var(--bnb-linea); background: #fff; color: var(--bnb-tinta); font-size: 18px; line-height: 1; cursor: pointer; box-shadow: var(--bnb-sombra); }
.bnb-topics__arrow[hidden] { display: none; }
.bnb-topics__arrow:hover { border-color: var(--bnb-tinta); }
.bnb-topics__arrow--prev { left: 0; }
.bnb-topics__arrow--next { right: 0; }
.bnb-topics-wrap::before, .bnb-topics-wrap::after { content: ""; position: absolute; top: 0; bottom: 0; width: 64px; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .15s; }
.bnb-topics-wrap::before { left: 0; background: linear-gradient(90deg, #fff 45%, rgba(255,255,255,0)); }
.bnb-topics-wrap::after { right: 0; background: linear-gradient(270deg, #fff 45%, rgba(255,255,255,0)); }
.bnb-topics-wrap.can-prev::before, .bnb-topics-wrap.can-next::after { opacity: 1; }
@media (hover: none) {
	.bnb-topics__arrow { display: none !important; }
	.bnb-topics-wrap.has-overflow .bnb-topics { padding: 0; }
}

/* Títulos sin mayúscula en cada palabra (el tema la aplica por defecto) */
.bnb h1, .bnb h2, .bnb h3, .bnb-related h2, .bnb-related h3 { text-transform: none; }

/* Búsqueda sin resultados */
.bnb-noresults p { margin: 8px 0 0; font-size: 17px; color: var(--bnb-tinta-2); }
.bnb-noresults a { color: var(--bnb-rojo); text-decoration: underline; }

/* ---- Flechas de los temas: círculo, por fuera de la caja; ocultas en móvil ---- */
.bnb .bnb-topics-wrap .bnb-topics__arrow {
	width: 44px !important; height: 44px !important; min-height: 0 !important;
	padding: 0 !important; margin: 0 !important;
	border-radius: 50% !important; border: 1px solid var(--bnb-linea) !important;
	background: #fff !important; color: var(--bnb-tinta) !important;
	font-size: 22px !important; font-weight: 400 !important; line-height: 1 !important;
	box-shadow: 0 4px 14px rgba(20, 22, 26, .12) !important;
	display: inline-flex; align-items: center; justify-content: center;
}
.bnb .bnb-topics-wrap .bnb-topics__arrow:hover { border-color: var(--bnb-tinta) !important; background: var(--bnb-tinta) !important; color: #fff !important; }
.bnb .bnb-topics-wrap .bnb-topics__arrow[hidden] { display: none !important; }
.bnb .bnb-topics-wrap .bnb-topics__arrow--prev { left: -22px; }
.bnb .bnb-topics-wrap .bnb-topics__arrow--next { right: -22px; }
@media (max-width: 767px), (hover: none) {
	.bnb .bnb-topics-wrap .bnb-topics__arrow { display: none !important; }
	.bnb-topics-wrap::before, .bnb-topics-wrap::after { display: none; }
}

/* ---- «Sigue planeando tu escapada» (final de cada entrada): tarjetas más compactas ---- */
.bnb-related .bnb-card__title { font-size: 17px !important; line-height: 1.3 !important; }
.bnb-related .bnb-card__title a { font-size: inherit !important; }
.bnb-related .bnb-card__body { gap: 8px; padding: 14px 16px 16px; }
.bnb-related .bnb-chip { font-size: 10px; letter-spacing: .04em; padding: 3px 8px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bnb-related .bnb-card__excerpt { font-size: 14px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bnb-related .bnb-section__title { font-size: 26px; }

/* ---- Página con el blog: oculta el título de la página del tema («Blog») ---- */
.bnb-has-blog .page-header { display: none; }

/* ---- Tarjeta roja: foto arriba en ordenador y tableta, sin foto en móvil ---- */
.bnb-cta { padding: 0; gap: 0; overflow: hidden; align-content: stretch; grid-template-rows: auto 1fr; }
.bnb-cta__body { display: grid; gap: 12px; align-content: end; padding: 28px; }
.bnb-cta__img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.bnb-cta.has-img .bnb-cta__body { padding: 20px 24px 24px; gap: 10px; }
.bnb-cta.has-img .bnb-cta__title { font-size: 20px; }
@media (max-width: 767px) {
	.bnb-cta__img { display: none; }
	.bnb-cta.has-img .bnb-cta__body { padding: 28px; }
}

/* ---- Páginas de categoría: cabecera con foto ---- */
.bnb-archive { padding-top: 28px; }
.bnb-cathero { position: relative; display: grid; align-content: end; min-height: 340px; border-radius: 20px; overflow: hidden; color: #fff; background: linear-gradient(160deg, var(--bnb-rojo) 0%, var(--bnb-rojo-osc) 100%); }
.bnb-cathero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bnb-cathero.has-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,10,10,.85) 0%, rgba(20,10,10,.55) 45%, rgba(20,10,10,.05) 100%); }
.bnb-cathero__body { position: relative; z-index: 1; display: grid; gap: 12px; max-width: 720px; padding: 40px 44px; }
.bnb-crumbs { margin: 0; font-size: 13px; color: rgba(255,255,255,.85); }
.bnb .bnb-crumbs a { color: #fff !important; text-decoration: underline !important; }
.bnb-cathero .bnb-eyebrow { color: #FFD0D4; }
.bnb .bnb-cathero__title { margin: 0; color: #fff !important; font-size: clamp(32px, 4.4vw, 54px); line-height: 1.05; text-transform: none; }
.bnb-cathero__intro { margin: 0; font-size: 17px; line-height: 1.55; color: rgba(255,255,255,.92); }
.bnb .bnb-topic.is-active, .bnb .bnb-topic.is-active:hover { color: #fff !important; background: var(--bnb-tinta) !important; }
@media (max-width: 640px) {
	.bnb-archive { padding-top: 16px; }
	.bnb-cathero { min-height: 300px; border-radius: 16px; }
	.bnb-cathero__body { padding: 26px 22px; }
	.bnb-cathero.has-img::after { background: linear-gradient(0deg, rgba(20,10,10,.88) 0%, rgba(20,10,10,.55) 60%, rgba(20,10,10,.2) 100%); }
	.bnb-cathero__intro { font-size: 15.5px; }
}
