/* ═══════════════════════════════════════════════════════════════
   RWA News Carousel - Elementor Widget Styles
   ═══════════════════════════════════════════════════════════════ */

/* ── Foundation: ensure containers fill available width ── */
.elementor-widget-rwa_news_carousel,
.elementor-widget-rwa_news_carousel .elementor-widget-container {
	width: 100% !important;
}

.rwa-nc {
	--rwa-nc-cols: 4;
	--rwa-nc-gap: 20px;
	position: relative;
	width: 100%;
	box-sizing: border-box;
}

.rwa-nc__viewport {
	overflow: hidden;
	width: 100%;
	box-sizing: border-box;
}

/* ── Static mode: CSS Grid (perfect for fixed layouts) ── */
.rwa-nc--static .rwa-nc__track {
	display: grid !important;
	grid-template-columns: repeat(var(--rwa-nc-cols), 1fr);
	gap: var(--rwa-nc-gap);
	width: 100%;
}
.rwa-nc--static .rwa-nc__card {
	min-width: 0;
	box-sizing: border-box;
}

/* ── Carousel mode: flex with explicit sizing ── */
.rwa-nc--carousel .rwa-nc__track {
	display: flex !important;
	flex-wrap: nowrap;
	gap: var(--rwa-nc-gap);
	width: 100%;
	transition: transform .5s cubic-bezier(.25,.46,.45,.94);
}
.rwa-nc--carousel .rwa-nc__card {
	flex: 0 0 calc((100% - var(--rwa-nc-gap-total)) / var(--rwa-nc-cols));
	width: calc((100% - var(--rwa-nc-gap-total)) / var(--rwa-nc-cols));
	min-width: 0;
	box-sizing: border-box;
}

/* ── Card interactions ── */
.rwa-nc__card {
	transition: transform .3s ease;
}
.rwa-nc__card:hover {
	transform: translateY(-4px);
}
.rwa-nc__card:hover img {
	transform: scale(1.05) !important;
}
.rwa-nc__card:hover .rwa-nc__title {
	color: var(--rwa-primary, #ff6b35) !important;
}
.rwa-nc__card-link {
	display: block;
	text-decoration: none;
	color: inherit;
}

/* ── Thumbnail ── */
.rwa-nc__thumb {
	position: relative;
	width: 100%;
	overflow: hidden;
	background: #1a1a2e;
	border-radius: 14px;
}
.rwa-nc__thumb img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s ease;
}

/* ── Body ── */
.rwa-nc__body {
	padding: 14px 4px 0;
}

/* ── Thumbnail placeholder ── */
.rwa-nc__thumb-placeholder {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #1a1a2e;
}

/* ── Category ── */
.rwa-nc__category {
	display: block;
	margin-bottom: 4px;
	font-family: var(--rwa-font-primary, Montserrat, sans-serif);
	font-size: 13px;
	color: rgba(255,255,255,.5);
	line-height: 1.3;
}

/* ── Date ── */
.rwa-nc__date {
	display: block;
	margin-bottom: 6px;
	font-family: var(--rwa-font-primary, Montserrat, sans-serif);
	font-size: 12px;
	color: rgba(255,255,255,.4);
	line-height: 1.3;
}

/* ── Title ── */
.rwa-nc__title {
	margin: 0;
	font-family: var(--rwa-font-primary, Montserrat, sans-serif);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.45;
	color: #fff;
	transition: color .3s;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ── Header ── */
.rwa-nc__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 24px;
	flex-wrap: wrap;
	gap: 10px;
}
.rwa-nc__header h2 {
	margin: 0;
	font-family: var(--rwa-font-primary, Montserrat, sans-serif);
	font-size: 26px;
	font-weight: 700;
	line-height: 1.3;
	color: #fff;
}
.rwa-nc__header a {
	font-family: var(--rwa-font-primary, Montserrat, sans-serif);
	font-size: 14px;
	color: rgba(255,255,255,.6);
	text-decoration: none;
	display: flex;
	align-items: center;
	gap: 6px;
	transition: color .3s;
}
.rwa-nc__header a:hover {
	color: #fff;
}

