/* ==========================================================================
   Barramedia — diario digital
   Corporativo: azul #20A6DE · naranja #FE9119
   ========================================================================== */
@import url('/assets/fonts/fonts.css');

:root {
    --azul: #20A6DE;
    --azul-texto: #0d7fb3;
    --azul-hondo: #0c5478;
    --noche: #0d1c26;
    --naranja: #FE9119;
    --tinta: #111111;
    --gris: #63696f;
    --gris-claro: #9aa1a7;
    --linea: #e6e9eb;
    --fondo-suave: #f5f7f8;
    --ui: 'Inter', Roboto, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --serif: 'Source Serif 4', Georgia, "Times New Roman", serif;
    --ancho: 1200px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--ui); color: var(--tinta); background: #fff; line-height: 1.5; font-size: 15px; }
/* El pie no puede dejar una franja blanca debajo en páginas cortas.
   Se hace con min-height y NO poniendo el body en flex: eso rompe el
   position:sticky de la cabecera (ya pasó una vez). */
.bm-main { min-height: calc(100vh - 430px); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--tinta); text-decoration: none; }

.bm-container { max-width: var(--ancho); margin: 0 auto; padding: 0 16px; }

/* ==========================================================================
   BARRA SUPERIOR
   ========================================================================== */
.bm-topbar { background: var(--azul); color: rgba(255,255,255,.85); font-size: 12px; }
.bm-topbar__row { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 16px; }
.bm-topbar__izq { display: flex; align-items: center; gap: 16px; }
.bm-topbar__date { color: #fff; font-weight: 600; letter-spacing: .2px; }
.bm-topbar__tiempo { display: inline-flex; align-items: center; gap: 6px; color: #fff; padding-left: 16px; border-left: 1px solid rgba(255,255,255,.35); }
.bm-topbar__icono { font-size: 14px; line-height: 1; }
.bm-topbar__tiempo strong { font-weight: 700; font-size: 12.5px; }
.bm-topbar__tiempo em { font-style: normal; color: rgba(255,255,255,.78); font-size: 11.5px; }
.bm-topbar__right { display: flex; align-items: center; gap: 22px; }
.bm-topbar__wa { display: inline-flex; align-items: center; gap: 7px; color: #fff; background: #23b33a; font-weight: 700; font-size: 11.5px; padding: 5px 12px; border-radius: 20px; }
.bm-topbar__wa svg { width: 14px; height: 14px; }
.bm-topbar__wa:hover { background: #fff; color: #128c25; }
.bm-social { display: flex; gap: 15px; align-items: center; }
.bm-social a { color: #90a5b3; line-height: 0; transition: color .15s; }
.bm-topbar .bm-social a { color: rgba(255,255,255,.88); }
.bm-topbar .bm-social a:hover { color: var(--naranja); }
.bm-social a:hover { color: var(--naranja); }
.bm-social svg { width: 16px; height: 16px; fill: currentColor; display: block; }
.bm-social svg[stroke] { fill: none; }

/* ==========================================================================
   CABECERA: logo limpio, sin publicidad apretada
   ========================================================================== */
.bm-masthead { background: #fff; }
.bm-masthead__row { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 18px 16px 16px; }
.bm-logo { line-height: 0; flex-shrink: 0; }
.bm-logo img { height: 62px; width: auto; }
.bm-masthead__claim { margin: 0; text-align: right; font-size: 14px; font-weight: 700; color: var(--tinta); line-height: 1.35; letter-spacing: -.2px; }
.bm-masthead__claim span { color: var(--azul); font-weight: 600; }

/* ==========================================================================
   MENÚ: legible, con hueco de sobra
   ========================================================================== */
.bm-nav { background: #fff; border-bottom: 1px solid var(--linea); position: sticky; top: 0; z-index: 60;
    transition: background-color .35s ease, border-color .35s ease, box-shadow .35s ease; }
.bm-nav.is-scrolled { background-color: var(--azul); border-bottom-color: transparent; box-shadow: 0 2px 14px rgba(13,28,38,.2); }
/* El cambio de logotipo se funde en vez de saltar */
.bm-nav__logo { position: relative; }
.bm-nav__logo img { transition: opacity .35s ease; }
.bm-nav__logo--blanco { position: absolute; top: 50%; left: 0; transform: translateY(-50%); }
.bm-nav__inner { display: flex; align-items: stretch; }
/* Logo compacto: solo cuando la página ha bajado, para no duplicar la cabecera */
.bm-nav__logo { display: flex; align-items: center; flex-shrink: 0; line-height: 0; padding-right: 18px; }
.bm-nav__logo img { height: 36px; width: auto; }
.bm-nav__logo--blanco { opacity: 0; }
.bm-nav.is-scrolled .bm-nav__logo--color { opacity: 0; }
.bm-nav.is-scrolled .bm-nav__logo--blanco { opacity: 1; }
.bm-nav__list { display: flex; align-items: stretch; flex: 1 1 auto; min-width: 0; overflow-x: auto; overflow-y: visible; scrollbar-width: none; }
.bm-nav__list::-webkit-scrollbar { display: none; }
.bm-nav__item { display: flex; align-items: center; color: var(--tinta); padding: 0 13px; font-weight: 700; font-size: 13.5px; white-space: nowrap; text-transform: uppercase; letter-spacing: .4px; min-height: 58px; position: relative; transition: color .35s ease; }
.bm-nav__item::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 0; height: 4px; background: transparent; transition: background .15s; }
.bm-nav__item:hover { color: var(--azul-texto); }
.bm-nav__item:hover::after { background: var(--azul); }
.bm-nav__item.is-active { color: var(--azul-texto); }
.bm-nav__item.is-active::after { background: var(--naranja); }
/* Sobre azul, todo en blanco */
.bm-nav.is-scrolled .bm-nav__item { color: #fff; }
.bm-nav.is-scrolled .bm-nav__item:hover { color: #fff; }
.bm-nav.is-scrolled .bm-nav__item:hover::after { background: rgba(255,255,255,.6); }
.bm-nav.is-scrolled .bm-nav__item.is-active { color: #fff; }
.bm-nav__item--carta::before { content: "●"; }
.bm-nav__item--carta::before { content: "●"; color: var(--naranja); font-size: 8px; margin-right: 7px; }
/* Desplegable "Más" */
.bm-nav__mas { position: relative; display: flex; }
.bm-nav__masbtn { background: none; border: 0; cursor: pointer; font-family: var(--ui); gap: 6px; }
.bm-nav__masbtn svg { width: 12px; height: 12px; }
.bm-nav__menu { display: none; position: absolute; top: 100%; right: 0; min-width: 210px; background: #fff; box-shadow: 0 10px 30px rgba(13,28,38,.22); border-top: 3px solid var(--naranja); z-index: 70; padding: 6px 0; }
.bm-nav__mas:hover .bm-nav__menu, .bm-nav__mas:focus-within .bm-nav__menu { display: block; }
.bm-nav__menu a { display: block; padding: 10px 18px; font-size: 14px; font-weight: 700; color: var(--tinta); }
.bm-nav__menu a:hover { background: var(--fondo-suave); color: var(--azul-texto); }

.bm-nav__search { flex-shrink: 0; background: var(--azul); border: 0; color: #fff; transition: background-color .35s ease; cursor: pointer; padding: 0 18px; display: flex; align-items: center; gap: 8px; font-family: var(--ui); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .4px; }
.bm-nav__search svg { width: 17px; height: 17px; }
.bm-nav__search:hover { background: var(--naranja); }
.bm-nav.is-scrolled .bm-nav__search { background: rgba(0,0,0,.16); }
.bm-nav.is-scrolled .bm-nav__search:hover { background: var(--naranja); }

/* Buscador desplegable */
.bm-buscador { background: var(--noche); padding: 16px 0; }
.bm-buscador__form { display: flex; gap: 10px; align-items: center; }
.bm-buscador__form input { flex: 1; border: 0; padding: 14px 18px; font-size: 17px; font-family: var(--ui); outline: none; border-radius: 4px; }
.bm-buscador__form button[type="submit"] { background: var(--naranja); color: #fff; border: 0; padding: 14px 26px; font-weight: 700; font-size: 15px; cursor: pointer; border-radius: 4px; font-family: var(--ui); }
.bm-buscador__form button[type="submit"]:hover { background: #e07f0c; }
.bm-buscador__form button[type="button"] { background: none; border: 0; color: #90a5b3; font-size: 28px; cursor: pointer; padding: 0 10px; line-height: 1; }
.bm-buscador__form button[type="button"]:hover { color: #fff; }

/* Zona de publicidad de cabecera */
.bm-adzone { padding-top: 20px; }
.bm-adzone .bm-ad { margin: 0 auto; }
.bm-adzone .bm-ad img { max-height: 120px; width: auto; }

/* ==========================================================================
   COMUNES
   ========================================================================== */
.bm-player { background: var(--noche); padding: 16px; }
.bm-player__inner { max-width: 840px; margin: 0 auto; }
.bm-player__frame { position: relative; padding-top: 56.25%; overflow: hidden; }
.bm-player__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.bm-main { padding: 14px 16px 44px; }

/* Chip de categoría */
/* Etiqueta con fondo: solo sobre fotografía, donde hace falta contraste */
.bm-chip { display: inline-block; background: var(--naranja); color: #fff; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .7px; padding: 3px 8px; line-height: 1.5; }
a.bm-chip:hover { background: var(--azul); color: #fff; }

/* Categoría en las piezas de listado: texto a secas */
.bm-kicker { display: inline-block; color: var(--naranja); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; line-height: 1.4; }
a.bm-kicker:hover { color: var(--azul-texto); }

/* ==========================================================================
   PIEZA "COVER": titular sobre imagen (crece con el texto, no lo recorta)
   ========================================================================== */
.bm-cover { position: relative; display: flex; flex-direction: column; justify-content: flex-end;
    overflow: hidden; background: var(--noche); min-height: 240px; }
.bm-cover__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease, filter .3s ease; }
.bm-cover::after { content: ""; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.96) 0%, rgba(0,0,0,.86) 25%, rgba(0,0,0,.45) 58%, rgba(0,0,0,.08) 100%); }
.bm-cover__body { position: relative; z-index: 2; padding: 18px 20px 20px; }
.bm-cover__title { color: #fff; font-weight: 800; line-height: 1.19; font-size: 18px; margin: 9px 0 0; text-shadow: 0 1px 4px rgba(0,0,0,.45); }
.bm-cover:hover .bm-cover__img { transform: scale(1.04); filter: brightness(.72); }
.bm-cover__excerpt { color: rgba(255,255,255,.88); font-size: 14.5px; margin: 9px 0 0; line-height: 1.5; }
.bm-cover__meta { color: rgba(255,255,255,.7); font-size: 11.5px; margin-top: 9px; }

/* ==========================================================================
   PIEZA ESTÁNDAR
   ========================================================================== */
.bm-item { display: block; }
.bm-item__imgwrap { display: block; overflow: hidden; background: var(--fondo-suave); margin-bottom: 8px; }
.bm-item__img--vacia { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--azul) 0%, var(--azul-hondo) 100%); }
.bm-item__img--vacia::after { content: "barramedia"; color: rgba(255,255,255,.5); font-weight: 800; font-size: 15px; letter-spacing: -.3px; }
.bm-item__img { width: 100%; aspect-ratio: 16/10; object-fit: cover; transition: transform .35s ease, filter .3s ease; }
.bm-item:hover .bm-item__img { transform: scale(1.04); filter: brightness(.72); }
.bm-item:hover .bm-item__title { color: var(--azul-texto); }
.bm-item__title { margin: 4px 0 0; font-weight: 800; line-height: 1.24; font-size: 16.5px; letter-spacing: -.2px; }

.bm-item__excerpt { color: var(--gris); font-size: 13.5px; margin: 6px 0 0; line-height: 1.5; }
/* Las piezas de una misma fila se estiran para acabar alineadas */
.bm-grid > .bm-item, .bm-franja > .bm-item { display: flex; flex-direction: column; }
.bm-grid > .bm-item .bm-item__body, .bm-franja > .bm-item .bm-item__body { display: flex; flex-direction: column; flex: 1; }
.bm-grid > .bm-item .bm-item__meta, .bm-franja > .bm-item .bm-item__meta { margin-top: auto; padding-top: 6px; }
.bm-item--destacada .bm-item__excerpt { font-size: 15px; }
.bm-item--mini .bm-item__excerpt { display: none; }
.bm-item__meta { color: var(--gris-claro); font-size: 11.5px; margin-top: 5px; }

/* Variante horizontal: imagen a un lado */
.bm-item--h { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: center; }
.bm-item--h .bm-item__imgwrap { margin: 0; }
.bm-item--h .bm-item__img { aspect-ratio: 4/3; }
.bm-item--h .bm-item__title { font-size: 19px; }

/* Variante lista: miniatura pequeña */
.bm-item--mini { display: grid; grid-template-columns: 92px 1fr; gap: 12px; align-items: start; }
.bm-item--mini .bm-item__imgwrap { margin: 0; }
.bm-item--mini .bm-item__img { aspect-ratio: 1/1; }
.bm-item--mini .bm-item__title { font-size: 14px; margin: 0; }
.bm-item--mini .bm-item__meta { margin-top: 4px; }

/* Variante solo texto con filete */
.bm-item--texto { border-top: 3px solid var(--tinta); padding-top: 10px; }
.bm-item--texto .bm-item__title { font-size: 16px; margin-top: 6px; }

/* ==========================================================================
   PORTADA
   ========================================================================== */
/* Apertura: cover grande + dos apilados */
.bm-apertura { display: grid; grid-template-columns: 2.1fr 1fr; gap: 12px; padding-bottom: 20px; border-bottom: 3px solid var(--tinta); align-items: stretch; }
.bm-apertura__lado { display: grid; grid-template-rows: repeat(3, 1fr); gap: 12px; }
/* La apertura tiene el mayor protagonismo de la página */
.bm-cover--grande { min-height: 520px; }
.bm-cover--grande .bm-cover__title { font-size: clamp(25px, 2.7vw, 34px); line-height: 1.14; letter-spacing: -.5px; }
.bm-cover--grande .bm-cover__body { padding: 30px 32px 32px; }
.bm-apertura .bm-cover__excerpt, .bm-apertura .bm-cover__meta { display: none; }
.bm-apertura__lado .bm-cover { min-height: 0; }
.bm-apertura__lado .bm-cover__title { font-size: 16.5px; }
.bm-apertura__lado .bm-cover__body { padding: 14px 16px 15px; }
.bm-apertura__lado .bm-cover__meta { margin-top: 6px; }
.bm-apertura__lado .bm-cover__excerpt { display: none; }

/* Franja de tres */
.bm-franja { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 20px; padding: 18px 0; border-bottom: 1px solid var(--linea); }

/* Cabecera de sección */
.bm-sectiontitle { display: flex; align-items: center; gap: 12px; margin: 24px 0 14px; }
.bm-sectiontitle span, .bm-sectiontitle > a { background: var(--azul); color: #fff; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .7px; padding: 7px 14px; }
.bm-sectiontitle > a:hover { background: var(--naranja); color: #fff; }
.bm-sectiontitle::after { content: ""; flex: 1; height: 3px; background: var(--azul); opacity: .22; }
.bm-sectiontitle small { flex-shrink: 0; }
.bm-sectiontitle small a { color: var(--azul-texto); font-weight: 800; font-size: 11.5px; text-transform: uppercase; letter-spacing: .5px; }
.bm-sectiontitle small a:hover { color: var(--naranja); }

/* Rejillas */
.bm-grid { display: grid; gap: 22px 20px; }
.bm-grid--2 { grid-template-columns: repeat(2, 1fr); }
.bm-grid--3 { grid-template-columns: repeat(3, 1fr); }
.bm-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* --------------------------------------------------------------------------
   Flujo por columnas: cada pieza ocupa su altura real, sin huecos en blanco
   -------------------------------------------------------------------------- */
.bm-flow { column-gap: 20px; }
.bm-flow--3 { columns: 3; }
.bm-flow--2 { columns: 2; }
.bm-flow > .bm-item { break-inside: avoid; -webkit-column-break-inside: avoid; page-break-inside: avoid;
    display: inline-block; width: 100%; margin: 0 0 20px; padding-bottom: 16px; border-bottom: 1px solid var(--linea); }

/* --------------------------------------------------------------------------
   Cuatro maquetas de bloque que se turnan por sección
   -------------------------------------------------------------------------- */
.bm-bloque { display: grid; gap: 20px; }

/* A: destacada con entradilla + lista de miniaturas */
.bm-bloque--a { grid-template-columns: 1.5fr 1fr; align-items: start; }
.bm-bloque--a .bm-bloque__principal .bm-item__title { font-size: 23px; }
.bm-bloque--a .bm-bloque__lista { display: flex; flex-direction: column; }
.bm-bloque--a .bm-bloque__lista .bm-item { padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--linea); }
.bm-bloque--a .bm-bloque__lista .bm-item:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }

/* B: cuatro en fila, foto y titular (alturas parejas, sin huecos) */
.bm-bloque--b { grid-template-columns: repeat(4, 1fr); align-items: start; }

/* C: dos piezas grandes + columna de titulares */
.bm-bloque--c { grid-template-columns: 2.1fr 1fr; align-items: start; }
.bm-bloque--c .bm-bloque__par { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.bm-bloque--c .bm-bloque__titulares { display: flex; flex-direction: column; border-left: 3px solid var(--azul); padding-left: 16px; }
.bm-bloque--c .bm-bloque__titulares .bm-item { padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--linea); }
.bm-bloque--c .bm-bloque__titulares .bm-item:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.bm-bloque--c .bm-bloque__titulares .bm-item__title { font-size: 15.5px; }

/* D: panorámica a toda anchura + tres debajo */
.bm-bloque--d { grid-template-columns: 1fr; }
.bm-bloque--d .bm-bloque__panoramica .bm-cover { min-height: 300px; }
.bm-bloque--d .bm-bloque__panoramica .bm-cover__title { font-size: clamp(22px, 2.3vw, 30px); }
.bm-bloque--d .bm-bloque__trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }

/* Variantes de pieza usadas por los bloques */
.bm-item--compacta .bm-item__excerpt { display: none; }
.bm-item--titular .bm-item__title { font-size: 15.5px; }
.bm-item--titular .bm-item__excerpt { display: none; }

/* Columnas con lateral */
.bm-cols { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
/* El lateral se estira hasta el fondo de la columna principal: es lo que
   permite que el último anuncio viaje pegado y no quede hueco en blanco. */
.bm-cols__side { display: flex; flex-direction: column; gap: 18px; align-self: stretch; }

.bm-side__peldano { margin-top: 14px; }
.bm-side__fijo { position: sticky; top: 76px; margin-top: 14px; }
.bm-side__fijo:empty { display: none; }

/* Widget lateral */
.bm-widget { border: 1px solid var(--linea); border-top: 3px solid var(--azul); padding: 14px 16px 8px; }
.bm-widget__title { font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .8px; margin: 0 0 4px; color: var(--azul-hondo); }
.bm-ranked { counter-reset: rank; }
.bm-ranked__item { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--linea); counter-increment: rank; align-items: start; }
.bm-ranked__item:last-child { border-bottom: 0; }
.bm-ranked__item::before { content: counter(rank); font-size: 24px; font-weight: 800; color: var(--azul); line-height: 1; opacity: .5; }
.bm-ranked__title { font-weight: 700; font-size: 13.5px; line-height: 1.35; }
.bm-ranked__item:hover .bm-ranked__title { color: var(--azul-texto); }

/* ==========================================================================
   PORTADILLA DE SECCIÓN (subportada)
   ========================================================================== */
.bm-sechead { margin-bottom: 20px; }
.bm-sechead__barra { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap;
    border-bottom: 4px solid var(--azul); padding-bottom: 12px; }
.bm-sechead__id { display: flex; align-items: baseline; gap: 14px; }
.bm-sechead__eti { background: var(--naranja); color: #fff; font-size: 10.5px; font-weight: 800; text-transform: uppercase;
    letter-spacing: 1.4px; padding: 5px 10px; }
.bm-sechead__title { font-weight: 800; font-size: clamp(30px, 4.4vw, 46px); letter-spacing: -1.2px; margin: 0;
    text-transform: uppercase; color: var(--azul); line-height: 1; }
.bm-sechead__crumb { color: var(--gris-claro); font-size: 12px; font-weight: 600; padding-bottom: 4px; }
.bm-sechead__crumb a { color: var(--azul-texto); font-weight: 700; }
.bm-sechead__crumb a:hover { color: var(--naranja); }
.bm-sechead__crumb strong { color: var(--gris); }
.bm-sechead__crumb span { margin: 0 5px; }
.bm-sechead__desc { color: var(--gris); margin: 12px 0 0; max-width: 780px; font-size: 15.5px; line-height: 1.6; }
.bm-subnav { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; }
.bm-subnav > span { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .8px; color: var(--gris-claro); margin-right: 4px; }
.bm-subnav a { border: 1px solid var(--linea); padding: 6px 13px; font-size: 13px; font-weight: 700; color: var(--gris); }
.bm-subnav a:hover { border-color: var(--azul); background: var(--azul); color: #fff; }

/* Apertura de la subportada */
.bm-secopening { display: grid; grid-template-columns: 1.7fr 1fr; gap: 20px; padding-bottom: 20px; margin-bottom: 6px; border-bottom: 1px solid var(--linea); }
.bm-secopening__lead .bm-cover--grande { min-height: 430px; }
.bm-secopening__lead .bm-cover--grande .bm-cover__title { font-size: clamp(24px, 2.7vw, 34px); }
.bm-secopening__list { display: flex; flex-direction: column; gap: 15px; }
.bm-secopening__list .bm-item { padding-bottom: 15px; border-bottom: 1px solid var(--linea); }
.bm-secopening__list .bm-item:last-child { border-bottom: 0; padding-bottom: 0; }

/* Rejilla que se autodistribuye: cada pieza ocupa su altura natural,
   así no quedan huecos blancos bajo las noticias cortas. */
.bm-secgrid { columns: 3; column-gap: 22px; }
.bm-secgrid .bm-item { break-inside: avoid; -webkit-column-break-inside: avoid; page-break-inside: avoid;
    display: inline-block; width: 100%; margin: 0 0 20px; padding-bottom: 16px; border-bottom: 1px solid var(--linea); }
.bm-secgrid .bm-item__img { aspect-ratio: 16/10; }

/* ==========================================================================
   ARTÍCULO (misma línea que barramedia.es)
   ========================================================================== */
.bm-post__head { text-align: center; max-width: 900px; margin: 6px auto 22px; }
.bm-post__head .bm-chip { margin-bottom: 14px; }
.bm-post__title { font-weight: 800; font-size: clamp(28px, 3.8vw, 42px); line-height: 1.16; letter-spacing: -.7px; margin: 0; color: var(--azul); }
.bm-post__excerpt { font-size: 19px; color: var(--gris); margin: 16px auto 0; line-height: 1.5; max-width: 780px; font-weight: 400; }

.bm-post__cover { margin: 0 0 6px; }
.bm-post__cover img { width: 100%; }
.bm-post__cover figcaption { font-size: 12.5px; color: var(--gris); padding: 8px 0; font-style: italic; text-align: right; }

/* Barra de firma */
.bm-post__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 12px 0 16px; border-bottom: 1px solid var(--linea); margin-bottom: 22px; }
.bm-post__share { display: flex; gap: 8px; }
.bm-round { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff !important; }
.bm-round svg { width: 15px; height: 15px; }
.bm-round--fb { background: #1877f2; }
.bm-round--x { background: #14171a; }
.bm-round--wa { background: #23b33a; }
.bm-round:hover { filter: brightness(1.15); }
.bm-post__datos { display: flex; align-items: center; gap: 16px; font-size: 13px; color: var(--gris); }
.bm-post__datos span { display: inline-flex; align-items: center; gap: 6px; }
.bm-post__datos svg { width: 14px; height: 14px; opacity: .8; }
.bm-post__datos a { color: var(--azul-texto); font-weight: 700; }

/* Cuerpo: sans, justificado, como el actual */
.bm-post__body { font-size: 17px; line-height: 1.78; text-align: justify; text-justify: inter-word; hyphens: auto; -webkit-hyphens: auto; }
.bm-post__body p { margin: 0 0 1.35em; }
.bm-post__body strong, .bm-post__body b { font-weight: 700; color: var(--tinta); }
.bm-post__body a { color: var(--azul-texto); text-decoration: underline; text-underline-offset: 3px; }
.bm-post__body a:hover { color: var(--naranja); }
.bm-post__body img { margin: 20px auto; }
.bm-post__body h2, .bm-post__body h3 { text-align: left; font-weight: 800; line-height: 1.28; margin: 1.7em 0 .6em; letter-spacing: -.3px; }
.bm-post__body h2 { font-size: 24px; }
.bm-post__body h3 { font-size: 20px; }
.bm-post__body ul, .bm-post__body ol { padding-left: 1.3em; margin: 0 0 1.35em; text-align: left; }
.bm-post__body li { margin-bottom: .5em; }
.bm-post__body blockquote { border-left: 4px solid var(--azul); margin: 26px 0; padding: 6px 0 6px 22px; font-size: 19px; font-style: italic; color: var(--azul-hondo); text-align: left; }
/* La publicidad intercalada respira dentro del texto */
.bm-post__body .bm-ad { margin: 22px auto; padding: 0; }

.bm-figure { margin: 20px 0; }
.bm-figure figcaption { font-size: 12.5px; color: var(--gris); padding-top: 7px; font-style: italic; text-align: right; }
.bm-video { position: relative; padding-top: 56.25%; margin: 22px 0; }
.bm-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.bm-post__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; padding-top: 18px; border-top: 1px solid var(--linea); }
.bm-post__tags a { background: var(--fondo-suave); color: var(--gris); font-size: 12.5px; font-weight: 700; padding: 5px 11px; border-radius: 3px; }
.bm-post__tags a:hover { background: var(--azul); color: #fff; }

.bm-related { margin-top: 34px; }
.bm-preview-banner { background: var(--naranja); color: #fff; font-weight: 700; text-align: center; padding: 10px; margin-bottom: 16px; }

/* Widget "Últimas noticias" */
.bm-ultimas__item { display: grid; grid-template-columns: 74px 1fr; gap: 11px; padding: 11px 0; border-bottom: 1px solid var(--linea); align-items: start; }
.bm-ultimas__item:last-child { border-bottom: 0; }
.bm-ultimas__item img, .bm-ultimas__sinfoto { width: 74px; height: 56px; object-fit: cover; display: block; background: var(--fondo-suave); }
.bm-ultimas__title { font-weight: 700; font-size: 13.5px; line-height: 1.35; }
.bm-ultimas__item:hover .bm-ultimas__title { color: var(--azul-texto); }

/* Portadillas simples (autor, búsqueda) */
.bm-pagehead { border-bottom: 3px solid var(--tinta); padding-bottom: 14px; margin-bottom: 22px; }
.bm-pagetitle { font-weight: 800; font-size: clamp(24px, 3.2vw, 32px); letter-spacing: -.4px; margin: 6px 0 0; }
.bm-crumb { color: var(--gris-claro); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .9px; }
.bm-crumb a { color: var(--azul-texto); }
.bm-pagedesc { color: var(--gris); margin: 10px 0 0; max-width: 720px; }
.bm-catgrid .bm-item { border-bottom: 1px solid var(--linea); padding-bottom: 16px; }

/* ==========================================================================
   PUBLICIDAD — con cintillos
   ========================================================================== */
.bm-ad { margin: 14px auto; text-align: center; }
.bm-ad img { display: inline-block; height: auto; margin: 0 auto; }
.bm-ad__label { display: flex; align-items: center; justify-content: center; gap: 9px; font-size: 9px; text-transform: uppercase; letter-spacing: 2.2px; color: var(--gris-claro); margin-bottom: 5px; font-weight: 700; }
.bm-ad__label::before, .bm-ad__label::after { content: ""; flex: 1; max-width: 90px; height: 1px; background: var(--linea); }
.bm-ad--mobile { display: none; }
.bm-header__ad .bm-ad__label { display: none; }
@media (max-width: 768px) {
    .bm-ad--mobile { display: block; }
    .bm-ad--desktop { display: none; }
}

/* ==========================================================================
   POPUP / PAGINACIÓN
   ========================================================================== */
.bm-popup { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; }
.bm-popup__backdrop { position: absolute; inset: 0; background: rgba(8, 20, 28, .85); }
.bm-popup__box { position: relative; max-width: min(560px, 92vw); max-height: 88vh; }
.bm-popup__box img { max-height: 88vh; width: auto; max-width: 100%; box-shadow: 0 24px 70px rgba(0,0,0,.55); }
.bm-popup__close { position: absolute; top: -14px; right: -14px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: #fff; color: #111; font-size: 22px; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.4); z-index: 2; }

.bm-pagination { display: flex; gap: 6px; justify-content: center; margin: 32px 0 8px; flex-wrap: wrap; }
.bm-page { min-width: 36px; text-align: center; padding: 8px 10px; border: 1px solid var(--linea); font-weight: 700; font-size: 13px; }
.bm-page.is-current { background: var(--azul); border-color: var(--azul); color: #fff; }
.bm-page.is-disabled { opacity: .4; }
a.bm-page:hover { border-color: var(--azul); color: var(--azul-texto); }

/* ==========================================================================
   PIE — útil y corporativo
   ========================================================================== */
.bm-footer { margin-top: 50px; }
.bm-footer__cta { background: var(--azul); color: #fff; }
.bm-footer__ctarow { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 16px; flex-wrap: wrap; }
.bm-footer__ctatext strong { display: block; font-size: 19px; font-weight: 800; letter-spacing: -.2px; }
.bm-footer__ctatext span { font-size: 14px; opacity: .92; }
.bm-footer__ctabtns { display: flex; gap: 10px; flex-wrap: wrap; }
.bm-btn-wa, .bm-btn-rss { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--azul-hondo) !important; font-weight: 800; font-size: 13.5px; padding: 11px 20px; border-radius: 3px; }
.bm-btn-wa:hover, .bm-btn-rss:hover { background: var(--noche); color: #fff !important; }
.bm-btn-rss { background: var(--naranja); color: #fff !important; }
.bm-btn-rss:hover { background: var(--noche); }

.bm-footer__body { background: var(--noche); color: #93a8b6; }
.bm-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px; padding: 42px 16px 34px; }
.bm-footer a { color: #d3e1ea; font-size: 13.5px; }
.bm-footer__links a { display: block; padding: 5px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.bm-footer__links a:hover { color: var(--naranja); padding-left: 5px; transition: padding .15s; }
.bm-footer h4 { color: #fff; margin: 0 0 12px; text-transform: uppercase; font-size: 12px; letter-spacing: 1.2px; }
.bm-footer h4::after { content: ""; display: block; width: 30px; height: 3px; background: var(--naranja); margin-top: 8px; }
.bm-footer__about { font-size: 13.5px; line-height: 1.65; margin: 14px 0 0; }
.bm-footer__social { display: flex; gap: 10px; margin-top: 16px; }
.bm-footer__social a { width: 36px; height: 36px; border-radius: 3px; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; }
.bm-footer__social a:hover { background: var(--azul); }
.bm-footer__social svg { width: 16px; height: 16px; fill: #fff; }
.bm-footer__social svg[stroke] { fill: none; stroke: #fff; }
.bm-footer__legal { background: #08131a; padding: 15px 16px; font-size: 12.5px; color: #7c8f9c; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.bm-footer__legal a { font-size: 12.5px; color: #9db0bd; }
.bm-footer__legallinks { display: flex; gap: 18px; flex-wrap: wrap; }

/* ==========================================================================
   COMPARTIR
   ========================================================================== */
.bm-share { display: block; margin: 0; }
.bm-share__btns { display: flex; flex-direction: row; align-items: center; gap: 8px; flex-wrap: wrap; }
.bm-round { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    color: #fff !important; border: 0; cursor: pointer; padding: 0; flex-shrink: 0; }
.bm-round svg { width: 15px; height: 15px; }
.bm-round--fb { background: #1877f2; }
.bm-round--x { background: #14171a; }
.bm-round--wa { background: #23b33a; }
.bm-round--tg { background: #29a9eb; }
.bm-round--link { background: var(--gris); }
.bm-round:hover { filter: brightness(1.15); }
.bm-round.is-copiado { background: #1c8a4a !important; }

/* Bloque grande del final del artículo */
.bm-share--grande { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap;
    margin: 30px 0 0; padding: 18px 20px; background: var(--fondo-suave); border-top: 3px solid var(--azul); }
.bm-share__label { font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: .6px; color: var(--azul-hondo); }
.bm-share--grande .bm-round { width: 40px; height: 40px; }
.bm-share--grande .bm-round svg { width: 17px; height: 17px; }

/* ==========================================================================
   MÓVIL: cabecera compacta y menú lateral (ocultos en escritorio)
   ========================================================================== */
.bm-movil, .bm-drawer { display: none; }

@media (max-width: 860px) {
    /* --- Cabecera fija: hamburguesa + logo + lupa --- */
    .bm-movil { display: flex; align-items: center; justify-content: space-between; gap: 8px;
        background: #fff; border-bottom: 1px solid var(--linea); padding: 10px 12px;
        position: sticky; top: 0; z-index: 80; box-shadow: 0 1px 8px rgba(13,28,38,.1);
        transition: background-color .35s ease, border-color .35s ease; }
    .bm-movil__btn { background: none; border: 0; color: var(--tinta); padding: 8px; cursor: pointer; line-height: 0; }
    .bm-movil__btn svg { width: 24px; height: 24px; }
    .bm-movil__logo { line-height: 0; }
    .bm-movil__logo img { height: 44px; width: auto; }
    /* Al desplazar: barra azul y logotipo blanco, fundiéndose, como en barramedia.es */
    .bm-movil__logo { position: relative; }
    .bm-movil__logo img { transition: opacity .35s ease; }
    .bm-movil__logo--blanco { position: absolute; top: 50%; left: 0; transform: translateY(-50%); opacity: 0; }
    .bm-movil__btn { transition: color .35s ease; }
    .bm-movil.is-scrolled { background-color: var(--azul); border-bottom-color: transparent; }
    .bm-movil.is-scrolled .bm-movil__btn { color: #fff; }
    .bm-movil.is-scrolled .bm-movil__logo--color { opacity: 0; }
    .bm-movil.is-scrolled .bm-movil__logo--blanco { opacity: 1; }

    /* En móvil sobran la barra superior, la cabecera grande y el menú de escritorio */
    .bm-topbar, .bm-masthead, .bm-nav { display: none; }

    /* --- Menú lateral --- */
    .bm-drawer { display: block; position: fixed; inset: 0; z-index: 100; }
    .bm-drawer[hidden] { display: none; }
    .bm-drawer__fondo { position: absolute; inset: 0; background: rgba(8,20,28,.6); }
    .bm-drawer__panel { position: absolute; top: 0; left: 0; bottom: 0; width: min(300px, 84vw);
        background: var(--azul); overflow-y: auto; padding-bottom: 28px;
        animation: bm-entra .22s ease; }
    @keyframes bm-entra { from { transform: translateX(-100%); } to { transform: none; } }
    .bm-drawer__cab { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px;
        border-bottom: 1px solid rgba(255,255,255,.22); }
    .bm-drawer__cab img { height: 36px; width: auto; }
    .bm-drawer__cerrar { background: none; border: 0; color: #fff; font-size: 32px; line-height: 1; cursor: pointer; padding: 0 4px; opacity: .85; }
    .bm-drawer__cerrar:hover { opacity: 1; }
    /* Inicio: solo el icono */
    .bm-drawer__home { display: flex; align-items: center; color: #fff; padding: 13px 18px;
        border-bottom: 1px solid rgba(255,255,255,.16); }
    .bm-drawer__home svg { width: 23px; height: 23px; }
    .bm-drawer__home:hover { background: rgba(255,255,255,.14); color: #fff; }
    .bm-drawer__item { display: block; color: #fff; font-weight: 700; font-size: 15px; padding: 13px 18px;
        border-bottom: 1px solid rgba(255,255,255,.16); text-transform: uppercase; letter-spacing: .3px; }
    .bm-drawer__item:hover { background: rgba(255,255,255,.14); color: #fff; }
    .bm-drawer__wa { display: block; margin: 18px 18px 14px; background: var(--noche); color: #fff !important;
        text-align: center; font-weight: 700; font-size: 14px; padding: 12px; border-radius: 4px; }
    .bm-drawer__wa:hover { background: var(--naranja); }
    .bm-drawer__social { display: flex; justify-content: center; gap: 22px; padding: 6px 18px; }
    .bm-drawer__social a { color: rgba(255,255,255,.85); line-height: 0; }
    .bm-drawer__social a:hover { color: var(--noche); }
    .bm-drawer__social svg { width: 20px; height: 20px; fill: currentColor; }
    .bm-drawer__social svg[stroke] { fill: none; }

    /* El buscador se despliega bajo la cabecera fija */
    .bm-buscador { padding: 12px 0; }
    .bm-adzone { padding-top: 18px; }
    .bm-buscador__form input { font-size: 16px; padding: 12px 14px; }
    .bm-buscador__form button[type="submit"] { padding: 12px 18px; font-size: 14px; }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1020px) {
    .bm-apertura { grid-template-columns: 1fr; }
    .bm-cover--grande { min-height: 380px; }
    .bm-apertura__lado { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
    .bm-apertura__lado .bm-cover { min-height: 200px; }
    .bm-bloque--a, .bm-bloque--c { grid-template-columns: 1fr; }
    .bm-bloque--b { grid-template-columns: repeat(2, 1fr); }
    .bm-flow--3 { columns: 2; }
    .bm-secopening { grid-template-columns: 1fr; }
    .bm-secopening__lead .bm-cover--grande { min-height: 330px; }
    .bm-cols { grid-template-columns: 1fr; }
    .bm-cols__side { position: static; }
    .bm-side__fijo { position: static; }
    .bm-secgrid { columns: 2; }
    .bm-grid--4 { grid-template-columns: repeat(2, 1fr); }
    .bm-masthead__claim { display: none; }
    .bm-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
    /* Una sola columna en todo */
    .bm-grid--2, .bm-grid--3, .bm-grid--4, .bm-franja,
    .bm-bloque--b, .bm-bloque--d .bm-bloque__trio, .bm-bloque--c .bm-bloque__par { grid-template-columns: 1fr; }
    .bm-flow--3, .bm-flow--2, .bm-secgrid { columns: 1; }
    .bm-apertura__lado { grid-template-columns: 1fr; }

    .bm-main { padding: 12px 14px 36px; }
    .bm-container { padding: 0 14px; }

    /* Piezas a lo alto, como en la web actual */
    .bm-cover--grande { min-height: 260px; }
    .bm-cover--grande .bm-cover__title { font-size: 21px; }
    .bm-cover--grande .bm-cover__body { padding: 16px 16px 18px; }
    .bm-apertura__lado .bm-cover { min-height: 200px; }
    .bm-apertura__lado .bm-cover__title { font-size: 17px; }
    .bm-apertura { gap: 10px; padding-bottom: 16px; }
    .bm-franja { padding: 16px 0; gap: 20px; }

    .bm-item__title { font-size: 18px; }
    .bm-item--mini { grid-template-columns: 100px 1fr; }
    .bm-item--h { grid-template-columns: 1fr; }
    .bm-item--h .bm-item__title { font-size: 18px; }
    .bm-bloque--a .bm-bloque__principal .bm-item__title { font-size: 20px; }
    .bm-bloque--c .bm-bloque__titulares { border-left: 0; padding-left: 0; border-top: 3px solid var(--azul); padding-top: 12px; }
    .bm-bloque--d .bm-bloque__panoramica .bm-cover { min-height: 220px; }

    .bm-sectiontitle { margin: 22px 0 12px; }
    .bm-sectiontitle span, .bm-sectiontitle > a { font-size: 13px; padding: 6px 12px; }
    .bm-sectiontitle small { display: none; }

    /* Sección */
    .bm-sechead__barra { align-items: flex-start; flex-direction: column; gap: 6px; }
    .bm-sechead__title { font-size: 30px; }
    .bm-sechead__crumb { display: none; }
    .bm-subnav { gap: 6px; }
    .bm-subnav > span { display: none; }
    .bm-subnav a { font-size: 12px; padding: 5px 10px; }

    /* Artículo */
    .bm-post__title { font-size: 26px; }
    .bm-post__excerpt { font-size: 16.5px; }
    .bm-post__body { font-size: 16.5px; }
    .bm-post__bar { flex-direction: column; align-items: flex-start; gap: 12px; }
    .bm-post__bar .bm-share__btns { flex-direction: row; flex-wrap: nowrap; gap: 10px; }
    .bm-post__bar .bm-round { width: 40px; height: 40px; }
    .bm-post__bar .bm-round svg { width: 17px; height: 17px; }
    .bm-post__datos { font-size: 12.5px; gap: 12px; flex-wrap: wrap; }
    .bm-share--grande { flex-direction: column; gap: 12px; padding: 16px; }

    /* Pie */
    .bm-footer__grid { grid-template-columns: 1fr; gap: 22px; padding: 28px 14px; }
    .bm-footer__ctarow { flex-direction: column; align-items: flex-start; gap: 14px; padding: 18px 14px; }
    .bm-footer__legalrow { flex-direction: column; gap: 8px; }
}

/* ==========================================================================
   NADA SE DESBORDA
   ========================================================================== */
img, iframe, video, table { max-width: 100%; }
.bm-ad img { max-width: 100% !important; height: auto !important; }
.bm-adzone .bm-ad img { max-height: none; max-width: 100%; }
.bm-post__body iframe, .bm-post__body embed, .bm-post__body object { max-width: 100%; }
.bm-post__body table { display: block; overflow-x: auto; }
.bm-item__title, .bm-cover__title, .bm-post__title, .bm-post__body { overflow-wrap: break-word; word-break: break-word; }
.bm-post__body pre { overflow-x: auto; }

/* ==========================================================================
   Las imágenes no se pueden arrastrar fuera de la página
   ========================================================================== */
img { -webkit-user-drag: none; user-select: none; -webkit-user-select: none; }

.bm-post__video { margin: 0 0 6px; }

/* Enlaces de redes convertidos en contenido incrustado */
.bm-embed { margin: 26px auto; max-width: 560px; display: flex; justify-content: center; }
.bm-embed--youtube { max-width: 100%; display: block; }
.bm-embed__ratio { position: relative; padding-top: 56.25%; background: var(--noche); overflow: hidden; }
.bm-embed__ratio iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.bm-embed iframe { max-width: 100%; border: 0; }
.bm-embed--facebook iframe { width: 100%; min-height: 560px; }
.bm-embed blockquote { width: 100%; margin: 0; }
.bm-embed .instagram-media, .bm-embed .tiktok-embed, .bm-embed .twitter-tweet { margin: 0 auto !important; }
.bm-post__videoframe { position: relative; padding-top: 56.25%; background: var(--noche); border-radius: 2px; overflow: hidden; }
.bm-post__videoframe iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.bm-post__videofile { width: 100%; height: auto; display: block; background: var(--noche); }
.bm-post__video figcaption { font-size: 12.5px; color: var(--gris); font-style: italic; text-align: right; padding: 7px 2px 0; }

/* ==========================================================================
   PÁGINAS DE ERROR (404, 403, 419, 429)
   ========================================================================== */
.bm-error { text-align: center; padding: 56px 20px 44px; border-bottom: 1px solid var(--linea); margin-bottom: 28px; }
.bm-error__codigo { display: block; font-size: clamp(64px, 13vw, 118px); font-weight: 800; line-height: .9;
    letter-spacing: -4px; color: var(--azul); opacity: .18; }
.bm-error__titulo { font-size: clamp(23px, 3.6vw, 34px); font-weight: 800; letter-spacing: -.9px; margin: -14px 0 10px;
    color: var(--azul-hondo); }
.bm-error__texto { color: var(--gris); font-size: 15.5px; line-height: 1.6; max-width: 540px; margin: 0 auto 24px; }
.bm-error__buscar { display: flex; gap: 8px; max-width: 430px; margin: 0 auto 18px; }
.bm-error__buscar input { flex: 1 1 auto; min-width: 0; border: 1px solid var(--linea); padding: 12px 14px;
    font-size: 15px; font-family: inherit; }
.bm-error__buscar input:focus { outline: 2px solid var(--azul); outline-offset: -1px; }
.bm-error__buscar button { border: 0; background: var(--azul); color: #fff; font-weight: 700; font-family: inherit;
    padding: 12px 22px; font-size: 14px; cursor: pointer; }
.bm-error__buscar button:hover { background: var(--naranja); }
.bm-error__volver { display: inline-block; font-weight: 700; font-size: 13.5px; color: var(--azul-texto); }
.bm-error__volver:hover { color: var(--naranja); }
