/* Birectory · portada y categorías del blog. Todo va dentro de .bir-blog. */

body.blog .theme-banner-breadcrumb,
body.category .theme-banner-breadcrumb { display: none !important; }

.bir-blog {
	--bb-navy: #0B1A2E;
	--bb-green: #36B000;
	--bb-green-ink: #2a8a00;
	--bb-green-soft: #E9F7E1;
	--bb-orange: #FF9914;
	--bb-orange-ink: #c46c00;
	--bb-orange-soft: #FFF1DE;
	--bb-blue-soft: #E7EEF7;
	--bb-blue-ink: #1d4a7a;
	--bb-muted: #526072;
	--bb-line: #E3E8EE;
	font-family: Inter, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	color: var(--bb-navy);
	font-size: 15px;
	line-height: 1.5;
	background: #fff;
	overflow-x: clip;
}
.bir-blog *, .bir-blog *::before, .bir-blog *::after { box-sizing: border-box; }
.bir-blog a { color: inherit; text-decoration: none; }
.bir-blog h1, .bir-blog h2, .bir-blog h3 { font-family: inherit; color: inherit; text-transform: none; margin: 0; }
.bir-blog p { margin: 0; }
.bir-blog ul, .bir-blog ol { list-style: none; margin: 0; padding: 0; }
.bir-blog img { display: block; max-width: 100%; }
.bir-blog .bb-ic { width: 1em; height: 1em; flex: none; }
.bir-blog a:focus-visible, .bir-blog button:focus-visible, .bir-blog input:focus-visible { outline: 3px solid var(--bb-green); outline-offset: 2px; }
.bb-w { max-width: 1180px; margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-left, 0px)); }

