/* HSR Wrapper Scope */
.hsr-wrapper {
	font-family: inherit;
	box-sizing: border-box;
}

.hsr-wrapper * {
	box-sizing: inherit;
}

/* --- STAGE 4: HERO SLIDER --- */
.hsr-wrapper .hsr-hero-container {
	position: relative;
	width: 100%;
	height: 460px;
	border-radius: 14px;
	overflow: hidden;
	margin-bottom: 24px;
}

.hsr-wrapper .hsr-hero-slider {
	width: 100%;
	height: 100%;
	position: relative;
}

.hsr-wrapper .hsr-hero-slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
	display: flex;
	align-items: flex-end;
}

.hsr-wrapper .hsr-hero-slide.active {
	opacity: 1;
	visibility: visible;
	z-index: 2;
}

.hsr-wrapper .hsr-hero-bg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	z-index: 1;
}

.hsr-wrapper .hsr-hero-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 2;
	background: linear-gradient(to bottom, rgba(6,34,63,0) 35%, rgba(6,34,63,0.95) 100%),
				linear-gradient(to right, rgba(6,34,63,0.5) 0%, rgba(6,34,63,0) 100%);
}

.hsr-wrapper .hsr-hero-content {
	position: relative;
	z-index: 3;
	padding: 40px;
	width: 100%;
	max-width: 800px;
}

.hsr-wrapper .hsr-category-pill {
	display: inline-block;
	background-color: #de9d52;
	color: #5a3d12;
	font-weight: bold;
	text-transform: uppercase;
	font-size: 12px;
	padding: 6px 12px;
	border-radius: 6px;
	margin-bottom: 12px;
	line-height: 1;
}

.hsr-wrapper .hsr-hero-title {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-weight: bold;
	color: #ffffff;
	font-size: 30px;
	margin: 0 0 12px 0;
	line-height: 1.2;
}

.hsr-wrapper .hsr-hero-excerpt {
	color: #cdd9e6;
	font-size: 14px;
	margin: 0 0 24px 0;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.hsr-wrapper .hsr-hero-btn {
	display: inline-block;
	background-color: #de9d52;
	color: #5a3d12;
	font-weight: bold;
	font-size: 14px;
	text-decoration: none;
	padding: 10px 20px;
	border-radius: 6px;
	line-height: 1;
	transition: background-color 0.2s ease;
	margin-bottom: 10px;
}

.hsr-wrapper .hsr-hero-btn:hover {
	background-color: #c88942;
	color: #5a3d12;
}

.hsr-wrapper .hsr-hero-dots {
	position: absolute;
	top: 24px;
	left: 40px;
	z-index: 10;
	display: flex;
	gap: 8px;
}

.hsr-wrapper .hsr-dot {
	width: 8px;
	height: 8px;
	border-radius: 4px;
	background-color: rgba(255, 255, 255, 0.4);
	border: none;
	padding: 0;
	cursor: pointer;
	transition: all 0.3s ease;
}

.hsr-wrapper .hsr-dot.active {
	background-color: #de9d52;
	width: 24px;
}

.hsr-wrapper .hsr-hero-arrows {
	position: absolute;
	bottom: 24px;
	right: 40px;
	z-index: 10;
	display: flex;
	gap: 12px;
}

.hsr-wrapper .hsr-arrow {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background-color: rgba(6, 34, 63, 0.55);
	border: 1px solid rgba(255, 255, 255, 0.2);
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background-color 0.3s ease, border-color 0.3s ease;
}

.hsr-wrapper .hsr-arrow:hover {
	background-color: rgba(6, 34, 63, 0.85);
	border-color: rgba(255, 255, 255, 0.5);
}

/* --- STRIP SECTION (RESPONSIVE) --- */
.hsr-wrapper .hsr-strip-section {
	width: 100%;
}

.hsr-wrapper .hsr-strip-heading {
	color: #0a3161;
	font-weight: bold;
	font-size: 11px;
	text-transform: uppercase;
	margin: 0 0 12px 0;
	letter-spacing: 0.5px;
}

.hsr-wrapper .hsr-strip-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}

