/* ==========================================================================
   Stereo San Juan 89.1 FM
   ========================================================================== */

:root {
	--blue: #1b25d6;
	--blue-600: #141cb0;
	--red: #e3171e;
	--red-600: #c10f15;
	--navy: #0b1033;
	--navy-2: #141a4a;
	--ink: #151a33;
	--muted: #5d6480;
	--line: #e4e7f0;
	--soft: #f4f6fb;
	--cream: #fbf8f3;
	--green: #12a46b;
	--amber: #f2a516;
	--wa: #1faa59;

	--radius: 18px;
	--radius-sm: 12px;
	--shadow: 0 1px 2px rgba(11, 16, 51, .06), 0 8px 24px rgba(11, 16, 51, .08);
	--shadow-lg: 0 20px 50px rgba(11, 16, 51, .18);
	--font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--display: "Outfit", var(--font);
	--header-h: 76px;
	--player-h: 68px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.6;
	color: var(--ink);
	background: #fff;
	-webkit-font-smoothing: antialiased;
	padding-bottom: var(--player-h);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-600); }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em; color: var(--ink); letter-spacing: -.01em; }
p { margin: 0 0 1em; }
button { font: inherit; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

.sr-only,
.skip-link:not(:focus) {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
.skip-link:focus { position: fixed; z-index: 100; top: 8px; left: 8px; background: #fff; padding: 8px 14px; border-radius: 8px; }

:focus-visible { outline: 3px solid rgba(27, 37, 214, .45); outline-offset: 2px; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.container--narrow { width: min(820px, 100% - 40px); }

/* ---------- Botones ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5em;
	padding: .8em 1.4em;
	border-radius: 999px;
	border: 0;
	font-weight: 600;
	font-size: 15px;
	line-height: 1.2;
	cursor: pointer;
	transition: transform .15s ease, background-color .2s, box-shadow .2s, color .2s;
	white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--lg { padding: 1em 1.7em; font-size: 16px; }
.btn--sm { padding: .55em 1em; font-size: 14px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 8px 20px rgba(227, 23, 30, .35); }
.btn--primary:hover { background: var(--red-600); color: #fff; }
.btn--glass { background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .3); backdrop-filter: blur(8px); }
.btn--glass:hover { background: rgba(255, 255, 255, .22); color: #fff; }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { color: var(--blue); }
.btn--ghost { background: var(--soft); color: var(--ink); }
.btn--ghost:hover { background: #e8ebf5; color: var(--ink); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: #178f4a; color: #fff; }
.btn--live { background: var(--red); color: #fff; padding: .6em 1.1em; font-size: 14px; }
.btn--live:hover { background: var(--red-600); color: #fff; }

.icon-btn { background: none; border: 0; padding: 6px; color: inherit; cursor: pointer; border-radius: 8px; display: inline-grid; place-items: center; }

/* Estado del reproductor: alterna íconos play/pausa */
.icon--pause, .is-playing .icon--play { display: none; }
.is-playing .icon--pause { display: block; }
.icon--mute, .is-muted .icon--vol { display: none; }
.is-muted .icon--mute { display: block; }

.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.is-playing .live-dot { animation: pulse 1.4s infinite; }

@keyframes pulse {
	0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .7); }
	70% { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); }
	100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.eyebrow {
	font-family: var(--display);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--red);
	margin-bottom: .6em;
}
.eyebrow--light { color: #ffb4b6; }

.chip {
	display: inline-flex;
	align-items: center;
	padding: 3px 10px;
	border-radius: 999px;
	background: #eef0ff;
	color: var(--blue);
	font-size: 12px;
	font-weight: 600;
}
.chip--red { background: #ffe9ea; color: var(--red-600); }

/* ---------- Encabezado ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	border-bottom: 1px solid transparent;
	transition: border-color .2s, box-shadow .2s;
}
/* El desenfoque va en un pseudo-elemento: en el propio header rompería el menú móvil (position: fixed). */
.site-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgba(255, 255, 255, .9);
	backdrop-filter: saturate(160%) blur(14px);
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(11, 16, 51, .06); }
.admin-bar .site-header { top: 32px; }

.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); flex: none; }
.brand:hover { color: var(--ink); }
.brand__logo { height: 52px; width: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong { font-family: var(--display); font-size: 19px; font-weight: 800; }
.brand__text small { font-size: 12px; color: var(--muted); }

.main-nav { margin-left: auto; }
.main-nav__list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav__list a {
	display: block;
	padding: 8px 14px;
	border-radius: 999px;
	color: var(--ink);
	font-weight: 500;
	font-size: 15px;
	transition: background-color .2s, color .2s;
}
.main-nav__list a:hover { background: var(--soft); color: var(--blue); }
.main-nav__list .current-menu-item > a,
.main-nav__list .current_page_item > a,
.main-nav__list .current-menu-ancestor > a { color: var(--blue); background: #eef0ff; }

.nav-toggle { display: none; background: var(--soft); border: 0; border-radius: 12px; width: 44px; height: 44px; place-items: center; color: var(--ink); cursor: pointer; }
.nav-toggle .icon--close { display: none; }
.nav-open .nav-toggle .icon--open { display: none; }
.nav-open .nav-toggle .icon--close { display: block; }

/* ---------- Hero ---------- */
.hero {
	position: relative;
	color: #fff;
	background:
		radial-gradient(60% 80% at 85% 20%, rgba(227, 23, 30, .35), transparent 60%),
		linear-gradient(115deg, rgba(11, 16, 51, .96) 30%, rgba(20, 26, 90, .75) 65%, rgba(11, 16, 51, .55)),
		var(--bg) center / cover no-repeat,
		var(--navy);
	padding: clamp(56px, 9vw, 120px) 0 clamp(80px, 10vw, 130px);
	overflow: hidden;
	isolation: isolate;
}
.hero::after {
	content: "";
	position: absolute;
	inset: auto 0 -1px;
	height: 60px;
	background: #fff;
	clip-path: ellipse(75% 100% at 50% 100%);
	z-index: -1;
}
.hero__grid { display: grid; grid-template-columns: 1.25fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero__title { color: #fff; font-size: clamp(44px, 7vw, 84px); font-weight: 800; line-height: .98; letter-spacing: -.03em; margin-bottom: .35em; }
.hero__title span {
	background: linear-gradient(90deg, #ff4d53, #ffb199);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.hero__lead { font-size: clamp(17px, 1.6vw, 20px); color: rgba(255, 255, 255, .82); max-width: 34em; margin-bottom: 1.8em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__scroll { position: absolute; left: 50%; bottom: 72px; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .45); border-radius: 20px; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; background: #fff; border-radius: 2px; animation: scroll 1.8s infinite; }
@keyframes scroll { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

.onair {
	background: rgba(255, 255, 255, .09);
	border: 1px solid rgba(255, 255, 255, .18);
	backdrop-filter: blur(16px);
	border-radius: 28px;
	padding: 22px;
	box-shadow: var(--shadow-lg);
}
.onair__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.onair__listeners { font-size: 13px; color: rgba(255, 255, 255, .75); }
.onair__cover { position: relative; background: #fff; border-radius: 20px; padding: 22px 26px; aspect-ratio: 16 / 11; display: grid; place-items: center; }
.onair__cover img { max-height: 100%; width: auto; }
.onair__label { margin: 18px 0 2px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .6); font-weight: 600; }
.onair__song { margin: 0; font-family: var(--display); font-size: 20px; font-weight: 600; color: #fff; }

.eq { position: absolute; right: 14px; bottom: 12px; display: flex; gap: 3px; align-items: flex-end; height: 22px; opacity: 0; transition: opacity .3s; }
.eq i { width: 4px; background: var(--red); border-radius: 2px; height: 30%; }
.is-playing .eq { opacity: 1; }
.is-playing .eq i { animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.4s; }
.eq i:nth-child(3) { animation-delay: -.2s; }
.eq i:nth-child(4) { animation-delay: -.7s; }
.eq i:nth-child(5) { animation-delay: -.5s; }
@keyframes eq { 0%, 100% { height: 25%; } 50% { height: 100%; } }

.status-pill {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 5px 12px;
	border-radius: 999px;
	background: var(--soft);
	color: var(--muted);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	white-space: nowrap;
}
.status-pill i { width: 8px; height: 8px; border-radius: 50%; background: #a1a7bb; }
.status-pill.is-on { background: #ffe9ea; color: var(--red-600); }
.status-pill.is-on i { background: var(--red); animation: pulse-red 1.6s infinite; }
.status-pill--light { background: rgba(255, 255, 255, .14); color: #fff; }
.status-pill--light.is-on { background: var(--red); color: #fff; }
.status-pill--light.is-on i { background: #fff; }
@keyframes pulse-red {
	0% { box-shadow: 0 0 0 0 rgba(227, 23, 30, .6); }
	70% { box-shadow: 0 0 0 8px rgba(227, 23, 30, 0); }
	100% { box-shadow: 0 0 0 0 rgba(227, 23, 30, 0); }
}

/* ---------- Accesos rápidos ---------- */
.quicklinks { margin-top: -40px; position: relative; z-index: 2; }
.quicklinks__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.quick {
	display: grid;
	grid-template-columns: auto 1fr;
	grid-template-rows: auto auto;
	column-gap: 14px;
	align-items: center;
	padding: 18px 20px;
	background: #fff;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	color: var(--ink);
	border: 1px solid var(--line);
	transition: transform .2s, box-shadow .2s;
}
.quick:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--ink); }
.quick__icon { grid-row: span 2; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; }
.quick__icon .icon { width: 24px; height: 24px; }
.quick__icon--red { background: #ffe9ea; color: var(--red); }
.quick__icon--blue { background: #eef0ff; color: var(--blue); }
.quick__icon--green { background: #e3f7ee; color: var(--green); }
.quick__icon--amber { background: #fff4dc; color: #c27c00; }
.quick strong { font-family: var(--display); font-size: 17px; line-height: 1.2; }
.quick small { color: var(--muted); font-size: 13px; }

/* ---------- Secciones ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--first { padding-top: clamp(36px, 5vw, 56px); }
.section--tint { background: var(--soft); }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.section__title { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; letter-spacing: -.02em; margin-bottom: .3em; }
.section__lead { color: var(--muted); font-size: 17px; max-width: 40em; margin: 0; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; white-space: nowrap; }
.link-arrow .icon { transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(4px); }

.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Tarjetas ---------- */
.card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: var(--radius);
	border: 1px solid var(--line);
	overflow: hidden;
	transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__media { position: relative; display: block; aspect-ratio: 10 / 7; overflow: hidden; background: var(--soft); }
.card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card__img { transform: scale(1.05); }
.card__placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: rgba(255, 255, 255, .9); }
.card__placeholder .icon { width: 56px; height: 56px; stroke-width: 1.4; }
.card__placeholder--0 { background: linear-gradient(135deg, #1b25d6, #6a3df0); }
.card__placeholder--1 { background: linear-gradient(135deg, #0f8a6b, #43c59e); }
.card__placeholder--2 { background: linear-gradient(135deg, #e3171e, #ff7a45); }
.card__placeholder--3 { background: linear-gradient(135deg, #0b6fb8, #3ec1e6); }
.card__placeholder--4 { background: linear-gradient(135deg, #c27c00, #f2c14e); }
.card__badge {
	position: absolute;
	left: 12px;
	bottom: 12px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 10px;
	border-radius: 999px;
	background: rgba(11, 16, 51, .75);
	backdrop-filter: blur(6px);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
}
.card__badge .icon { width: 14px; height: 14px; }
.card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 13px; color: var(--muted); }
.card__meta:empty { display: none; }
.card__title { font-size: 20px; font-weight: 700; margin-bottom: .4em; }
.card__title a { color: var(--ink); }
.card__title a:hover { color: var(--blue); }
.card__text { color: var(--muted); font-size: 15px; margin-bottom: 14px; }
.card__info { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink); font-weight: 500; margin: auto 0 0; }
.card__info .icon { color: var(--red); }
.card__link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; margin-top: auto; }
.card--aviso.is-urgent { border-color: #ffc6c8; box-shadow: 0 0 0 3px #fff0f0; }

/* ---------- Chat en la portada ---------- */
.chat-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.chat-layout .ssj-chat { margin: 0; max-width: none; border-radius: 22px; box-shadow: var(--shadow-lg); border: 0; }
.chat-layout .ssj-chat__head { background: linear-gradient(135deg, var(--navy), var(--navy-2)); }
.checks { list-style: none; padding: 0; margin: 20px 0 28px; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 32px; font-weight: 500; }
.checks li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 2px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #e3f7ee url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312a46b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* ---------- Historia (portada) ---------- */
.story { background: var(--navy); color: rgba(255, 255, 255, .85); padding: clamp(56px, 8vw, 100px) 0; position: relative; overflow: hidden; }
.story::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 70% at 0% 100%, rgba(27, 37, 214, .5), transparent 70%); }
.story__grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.story .section__title { color: #fff; }
.story__media { margin: 0; position: relative; }
.story__media img { border-radius: 24px; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.story__media figcaption { position: absolute; left: 16px; bottom: 16px; background: rgba(11, 16, 51, .75); color: #fff; padding: 6px 12px; border-radius: 999px; font-size: 13px; backdrop-filter: blur(6px); }
.mini-timeline { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; gap: 12px; }
.mini-timeline li { display: flex; gap: 16px; align-items: baseline; padding-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.mini-timeline strong { font-family: var(--display); font-size: 22px; color: #ff8d90; min-width: 64px; }

/* ---------- Anunciantes ---------- */
.logo-wall { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-bottom: 32px; }
.logo-wall__item {
	aspect-ratio: 3 / 2;
	display: grid;
	place-items: center;
	padding: 16px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	color: var(--ink);
	font-family: var(--display);
	font-weight: 700;
	text-align: center;
	line-height: 1.2;
	transition: box-shadow .2s, transform .2s;
}
.logo-wall__item:hover { box-shadow: var(--shadow); transform: translateY(-2px); color: var(--blue); }
.logo-wall__item img { max-height: 70px; width: auto; object-fit: contain; filter: grayscale(.2); }

.cta-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 28px 32px;
	border-radius: 22px;
	background: linear-gradient(120deg, #fff1f1, #eef0ff);
	border: 1px solid var(--line);
	flex-wrap: wrap;
}
.cta-card h3 { font-size: 24px; margin-bottom: .25em; }
.cta-card p { margin: 0; color: var(--muted); max-width: 46em; }
.cta-card--spaced { margin-top: 40px; }

.sponsors { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.sponsors > [id] { scroll-margin-top: calc(var(--header-h) + 20px); }
.sponsors > :target .sponsor { box-shadow: 0 0 0 3px var(--blue); }
.sponsor {
	display: grid;
	grid-template-columns: 112px 1fr;
	gap: 20px;
	padding: 20px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	height: 100%;
	transition: box-shadow .2s;
}
.sponsor:hover { box-shadow: var(--shadow); }
.sponsor__logo { width: 112px; height: 112px; border-radius: 16px; background: var(--soft); display: grid; place-items: center; overflow: hidden; }
.sponsor__logo img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.sponsor__initials { font-family: var(--display); font-size: 34px; font-weight: 800; color: var(--blue); }
.sponsor__name { font-size: 20px; margin-bottom: .25em; }
.sponsor__text { color: var(--muted); font-size: 15px; margin-bottom: 10px; }
.sponsor__facts { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 4px; font-size: 14px; color: var(--muted); }
.sponsor__facts li { display: flex; gap: 8px; align-items: flex-start; }
.sponsor__facts .icon { width: 16px; height: 16px; margin-top: 3px; color: var(--red); }
.sponsor__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.sponsor__actions .icon { width: 16px; height: 16px; }

/* ---------- App ---------- */
.app-band { background: linear-gradient(120deg, var(--red) 0%, #b40f2d 45%, var(--navy) 100%); color: rgba(255, 255, 255, .88); padding: clamp(56px, 7vw, 90px) 0; overflow: hidden; }
.app-band .section__title { color: #fff; }
.app-band__grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: center; }
.store-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.store-btn { display: inline-flex; align-items: center; gap: 12px; padding: 12px 20px; background: #000; color: #fff; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .25); }
.store-btn:hover { color: #fff; background: #111; }
.store-btn .icon { width: 28px; height: 28px; }
.store-btn span { display: flex; flex-direction: column; line-height: 1.1; font-family: var(--display); font-weight: 700; font-size: 18px; }
.store-btn small { font-family: var(--font); font-weight: 400; font-size: 11px; opacity: .8; }
.store-btn.is-soon { opacity: .7; pointer-events: none; }
.phone-mock { justify-self: center; width: 230px; aspect-ratio: 9 / 18.5; background: #0b0d1c; border-radius: 38px; padding: 10px; box-shadow: 0 30px 60px rgba(0, 0, 0, .4); transform: rotate(6deg); }
.phone-mock__screen { height: 100%; border-radius: 30px; background: linear-gradient(180deg, #fff, #eef0f8); display: flex; flex-direction: column; align-items: center; justify-content: space-around; padding: 24px 16px; }
.phone-mock__screen .status-pill { background: var(--red); color: #fff; }
.phone-mock__screen .status-pill i { background: #fff; }
.phone-mock__screen img { width: 80%; border-radius: 16px; background: #fff; padding: 10px; box-shadow: var(--shadow); }
.phone-mock__play { width: 64px; height: 64px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 20px rgba(227, 23, 30, .4); }
.phone-mock__play .icon { width: 28px; height: 28px; margin-left: 3px; }

/* ---------- Páginas internas ---------- */
.page-hero {
	position: relative;
	background:
		radial-gradient(50% 90% at 100% 0%, rgba(227, 23, 30, .32), transparent 60%),
		linear-gradient(120deg, var(--navy), var(--navy-2));
	color: #fff;
	padding: clamp(48px, 7vw, 88px) 0 clamp(48px, 6vw, 72px);
}
.page-hero--image {
	background:
		linear-gradient(120deg, rgba(11, 16, 51, .92) 25%, rgba(11, 16, 51, .45)),
		var(--bg) center / cover no-repeat,
		var(--navy);
	padding-block: clamp(72px, 10vw, 130px) clamp(56px, 7vw, 90px);
}
.page-hero .eyebrow { color: #ffb4b6; }
.page-hero__title { color: #fff; font-size: clamp(34px, 5vw, 58px); font-weight: 800; letter-spacing: -.02em; max-width: 18em; }
.page-hero__lead { color: rgba(255, 255, 255, .8); font-size: clamp(16px, 1.5vw, 19px); max-width: 44em; margin: 0; }

.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters__item { padding: 8px 16px; border-radius: 999px; background: var(--soft); color: var(--ink); font-weight: 500; font-size: 14px; border: 1px solid transparent; }
.filters__item:hover { border-color: var(--line); color: var(--blue); }
.filters__item.is-active { background: var(--navy); color: #fff; }
.search-inline input { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); min-width: 240px; font: inherit; font-size: 15px; background: #fff; }
.search-inline input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(27, 37, 214, .15); }

.empty { display: grid; justify-items: center; gap: 16px; padding: 60px 20px; text-align: center; color: var(--muted); }
.empty .icon { width: 56px; height: 56px; color: #c3c8da; }
.note { margin-top: 40px; text-align: center; color: var(--muted); }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 64px); align-items: start; }
.info-card { position: sticky; top: calc(var(--header-h) + 24px); background: var(--soft); border-radius: var(--radius); padding: 24px; }
.info-card h2 { font-size: 20px; }
.info-card dl { margin: 0 0 20px; display: grid; gap: 16px; }
.info-card dt { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.info-card dt .icon { width: 16px; height: 16px; color: var(--red); }
.info-card dd { margin: 4px 0 0; font-weight: 500; }
.info-card__note { font-size: 13px; color: var(--muted); margin: 14px 0 0; }
.info-card .btn + .info-card__note { margin-top: 14px; }

/* Texto largo (historia, avisos, lugares) */
.prose { font-size: 17px; line-height: 1.75; color: #2a3050; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(24px, 2.6vw, 32px); margin-top: 1.8em; }
.prose h3 { font-size: 21px; margin-top: 1.5em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose img { border-radius: var(--radius); }
.prose figure { margin: 2em 0; }
.prose figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; text-align: center; }
.prose blockquote { margin: 2em 0; padding: 20px 24px; border-left: 4px solid var(--red); background: var(--cream); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-family: var(--display); font-size: 20px; color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose__media img { width: 100%; }
.prose .lead { font-size: clamp(19px, 2vw, 22px); color: var(--ink); line-height: 1.6; }
.prose .sources { font-size: 14px; color: var(--muted); }
.byline { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 15px; }
.credit { font-size: 13px; color: var(--muted); }

/* Línea de tiempo en la historia */
.timeline { list-style: none; padding: 0 !important; margin: 2em 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--red), var(--blue)); }
.timeline li { position: relative; padding: 0 0 22px 44px; margin: 0 !important; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 4px solid var(--red); }
.timeline strong { display: block; font-family: var(--display); font-size: 20px; color: var(--ink); line-height: 1.3; }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 2em 0; }
.facts > div { background: var(--soft); border-radius: var(--radius-sm); padding: 18px; text-align: center; }
.facts strong { display: block; font-family: var(--display); font-size: 30px; color: var(--blue); line-height: 1.1; }
.facts span { font-size: 14px; color: var(--muted); }

/* ---------- Pie ---------- */
.site-footer { background: #070b26; color: rgba(255, 255, 255, .7); padding: 64px 0 24px; font-size: 15px; }
.site-footer a { color: rgba(255, 255, 255, .85); }
.site-footer a:hover { color: #fff; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 48px; }
.site-footer__title { color: #fff; font-size: 16px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 18px; }
.footer-logo { display: inline-block; background: #fff; padding: 10px 14px; border-radius: 14px; margin-bottom: 18px; }
.footer-logo__img { height: 54px; width: auto; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list .icon { color: #ff8d90; margin-top: 2px; }
.socials { list-style: none; padding: 0; margin: 20px 0 0; display: flex; gap: 10px; }
.socials a { width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .08); display: grid; place-items: center; }
.socials a:hover { background: var(--red); }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 48px; padding-top: 20px; font-size: 13px; color: rgba(255, 255, 255, .5); }

/* ---------- Reproductor fijo ---------- */
.player-bar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 60;
	background: rgba(11, 16, 51, .96);
	backdrop-filter: blur(14px);
	color: #fff;
	box-shadow: 0 -8px 30px rgba(0, 0, 0, .2);
}
.player-bar__inner { display: flex; align-items: center; gap: 16px; height: var(--player-h); }
.player-bar__btn {
	position: relative;
	flex: none;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	border: 0;
	background: var(--red);
	color: #fff;
	display: grid;
	place-items: center;
	cursor: pointer;
	transition: transform .15s, background-color .2s;
}
.player-bar__btn:hover { transform: scale(1.06); background: var(--red-600); }
.player-bar__btn .icon--play { margin-left: 3px; }
.player-bar__info { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.3; }
.player-bar__info strong { font-family: var(--display); font-size: 15px; }
.player-bar__info span { font-size: 13px; color: rgba(255, 255, 255, .7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-bar .status-pill { background: rgba(255, 255, 255, .12); color: #fff; }
.player-bar .status-pill.is-on { background: var(--red); }
.player-bar .status-pill.is-on i { background: #fff; }
.player-bar__volume { display: flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, .85); }
.player-bar__volume input { width: 110px; accent-color: var(--red); }

.spinner { position: absolute; inset: -4px; border-radius: 50%; border: 3px solid transparent; border-top-color: #fff; opacity: 0; animation: spin .8s linear infinite; }
.is-loading .spinner { opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }

.player-toast {
	position: fixed;
	left: 50%;
	bottom: calc(var(--player-h) + 16px);
	transform: translate(-50%, 20px);
	z-index: 61;
	background: #fff;
	color: var(--ink);
	padding: 12px 18px;
	border-radius: 14px;
	box-shadow: var(--shadow-lg);
	font-weight: 500;
	font-size: 15px;
	opacity: 0;
	pointer-events: none;
	transition: opacity .25s, transform .25s;
	max-width: calc(100% - 32px);
	text-align: center;
}
.player-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* Animación de entrada */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Banners promocionales ---------- */
.section--ads { padding-top: 0; }
.ads-top { margin-bottom: 36px; }
.aside-promo, .page-promo { margin-top: 24px; }
.page-promo { margin-top: 48px; }

.promo {
	--c1: #0a6cf1; --c2: #062f73;
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 220px;
	align-items: center;
	gap: 32px;
	padding: clamp(28px, 4vw, 48px);
	border-radius: 26px;
	color: rgba(255, 255, 255, .9);
	background:
		radial-gradient(70% 120% at 100% 0%, rgba(255, 255, 255, .18), transparent 60%),
		radial-gradient(40% 60% at 0% 100%, rgba(0, 0, 0, .25), transparent 70%),
		linear-gradient(125deg, var(--c1), var(--c2));
	overflow: hidden;
	isolation: isolate;
	min-height: 100%;
}
.promo::after {
	content: "";
	position: absolute;
	right: -80px;
	bottom: -120px;
	width: 340px;
	height: 340px;
	border-radius: 50%;
	border: 40px solid rgba(255, 255, 255, .07);
	z-index: -1;
}
.promo--azul { --c1: #0a6cf1; --c2: #062f73; }
.promo--rojo { --c1: #e3171e; --c2: #6d0a1f; }
.promo--verde { --c1: #0f9d6b; --c2: #0a4a46; }
.promo--morado { --c1: #6b3df0; --c2: #2a1170; }
.promo--naranja { --c1: #f07a1a; --c2: #8a2a0b; }
.promo--turquesa { --c1: #0891b2; --c2: #0b3557; }
.promo--rosa { --c1: #db2777; --c2: #4c0b3a; }
.promo--oscuro { --c1: #1d2547; --c2: #070b26; }
.promo__brand { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .75); }
.promo__title { color: #fff; font-size: clamp(24px, 3vw, 36px); font-weight: 800; letter-spacing: -.02em; margin-bottom: .35em; }
.promo__text { font-size: 17px; max-width: 38em; margin-bottom: 16px; }
.promo__points { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.promo__points li { padding: 6px 12px 6px 30px; border-radius: 999px; background: rgba(255, 255, 255, .14); font-size: 14px; font-weight: 500; color: #fff; position: relative; }
.promo__points li::before { content: ""; position: absolute; left: 11px; top: 50%; width: 10px; height: 6px; border: solid #fff; border-width: 0 0 2px 2px; transform: translateY(-70%) rotate(-45deg); }
.promo__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.promo__actions .btn--light .icon { width: 18px; height: 18px; }
.promo__logo { background: #fff; border-radius: 22px; padding: 18px; aspect-ratio: 1; display: grid; place-items: center; box-shadow: 0 20px 40px rgba(0, 0, 0, .25); transform: rotate(3deg); }
.promo__logo img { width: 100%; height: 100%; object-fit: contain; }
.promo__tag { position: absolute; top: 14px; right: 16px; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }

.promo--compact { grid-template-columns: 1fr 64px; gap: 14px; padding: 20px; border-radius: 18px; }
.promo--compact::after { display: none; }
.promo--compact .promo__title { font-size: 18px; }
.promo--compact .promo__brand { font-size: 11px; }
.promo--compact .promo__logo { border-radius: 14px; padding: 6px; transform: none; align-self: start; }
.promo--compact .promo__tag { top: auto; bottom: 10px; }

/* ---------- Carrusel ---------- */
.carousel { position: relative; }
.carousel__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 100%;
	gap: 20px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	border-radius: 26px;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__slide { scroll-snap-align: start; }
.carousel__nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 18px; }
.carousel__arrow { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: background-color .2s, color .2s; }
.carousel__arrow:hover { background: var(--navy); color: #fff; }
.carousel__arrow[data-carousel-prev] .icon { transform: rotate(180deg); }
.carousel__dots { display: flex; gap: 8px; }
.carousel__dots button { width: 9px; height: 9px; border-radius: 999px; border: 0; padding: 0; background: #cdd2e2; cursor: pointer; transition: width .25s, background-color .25s; }
.carousel__dots button[aria-current="true"] { width: 26px; background: var(--red); }

@media (max-width: 960px) {
	.promo { grid-template-columns: minmax(0, 1fr) 140px; gap: 20px; }
}
@media (max-width: 600px) {
	.promo { grid-template-columns: 1fr; padding: 24px 22px 26px; }
	.promo__logo { order: -1; width: 92px; padding: 10px; border-radius: 18px; transform: none; }
	.promo__points li { font-size: 13px; }
	.promo__actions .btn { flex: 1 1 auto; }
	.promo--compact { grid-template-columns: 1fr 56px; }
	.promo--compact .promo__logo { order: 0; width: 56px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.brand__text small { display: none; }
	.main-nav__list a { padding: 8px 10px; font-size: 14px; }
	.logo-wall { grid-template-columns: repeat(4, 1fr); }
	.grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
	:root { --header-h: 68px; }
	.nav-toggle { display: grid; }
	.header-play { margin-left: auto; }
	.main-nav {
		position: fixed;
		inset: var(--header-h) 0 0;
		background: #fff;
		padding: 16px 20px calc(var(--player-h) + 20px);
		transform: translateX(100%);
		transition: transform .3s ease;
		overflow-y: auto;
		margin: 0;
	}
	.admin-bar .main-nav { top: calc(var(--header-h) + 46px); }
	.nav-open .main-nav { transform: none; }
	.nav-open { overflow: hidden; }
	.main-nav__list { flex-direction: column; gap: 4px; }
	.main-nav__list a { font-size: 18px; padding: 14px 16px; border-radius: 14px; }

	.hero__grid, .chat-layout, .story__grid, .article-layout, .app-band__grid { grid-template-columns: 1fr; }
	.onair { max-width: 440px; }
	.hero__scroll { display: none; }
	.quicklinks__grid { grid-template-columns: repeat(2, 1fr); }
	.grid--3 { grid-template-columns: repeat(2, 1fr); }
	.sponsors { grid-template-columns: 1fr; }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
	.site-footer__brand { grid-column: 1 / -1; }
	.info-card { position: static; }
	.phone-mock { display: none; }
	.player-bar__volume { display: none; }
}

@media (max-width: 782px) {
	.admin-bar .site-header { top: 46px; }
}

@media (max-width: 600px) {
	.container { width: calc(100% - 32px); }
	.brand__logo { height: 42px; }
	.brand__text strong { font-size: 16px; }
	.header-play [data-play-label] { display: none; }
	.header-play { padding: .7em; }
	.hero__actions .btn { flex: 1 1 100%; }
	.quicklinks { margin-top: -32px; }
	.quicklinks__grid { gap: 10px; }
	.quick { grid-template-columns: 1fr; grid-template-rows: auto; padding: 14px; row-gap: 4px; }
	.quick__icon { grid-row: auto; width: 40px; height: 40px; margin-bottom: 6px; }
	.quick small { display: none; }
	.grid--3, .grid--4 { grid-template-columns: 1fr; }
	.logo-wall { grid-template-columns: repeat(2, 1fr); }
	.sponsor { grid-template-columns: 72px 1fr; gap: 14px; padding: 16px; }
	.sponsor__logo { width: 72px; height: 72px; border-radius: 12px; }
	.sponsor__initials { font-size: 24px; }
	.cta-card { padding: 22px; }
	.cta-card .btn { width: 100%; }
	.search-inline, .search-inline input { width: 100%; min-width: 0; }
	.facts { grid-template-columns: 1fr; }
	.site-footer__grid { grid-template-columns: 1fr; gap: 32px; }
	.player-bar .status-pill { display: none; }
	.chat-layout .ssj-chat { border-radius: 18px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	html { scroll-behavior: auto; }
	.reveal { opacity: 1; transform: none; }
}

/* Widget de Tidio por encima del reproductor fijo */
#tidio-chat { bottom: var(--player-h) !important; height: calc(100% - var(--player-h)) !important; }
