/**
 * Blog Tibor (25-10-2026): listado, entrada, categoría, etiqueta y búsqueda.
 * Diseño aprobado por Javier (maqueta del 25-10-2026). Solo se carga en las páginas del blog.
 * Los colores son los de la marca: «Diseño global» los cambia también aquí. Los cambios de
 * «Tibor — Blog» se imprimen aparte (#tibor-blog-estilo) y mandan sobre esto.
 */

body.tibor-blog { background: #f5f7fa; }
.tbl-page { padding: 24px 0 56px; color: #2d3748; }
.tbl-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; flex-direction: column; gap: 32px; }
.tbl-wrap > * { margin: 0; }
.tbl-page .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Migas */
.tbl-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: #5a738c; }
.tbl-crumbs a { color: #0b3989; text-decoration: none; }
.tbl-crumbs a:hover { text-decoration: underline; }
.tbl-crumbs-current { color: #2d3748; font-weight: 600; }

/* Piezas comunes */
.tbl-eyebrow,
.tbl-cat { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: #b45309; text-decoration: none; }
a.tbl-cat:hover { text-decoration: underline; }
.tbl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: #5a738c; }
.tbl-meta i { font-size: 12px; }
.tbl-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; align-self: flex-start; min-height: 44px; padding: 10px 22px; border-radius: 999px; border: 1px solid #0b3989; background: #0b3989; color: #fff; font-size: 14px; font-weight: 700; text-decoration: none; transition: background .2s, border-color .2s; }
.tbl-btn:hover { background: #072866; border-color: #072866; color: #fff; }
.tbl-btn--warm { background: #f39c12; border-color: #f39c12; color: #1a1a1a; font-weight: 800; }
.tbl-btn--warm:hover { background: #e08a00; border-color: #e08a00; color: #1a1a1a; }
.tbl-noimg { display: block; width: 100%; height: 100%; min-height: 160px; background: #e8eef8; }

/* Cabecera del listado */
.tbl-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 32px; padding: 48px; background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; }
.tbl-hero-copy { flex: 1 1 420px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.tbl-hero h1 { margin: 0; font-size: 40px; line-height: 1.15; font-weight: 800; color: #0b3989; }
.tbl-hero-copy p { margin: 0; max-width: 560px; font-size: 16px; line-height: 1.6; color: #4a5568; }
.tbl-hero-img { flex: 1 1 280px; max-width: 420px; width: 100%; border-radius: 12px; object-fit: cover; }
.tbl-search { flex: 1 1 min(320px, 100%); min-width: 0; display: flex; flex-direction: column; gap: 8px; margin: 0; }
.tbl-search label { font-size: 13px; font-weight: 600; color: #2d3748; }
.tbl-search-row { display: flex; }
.tbl-search input[type="search"] { flex: 1; min-width: 0; min-height: 48px; padding: 12px 16px; border: 1px solid #cbd5e0; border-right: 0; border-radius: 10px 0 0 10px; font: inherit; font-size: 15px; background: #fff; color: #2d3748; }
.tbl-search input[type="search"]:focus { outline: 2px solid #0b3989; outline-offset: -2px; }
.tbl-search button { display: inline-flex; align-items: center; gap: 8px; padding: 0 22px; border: 0; border-radius: 0 10px 10px 0; background: #0b3989; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.tbl-search button:hover { background: #072866; }

/* Botones de categorías */
.tbl-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.tbl-chips a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid #cbd5e0; border-radius: 999px; background: #fff; color: #0b3989; font-size: 14px; font-weight: 600; text-decoration: none; }
.tbl-chips a:hover { border-color: #0b3989; }
.tbl-chips a.is-active { background: #0b3989; border-color: #0b3989; color: #fff; }

/* Entrada destacada */
.tbl-featured { display: flex; flex-wrap: wrap; overflow: hidden; background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; }
.tbl-featured-media { flex: 1 1 480px; min-height: 340px; display: block; background: #e8eef8; }
.tbl-featured-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tbl-featured-body { flex: 1 1 380px; display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 40px; min-width: 0; }
.tbl-featured-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.tbl-badge { padding: 5px 10px; border-radius: 6px; background: #fff3e0; color: #8a5200; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.tbl-featured h2 { margin: 0; font-size: 28px; line-height: 1.2; font-weight: 800; }
.tbl-featured h2 a { color: #0b3989; text-decoration: none; }
.tbl-featured h2 a:hover { text-decoration: underline; }
.tbl-featured-text { margin: 0; font-size: 15px; line-height: 1.6; color: #4a5568; }

/* Rejilla */
.tbl-grid-wrap { display: flex; flex-direction: column; gap: 18px; }
.tbl-grid-title,
.tbl-related h2 { margin: 0; font-size: 22px; font-weight: 800; color: #0b3989; }
.tbl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.tbl-grid.tbl-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tbl-grid.tbl-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tbl-card { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; transition: box-shadow .2s, transform .2s; }
.tbl-card:hover { box-shadow: 0 8px 24px rgba(11, 57, 137, .10); transform: translateY(-2px); }
.tbl-card-media { display: block; overflow: hidden; background: #e8eef8; aspect-ratio: 16 / 9; }
.tbl-card-media.tbl-ratio-4-3 { aspect-ratio: 4 / 3; }
.tbl-card-media.tbl-ratio-1-1 { aspect-ratio: 1 / 1; }
.tbl-card-media.tbl-ratio-2-1 { aspect-ratio: 2 / 1; }
.tbl-card-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tbl-card-media .tbl-noimg { min-height: 0; }
.tbl-card-body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 22px; }
.tbl-card .tbl-cat { font-size: 11px; letter-spacing: 1px; }
.tbl-card h3 { margin: 0; font-size: 18px; line-height: 1.3; font-weight: 700; }
.tbl-card h3 a { color: #0b3989; text-decoration: none; }
.tbl-card h3 a:hover { text-decoration: underline; }
.tbl-card p { flex: 1; margin: 0; font-size: 14px; line-height: 1.55; color: #4a5568; }
.tbl-card-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px solid #edf2f7; }
.tbl-card .tbl-meta { font-size: 12px; gap: 6px; }
.tbl-more { display: inline-flex; align-items: center; gap: 6px; color: #0b3989; font-size: 13px; font-weight: 700; text-decoration: none; }
.tbl-more:hover { text-decoration: underline; }
.tbl-more i { font-size: 11px; }
.tbl-grid-empty { padding: 32px; background: #fff; border: 1px dashed #cbd5e0; border-radius: 14px; text-align: center; color: #4a5568; }

/* Paginación */
.tbl-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.tbl-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; height: 44px; padding: 0 14px; border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; color: #0b3989; font-weight: 600; text-decoration: none; }
.tbl-pagination a.page-numbers:hover { border-color: #0b3989; }
.tbl-pagination .page-numbers.current { background: #0b3989; border-color: #0b3989; color: #fff; font-weight: 700; }
.tbl-pagination .page-numbers.dots { border: 0; background: none; }

/* Bloque final */
.tbl-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 40px 48px; background: #0b3989; border-radius: 16px; }
.tbl-cta-img { width: 120px; height: 120px; object-fit: cover; border-radius: 12px; }
.tbl-cta-copy { flex: 1 1 380px; display: flex; flex-direction: column; gap: 8px; }
.tbl-cta h2 { margin: 0; font-size: 26px; font-weight: 800; color: #fff; }
.tbl-cta p { margin: 0; font-size: 15px; color: #dbe4f5; }
.tbl-cta .tbl-btn { align-self: center; }

/* Cabecera de categoría y búsqueda */
.tbl-archive-head { display: flex; flex-wrap: wrap; overflow: hidden; background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; }
.tbl-archive-copy { flex: 1 1 460px; display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 44px 48px; min-width: 0; }
.tbl-archive-head h1 { margin: 0; font-size: 38px; line-height: 1.15; font-weight: 800; color: #0b3989; }
.tbl-archive-desc { max-width: 560px; font-size: 16px; line-height: 1.6; color: #4a5568; }
.tbl-archive-desc p { margin: 0; }
.tbl-count { font-size: 14px; font-weight: 600; color: #5a738c; }
.tbl-archive-img { flex: 1 1 320px; min-height: 240px; width: 100%; max-width: 100%; object-fit: cover; }
.tbl-archive-head.has-img .tbl-archive-img { flex-basis: 320px; }

/* Sin entradas */
.tbl-empty { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 56px 32px; background: #fff; border: 1px dashed #cbd5e0; border-radius: 16px; text-align: center; }
.tbl-empty-icon { font-size: 40px; color: #0b3989; }
.tbl-empty h2 { margin: 0; font-size: 22px; font-weight: 800; color: #0b3989; }
.tbl-empty p { margin: 0; max-width: 460px; font-size: 15px; color: #4a5568; }
.tbl-empty .tbl-btn { align-self: center; }

/* Entrada: cabecera e imagen */
.tbl-post-head { display: flex; flex-direction: column; gap: 16px; max-width: 860px; }
.tbl-post-head .tbl-cat { align-self: flex-start; }
.tbl-post-head h1 { margin: 0; font-size: 44px; line-height: 1.12; font-weight: 800; color: #0b3989; }
.tbl-lead { margin: 0; font-size: 18px; line-height: 1.6; color: #4a5568; }
.tbl-post-head .tbl-meta { gap: 10px; font-size: 14px; }
.tbl-meta-author { color: #2d3748; font-weight: 600; }
.tbl-avatar { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: #dfe7f5; color: #0b3989; font-size: 14px; font-weight: 800; }
.tbl-avatar--lg { width: 56px; height: 56px; background: #0b3989; color: #fff; font-size: 20px; }
.tbl-post-image { margin: 0; overflow: hidden; border-radius: 16px; background: #e8eef8; }
.tbl-post-image img { display: block; width: 100%; height: auto; }
.tbl-post-image--full img { max-height: 520px; object-fit: cover; }

/* Entrada: cuerpo y barra lateral */
.tbl-post-layout { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 40px; }
.tbl-post-layout.side-left { flex-direction: row-reverse; }
.tbl-article { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 24px; padding: 48px; background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; }
.tbl-article .tbl-post-image { margin: -8px 0 0; border-radius: 12px; }
.tbl-content { font-size: 17px; line-height: 1.75; color: #2d3748; overflow-wrap: break-word; }
.tbl-content > * { margin: 0 0 20px; }
.tbl-content > *:last-child { margin-bottom: 0; }
.tbl-content h2,
.tbl-content h3,
.tbl-content h4 { margin: 32px 0 12px; line-height: 1.3; font-weight: 800; color: #0b3989; scroll-margin-top: 120px; }
.tbl-content h2 { font-size: 26px; }
.tbl-content h3 { font-size: 21px; }
.tbl-content h4 { font-size: 18px; }
.tbl-content > h2:first-child,
.tbl-content > h3:first-child { margin-top: 0; }
.tbl-content a { color: #0b3989; text-decoration: underline; text-underline-offset: 2px; }
.tbl-content img { max-width: 100%; height: auto; border-radius: 12px; }
.tbl-content ul,
.tbl-content ol { padding-left: 1.3em; }
.tbl-content li { margin-bottom: 6px; }
.tbl-content blockquote { padding: 20px 24px; border: 0; border-radius: 12px; background: #f0f6fd; color: #0b3989; font-size: 18px; font-weight: 600; }
.tbl-content blockquote p { margin: 0; }
.tbl-content table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; display: block; overflow-x: auto; }
.tbl-content th,
.tbl-content td { padding: 12px 16px; border-top: 1px solid #e2e8f0; text-align: left; }
.tbl-content thead th { background: #f5f7fa; color: #0b3989; border-top: 0; }

.tbl-product { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; padding: 24px; border: 1px solid #cbd5e0; border-radius: 14px; }
.tbl-product-media { flex: none; width: 88px; height: 88px; overflow: hidden; border-radius: 12px; background: #e8eef8; }
.tbl-product-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tbl-product-copy { flex: 1 1 240px; display: flex; flex-direction: column; gap: 4px; }
.tbl-product .tbl-cat { font-size: 11px; letter-spacing: 1px; }
.tbl-product-name { font-size: 18px; color: #0b3989; }
.tbl-product-text { font-size: 14px; color: #5a738c; }
.tbl-product .tbl-btn { align-self: center; }

.tbl-share { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-top: 24px; border-top: 1px solid #e2e8f0; }
.tbl-share-label { font-size: 14px; font-weight: 700; color: #2d3748; }
.tbl-share a,
.tbl-share button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid #cbd5e0; border-radius: 999px; background: #fff; color: #0b3989; font: inherit; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; }
.tbl-share a:hover,
.tbl-share button:hover { border-color: #0b3989; }

.tbl-author { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 18px; padding: 24px; border-radius: 14px; background: #f5f7fa; }
.tbl-author > div { flex: 1 1 260px; display: flex; flex-direction: column; gap: 4px; }
.tbl-author-name { font-size: 16px; color: #0b3989; }
.tbl-author-bio { margin: 0; font-size: 15px; line-height: 1.6; color: #4a5568; }

.tbl-sidebar { flex: 1 1 280px; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.tbl-side-box { display: flex; flex-direction: column; gap: 12px; padding: 24px; background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; font-size: 14px; }
.tbl-side-title { font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #2d3748; }
.tbl-side-box a:not(.tbl-btn) { color: #0b3989; font-weight: 600; text-decoration: none; }
.tbl-side-box a:not(.tbl-btn):hover { text-decoration: underline; }
.tbl-side-cta { background: #0b3989; border-color: #0b3989; }
.tbl-side-cta .tbl-side-title { font-size: 18px; letter-spacing: 0; text-transform: none; color: #fff; }
.tbl-side-cta p { margin: 0; line-height: 1.55; color: #dbe4f5; }
.tbl-side-cta .tbl-btn { align-self: stretch; }
.tbl-side-widgets .widget { margin-bottom: 20px; padding: 24px; background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; }

.tbl-related { display: flex; flex-direction: column; gap: 18px; }

/* Tableta y móvil */
@media (max-width: 1024px) {
	.tbl-grid.tbl-cols-3,
	.tbl-grid.tbl-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
	.tbl-page { padding: 16px 0 40px; }
	.tbl-wrap { padding: 0 16px; gap: 24px; }
	.tbl-hero,
	.tbl-article { padding: 28px 20px; }
	.tbl-archive-copy,
	.tbl-featured-body { padding: 28px 20px; }
	.tbl-cta { padding: 28px 20px; }
	.tbl-hero h1 { font-size: 30px; }
	.tbl-archive-head h1 { font-size: 28px; }
	.tbl-post-head h1 { font-size: 30px; }
	.tbl-featured h2 { font-size: 22px; }
	.tbl-featured-media { flex-basis: 100%; min-height: 220px; }
	.tbl-content { font-size: 16px; }
	.tbl-post-layout,
	.tbl-post-layout.side-left { flex-direction: column; align-items: stretch; }
	.tbl-cta .tbl-btn { align-self: flex-start; }
}
@media (max-width: 600px) {
	.tbl-grid,
	.tbl-grid.tbl-cols-2,
	.tbl-grid.tbl-cols-3,
	.tbl-grid.tbl-cols-4 { grid-template-columns: minmax(0, 1fr); }
}
