/* ═══════════════════════════════════════════════════════════════
   PROGRAMACIÓN – Radio Web Asi
   Estilos para grid, carrusel y tabla de programación
   ═══════════════════════════════════════════════════════════════ */

/* ── Foundation ── */
.rwa-programacion-section {
	position: relative;
	width: 100%;
}

.rwa-programacion-section__header {
	text-align: center;
	margin-bottom: 32px;
}

.rwa-programacion-section__title {
	font-size: 28px;
	font-weight: 800;
	color: #fff;
	letter-spacing: -0.3px;
	margin: 0;
}

/* ═══════════════════════════════════════════════════════════════
   GRID MODE (STATIC)
   ═══════════════════════════════════════════════════════════════ */

.rwa-programacion--static {
	display: grid;
	grid-template-columns: repeat(var(--rwa-prog-cols, 3), 1fr);
	gap: 24px;
}

/* ═══════════════════════════════════════════════════════════════
   CAROUSEL MODE
   ═══════════════════════════════════════════════════════════════ */

.rwa-prog--carousel {
	position: relative;
}

.rwa-prog__viewport {
	overflow: hidden;
	width: 100%;
	position: relative;
}

.rwa-programacion--carousel {
	display: flex;
	gap: var(--rwa-prog-gap, 24px);
	transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
	will-change: transform;
}

.rwa-prog__slide {
	flex: 0 0 calc((100% - var(--rwa-prog-gap-total, 48px)) / var(--rwa-prog-cols, 3));
	min-width: 0;
}

/* ── Arrows ── */
.rwa-prog__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 14px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	color: #fff;
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.08);
	outline: none;
	padding: 0;
}

.rwa-prog__arrow--prev {
	left: -16px;
}

.rwa-prog__arrow--next {
	right: -16px;
}

.rwa-prog__arrow:hover {
	background: linear-gradient(135deg, var(--rwa-accent, #00f5d4) 0%, rgba(0, 245, 212, 0.8) 100%);
	border-color: var(--rwa-accent, #00f5d4);
	color: #0a0a1a;
	box-shadow: 0 6px 24px rgba(0, 245, 212, 0.35), 0 0 40px rgba(0, 245, 212, 0.1);
	transform: translateY(-50%) scale(1.05);
}

.rwa-prog__arrow-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* ── Dots ── */
.rwa-prog__dots {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-top: 24px;
	padding: 8px 0;
}

.rwa-prog__dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: 1.5px solid rgba(255, 255, 255, 0.2);
	background: rgba(255, 255, 255, 0.06);
	cursor: pointer;
	transition: all 0.3s ease;
	padding: 0;
	outline: none;
}

.rwa-prog__dot:hover {
	background: rgba(255, 255, 255, 0.2);
	border-color: rgba(255, 255, 255, 0.4);
}

.rwa-prog__dot--active {
	background: var(--rwa-accent, #00f5d4);
	border-color: var(--rwa-accent, #00f5d4);
	box-shadow: 0 0 10px rgba(0, 245, 212, 0.4);
	transform: scale(1.15);
}

/* ═══════════════════════════════════════════════════════════════
   CARD – Programa
   ═══════════════════════════════════════════════════════════════ */

.rwa-programa-card {
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 16px;
	overflow: hidden;
	transition: all 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
	display: flex;
	flex-direction: column;
}

.rwa-programa-card:hover {
	transform: translateY(-6px);
	border-color: rgba(0, 245, 212, 0.3);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 245, 212, 0.06);
}

/* ── Photo ── */
.rwa-programa-card__photo {
	position: relative;
	width: 100%;
	padding-top: 100%;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.02);
}

.rwa-programa-card__photo img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.rwa-programa-card:hover .rwa-programa-card__photo img {
	transform: scale(1.06);
}

.rwa-programa-card__placeholder {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.03);
	color: rgba(255, 255, 255, 0.15);
}

/* ── Info ── */
.rwa-programa-card__info {
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
}

/* ── Name ── */
.rwa-programa-card__name {
	font-size: 18px;
	font-weight: 700;
	color: #fff;
	margin: 0;
	line-height: 1.3;
	letter-spacing: -0.2px;
}

/* ── Schedule badge ── */
.rwa-programa-card__schedule {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.55);
	line-height: 1.4;
}

.rwa-programa-card__schedule svg {
	flex-shrink: 0;
	opacity: .7;
}

