/* ==========================================================================
   BARRA SUPERIOR (Últimas noticias)
   ========================================================================== */
#blue-noticias-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 48px;

    /* Fondo degradado creativo */
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 40%, #111827 70%, #0a0f1a 100%);
    
    color: #ffffff;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,.3);
}

.blue-noticias-inner {
	max-width: 1200px;
	margin: 0 auto;
	width: calc(100% - 20px);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.blue-left,
.blue-right {
	flex: 0 0 160px;
	font-weight: 600;
	letter-spacing: .6px;
}

.blue-left {
	text-transform: uppercase;
	font-size: 13px;
}

.blue-right {
	text-align: right;
	font-size: 13px;
}

.blue-center {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

/* Slider */
.bn-slider {
	overflow: hidden;
	min-width: 320px;
	max-width: 720px;
}

.bn-list {
	display: flex;
	margin: 0;
	padding: 0;
	list-style: none;
	transition: transform .4s ease;
}

.bn-item {
	display: inline-block;
	min-width: 320px;
	padding: 0 12px;
	white-space: nowrap;
	font-weight: 600;
	font-size: 14px;
	color: #fff;
	text-align: center;
}

.bn-item a {
	color: #fff;
	text-decoration: none;
	transition: color .2s ease;
}

.bn-item a:hover {
	color: #38bdf8;
}

/* Versión móvil optimizada: barra en una sola fila */
@media (max-width: 720px) {
	#blue-noticias-bar {
		height: 44px; /* más baja */
		padding: 0 6px;
	}

	.blue-noticias-inner {
		flex-direction: row; /* ✅ mantener en fila */
		align-items: center;
		justify-content: space-between;
		width: 100%;
		gap: 6px;
	}

	.blue-left {
		font-size: 11px;
		font-weight: 700;
		color: #38bdf8;
		text-transform: uppercase;
		flex: 0 0 auto;
	}

	.blue-center {
		flex: 1 1 auto;
		overflow: hidden;
	}

	.bn-slider {
		width: 100%;
		min-width: auto;
		max-width: 100%;
	}

	.bn-item {
		min-width: 160px;
		font-size: 12px;
		text-align: center;
		padding: 0 6px;
		white-space: nowrap;
	}

	.blue-right {
		font-size: 10px;
		color: #cbd5e1;
		flex: 0 0 auto;
		text-align: right;
		white-space: nowrap;
	}
}

/* Ajustes para móviles muy pequeños */
@media (max-width: 480px) {
	#blue-noticias-bar {
		height: 40px;
		padding: 0 4px;
	}

	.bn-item {
		min-width: 140px;
		font-size: 11px;
	}

	.blue-left {
		font-size: 10px;
	}

	.blue-right {
		font-size: 9px;
	}
}

/* ==========================================================================
   SHORTCODE: GRID DE NOTICIAS [grid_noticias]
   ========================================================================== */
.bn-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 18px;
	margin: 18px 0;
}

.bn-grid-item {
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 6px 18px rgba(16,24,40,.06);
	transition: transform .18s ease, box-shadow .18s ease;
}

.bn-grid-item:hover {
	transform: translateY(-6px);
	box-shadow: 0 12px 26px rgba(16,24,40,.08);
}

.bn-thumb {
	width: 100%;
	height: 150px;
	overflow: hidden;
	display:flex;
	align-items:center;
	justify-content:center;
}

.bn-thumb img {
	width:100%;
	height:100%;
	object-fit:cover;
	display:block;
}

.bn-thumb-placeholder {
	height:150px;
	display:flex;
	align-items:center;
	justify-content:center;
	background: linear-gradient(180deg,#f3f4f6,#e5e7eb);
	color:#111827;
	font-weight:700;
}

.bn-content {
	padding: 12px;
}

.bn-title {
	margin: 0 0 8px 0;
	font-size: 18px;
	line-height:1.2;
}

.bn-title a {
	color: #0f172a;
	text-decoration: none;
}

.bn-excerpt {
	color: #6b7280;
	font-size: 14px;
}

/* Estilo para el canvas */
#bn-threejs-canvas {
	width: 100%;
	height: 420px;
	display: block;
	border-radius: 12px;
	background: linear-gradient(180deg,#0f172a,#071024);
}

/* === Estilos para las etiquetas del planeta === */
.bn-label {
    font-family: system-ui, sans-serif;
    font-size: 13px;
    color: #fff;
    text-align: center;
    background: rgba(15, 23, 42, 0.75);
    padding: 6px 10px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
    pointer-events: auto;
    transition: transform 0.2s ease;
}

.bn-label:hover {
    transform: scale(1.08);
    background: rgba(59, 130, 246, 0.85);
}

.bn-label-title {
    font-weight: 600;
    font-size: 13px;
    color: #38bdf8;
    text-decoration: none;
}

.bn-label-title:hover {
    text-decoration: underline;
    color: #fff;
}

.bn-label-date {
    font-size: 11px;
    color: #cbd5e1;
    margin-top: 2px;
}