/*
 * Blog LOBE - portada publica (maqueta "Restyling Blog Grupo Lobe", pagina 4).
 * Todo cuelga de .bh-* para no pisar el CSS general de la web. Medidas pensadas para 1920 px de ancho.
 */

:root {
	--bh-rojo: #d41317;
	--bh-verde: #68cfb4;
	--bh-cian: #3ae1e4;
	--bh-azul: #657a9b;
	--bh-texto: #1a1a1a;
	--bh-gris: #595959;
}

.bh-home { background: #fff; padding-top: 150px; font-family: 'Montserrat', sans-serif; color: var(--bh-texto); overflow-x: hidden; }
.bh-home a { color: inherit; }
.bh-home img { max-width: 100%; }
:where(.bh-home) :is(h2, h3) { margin: 0; } /* :where = sin peso, para que los margenes de cada clase manden */
.bh-wrap { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 15px; }

/* ---- enlaces de tarjeta: todo el bloque es clicable, y las categorias siguen siendo enlaces aparte ---- */
.bh-card { position: relative; }
.bh-lnk { text-decoration: none; color: inherit; }
.bh-lnk::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.bh-lnk:hover, .bh-lnk:focus { text-decoration: none; color: inherit; }
.bh-t { font-weight: 600; line-height: 1.22; overflow-wrap: break-word; } /* una palabra larguisima se parte en vez de salirse de la tarjeta */
.bh-resumen { overflow-wrap: break-word; }
.bh-cats { display: inline-block; position: relative; z-index: 2; font-size: 12px; font-weight: 300; line-height: 1.4; }
.bh-cats a { color: var(--bh-rojo); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.bh-cats a:hover { text-decoration-thickness: 2px; }
.bh-meta { display: block; font-size: 13px; font-weight: 700; line-height: 1.3; }
.bh-meta em { font-size: 11px; font-weight: 300; font-style: italic; opacity: .75; margin-left: 4px; }
.bh-sin-imagen { display: block; width: 100%; height: 100%; background: #d9dce2 url('images/blog/logo-blog.svg') center / 38% no-repeat; opacity: .75; }

/* etiqueta de categoria sobre la foto */
.bh-chip { display: inline-block; font-size: 10px; font-weight: 400; letter-spacing: .02em; text-transform: uppercase; color: #fff; line-height: 1;
	padding: 0 8px 5px 0; border-right: 1px solid var(--bh-rojo); border-bottom: 1px solid var(--bh-rojo); margin-bottom: 14px; }

/* ================= EN MEDIOS ================= */
.bh-ticker { background: #efefef; }
.bh-ticker-in { display: flex; align-items: stretch; height: 36px; }
.bh-ticker-label { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; background: var(--bh-gris); color: #fff; font-size: 12px; font-weight: 600; line-height: 1; padding: 0 10px; }
.bh-ticker-label img { width: 28px; height: auto; }
.bh-ticker-main { position: relative; flex: 1 1 auto; min-width: 0; border-bottom: 1px solid #d8d8d8; margin-right: 18px; }
.bh-ticker-item { position: absolute; inset: 0 0 1px 0; display: block; line-height: 35px; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .7s ease, visibility 0s linear .7s; padding: 0 14px; font-size: 11.5px; font-weight: 400; color: #444; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bh-ticker-item.is-active { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .7s ease, visibility 0s; } /* el titular nuevo aparece (0 a 100) mientras el anterior se desvanece */
.bh-ticker-item:hover { color: var(--bh-rojo); text-decoration: none; }
.bh-ticker-bar { position: absolute; left: 0; bottom: -1px; height: 1px; width: 0; background: var(--bh-rojo); }
.bh-ticker.is-running .bh-ticker-bar { animation: bh-barra var(--bh-ticker-ms, 7000ms) linear forwards; }
.bh-ticker.is-paused .bh-ticker-bar { animation-play-state: paused; }
@keyframes bh-barra { from { width: 0; } to { width: 100%; } }
.bh-ticker-nav { flex: 0 0 auto; display: flex; align-items: center; gap: 2px; }
.bh-ticker-nav button { border: 0; background: transparent; padding: 6px 5px; cursor: pointer; line-height: 0; }
.bh-ticker-nav button:focus-visible { outline: 2px solid var(--bh-rojo); }
.bh-ticker-nav img { width: 9px; height: auto; }

/* ================= NOTICIAS DESTACADAS ================= */
.bh-destacadas { background: linear-gradient(#efefef 0, #fff 300px); padding: 30px 0 78px; }
.bh-h2 { font-size: 31px; font-weight: 500; line-height: 1.2; padding: 0 0 20px 8px; color: #000; }
.bh-dest-grid { display: grid; grid-template-columns: 1.18fr 1fr; grid-template-rows: 226px 226px; gap: 16px 28px; }
.bh-dest { border-radius: 22px; overflow: hidden; background: #2c2e3c; color: #fff; }
.bh-dest-1 { grid-row: 1 / span 2; }
.bh-dest-img, .bh-dest-img img, .bh-dest-img .bh-sin-imagen { position: absolute; inset: 0; width: 100%; height: 100%; }
.bh-dest-img img { object-fit: cover; transition: transform .5s ease; }
.bh-dest:hover .bh-dest-img img { transform: scale(1.03); }
.bh-dest::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0,0,0,0) 38%, rgba(0,0,0,.78) 100%); pointer-events: none; }
.bh-dest-txt { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 0 34px 22px; pointer-events: none; }
.bh-dest-txt .bh-lnk { pointer-events: auto; }
.bh-dest-txt .bh-t { font-size: 24px; text-shadow: 0 1px 6px rgba(0,0,0,.35); }
.bh-dest-1 .bh-dest-txt .bh-t { font-size: 26px; margin-bottom: 6px; }
.bh-dest-1 .bh-meta { color: #fff; }
.bh-dest-2 .bh-dest-txt, .bh-dest-3 .bh-dest-txt { padding: 0 34px 20px; }

/* ================= BARRAS DE COLOR ================= */
.bh-bar { height: 74px; color: #fff; }
.bh-bar-in { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.bh-bar-t { display: flex; align-items: center; gap: 12px; font-size: 32px; font-weight: 500; line-height: 1; padding: 0 3px; }
.bh-bar-t img { width: auto; height: 46px; }
.bh-bar-rojo { background: var(--bh-rojo); }
.bh-bar-verde { background: linear-gradient(90deg, var(--bh-verde) 0, #52d7cb 50%, var(--bh-cian) 100%); height: 77px; }

/* ================= LO ULTIMO / LO + LEIDO ================= */
.bh-ultimo { background: #eaeaeb url('images/blog/bg1.webp') right top / cover no-repeat; background-blend-mode: multiply; padding: 92px 0 100px; }
.bh-ultimo-grid { display: grid; grid-template-columns: minmax(0, 843px) minmax(0, 1fr); column-gap: 27px; align-items: start; }
.bh-ultimo-der { border-left: 1px solid #a3a3a3; padding-left: 29px; display: flex; flex-direction: column; gap: 13px; min-height: 962px; }
.bh-ultimo-dos { display: grid; grid-template-columns: 1fr 1fr; column-gap: 22px; }
.bh-ult-img { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: #2c2e3c; }
.bh-ult-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.bh-ult:hover .bh-ult-img img { transform: scale(1.03); }
.bh-ult-img::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 40%; background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.7)); pointer-events: none; }
.bh-ult-img .bh-chip { position: absolute; z-index: 2; left: 34px; bottom: 20px; margin: 0; font-size: 14px; font-weight: 300; padding: 0 12px 5px 0; border-bottom-width: 2px; border-right-width: 2px; }
.bh-ult .bh-t { font-size: 22px; margin: 30px 0 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.44em; }
.bh-resumen { font-size: 17px; font-weight: 400; line-height: 1.18; color: #555; margin: 0 0 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bh-ult .bh-meta { font-size: 14px; }
.bh-ult .bh-meta em { font-size: 12px; }
.bh-ultimo-texto { margin-top: 38px; display: flex; flex-direction: column; gap: 24px; }
.bh-item .bh-t { font-size: 19px; line-height: 1.12; color: #333; margin-bottom: 3px; }
.bh-leido { display: grid; grid-template-columns: 140px minmax(0, 1fr); column-gap: 20px; align-items: start; }
.bh-leido-img { width: 140px; height: 141px; overflow: hidden; background: #2c2e3c; }
.bh-leido-img img { width: 100%; height: 100%; object-fit: cover; }
.bh-leido .bh-t { font-size: 14.5px; line-height: 1.24; padding-top: 2px; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.bh-leido .bh-cats, .bh-tema-peq .bh-cats { font-size: 11.5px; }

/* ================= ULTIMOS VIDEOS ================= */
.bh-videos { position: relative; background: #6b7b9c; color: #fff; padding: 36px 0 76px; margin-bottom: 70px; }
.bh-videos-fondo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.bh-videos-velo { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(93,105,126,.80), rgba(123,138,166,.82)); }
.bh-videos-in { position: relative; z-index: 1; }
.bh-videos-t { display: flex; align-items: center; gap: 20px; font-size: 28px; font-weight: 500; line-height: 1.2; margin-bottom: 64px; }
.bh-videos-t::before, .bh-videos-t::after { content: ''; flex: 1 1 auto; height: 1px; background: rgba(255,255,255,.85); }
.bh-videos-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 48px; padding: 0 24px; }
.bh-play { position: relative; display: block; width: 100%; aspect-ratio: 395 / 222; padding: 0; border: 0; border-radius: 26px; overflow: hidden; background: #3d465a; cursor: pointer; box-shadow: 0 6px 22px rgba(0,0,0,.18); }
.bh-play:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.bh-play-miniatura { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bh-play-icono { position: absolute; left: 50%; top: 50%; width: 30%; max-width: 118px; height: auto; transform: translate(-50%, -50%); transition: transform .25s ease; }
.bh-play:hover .bh-play-icono { transform: translate(-50%, -50%) scale(1.08); }
.bh-video-t { font-size: 15px; font-weight: 600; line-height: 1.22; margin: 14px 0 11px; min-height: 2.44em; }
.bh-video-f { display: block; font-size: 12.5px; font-weight: 400; line-height: 1.3; }
.bh-videos .bh-cats a { color: rgba(255,255,255,.8); }

/* ================= BOTONES ================= */
.bh-btn { display: inline-block; min-width: 184px; padding: 9px 22px 8px; text-align: center; font-size: 18px; font-weight: 300; line-height: 28px; text-transform: uppercase; color: #fff !important; text-decoration: none !important; border-bottom: 4px solid rgba(0,0,0,.14); transition: filter .2s ease; }
.bh-btn:hover { filter: brightness(1.08); }
.bh-btn-azul { position: absolute; left: 50%; bottom: -23px; transform: translateX(-50%); background: var(--bh-azul); }
.bh-btn-verde { background: var(--bh-verde); }
.bh-btn-cian { background: var(--bh-cian); }

/* ================= PASSIVHAUS / INDUSTRIALIZACION ================= */
.bh-temas { background: #fff url('images/blog/bg2.webp') center bottom / 100% auto no-repeat; padding-bottom: 150px; }
.bh-temas-cols { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; padding-top: 70px; }
.bh-tema { min-width: 0; }
.bh-tema-sub { font-size: 28px; font-weight: 500; line-height: 1.18; max-width: 300px; margin: 0 0 22px 17px; }
.bh-tema-izq .bh-tema-sub { color: var(--bh-verde); }
.bh-tema-der .bh-tema-sub { color: var(--bh-cian); margin: 0 17px 22px auto; text-align: right; max-width: 330px; }
.bh-tema-grid { display: grid; grid-template-columns: 290px minmax(0, 1fr); column-gap: 15px; margin-bottom: 18px; }
.bh-tema-grande { height: 412px; background: #2c2e3c; overflow: hidden; color: #fff; }
.bh-tema-grande-img, .bh-tema-grande-img img, .bh-tema-grande-img .bh-sin-imagen { position: absolute; inset: 0; width: 100%; height: 100%; }
.bh-tema-grande-img img { object-fit: cover; }
.bh-tema-grande::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.72) 100%); pointer-events: none; }
.bh-tema-grande-txt { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 0 20px 22px; pointer-events: none; }
.bh-tema-grande-txt .bh-lnk { pointer-events: auto; }
.bh-tema-grande-txt .bh-t { font-size: 17px; line-height: 1.17; margin-bottom: 7px; }
.bh-tema-izq .bh-tema-grande .bh-meta { color: var(--bh-verde); }
.bh-tema-der .bh-tema-grande .bh-meta { color: var(--bh-cian); }
.bh-tema-pequenos { display: flex; flex-direction: column; gap: 12px; }
.bh-tema-peq { display: grid; grid-template-columns: 156px minmax(0, 1fr); column-gap: 15px; align-items: start; }
.bh-tema-peq-img { width: 156px; height: 200px; overflow: hidden; background: #2c2e3c; }
.bh-tema-peq-img img { width: 100%; height: 100%; object-fit: cover; }
.bh-tema-peq .bh-t { font-size: 14.5px; line-height: 1.24; padding-top: 2px; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }

/* ================= SUBIR ================= */
.bh-totop { position: fixed; z-index: 90; right: 28px; bottom: 28px; width: 62px; height: 62px; border-radius: 50%; background: var(--bh-rojo); box-shadow: 0 0 0 5px rgba(212,19,23,.28); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.bh-totop.is-visible { opacity: 1; pointer-events: auto; }
.bh-totop img { width: 28px; height: auto; }

.bh-leido-titulo { display: none; }

/* ================= PANTALLAS MEDIANAS ================= */
@media (max-width: 1399px) {
	.bh-ultimo-grid { grid-template-columns: minmax(0, 1fr) 380px; column-gap: 24px; }
	.bh-ultimo-der { min-height: 0; }
	.bh-leido { grid-template-columns: 110px minmax(0, 1fr); column-gap: 16px; }
	.bh-leido-img { width: 110px; height: 111px; }
	.bh-tema-grid { grid-template-columns: 240px minmax(0, 1fr); }
	.bh-tema-grande { height: 380px; }
	.bh-tema-peq { grid-template-columns: 120px minmax(0, 1fr); }
	.bh-tema-peq-img { width: 120px; height: 184px; }
	.bh-bar-t { font-size: 27px; }
}

/* ================= TABLET ================= */
@media (max-width: 991px) {
	.bh-home { padding-top: 96px; }
	.bh-h2 { font-size: 26px; }
	.bh-dest-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 380px 200px; gap: 16px; }
	.bh-dest-1 { grid-column: 1 / span 2; grid-row: 1; }
	.bh-dest-2 { grid-column: 1; grid-row: 2; }
	.bh-dest-3 { grid-column: 2; grid-row: 2; }
	.bh-dest-txt { padding: 0 22px 18px; }
	.bh-dest-2 .bh-dest-txt, .bh-dest-3 .bh-dest-txt { padding: 0 20px 16px; }
	.bh-dest-txt .bh-t { font-size: 19px; }
	.bh-dest-1 .bh-dest-txt .bh-t { font-size: 23px; }
	.bh-bar, .bh-bar-verde { height: 62px; }
	.bh-bar-t { font-size: 22px; gap: 8px; }
	.bh-bar-t img { height: 36px; }
	.bh-ultimo { padding: 50px 0 60px; }
	.bh-ultimo-grid { grid-template-columns: 1fr; row-gap: 46px; }
	.bh-ultimo-der { border-left: 0; padding-left: 0; border-top: 1px solid #a3a3a3; padding-top: 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 28px; }
	.bh-solo-escritorio { display: none; }
	.bh-leido-titulo { display: flex; align-items: center; gap: 10px; grid-column: 1 / -1; font-size: 22px; font-weight: 500; color: var(--bh-rojo); }
	.bh-leido-titulo img { height: 34px; width: auto; filter: none; }
	.bh-videos { padding: 30px 0 70px; }
	.bh-videos-grid { column-gap: 22px; padding: 0 8px; }
	.bh-temas-cols { grid-template-columns: 1fr; row-gap: 56px; padding-top: 44px; }
	.bh-tema-der .bh-tema-sub { margin: 0 0 22px 17px; text-align: left; }
	.bh-tema-grid { grid-template-columns: 290px minmax(0, 1fr); }
	.bh-tema-peq { grid-template-columns: 156px minmax(0, 1fr); }
	.bh-tema-peq-img { width: 156px; height: 200px; }
	.bh-temas { padding-bottom: 90px; }
}

/* ================= MOVIL ================= */
@media (max-width: 767px) {
	.bh-home { padding-top: 84px; }
	.bh-ticker-in { height: 40px; }
	.bh-ticker-label { font-size: 10px; padding: 0 7px; gap: 4px; }
	.bh-ticker-label img { width: 20px; }
	.bh-ticker-item { font-size: 11px; padding: 0 8px; }
	.bh-destacadas { padding: 22px 0 46px; }
	.bh-dest-grid { grid-template-columns: 1fr; grid-template-rows: 330px 190px 190px; }
	.bh-dest-1, .bh-dest-2, .bh-dest-3 { grid-column: 1; grid-row: auto; }
	.bh-dest-1 .bh-dest-txt .bh-t { font-size: 21px; }
	.bh-ultimo-dos { grid-template-columns: 1fr; row-gap: 34px; }
	.bh-ult .bh-t { margin-top: 20px; min-height: 0; }
	.bh-ultimo-der { grid-template-columns: 1fr; }
	.bh-videos-grid { grid-template-columns: 1fr; row-gap: 34px; padding: 0; }
	.bh-video-t { min-height: 0; }
	.bh-videos-t { font-size: 22px; margin-bottom: 34px; }
	.bh-tema-grid { grid-template-columns: 1fr; row-gap: 14px; }
	.bh-tema-grande { height: 340px; }
	.bh-tema-sub { font-size: 23px; max-width: none; }
	.bh-temas .bh-bar-in { flex-direction: column; justify-content: center; gap: 6px; }
	.bh-temas .bh-bar-verde, .bh-bar-verde { height: auto; padding: 10px 0; }
	.bh-bar-verde .bh-bar-t { font-size: 18px; }
	.bh-bar-verde .bh-bar-t img { height: 28px; }
	.bh-totop { right: 14px; bottom: 14px; width: 52px; height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
	.bh-ticker-item, .bh-ticker-item.is-active { transition: none; }
	.bh-dest-img img, .bh-ult-img img, .bh-play-icono { transition: none; }
}