/* ── Description ── */
.rwa-programa-card__desc {
	font-size: 13px;
	color: rgba(255, 255, 255, 0.5);
	line-height: 1.5;
	margin: 0;
}

/* ── Locutores (mini avatars) ── */
.rwa-programa-card__locutores {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 6px;
}

.rwa-programa-card__locutor {
	display: flex;
	align-items: center;
	gap: 6px;
}

.rwa-programa-card__locutor img {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	object-fit: cover;
	border: 1.5px solid rgba(255, 255, 255, 0.15);
}

.rwa-programa-card__locutor-placeholder {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.06);
	border: 1.5px solid rgba(255, 255, 255, 0.1);
	color: rgba(255, 255, 255, 0.4);
}

.rwa-programa-card__locutor-name {
	font-size: 11px;
	color: rgba(255, 255, 255, 0.5);
	font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════
   TABLE / LIST MODE
   ═══════════════════════════════════════════════════════════════ */

.rwa-programacion-section--table {
	background: rgba(10, 10, 20, 0.5);
	border-radius: 14px;
	border: 1px solid rgba(255, 255, 255, 0.06);
	overflow: hidden;
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

.rwa-programacion-section--table .rwa-programacion-section__header {
	padding: 24px 20px 0;
	text-align: left;
	margin-bottom: 8px;
}

/* ── Column Headers ── */
.rwa-prog-table__head {
	display: grid;
	grid-template-columns: 60px 1fr 1fr auto;
	align-items: center;
	padding: 8px 20px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	color: rgba(255, 255, 255, 0.4);
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	gap: 0 16px;
}

/* ── Rows ── */
.rwa-prog-table__body {
	display: flex;
	flex-direction: column;
}

.rwa-prog-table__row {
	display: grid;
	grid-template-columns: 60px 1fr 1fr auto;
	align-items: center;
	padding: 12px 20px;
	gap: 0 16px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.04);
	transition: background .2s;
	min-height: 64px;
}

.rwa-prog-table__row:last-child {
	border-bottom: 0;
}

.rwa-prog-table__row:hover {
	background: rgba(255, 255, 255, 0.03);
}

/* ── Avatar ── */
.rwa-prog-table__avatar {
	width: 48px;
	height: 48px;
	border-radius: 10px;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.04);
	flex-shrink: 0;
}

.rwa-prog-table__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.rwa-prog-table__avatar-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.03);
	color: rgba(255, 255, 255, 0.2);
}

/* ── Name cell ── */
.rwa-prog-table__cell--name {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.rwa-prog-table__name {
	font-size: 15px;
	font-weight: 600;
	color: #fff;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.rwa-prog-table__desc {
	font-size: 12px;
	color: rgba(255, 255, 255, 0.4);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	line-height: 1.4;
}

/* ── Schedule cell ── */
.rwa-prog-table__schedule {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.55);
}

.rwa-prog-table__schedule svg {
	flex-shrink: 0;
	opacity: .6;
}

/* ── Locutores stack (table) ── */
.rwa-prog-table__locutores-stack {
	display: flex;
	align-items: center;
}

.rwa-prog-table__locutores-stack img,
.rwa-prog-table__locutores-stack span {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid rgba(10, 10, 20, 0.8);
	margin-left: -8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.06);
	color: rgba(255, 255, 255, 0.4);
}

.rwa-prog-table__locutores-stack img:first-child,
.rwa-prog-table__locutores-stack span:first-child {
	margin-left: 0;
}