/* Cabecera */
.bb-hero { position: relative; background: var(--bb-navy); color: #fff; overflow: hidden; }
.bb-hero__photo { position: absolute; inset: 0 0 0 45%; background-size: cover; background-position: center; }
.bb-hero__photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bb-navy) 0%, rgba(11, 26, 46, .6) 25%, rgba(11, 26, 46, 0) 60%); }
.bb-hero__in { position: relative; padding-top: 20px; padding-bottom: 32px; }
.bb-crumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: #c9d2de; }
.bb-crumb a:hover { color: #fff; text-decoration: underline; }
.bir-blog .bb-hero h1 { font-size: clamp(2rem, 4.4vw, 2.9rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; margin: 16px 0 10px; color: #fff; }
.bb-hero__intro { font-size: 17px; color: #dfe5ec; max-width: 500px; line-height: 1.45; }
.bb-feats { display: flex; flex-wrap: wrap; gap: 14px 26px; margin-top: 24px !important; }
.bb-feats li { display: flex; align-items: center; gap: 10px; font-size: 12.5px; line-height: 1.35; color: #e6ebf1; }
.bb-feats .bb-ic { width: 32px; height: 32px; color: var(--bb-green); }

/* Filtros */
.bb-chips { display: flex; gap: 12px; padding: 20px 0 6px; flex-wrap: wrap; }
.bb-chip { display: inline-flex; align-items: center; gap: 8px; background: #F2F4F7; border-radius: 999px; padding: 9px 22px; font-size: 13.5px; font-weight: 500; white-space: nowrap; transition: background .15s; }
.bb-chip:hover { background: #E5E9EE; }
.bb-chip .bb-ic { width: 16px; height: 16px; }
.bir-blog .bb-chip.is-on { background: var(--bb-green); color: #fff; font-weight: 600; padding: 9px 28px; }

/* Columnas */
.bb-cols { display: grid; grid-template-columns: minmax(0, 1fr) 254px; gap: 22px; padding: 18px 0 48px; }
.bb-main { min-width: 0; }
.bb-sec + .bb-sec, .bb-sec + .bb-cta { margin-top: 28px; }
.bb-sh { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.bir-blog .bb-sh h2 { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }

.bb-card { background: #fff; border: 1px solid var(--bb-line); border-radius: 6px; overflow: hidden; box-shadow: 0 1px 3px rgba(11, 26, 46, .04); transition: box-shadow .15s, transform .15s; }
.bb-card:hover { box-shadow: 0 8px 22px rgba(11, 26, 46, .08); }
.bb-noimg { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: linear-gradient(135deg, #dfe4ea, #c7cfd8); color: #7d8a99; }
.bb-noimg .bb-ic { width: 34px; height: 34px; opacity: .6; }

.bb-tag { display: inline-flex; align-items: center; gap: 5px; align-self: flex-start; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--bb-green-soft); color: var(--bb-green-ink); }
.bb-tag .bb-ic { width: 12px; height: 12px; }
.bb-tag--para-empresas { background: var(--bb-orange-soft); color: var(--bb-orange-ink); }
.bb-tag--actualidad-birectory { background: var(--bb-blue-soft); color: var(--bb-blue-ink); }

.bb-meta { display: flex; align-items: center; gap: 16px; margin-top: auto; font-size: 11.5px; color: #6b7787; }
.bb-meta span { display: inline-flex; align-items: center; gap: 5px; }
.bb-meta .bb-ic { width: 13px; height: 13px; }
.bb-meta__go { margin-left: auto; color: var(--bb-green-ink); }
.bb-meta__go .bb-ic { width: 15px; height: 15px; }

/* Destacado */
.bb-feat { display: grid; grid-template-columns: 1fr 1fr; min-height: 240px; }
.bb-feat__img { position: relative; display: block; min-height: 240px; overflow: hidden; background: #eef1f4; }
.bb-feat__img img { width: 100%; height: 100%; object-fit: cover; }
.bb-feat__b { display: flex; flex-direction: column; gap: 10px; padding: 16px 22px 18px; }
.bir-blog .bb-feat h3 { font-size: 21px; line-height: 1.2; letter-spacing: -.01em; }
.bb-feat h3 a:hover, .bb-pc h3 a:hover { color: var(--bb-green-ink); }
.bb-feat p { font-size: 13px; line-height: 1.55; color: var(--bb-muted); }

/* Rejilla */
.bb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.bb-pc { display: flex; flex-direction: column; }
.bb-pc__img { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #eef1f4; }
.bb-pc__img img, .bb-feat__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bb-pc__b { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px 12px; flex: 1; }
.bir-blog .bb-pc h3 { font-size: 14px; line-height: 1.25; }
.bb-pc p { font-size: 12px; line-height: 1.4; color: var(--bb-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.bb-pag { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 22px; }
.bb-pag .page-numbers { padding: 7px 12px; border: 1px solid var(--bb-line); border-radius: 6px; font-size: 13px; }
.bb-pag .page-numbers.current { background: var(--bb-navy); border-color: var(--bb-navy); color: #fff; }

.bb-empty { padding: 28px; border: 1px dashed var(--bb-line); border-radius: 6px; color: var(--bb-muted); }
.bb-empty a { display: inline-block; margin-top: 10px; color: var(--bb-green-ink); font-weight: 600; }

/* Explora por temas */
.bb-topics { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
.bb-topic { display: flex; flex-direction: column; gap: 6px; padding: 16px; }
.bb-topic__ic { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; background: var(--bb-green-soft); color: var(--bb-green-ink); }
.bb-topic--para-empresas .bb-topic__ic { background: var(--bb-orange-soft); color: var(--bb-orange-ink); }
.bb-topic--actualidad-birectory .bb-topic__ic { background: var(--bb-blue-soft); color: var(--bb-blue-ink); }
.bb-topic__ic .bb-ic { width: 20px; height: 20px; }
.bb-topic strong { font-size: 15px; margin-top: 4px; }
.bb-topic__d { font-size: 12.5px; color: var(--bb-muted); line-height: 1.45; }
.bb-topic__n { margin-top: auto; padding-top: 6px; font-size: 12px; font-weight: 600; color: var(--bb-green-ink); }

/* Banner empresas */
.bb-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 28px; padding: 28px 30px; border-radius: 12px; background: var(--bb-navy); color: #fff; }
.bir-blog .bb-cta h2 { font-size: 22px; font-weight: 800; color: #fff; }
.bb-cta p { margin-top: 6px; color: #b9c4d3; }
.bir-blog .bb-btn { display: inline-flex; align-items: center; justify-content: center; padding: 13px 20px; border-radius: 10px; background: var(--bb-orange); color: #1b1100; font-weight: 700; white-space: nowrap; }
.bir-blog .bb-btn:hover { background: #e07f00; }

/* Lateral */
.bb-side { display: flex; flex-direction: column; gap: 18px; padding-top: 4px; }
.bb-box { border: 1px solid var(--bb-line); border-radius: 6px; padding: 14px 12px; }
.bir-blog .bb-box__t { font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.bb-sform { display: flex; align-items: center; border: 1px solid var(--bb-line); border-radius: 4px; }
.bir-blog .bb-sform input[type="search"] { flex: 1; min-width: 0; border: 0; background: transparent; padding: 9px 10px; font-size: 12px; height: auto; box-shadow: none; }
.bir-blog .bb-sform button { border: 0; background: transparent; padding: 0 10px; color: var(--bb-navy); cursor: pointer; display: flex; }
.bb-sform .bb-ic { width: 16px; height: 16px; }
.bb-recs { display: flex; flex-direction: column; gap: 14px; }
.bb-recs a { display: flex; align-items: center; gap: 10px; }
.bb-recs__n { display: flex; align-items: center; justify-content: center; flex: none; width: 22px; height: 22px; border-radius: 50%; background: #6b7787; color: #fff; font-size: 11px; font-weight: 700; }
.bb-recs__img { flex: none; width: 52px; height: 46px; border-radius: 3px; overflow: hidden; background: #eef1f4; }
.bb-recs__img img { width: 100%; height: 100%; object-fit: cover; }
.bb-recs__img .bb-ic { width: 18px; height: 18px; }
.bb-recs b { display: block; font-size: 12px; font-weight: 600; line-height: 1.3; }
.bb-recs a:hover b { color: var(--bb-green-ink); }
.bb-recs small { font-size: 10.5px; color: #6b7787; }
.bb-nl { background: #F1F8EC; border: 1px solid #E1EED7; border-radius: 6px; padding: 20px 16px; }
.bb-nl__hd { display: flex; gap: 12px; align-items: flex-start; }
.bb-nl__hd .bb-ic { width: 28px; height: 28px; color: var(--bb-green); margin-top: 2px; }
.bir-blog .bb-nl .bb-box__t { font-size: 14.5px; line-height: 1.35; margin: 0; }
.bb-nl p { font-size: 12px; color: var(--bb-muted); margin: 8px 0 14px; line-height: 1.45; }

/* Tablet y móvil: una sola columna */
@media (max-width: 1024px) {
	.bb-cols { grid-template-columns: 1fr; }
	.bb-side { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
}
@media (max-width: 760px) {
	.bb-hero__photo { inset: 0; opacity: .35; }
	.bb-feats { display: grid; grid-template-columns: 1fr 1fr; }
	.bb-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
	.bb-feat { grid-template-columns: 1fr; }
	.bb-feat__img { min-height: 0; aspect-ratio: 16 / 9; }
	.bb-grid { grid-template-columns: 1fr; }
	.bir-blog .bb-pc h3 { font-size: 16px; }
	.bb-pc p { font-size: 13px; }
	.bb-cta { flex-direction: column; align-items: flex-start; padding: 22px; }
	.bb-side { display: flex; }
}

/* Newsletter del lateral (formulario Fluent Forms id 2) */
.bb-nl .ff-el-group { margin-bottom: 10px; }
.bb-nl .ff-el-input--label { display: none; }
.bir-blog .bb-nl .ff-el-form-control { width: 100%; height: auto; padding: 9px 10px; border: 1px solid var(--bb-line); border-radius: 4px; background: #fff; color: var(--bb-navy); font-size: 12.5px; box-shadow: none; }
.bb-nl .ff-el-form-check-label { display: flex; align-items: flex-start; gap: 6px; font-size: 11.5px; color: var(--bb-muted); line-height: 1.4; font-weight: 400; }
.bb-nl .ff-el-form-check-label input { margin-top: 2px; }
.bir-blog .bb-nl .ff-btn-submit { width: 100%; padding: 10px; border: 0; border-radius: 4px; background: var(--bb-green) !important; color: #fff !important; font-size: 13px; font-weight: 600; cursor: pointer; }
.bir-blog .bb-nl .ff-btn-submit:hover { background: var(--bb-green-ink) !important; }
.bb-nl .ff-message-success { font-size: 12.5px; color: var(--bb-green-ink); }
.bb-nl__note { display: block; margin-top: 8px; font-size: 10.5px; color: var(--bb-muted); }
/* El pie pinta el formulario en blanco: en el lateral forzamos los colores. */
.bir-blog .bb-nl .ff-el-input--label { display: none !important; }
.bir-blog .bb-nl .ff-el-form-check-label,
.bir-blog .bb-nl .ff-el-form-check-label *,
.bir-blog .bb-nl .ff_t_c { color: var(--bb-muted) !important; }
.bir-blog .bb-nl .ff_t_c a { color: var(--bb-green-ink) !important; text-decoration: underline; }