.hsr-wrapper .hsr-strip-card {
	display: flex;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	overflow: hidden;
	text-decoration: none;
	height: 100px;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.hsr-wrapper .hsr-strip-card:hover {
	box-shadow: 0 4px 12px rgba(0,0,0,0.05);
	transform: translateY(-2px);
}

.hsr-wrapper .hsr-strip-card-img-wrap {
	flex: 0 0 92px;
	height: 100%;
}

.hsr-wrapper .hsr-strip-card-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.hsr-wrapper .hsr-strip-card-img-placeholder {
	width: 100%;
	height: 100%;
	background: #f1f5f9;
}

.hsr-wrapper .hsr-strip-card-content {
	flex: 1;
	padding: 12px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	overflow: hidden;
}

.hsr-wrapper .hsr-strip-card-cat {
	color: #de9d52;
	font-size: 9px;
	font-weight: bold;
	text-transform: uppercase;
	margin-bottom: 4px;
	line-height: 1;
}

.hsr-wrapper .hsr-strip-card-title {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: #0a3161;
	font-weight: bold;
	font-size: 12px;
	margin: 0;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
	.hsr-wrapper .hsr-hero-container { height: 400px; }
	.hsr-wrapper .hsr-hero-title { font-size: 26px; }
	.hsr-wrapper .hsr-strip-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
	.hsr-wrapper .hsr-hero-container {
		height: 500px;
		display: flex;
		flex-direction: column;
	}
	.hsr-wrapper .hsr-hero-overlay {
		background: linear-gradient(to bottom, rgba(6,34,63,0) 20%, rgba(6,34,63,0.95) 80%);
	}
	.hsr-wrapper .hsr-hero-content {
		padding: 24px;
		margin-bottom: 40px;
	}
	.hsr-wrapper .hsr-hero-title {
		font-size: clamp(20px, 6vw, 24px);
	}
	.hsr-wrapper .hsr-hero-excerpt {
		-webkit-line-clamp: 2;
		font-size: 13px;
		margin-bottom: 16px;
	}
	.hsr-wrapper .hsr-hero-dots { top: 16px; left: 24px; }
	.hsr-wrapper .hsr-hero-arrows { bottom: 16px; right: 24px; }

	div.hsr-wrapper .hsr-strip-grid {
		display: flex !important;
		flex-direction: column !important;
		grid-template-columns: none !important;
		gap: 16px !important;
	}
	div.hsr-wrapper .hsr-strip-card {
		display: flex !important;
		flex-direction: row !important;
		align-items: center !important;
		width: 100% !important;
		height: auto !important;
		min-height: 90px !important;
	}
	div.hsr-wrapper .hsr-strip-card-img-wrap {
		flex: 0 0 85px !important;
		height: 85px !important;
	}
	div.hsr-wrapper .hsr-strip-card-content {
		padding: 10px 15px !important;
	}
	.hsr-wrapper .hsr-strip-card-title {
		font-size: 13px !important;
		-webkit-line-clamp: 3 !important;
		white-space: normal !important;
	}
}

/* --- MODO OSCURO JNEWS (Desktop) --- */
html body.jnews-dark-mode div.hsr-wrapper .hsr-strip-card {
	background-color: #06223f !important;
	border-color: rgba(255, 255, 255, 0.1) !important;
	box-shadow: none !important;
}
html body.jnews-dark-mode div.hsr-wrapper .hsr-strip-card-title {
	color: #ffffff !important;
}
html body.jnews-dark-mode div.hsr-wrapper .hsr-strip-heading {
	color: #cdd9e6 !important;
}
html body.jnews-dark-mode div.hsr-wrapper .hsr-strip-card:hover {
	background-color: #0a3161 !important;
}

/* --- MODO OSCURO Movil/Tablet (Sistema) --- */
@media (max-width: 1024px) and (prefers-color-scheme: dark) {
	html div.hsr-wrapper .hsr-strip-card {
		background-color: #06223f !important;
		border-color: rgba(255, 255, 255, 0.1) !important;
		box-shadow: none !important;
	}
	html div.hsr-wrapper .hsr-strip-card-title {
		color: #ffffff !important;
	}
	html div.hsr-wrapper .hsr-strip-heading {
		color: #cdd9e6 !important;
	}
	html div.hsr-wrapper .hsr-strip-card:hover {
		background-color: #0a3161 !important;
	}
}