/* ── Arrows ── */
.rwa-nc__arrow {
	position: absolute;
	top: 40%;
	z-index: 10;
	width: 42px;
	height: 42px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0,0,0,.6);
	backdrop-filter: blur(8px);
	border: 1px solid rgba(255,255,255,.12);
	border-radius: 50%;
	color: #fff;
	cursor: pointer;
	padding: 0;
	outline: none;
	transform: translateY(-50%);
	transition: all .3s ease;
}
.rwa-nc__arrow:hover {
	background: var(--rwa-primary, #ff6b35);
	border-color: var(--rwa-primary, #ff6b35);
	transform: translateY(-50%) scale(1.1);
}
.rwa-nc__arrow--prev {
	left: -10px;
}
.rwa-nc__arrow--next {
	right: -10px;
}
.rwa-nc__arrow:disabled {
	opacity: .3;
	cursor: default;
	pointer-events: none;
}

/* ── Progress Bar ── */
.rwa-nc__progress {
	position: relative;
	width: 100%;
	height: 3px;
	background: rgba(255,255,255,.08);
	border-radius: 3px;
	margin-top: 24px;
	overflow: hidden;
}
.rwa-nc__progress-bar {
	height: 100%;
	border-radius: 3px;
	transition: width .5s ease;
	width: 0;
	background: linear-gradient(90deg, var(--rwa-primary, #ff6b35), var(--rwa-accent, #e94560));
}

/* ── Responsive ── */
@media (max-width: 1024px) {
	.rwa-nc {
		--rwa-nc-cols: 3 !important;
		--rwa-nc-gap-total: calc(var(--rwa-nc-gap) * 2) !important;
	}
}
@media (max-width: 768px) {
	.rwa-nc {
		--rwa-nc-cols: 2 !important;
		--rwa-nc-gap-total: var(--rwa-nc-gap) !important;
	}
	.rwa-nc__arrow {
		width: 36px !important;
		height: 36px !important;
	}
	.rwa-nc__title {
		font-size: 14px !important;
	}
}
@media (max-width: 480px) {
	.rwa-nc {
		--rwa-nc-cols: 1 !important;
		--rwa-nc-gap-total: 0px !important;
	}
}

/* ═══════════════════════════════════════════════════════════════
   RWA Strip / Reels — tira horizontal estilo "Últimas Musicales"
   Etiqueta izquierda | Avatares + texto | Flechas derecha
   ═══════════════════════════════════════════════════════════════ */

.rwa-strip {
	display: flex;
	align-items: stretch;
	background: rgba(255,255,255,.04);
	border: 1px solid rgba(255,255,255,.08);
	border-radius: 14px;
	overflow: hidden;
	font-family: var(--rwa-font-primary, Montserrat, sans-serif);
	min-height: 100px;
}

/* ── Etiqueta izquierda ── */
.rwa-strip__label {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 16px 14px;
	min-width: 90px;
	max-width: 110px;
	border-left: 4px solid var(--rwa-primary, #cc0000);
	border-right: 1px solid rgba(255,255,255,.07);
	background: rgba(255,255,255,.02);
	gap: 2px;
	flex-shrink: 0;
}

.rwa-strip__label span {
	display: block;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .3px;
	text-transform: uppercase;
	color: var(--rwa-primary, #cc0000);
	line-height: 1.25;
	text-align: center;
	width: 100%;
}

/* ── Viewport + track ── */
.rwa-strip__viewport {
	flex: 1;
	overflow-x: auto;
	overflow-y: hidden;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.rwa-strip__viewport::-webkit-scrollbar { display: none; }

.rwa-strip__track {
	display: flex;
	align-items: stretch;
	height: 100%;
	white-space: nowrap;
}

/* ── Tarjeta individual ── */
.rwa-strip__card {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 14px 20px;
	text-decoration: none;
	color: inherit;
	border-right: 1px solid rgba(255,255,255,.07);
	transition: background .2s;
	min-width: 220px;
	max-width: 260px;
	white-space: normal;
	vertical-align: top;
	flex-shrink: 0;
}

.rwa-strip__card:hover {
	background: rgba(255,255,255,.05);
}

/* Avatar circular con borde de color */
.rwa-strip__avatar {
	width: 70px;
	height: 70px;
	border-radius: 50%;
	overflow: hidden;
	flex-shrink: 0;
	border: 2.5px solid var(--rwa-primary, #cc0000);
	background: rgba(255,255,255,.05);
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(255,255,255,.3);
}

.rwa-strip__avatar img {
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	object-position: top center;
	transition: transform .35s ease;
}

.rwa-strip__card:hover .rwa-strip__avatar img {
	transform: scale(1.06);
}

.rwa-strip__avatar-ph {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

/* Texto */
.rwa-strip__info {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.rwa-strip__title {
	margin: 0;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.4;
	color: #fff;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	transition: color .2s;
}

.rwa-strip__card:hover .rwa-strip__title {
	color: var(--rwa-primary, #cc0000);
}

.rwa-strip__excerpt {
	margin: 0;
	font-size: 11px;
	color: rgba(255,255,255,.5);
	line-height: 1.45;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ── Flechas apiladas a la derecha ── */
.rwa-strip__nav {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0;
	flex-shrink: 0;
	border-left: 1px solid rgba(255,255,255,.07);
	width: 36px;
}

.rwa-strip__btn {
	flex: 1;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: none;
	border-bottom: 1px solid rgba(255,255,255,.06);
	color: rgba(255,255,255,.55);
	cursor: pointer;
	transition: color .2s, background .2s;
	padding: 0;
}

.rwa-strip__btn:last-child { border-bottom: none; }

.rwa-strip__btn:hover {
	color: var(--rwa-primary, #cc0000);
	background: rgba(255,255,255,.04);
}

/* ── Light mode ── */
body.rwa-light-mode .rwa-strip {
	background: #fff;
	border-color: rgba(0,0,0,.08);
	box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

body.rwa-light-mode .rwa-strip__label {
	background: rgba(0,0,0,.02);
	border-right-color: rgba(0,0,0,.06);
}

body.rwa-light-mode .rwa-strip__card {
	border-right-color: rgba(0,0,0,.06);
}

body.rwa-light-mode .rwa-strip__card:hover { background: rgba(0,0,0,.03); }

body.rwa-light-mode .rwa-strip__title   { color: #1a1a2e; }
body.rwa-light-mode .rwa-strip__excerpt { color: rgba(0,0,0,.5); }

body.rwa-light-mode .rwa-strip__nav { border-left-color: rgba(0,0,0,.06); }
body.rwa-light-mode .rwa-strip__btn { border-bottom-color: rgba(0,0,0,.05); color: rgba(0,0,0,.4); }
body.rwa-light-mode .rwa-strip__btn:hover { color: var(--rwa-primary, #cc0000); background: rgba(0,0,0,.03); }

/* ═══════════════════════════════════════════════════════════════
   RWA Hero Grid — layout style "Hero Grid (1 grande + 3)"
   ═══════════════════════════════════════════════════════════════ */

.rwa-hg-wrap .rwa-hg {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

/* ── Hero card (left, full height) ── */
.rwa-hg__hero {
	border-radius: 12px;
	overflow: hidden;
	height: 460px;
	display: flex;
	flex-direction: column;
}

/* ── Cards en el grid ── */
.rwa-hg__card {
	border-radius: 12px;
	overflow: hidden;
	min-height: 130px;
	display: flex;
	flex-direction: column;
}

/* First grid card spans full width of the right column */
.rwa-hg__card--wide {
	grid-column: span 2;
}

/* ── Link: CSS grid stacking — all children share same cell ── */
.rwa-hg__link {
	display: grid;
	grid-template-areas: "stack";
	text-decoration: none;
	color: inherit;
	overflow: hidden;
	border-radius: inherit;
	height: 100%;
}
.rwa-hg__link > * {
	grid-area: stack;
}

/* ── Imagen: align-self:stretch fills the cell even with global height:auto ── */
.rwa-hg__img {
	width: 100%;
	align-self: stretch;
	justify-self: stretch;
	object-fit: cover;
	object-position: top center;
	transition: transform 0.45s ease;
}

.rwa-hg__img--placeholder {
	background: #1a1a2e;
}

.rwa-hg__link:hover .rwa-hg__img {
	transform: scale(1.05);
}

/* ── Overlay gradiente ── */
.rwa-hg__overlay {
	background: linear-gradient(0deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.15) 55%, transparent 100%);
	pointer-events: none;
	z-index: 1;
}

/* ── Contenido: empujado al fondo via align-self:end ── */
.rwa-hg__body {
	align-self: end;
	z-index: 2;
	padding: 22px 20px;
}

.rwa-hg__hero .rwa-hg__body {
	padding: 30px 26px;
}

/* ── Category pill ── */
.rwa-hg__cat {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: rgba(0,0,0,.45);
	backdrop-filter: blur(4px);
	border-radius: 20px;
	padding: 4px 12px;
	color: #fff !important;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .3px;
	margin-bottom: 10px;
	text-transform: uppercase;
}

@keyframes rwa-dot-live {
	0%, 40%  { background: #ef4444; box-shadow: 0 0 0 2px rgba(239,68,68,.25); }
	50%, 90% { background: #22c55e; box-shadow: 0 0 0 2px rgba(34,197,94,.25); }
	100%     { background: #ef4444; box-shadow: 0 0 0 2px rgba(239,68,68,.25); }
}

.rwa-hg__dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	flex-shrink: 0;
	animation: rwa-dot-live 3s ease-in-out infinite;
}

/* ── Títulos ── */
.rwa-hg__title {
	margin: 0;
	color: #fff !important;
	font-family: var(--rwa-font-primary, Montserrat, sans-serif);
	font-size: clamp(18px, 1.9vw, 24px);
	font-weight: 800;
	line-height: 1.3;
	text-shadow: 0 1px 8px rgba(0,0,0,.5);
}

.rwa-hg__title--sm {
	font-size: clamp(13px, 1.2vw, 16px);
	font-weight: 700;
}

.rwa-hg__excerpt {
	margin: 10px 0 0;
	color: rgba(255,255,255,.82) !important;
	font-size: 14px;
	line-height: 1.55;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ── Right side grid ── */
.rwa-hg__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-rows: 2fr 1fr;
	gap: 10px;
	height: 100%;
}

/* ── Responsive ── */
@media (max-width: 900px) {
	.rwa-hg-wrap .rwa-hg {
		grid-template-columns: 1fr;
	}

	.rwa-hg__hero {
		height: 320px;
	}

	.rwa-hg__grid {
		grid-template-columns: 1fr 1fr;
		grid-template-rows: auto;
		height: auto;
	}

	.rwa-hg__card--wide {
		grid-column: span 2;
		min-height: 200px;
	}

	.rwa-hg__card {
		min-height: 180px;
	}
}

@media (max-width: 540px) {
	.rwa-hg__grid {
		grid-template-columns: 1fr;
	}

	.rwa-hg__card--wide {
		grid-column: span 1;
	}

	.rwa-hg__hero {
		height: 260px;
	}

	.rwa-hg__card {
		min-height: 180px;
	}
}
