/* TMB Portal — estilos de portada */
:root {
	--tmb-red: #d9261c;
	--tmb-dark: #2d2d2d;
	--tmb-text: #333;
	--tmb-muted: #999;
	--tmb-line: #e6e6e6;
	--tmb-head: Oswald, "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
}

.tmb-block, .tmb-side, .tmb-slider { font-family: Arial, Helvetica, sans-serif; color: var(--tmb-text); line-height: 1.35; }
.tmb-block *, .tmb-side *, .tmb-slider * { box-sizing: border-box; }
.tmb-block a, .tmb-side a, .tmb-slider a { color: inherit; text-decoration: none; }
.tmb-block a:hover .tmb-card-t, .tmb-block h3 a:hover, .tmb-block h4 a:hover, .tmb-side h4 a:hover { color: var(--tmb-red); }
.tmb-block img, .tmb-side img, .tmb-slider img { display: block; max-width: 100%; height: auto; }
.tmb-block [hidden], .tmb-slider [hidden] { display: none !important; }
.tmb-noimg { display: block; width: 100%; height: 100%; background: #e9e9e9; }

/* ---------- Marco del bloque ---------- */
.tmb-block { position: relative; border-top: 3px solid var(--tmb-red); margin: 0 0 30px; }
.tmb-tag { position: absolute; top: 0; left: 0; z-index: 3; background: var(--tmb-red); font: 400 16px/1 var(--tmb-head); text-transform: uppercase; padding: 9px 12px; color: #fff; }
.tmb-tag a { color: #fff !important; }

/* ---------- Meta ---------- */
.tmb-meta { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 11px; color: var(--tmb-muted); }
.tmb-meta span { display: inline-flex; align-items: center; gap: 4px; }
.tmb-i { flex: none; }

/* ---------- Nota grande ---------- */
.tmb-hero-img { display: block; overflow: hidden; background: #eee; }
.tmb-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.tmb-hero-title { margin: 0 0 8px; font: 400 22px/1.2 var(--tmb-head); color: var(--tmb-text); }
.tmb-excerpt { margin: 0 0 10px; font-size: 13px; line-height: 1.5; }
.tmb-more { display: inline-block; background: var(--tmb-red); color: #fff !important; font: 400 12px/1 Arial, sans-serif; padding: 7px 10px; }
.tmb-more:hover { background: var(--tmb-dark); }

/* estilo "destacada": imagen a la izquierda, título a la derecha, resumen debajo */
.tmb-hero--side { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 0 20px; align-items: start; }
.tmb-hero--side .tmb-hero-img { aspect-ratio: 240 / 193; }
.tmb-hero--side .tmb-hero-head { padding-top: 12px; }
.tmb-hero--side .tmb-hero-foot { grid-column: 1 / -1; padding-top: 10px; }

/* estilo "mosaico": nota apilada */
.tmb-hero--stack .tmb-hero-img { aspect-ratio: 5 / 4; }
.tmb-hero--stack .tmb-hero-head { padding-top: 16px; }

/* ---------- Filas pequeñas ---------- */
.tmb-item { display: flex; gap: 14px; align-items: flex-start; }
.tmb-item-img { flex: none; width: 78px; aspect-ratio: 5 / 4; overflow: hidden; background: #eee; }
.tmb-item-img img { width: 100%; height: 100%; object-fit: cover; }
.tmb-item-body { min-width: 0; }
.tmb-item-title { margin: 0 0 6px; font: 400 17px/1.2 var(--tmb-head); color: var(--tmb-text); }

.tmb-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--tmb-line); }
.tmb-grid2 .tmb-item { padding-bottom: 12px; }

/* ---------- Mosaico ---------- */
.tmb-mosaic { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 20px; }
.tmb-mosaic-list .tmb-item { padding: 12px 0; border-bottom: 1px solid var(--tmb-line); }
.tmb-mosaic-list .tmb-item:first-child { padding-top: 10px; }
.tmb-mosaic-list .tmb-item:last-child { border-bottom: 0; }
.tmb-mosaic-list .tmb-item-title { font-size: 18px; }

/* ---------- Carrusel ---------- */
.tmb-nav { position: absolute; top: 0; right: 0; z-index: 4; display: flex; gap: 2px; }
.tmb-nav button { width: 24px; height: 24px; padding: 0; border: 0; background: var(--tmb-red); color: #fff; font: 20px/22px Arial, sans-serif; cursor: pointer; }
.tmb-nav button:hover { background: var(--tmb-dark); }
.tmb-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: #000; }
.tmb-track::-webkit-scrollbar { display: none; }
.tmb-card { flex: 0 0 33.3334%; scroll-snap-align: start; display: block; background: #000; }
.tmb-card img, .tmb-card .tmb-noimg { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.tmb-card-t { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; height: 3.6em; margin: 10px 8px 12px; color: #ddd; font: 400 17px/1.2 var(--tmb-head); }

/* ---------- Barra lateral ---------- */
.tmb-side { margin: 0 0 30px; }
.tmb-side-head { margin: 0 0 4px; padding: 0 0 6px; border-bottom: 3px solid var(--tmb-dark); font: 400 20px/1.1 var(--tmb-head); text-transform: uppercase; color: var(--tmb-dark); }
.tmb-side-head a { color: inherit !important; }
.tmb-side .tmb-item { padding: 12px 0; border-bottom: 1px solid var(--tmb-line); gap: 12px; }
.tmb-side .tmb-item:last-child { border-bottom: 0; }
.tmb-side .tmb-item-img { width: 52px; aspect-ratio: 1; }
.tmb-side .tmb-item-title { font-size: 15px; margin-bottom: 4px; }

/* ---------- Slider ---------- */
.tmb-slider { position: relative; margin: 0 0 30px; background: #000; overflow: hidden; aspect-ratio: 16 / 9; }
.tmb-slides { position: absolute; inset: 0; }
.tmb-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility .5s; }
.tmb-slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.tmb-slide-media, .tmb-slide-media > a { display: block; width: 100%; height: 100%; }
.tmb-slide-media img { width: 100%; height: 100%; object-fit: cover; }
.tmb-slide-media .tmb-vid { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.has-video .tmb-slide-media { cursor: pointer; }
.tmb-slide-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 70px 52px 32px; background: linear-gradient(to top, rgba(0, 0, 0, .88), rgba(0, 0, 0, 0)); color: #fff; pointer-events: none; }
.tmb-slide-cap a { pointer-events: auto; }
.tmb-slide-cat { display: inline-block; background: var(--tmb-red); color: #fff !important; font: 400 14px/1 var(--tmb-head); text-transform: uppercase; padding: 6px 10px; }
.tmb-slide-title { margin: 8px 0 8px; font: 400 26px/1.15 var(--tmb-head); color: #fff; }
.tmb-slide-title a { color: #fff !important; }
.tmb-slide .tmb-meta { color: #ddd; }
.tmb-play { position: absolute; left: 50%; top: 50%; z-index: 2; transform: translate(-50%, -50%); width: 76px; height: 76px; padding: 0; border: 3px solid #fff; border-radius: 50%; background: rgba(0, 0, 0, .45); color: #fff; cursor: pointer; display: grid; place-items: center; transition: background .2s, transform .2s; }
.tmb-play svg { width: 34px; height: 34px; margin-left: 4px; }
.tmb-play:hover { background: var(--tmb-red); transform: translate(-50%, -50%) scale(1.06); }
.tmb-slide.is-playing .tmb-slide-cap, .tmb-slide.is-playing .tmb-play { display: none; }
.tmb-s-prev, .tmb-s-next { position: absolute; top: 50%; z-index: 3; transform: translateY(-50%); width: 36px; height: 48px; padding: 0; border: 0; background: rgba(0, 0, 0, .45); color: #fff; font: 30px/1 Arial, sans-serif; cursor: pointer; }
.tmb-s-prev { left: 0; }
.tmb-s-next { right: 0; }
.tmb-s-prev:hover, .tmb-s-next:hover { background: var(--tmb-red); }
.tmb-dots { position: absolute; left: 0; right: 0; bottom: 10px; z-index: 3; display: flex; justify-content: center; gap: 8px; pointer-events: none; }
.tmb-dots button { pointer-events: auto; width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .55); cursor: pointer; }
.tmb-dots button[aria-current="true"] { background: var(--tmb-red); }

/* ---------- Móvil ---------- */
@media (max-width: 767px) {
	.tmb-hero--side, .tmb-mosaic, .tmb-grid2 { grid-template-columns: 1fr; }
	.tmb-hero--side .tmb-hero-head { padding-top: 12px; }
	.tmb-card { flex-basis: 70%; }
	.tmb-slider { aspect-ratio: 4 / 3; }
	.tmb-slide-title { font-size: 20px; }
	.tmb-slide-cap { padding: 50px 16px 28px; }
	.tmb-mosaic-main { margin-bottom: 8px; }
}