/* ═══════════════════════════════════════════════════════════════
   TABLE RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
	.rwa-prog-table__head,
	.rwa-prog-table__row {
		grid-template-columns: 56px 1fr 1fr;
	}
	.rwa-prog-table__th--locutores,
	.rwa-prog-table__cell--locutores {
		display: none;
	}
}

@media (max-width: 768px) {
	.rwa-prog-table__head,
	.rwa-prog-table__row {
		grid-template-columns: 48px 1fr;
		gap: 0 12px;
		padding: 10px 16px;
	}
	.rwa-prog-table__th--schedule,
	.rwa-prog-table__cell--schedule,
	.rwa-prog-table__th--locutores,
	.rwa-prog-table__cell--locutores {
		display: none;
	}
	.rwa-prog-table__avatar {
		width: 42px;
		height: 42px;
	}
	.rwa-prog-table__name {
		font-size: 14px;
	}
}

@media (max-width: 480px) {
	.rwa-prog-table__head {
		display: none;
	}
	.rwa-prog-table__row {
		grid-template-columns: 40px 1fr;
		padding: 8px 12px;
		min-height: 56px;
	}
	.rwa-prog-table__avatar {
		width: 38px;
		height: 38px;
	}
}

/* ═══════════════════════════════════════════════════════════════
   GRID/CAROUSEL RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
	.rwa-programacion--static {
		--rwa-prog-cols: 3 !important;
	}
	.rwa-programacion--carousel {
		--rwa-prog-cols: 3 !important;
	}
}

@media (max-width: 768px) {
	.rwa-programacion--static {
		--rwa-prog-cols: 2 !important;
		gap: 16px;
	}
	.rwa-programacion--carousel {
		--rwa-prog-cols: 2 !important;
		--rwa-prog-gap: 16px !important;
	}
	.rwa-programa-card__info {
		padding: 16px;
	}
	.rwa-programa-card__name {
		font-size: 16px;
	}
	.rwa-prog__arrow {
		width: 40px;
		height: 40px;
		border-radius: 12px;
	}
	.rwa-prog__arrow--prev {
		left: -6px;
	}
	.rwa-prog__arrow--next {
		right: -6px;
	}
}

@media (max-width: 480px) {
	.rwa-programacion--static {
		--rwa-prog-cols: 1 !important;
	}
	.rwa-programacion--carousel {
		--rwa-prog-cols: 1 !important;
	}
	.rwa-prog__arrow--prev {
		left: 4px;
	}
	.rwa-prog__arrow--next {
		right: 4px;
	}
}

/* ═══════════════════════════════════════════════════════════════
   LIGHT MODE
   ═══════════════════════════════════════════════════════════════ */

body.rwa-light-mode .rwa-programacion-section__title {
	color: #1a1a2e;
}

body.rwa-light-mode .rwa-programa-card {
	background: #fff;
	border-color: rgba(0, 0, 0, 0.08);
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

body.rwa-light-mode .rwa-programa-card:hover {
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
	border-color: rgba(0, 245, 212, 0.4);
}

body.rwa-light-mode .rwa-programa-card__photo {
	background: #f0f0f4;
}

body.rwa-light-mode .rwa-programa-card__placeholder {
	background: #f0f0f4;
	color: rgba(0, 0, 0, 0.25);
}

body.rwa-light-mode .rwa-programa-card__name {
	color: #1a1a2e;
}

body.rwa-light-mode .rwa-programa-card__schedule {
	color: rgba(0, 0, 0, 0.55);
}

body.rwa-light-mode .rwa-programa-card__desc {
	color: rgba(0, 0, 0, 0.6);
}

body.rwa-light-mode .rwa-programa-card__locutor img {
	border-color: rgba(0, 0, 0, 0.1);
}

body.rwa-light-mode .rwa-programa-card__locutor-placeholder {
	background: rgba(0, 0, 0, 0.04);
	border-color: rgba(0, 0, 0, 0.1);
	color: rgba(0, 0, 0, 0.3);
}

body.rwa-light-mode .rwa-programa-card__locutor-name {
	color: rgba(0, 0, 0, 0.55);
}

/* ── Light mode: Carousel ── */
body.rwa-light-mode .rwa-prog__arrow {
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(245, 245, 250, 0.98) 100%);
	border-color: rgba(0, 0, 0, 0.1);
	color: #333;
	box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 1);
}

body.rwa-light-mode .rwa-prog__arrow:hover {
	background: linear-gradient(135deg, #0073aa 0%, #005f8e 100%);
	border-color: #0073aa;
	color: #fff;
	box-shadow: 0 6px 20px rgba(0, 115, 170, 0.35), 0 0 30px rgba(0, 115, 170, 0.1);
}

body.rwa-light-mode .rwa-prog__dot {
	border-color: rgba(0, 0, 0, 0.2);
	background: rgba(0, 0, 0, 0.08);
}

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

body.rwa-light-mode .rwa-prog__dot--active {
	background: #0073aa;
	border-color: #0073aa;
	box-shadow: 0 0 8px rgba(0, 115, 170, 0.3);
}

/* ── Light mode: Table ── */
body.rwa-light-mode .rwa-programacion-section--table {
	background: rgba(255, 255, 255, 0.85);
	border-color: rgba(0, 0, 0, 0.08);
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

body.rwa-light-mode .rwa-prog-table__head {
	color: rgba(0, 0, 0, 0.4);
	border-bottom-color: rgba(0, 0, 0, 0.08);
}

body.rwa-light-mode .rwa-prog-table__row {
	border-bottom-color: rgba(0, 0, 0, 0.05);
}

body.rwa-light-mode .rwa-prog-table__row:hover {
	background: rgba(0, 0, 0, 0.02);
}

body.rwa-light-mode .rwa-prog-table__avatar {
	background: #f0f0f4;
}

body.rwa-light-mode .rwa-prog-table__avatar-placeholder {
	background: #f0f0f4;
	color: rgba(0, 0, 0, 0.2);
}

body.rwa-light-mode .rwa-prog-table__name {
	color: #1a1a2e;
}

body.rwa-light-mode .rwa-prog-table__desc {
	color: rgba(0, 0, 0, 0.45);
}

body.rwa-light-mode .rwa-prog-table__schedule {
	color: rgba(0, 0, 0, 0.5);
}

body.rwa-light-mode .rwa-prog-table__locutores-stack img,
body.rwa-light-mode .rwa-prog-table__locutores-stack span {
	border-color: #fff;
	background: #f0f0f4;
	color: rgba(0, 0, 0, 0.3);
}

/* ═══════════════════════════════════════════════════════════════
   CAROUSEL WITH DAY TABS
   ═══════════════════════════════════════════════════════════════ */

.rwa-prog--carousel-days .rwa-carousel-tabs {
	margin-bottom: 0;
}

.rwa-carousel-day-panel {
	display: none;
	position: relative;
}

.rwa-carousel-day-panel--active {
	display: block;
}

/* Live badge on carousel slide */
.rwa-prog__slide {
	position: relative;
}

.rwa-prog__slide--live .rwa-programa-card {
	border: 1.5px solid rgba(0, 245, 212, 0.3);
	box-shadow: 0 0 24px rgba(0, 245, 212, 0.1), inset 0 0 20px rgba(0, 245, 212, 0.03);
}

.rwa-prog__live-badge {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 5;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 3px 12px;
	background: linear-gradient(135deg, #ff4444, #cc0000);
	color: #fff;
	font-size: 10px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	border-radius: 20px;
	box-shadow: 0 2px 12px rgba(255, 0, 0, 0.4);
	animation: rwa-live-pulse 2s ease-in-out infinite;
}

.rwa-prog__slide--live .rwa-programa-card__name {
	color: var(--rwa-accent, #00f5d4);
}

/* Light mode carousel live */
body.rwa-light-mode .rwa-prog__slide--live .rwa-programa-card {
	border-color: rgba(0, 115, 170, 0.25);
	box-shadow: 0 0 20px rgba(0, 115, 170, 0.08);
}

body.rwa-light-mode .rwa-prog__slide--live .rwa-programa-card__name {
	color: #0073aa;
}

/* ═══════════════════════════════════════════════════════════════
   WEEKLY SCHEDULE (PARRILLA SEMANAL)
   ═══════════════════════════════════════════════════════════════ */

.rwa-prog--weekly {
	background: rgba(10, 10, 20, 0.5);
	border-radius: 16px;
	border: 1px solid rgba(255, 255, 255, 0.06);
	overflow: hidden;
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

.rwa-prog--weekly .rwa-programacion-section__header {
	padding: 28px 24px 0;
	text-align: center;
	margin-bottom: 0;
}

/* ── Day Tabs ── */
.rwa-weekly__tabs {
	display: flex;
	gap: 4px;
	padding: 20px 24px 0;
	overflow-x: auto;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

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

.rwa-weekly__tab {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	padding: 12px 8px;
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 12px 12px 0 0;
	background: rgba(255, 255, 255, 0.03);
	color: rgba(255, 255, 255, 0.45);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: all .25s ease;
	outline: none;
	position: relative;
}

.rwa-weekly__tab:hover {
	background: rgba(255, 255, 255, 0.06);
	color: rgba(255, 255, 255, 0.7);
}

.rwa-weekly__tab--active {
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	border-bottom-color: transparent;
}

.rwa-weekly__tab--today {
	color: var(--rwa-accent, #00f5d4);
}

.rwa-weekly__tab--today.rwa-weekly__tab--active {
	background: rgba(0, 245, 212, 0.08);
	border-color: rgba(0, 245, 212, 0.2);
	border-bottom-color: transparent;
}

.rwa-weekly__tab-short {
	display: none;
}

.rwa-weekly__tab-badge {
	font-size: 9px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #0a0a1a;
	background: var(--rwa-accent, #00f5d4);
	padding: 1px 6px;
	border-radius: 8px;
	line-height: 1.4;
}

/* ── Day Panels ── */
.rwa-weekly__panel {
	display: none;
	flex-direction: column;
	padding: 0 24px 24px;
}

.rwa-weekly__panel--active {
	display: flex;
}

.rwa-weekly__empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	padding: 48px 20px;
	color: rgba(255, 255, 255, 0.3);
	font-size: 14px;
}

/* ── Schedule Item ── */
.rwa-weekly__item {
	display: flex;
	gap: 16px;
	padding: 16px;
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.04);
	background: rgba(255, 255, 255, 0.02);
	transition: all .25s ease;
	position: relative;
	margin-top: 8px;
}

.rwa-weekly__item:first-child {
	margin-top: 16px;
}

.rwa-weekly__item:hover {
	background: rgba(255, 255, 255, 0.04);
	border-color: rgba(255, 255, 255, 0.08);
}

/* ── LIVE item ── */
.rwa-weekly__item--live {
	background: rgba(0, 245, 212, 0.06);
	border-color: rgba(0, 245, 212, 0.25);
	box-shadow: 0 0 30px rgba(0, 245, 212, 0.08), inset 0 0 30px rgba(0, 245, 212, 0.03);
}

.rwa-weekly__item--live:hover {
	background: rgba(0, 245, 212, 0.09);
	border-color: rgba(0, 245, 212, 0.35);
}

.rwa-weekly__live-badge {
	position: absolute;
	top: -10px;
	right: 16px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 3px 12px;
	background: linear-gradient(135deg, #ff4444, #cc0000);
	color: #fff;
	font-size: 10px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	border-radius: 20px;
	box-shadow: 0 2px 12px rgba(255, 0, 0, 0.4);
	animation: rwa-live-pulse 2s ease-in-out infinite;
}

.rwa-weekly__live-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #fff;
	animation: rwa-live-blink 1s ease-in-out infinite;
}

@keyframes rwa-live-pulse {
	0%, 100% { box-shadow: 0 2px 12px rgba(255, 0, 0, 0.4); }
	50%      { box-shadow: 0 2px 20px rgba(255, 0, 0, 0.6), 0 0 40px rgba(255, 0, 0, 0.15); }
}

@keyframes rwa-live-blink {
	0%, 100% { opacity: 1; }
	50%      { opacity: 0.3; }
}

/* ── Time column ── */
.rwa-weekly__item-time {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 60px;
	padding: 4px 0;
	flex-shrink: 0;
}

.rwa-weekly__time-start {
	font-size: 16px;
	font-weight: 700;
	color: #fff;
	line-height: 1.2;
}

.rwa-weekly__item--live .rwa-weekly__time-start {
	color: var(--rwa-accent, #00f5d4);
}

.rwa-weekly__time-sep {
	font-size: 10px;
	color: rgba(255, 255, 255, 0.2);
	line-height: 1;
	margin: 2px 0;
}

.rwa-weekly__time-end {
	font-size: 13px;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.4);
	line-height: 1.2;
}

/* ── Content area ── */
.rwa-weekly__item-content {
	display: flex;
	gap: 14px;
	flex: 1;
	min-width: 0;
	align-items: center;
}

.rwa-weekly__item-photo {
	width: 56px;
	height: 56px;
	border-radius: 10px;
	overflow: hidden;
	flex-shrink: 0;
	background: rgba(255, 255, 255, 0.04);
}

.rwa-weekly__item-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.rwa-weekly__item--live .rwa-weekly__item-photo {
	box-shadow: 0 0 16px rgba(0, 245, 212, 0.2);
	border: 1.5px solid rgba(0, 245, 212, 0.3);
}

.rwa-weekly__item-info {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.rwa-weekly__item-name {
	font-size: 16px;
	font-weight: 700;
	color: #fff;
	margin: 0;
	line-height: 1.3;
}

.rwa-weekly__item--live .rwa-weekly__item-name {
	color: var(--rwa-accent, #00f5d4);
}

.rwa-weekly__item-desc {
	font-size: 13px;
	color: rgba(255, 255, 255, 0.45);
	margin: 0;
	line-height: 1.4;
}

/* ── Locutores inside item ── */
.rwa-weekly__item-locutores {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 4px;
}

.rwa-weekly__locutor {
	display: flex;
	align-items: center;
	gap: 5px;
}

.rwa-weekly__locutor img {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	object-fit: cover;
	border: 1px solid rgba(255, 255, 255, 0.15);
}

.rwa-weekly__locutor span {
	font-size: 11px;
	color: rgba(255, 255, 255, 0.5);
	font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════
   WEEKLY RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
	.rwa-weekly__tab-full {
		display: none;
	}
	.rwa-weekly__tab-short {
		display: inline;
	}
	.rwa-weekly__tabs {
		gap: 2px;
		padding: 16px 16px 0;
	}
	.rwa-weekly__tab {
		padding: 10px 6px;
		font-size: 12px;
		border-radius: 10px 10px 0 0;
	}
	.rwa-weekly__panel {
		padding: 0 16px 16px;
	}
	.rwa-weekly__item {
		padding: 14px 12px;
		gap: 12px;
	}
	.rwa-weekly__item-photo {
		width: 44px;
		height: 44px;
		border-radius: 8px;
	}
	.rwa-weekly__item-name {
		font-size: 14px;
	}
	.rwa-weekly__time-start {
		font-size: 14px;
	}
	.rwa-weekly__item-time {
		min-width: 48px;
	}
}

@media (max-width: 480px) {
	.rwa-weekly__item-content {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}
	.rwa-weekly__item-photo {
		width: 40px;
		height: 40px;
	}
	.rwa-weekly__item {
		flex-wrap: wrap;
	}
	.rwa-weekly__live-badge {
		top: -8px;
		right: 10px;
		font-size: 9px;
		padding: 2px 8px;
	}
}

/* ═══════════════════════════════════════════════════════════════
   WEEKLY LIGHT MODE
   ═══════════════════════════════════════════════════════════════ */

body.rwa-light-mode .rwa-prog--weekly {
	background: rgba(255, 255, 255, 0.85);
	border-color: rgba(0, 0, 0, 0.08);
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

body.rwa-light-mode .rwa-weekly__tab {
	border-color: rgba(0, 0, 0, 0.06);
	background: rgba(0, 0, 0, 0.02);
	color: rgba(0, 0, 0, 0.4);
}

body.rwa-light-mode .rwa-weekly__tab:hover {
	background: rgba(0, 0, 0, 0.04);
	color: rgba(0, 0, 0, 0.6);
}

body.rwa-light-mode .rwa-weekly__tab--active {
	background: rgba(0, 0, 0, 0.05);
	color: #1a1a2e;
}

body.rwa-light-mode .rwa-weekly__tab--today {
	color: #0073aa;
}

body.rwa-light-mode .rwa-weekly__tab--today.rwa-weekly__tab--active {
	background: rgba(0, 115, 170, 0.06);
	border-color: rgba(0, 115, 170, 0.2);
}

body.rwa-light-mode .rwa-weekly__tab-badge {
	background: #0073aa;
}

body.rwa-light-mode .rwa-weekly__empty {
	color: rgba(0, 0, 0, 0.3);
}

body.rwa-light-mode .rwa-weekly__item {
	border-color: rgba(0, 0, 0, 0.06);
	background: rgba(0, 0, 0, 0.01);
}

body.rwa-light-mode .rwa-weekly__item:hover {
	background: rgba(0, 0, 0, 0.03);
	border-color: rgba(0, 0, 0, 0.1);
}

body.rwa-light-mode .rwa-weekly__item--live {
	background: rgba(0, 115, 170, 0.04);
	border-color: rgba(0, 115, 170, 0.2);
	box-shadow: 0 0 20px rgba(0, 115, 170, 0.06);
}

body.rwa-light-mode .rwa-weekly__item--live:hover {
	background: rgba(0, 115, 170, 0.07);
}

body.rwa-light-mode .rwa-weekly__time-start {
	color: #1a1a2e;
}

body.rwa-light-mode .rwa-weekly__item--live .rwa-weekly__time-start {
	color: #0073aa;
}

body.rwa-light-mode .rwa-weekly__time-sep {
	color: rgba(0, 0, 0, 0.15);
}

body.rwa-light-mode .rwa-weekly__time-end {
	color: rgba(0, 0, 0, 0.4);
}

body.rwa-light-mode .rwa-weekly__item-name {
	color: #1a1a2e;
}

body.rwa-light-mode .rwa-weekly__item--live .rwa-weekly__item-name {
	color: #0073aa;
}

body.rwa-light-mode .rwa-weekly__item-desc {
	color: rgba(0, 0, 0, 0.5);
}

body.rwa-light-mode .rwa-weekly__item-photo {
	background: #f0f0f4;
}

body.rwa-light-mode .rwa-weekly__item--live .rwa-weekly__item-photo {
	box-shadow: 0 0 12px rgba(0, 115, 170, 0.15);
	border-color: rgba(0, 115, 170, 0.3);
}

body.rwa-light-mode .rwa-weekly__locutor img {
	border-color: rgba(0, 0, 0, 0.1);
}

body.rwa-light-mode .rwa-weekly__locutor span {
	color: rgba(0, 0, 0, 0.5);
}

/* ═══════════════════════════════════════════════════════════════
   ANCHO COMPLETO — asegura que el widget llene el contenedor
   ═══════════════════════════════════════════════════════════════ */

.elementor-widget-rwa_programacion,
.elementor-widget-rwa_programacion .elementor-widget-container {
	width: 100% !important;
	box-sizing: border-box;
}

.rwa-programacion-section,
.rwa-prog--carousel,
.rwa-prog--carousel-days {
	width: 100%;
	box-sizing: border-box;
}

/* Panel de día necesita position:relative para las flechas absolutas */
.rwa-carousel-day-panel {
	position: relative;
	width: 100%;
}

/* ═══════════════════════════════════════════════════════════════
   CAROUSEL VISUAL UPGRADE — tarjetas full-bleed con overlay
   ═══════════════════════════════════════════════════════════════ */

/* ── Card: portrait con imagen de fondo completa ── */
.rwa-programacion--carousel .rwa-programa-card {
	aspect-ratio: 3 / 4;
	position: relative;
	overflow: hidden;
	background: #0b0b1f;
	border: 1px solid rgba(255,255,255,.07);
	box-shadow: 0 8px 40px rgba(0,0,0,.45);
	display: flex;
	flex-direction: column;
	transform: none;
}

.rwa-programacion--carousel .rwa-programa-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 24px 64px rgba(0,0,0,.55), 0 0 0 1.5px rgba(255,255,255,.15);
	border-color: rgba(255,255,255,.14);
}

/* Foto cubre toda la tarjeta */
.rwa-programacion--carousel .rwa-programa-card__photo {
	position: absolute;
	inset: 0;
	padding-top: 0 !important;
	width: 100%;
	height: 100%;
	background: #0b0b1f;
	z-index: 0;
}

.rwa-programacion--carousel .rwa-programa-card__photo img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	object-position: top center;
	transition: transform .55s ease;
}

.rwa-programacion--carousel .rwa-programa-card:hover .rwa-programa-card__photo img {
	transform: scale(1.08);
}

/* Overlay gradiente de abajo hacia arriba */
.rwa-programacion--carousel .rwa-programa-card__photo::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to top,
		rgba(0,0,0,.97)  0%,
		rgba(0,0,0,.75) 38%,
		rgba(0,0,0,.28) 65%,
		transparent     100%
	);
	z-index: 1;
	pointer-events: none;
}

/* Placeholder: degradado oscuro de radio */
.rwa-programacion--carousel .rwa-programa-card__placeholder {
	position: absolute;
	inset: 0;
	background: linear-gradient(160deg, #0f0f2a 0%, #1c1a38 55%, #0d1527 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(255,255,255,.08);
}

/* Info: superpuesto en la parte inferior */
.rwa-programacion--carousel .rwa-programa-card__info {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 2;
	background: transparent;
	padding: 24px 18px 18px;
	gap: 7px;
	flex: initial;
}

/* Locutores van arriba del título */
.rwa-programacion--carousel .rwa-programa-card__locutores {
	margin-top: 0;
	margin-bottom: 2px;
	order: -1;
}

.rwa-programacion--carousel .rwa-programa-card__locutor img {
	width: 30px;
	height: 30px;
	border: 1.5px solid rgba(255,255,255,.4);
}

.rwa-programacion--carousel .rwa-programa-card__locutor-placeholder {
	width: 30px;
	height: 30px;
	border-color: rgba(255,255,255,.2);
}

.rwa-programacion--carousel .rwa-programa-card__locutor-name {
	font-size: 11px;
	color: rgba(255,255,255,.65);
}

/* Nombre del programa */
.rwa-programacion--carousel .rwa-programa-card__name {
	font-size: 17px;
	font-weight: 800;
	color: #fff !important;
	line-height: 1.25;
	text-shadow: 0 1px 10px rgba(0,0,0,.6);
	-webkit-line-clamp: 2;
	line-clamp: 2;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin: 0;
}

/* Horario: píldora de vidrio */
.rwa-programacion--carousel .rwa-programa-card__schedule {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 11px;
	font-weight: 600;
	color: rgba(255,255,255,.82);
	background: rgba(255,255,255,.1);
	border: 1px solid rgba(255,255,255,.15);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border-radius: 20px;
	padding: 3px 11px;
	width: fit-content;
	margin: 0;
}

/* Descripción */
.rwa-programacion--carousel .rwa-programa-card__desc {
	font-size: 12px;
	color: rgba(255,255,255,.55);
	-webkit-line-clamp: 2;
	line-clamp: 2;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin: 0;
}

/* ── Flechas: círculo con hover en color primario ── */
.rwa-prog--carousel .rwa-prog__arrow {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: rgba(8,8,28,.72);
	border: 1.5px solid rgba(255,255,255,.18);
	box-shadow: 0 4px 20px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.1);
}

.rwa-prog--carousel .rwa-prog__arrow:hover {
	background: var(--rwa-primary, #cc0000);
	border-color: var(--rwa-primary, #cc0000);
	color: #fff;
	box-shadow: 0 6px 24px rgba(204,0,0,.45);
	transform: translateY(-50%) scale(1.1);
}

/* ── Dots: píldoras en vez de círculos ── */
.rwa-prog__dot {
	width: 20px;
	height: 4px;
	border-radius: 4px;
	border: none;
	background: rgba(255,255,255,.18);
	padding: 0;
	transform: none;
	transition: width .4s ease, background .4s ease, box-shadow .4s ease;
}

.rwa-prog__dot:hover {
	background: rgba(255,255,255,.38);
}

.rwa-prog__dot--active {
	width: 42px;
	background: var(--rwa-accent, #00f5d4);
	box-shadow: 0 0 8px rgba(0,245,212,.4);
	transform: none;
}

/* Padding para que las flechas no se recorten */
.rwa-prog--carousel:not(.rwa-prog--carousel-days) {
	padding-left: 8px;
	padding-right: 8px;
}

/* ── Badge "EN VIVO" en carrusel ── */
.rwa-prog__live-badge {
	top: 12px;
	right: 12px;
	border-radius: 20px;
	font-size: 9px;
	letter-spacing: 1px;
	padding: 4px 11px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
	.rwa-programacion--carousel .rwa-programa-card {
		aspect-ratio: 3 / 4;
	}
	.rwa-programacion--carousel .rwa-programa-card__name {
		font-size: 15px;
	}
	.rwa-programacion--carousel .rwa-programa-card__info {
		padding: 18px 14px 14px;
	}
}

@media (max-width: 480px) {
	.rwa-programacion--carousel .rwa-programa-card {
		aspect-ratio: 4 / 5;
	}
	.rwa-prog__dot {
		width: 14px;
	}
	.rwa-prog__dot--active {
		width: 30px;
	}
}

/* ── Light mode ── */
body.rwa-light-mode .rwa-programacion--carousel .rwa-programa-card {
	background: #12122a;
	border-color: rgba(0,0,0,.08);
	box-shadow: 0 8px 40px rgba(0,0,0,.2);
}

body.rwa-light-mode .rwa-programacion--carousel .rwa-programa-card:hover {
	box-shadow: 0 20px 60px rgba(0,0,0,.28), 0 0 0 1.5px rgba(0,0,0,.1);
}

body.rwa-light-mode .rwa-programacion--carousel .rwa-programa-card__name {
	color: #fff !important;
}

body.rwa-light-mode .rwa-prog__dot {
	background: rgba(0,0,0,.15);
	border: none;
}

body.rwa-light-mode .rwa-prog__dot--active {
	background: #0073aa;
	box-shadow: 0 0 8px rgba(0,115,170,.3);
}

body.rwa-light-mode .rwa-prog--carousel .rwa-prog__arrow {
	background: rgba(255,255,255,.92);
	border-color: rgba(0,0,0,.12);
	color: #1a1a2e;
	box-shadow: 0 4px 16px rgba(0,0,0,.12);
}

body.rwa-light-mode .rwa-prog--carousel .rwa-prog__arrow:hover {
	background: var(--rwa-primary, #cc0000);
	border-color: var(--rwa-primary, #cc0000);
	color: #fff;
}
