/* ==========================================================================
   MS-News — estilos de frontend
   Todos los colores se controlan con variables CSS (editables por widget
   en Estilo › Colores de marca, o globalmente sobrescribiendo :root).
   ========================================================================== */

:root {
	--msn-primary: #e30613;
	--msn-dark: #111111;
	--msn-text: #1a1a1a;
	--msn-muted: #6b6b6b;
	--msn-surface: #ffffff;
	--msn-line: #e6e6e6;
	--msn-badge-txt: #ffffff;
	--msn-radius: 6px;
	--msn-gap: 16px;
	--msn-ratio: 16/10;
	--msn-thumb-w: 130px;
}

.msn-w { color: var(--msn-text); box-sizing: border-box; }
.msn-w *, .msn-w *::before, .msn-w *::after { box-sizing: inherit; }
.msn-w a { color: inherit; text-decoration: none; }
.msn-w img { display: block; max-width: 100%; }
.msn-ico { width: 1em; height: 1em; display: inline-block; vertical-align: -0.125em; flex: none; }

/* ---------- Elementos comunes ---------- */
.msn-badge {
	display: inline-block;
	background: var(--msn-badge-bg, var(--msn-primary));
	color: var(--msn-badge-txt) !important;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: .02em;
	text-transform: uppercase;
	padding: 5px 7px;
	border-radius: 3px;
	margin-bottom: 6px;
}
.msn-title { margin: 0 0 6px; font-weight: 700; line-height: 1.22; font-size: 17px; }
.msn-title a:hover { color: var(--msn-primary); }
.msn-excerpt { margin: 0 0 8px; color: var(--msn-muted); font-size: 14px; line-height: 1.45; }
.msn-date { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--msn-muted); }
.msn-views { display: block; font-size: 12px; color: var(--msn-muted); margin-top: 2px; }
.msn-btn {
	display: inline-flex; align-items: center; gap: 6px;
	background: var(--msn-primary); color: #fff !important;
	font-weight: 700; font-size: 13px; line-height: 1;
	padding: 8px 12px; border-radius: 4px; border: 0; cursor: pointer;
	transition: filter .2s, transform .2s;
}
.msn-btn:hover { filter: brightness(1.12); transform: translateY(-1px); }
.msn-btn--lg { font-size: 17px; padding: 14px 20px; border-radius: 8px; }
.msn-stretched { position: absolute; inset: 0; z-index: 1; }
.msn-overlay { position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.85) 100%); }
.msn-empty { padding: 20px; border: 1px dashed #bbb; text-align: center; color: #777; font-size: 13px; }

/* Miniaturas */
.msn-thumb { display: block; overflow: hidden; border-radius: var(--msn-radius); aspect-ratio: var(--msn-ratio); background: #ddd; }
.msn-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.msn-item:hover .msn-thumb img, .msn-rank__item:hover .msn-thumb img { transform: scale(1.05); }
.msn-thumb__ph { display: block; width: 100%; height: 100%; background: linear-gradient(135deg,#e4e4e4,#cfcfcf); }
.msn-thumb--sm { width: 64px; aspect-ratio: 1; flex: none; }

/* ---------- Cabecera de sección ---------- */
.msn-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.msn-head__title { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; text-transform: uppercase; font-size: 18px; line-height: 1.1; }
.msn-head__icon { display: inline-flex; font-size: 1.1em; }
.msn-head__icon svg { width: 1em; height: 1em; fill: currentColor; }
.msn-head__more { font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.msn-head--bar { background: var(--msn-primary); color: #fff; padding: 11px 16px; border-radius: var(--msn-radius) var(--msn-radius) 0 0; }
.msn-head--bar .msn-head__more { color: #fff; }
.msn-head--underline { border-bottom: 3px solid var(--msn-primary); padding-bottom: 8px; margin-bottom: var(--msn-gap); }
.msn-head--underline .msn-head__icon { color: var(--msn-primary); }
.msn-head--tab { border-bottom: 2px solid var(--msn-primary); margin-bottom: var(--msn-gap); }
.msn-head--tab .msn-head__title { background: var(--msn-primary); color: #fff; padding: 9px 14px; border-radius: var(--msn-radius) var(--msn-radius) 0 0; }
.msn-block .msn-head--bar { margin-bottom: var(--msn-gap); border-radius: var(--msn-radius); }

/* ---------- Ticker ÚLTIMA HORA ---------- */
.msn-ticker {
	display: flex; align-items: stretch; gap: 0;
	background: var(--msn-surface); border: 1px solid var(--msn-line); border-radius: var(--msn-radius);
	box-shadow: 0 2px 8px rgba(0,0,0,.06); overflow: hidden; min-height: 44px;
}
.msn-ticker__label {
	display: flex; align-items: center; gap: 8px; flex: none;
	background: var(--msn-primary); color: #fff; font-weight: 800; font-size: 17px;
	padding: 0 18px; text-transform: uppercase; border-radius: var(--msn-radius) 0 0 var(--msn-radius);
	clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%); padding-right: 26px;
}
.msn-ticker__label svg { width: 1em; height: 1em; fill: currentColor; }
.msn-ticker__label i { animation: msn-blink 1.4s infinite; }
@keyframes msn-blink { 50% { opacity: .35; } }
.msn-ticker__viewport { position: relative; flex: 1; overflow: hidden; }
.msn-ticker__list { list-style: none; margin: 0; padding: 0; height: 100%; }
.msn-ticker__item { position: absolute; inset: 0; display: flex; align-items: center; gap: 8px; padding: 0 16px;
	font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
	opacity: 0; transform: translateY(100%); transition: transform .45s ease, opacity .45s ease; }
.msn-ticker__item a { overflow: hidden; text-overflow: ellipsis; }
.msn-ticker__item a:hover { color: var(--msn-primary); }
.msn-ticker__item.is-active { opacity: 1; transform: none; }
.msn-ticker__item.is-leaving { opacity: 0; transform: translateY(-100%); }
.msn-ticker--fade .msn-ticker__item { transform: none; }
.msn-ticker__time { color: var(--msn-primary); font-weight: 800; }
.msn-ticker__nav { display: flex; align-items: center; gap: 4px; padding: 0 10px; flex: none; }
.msn-ticker__nav button { width: 26px; height: 26px; border: 1px solid var(--msn-line); background: #fff; color: var(--msn-text);
	border-radius: 4px; font-size: 18px; line-height: 1; cursor: pointer; padding: 0; }
.msn-ticker__nav button:hover { background: var(--msn-primary); color: #fff; border-color: var(--msn-primary); }
/* Marquesina */
.msn-ticker--marquee .msn-ticker__list { display: flex; width: max-content; animation: msn-marquee var(--msn-marquee, 30s) linear infinite; }
.msn-ticker--marquee:hover .msn-ticker__list, .msn-ticker--marquee:focus-within .msn-ticker__list { animation-play-state: paused; }
.msn-ticker--marquee .msn-ticker__item { position: static; opacity: 1; transform: none; padding: 0 28px; height: 100%; }
.msn-ticker--marquee .msn-ticker__item::before { content: "•"; color: var(--msn-primary); margin-right: 8px; }
@keyframes msn-marquee { to { transform: translateX(-50%); } }

/* ---------- Portada destacada ---------- */
.msn-hero { display: grid; gap: var(--msn-gap); grid-template-columns: var(--msn-hero-main, 64%) 1fr; }
.msn-hero--single .msn-hero__main, .msn-hero--bottom .msn-hero__main { grid-column: 1 / -1; }
.msn-hero--single, .msn-hero--bottom { grid-template-columns: 1fr; }
.msn-hero__main {
	position: relative; overflow: hidden; border-radius: var(--msn-radius); min-height: 340px;
	display: flex; flex-direction: column; justify-content: flex-end; background: var(--msn-dark); color: #fff;
}
.msn-hero__bg { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; transition: transform .6s ease; }
.msn-hero__main:hover .msn-hero__bg { transform: scale(1.04); }
.msn-hero__badge { position: absolute; top: 14px; left: 14px; z-index: 2; }
.msn-hero__badge .msn-badge { font-size: 13px; padding: 6px 9px; }
.msn-hero__content { position: relative; z-index: 2; padding: 22px; pointer-events: none; }
.msn-hero__content a { pointer-events: auto; }
.msn-hero__main .msn-title { color: #fff; font-size: clamp(22px, 2.6vw, 34px); line-height: 1.1; margin-bottom: 8px; }
.msn-hero__main .msn-title a:hover { color: #fff; text-decoration: underline; }
.msn-hero__main .msn-excerpt { color: rgba(255,255,255,.9); font-size: 15px; max-width: 46em; }
.msn-hero__main .msn-date { color: rgba(255,255,255,.85); }
.msn-hero__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.msn-hero__foot .msn-btn { position: relative; z-index: 3; }

.msn-hero__side { display: flex; flex-direction: column; gap: 0; }
.msn-hero--side-grid .msn-hero__side { display: grid; grid-template-columns: 1fr 1fr; gap: var(--msn-gap); }
.msn-hero--bottom .msn-hero__side { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--msn-gap); }

/* Ítems */
.msn-item { position: relative; }
.msn-item--row { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--msn-line); }
.msn-item--row:first-child { padding-top: 0; }
.msn-item--row:last-child { border-bottom: 0; padding-bottom: 0; }
.msn-item--row .msn-thumb { width: var(--msn-thumb-w); flex: none; aspect-ratio: 4/3; }
.msn-item--row .msn-title { font-size: 15px; }
.msn-item--row .msn-badge { font-size: 10px; padding: 4px 6px; }
.msn-item--card { background: var(--msn-surface); border-radius: var(--msn-radius); overflow: hidden; display: flex; flex-direction: column; }
.msn-item--card .msn-thumb { border-radius: var(--msn-radius) var(--msn-radius) 0 0; }
.msn-item--card .msn-item__body { padding: 12px 14px 14px; flex: 1; display: flex; flex-direction: column; align-items: flex-start; }
.msn-item--card .msn-btn { margin-top: auto; }
.msn-item--overlay { border-radius: var(--msn-radius); overflow: hidden; color: #fff; }
.msn-item--overlay .msn-thumb { border-radius: 0; }
.msn-item--overlay .msn-item__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px; z-index: 2; pointer-events: none; }
.msn-item--overlay .msn-item__body a { pointer-events: auto; position: relative; z-index: 3; }
.msn-item--overlay .msn-title { color: #fff; }
.msn-item--overlay .msn-date { color: rgba(255,255,255,.85); }
.msn-item--title { padding: 10px 0; border-bottom: 1px solid var(--msn-line); }
.msn-item--title .msn-title { font-size: 15px; margin: 0; }
.msn-item--big .msn-title { font-size: 22px; }

.msn-shadow-yes .msn-item--card { box-shadow: 0 2px 10px rgba(0,0,0,.08); }

/* ---------- Lo más leído ---------- */
.msn-box { background: var(--msn-surface); border-radius: var(--msn-radius); box-shadow: 0 2px 10px rgba(0,0,0,.08); overflow: hidden; }
.msn-rank { list-style: none; margin: 0; padding: 6px 16px; counter-reset: none; }
.msn-rank__item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--msn-line); }
.msn-rank__item:last-child { border-bottom: 0; }
.msn-rank__item .msn-title { font-size: 14px; font-weight: 600; margin: 0; }
.msn-rank__num { flex: none; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; background: var(--msn-primary); }
.msn-rank--circle .msn-rank__num { width: 26px; height: 26px; border-radius: 50%; font-size: 14px; }
.msn-rank--square .msn-rank__num { width: 28px; height: 28px; border-radius: 4px; font-size: 14px; }
.msn-rank--big .msn-rank__num { background: none; color: var(--msn-primary); font-size: 34px; line-height: .9; min-width: 30px; }

/* ---------- Bloque de noticias ---------- */
.msn-grid { display: grid; gap: var(--msn-gap); grid-template-columns: repeat(var(--msn-cols, 3), minmax(0, 1fr)); }
.msn-grid--list, .msn-grid--titles { column-gap: calc(var(--msn-gap) * 2); row-gap: 0; }
.msn-grid--list .msn-item--row:first-child { padding-top: 12px; }
.msn-grid--list .msn-item--row:last-child { border-bottom: 1px solid var(--msn-line); padding-bottom: 12px; }
.msn-grid--h { grid-auto-flow: column; grid-template-columns: none;
	grid-auto-columns: calc((100% - (var(--msn-cols, 3) - 1) * var(--msn-gap)) / var(--msn-cols, 3));
	overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.msn-grid--h > * { scroll-snap-align: start; }
.msn-grid--h.msn-grid--list { row-gap: 0; }
.msn-mixed { display: grid; grid-template-columns: 1.2fr 1fr; gap: calc(var(--msn-gap) * 1.5); }
.msn-loadmore { margin: calc(var(--msn-gap) * 1.2) auto 0; display: flex; }
.msn-loadmore.is-loading { opacity: .6; pointer-events: none; }

/* ---------- Tarjetas de sección ---------- */
.msn-cards { display: grid; gap: var(--msn-gap); grid-template-columns: repeat(var(--msn-cols, 5), minmax(0, 1fr)); }
.msn-card { background: var(--msn-surface); border-radius: var(--msn-radius); overflow: hidden; display: flex; flex-direction: column;
	box-shadow: 0 2px 10px rgba(0,0,0,.08); transition: transform .25s, box-shadow .25s; }
.msn-card:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(0,0,0,.14); }
.msn-card__head { display: flex; align-items: center; gap: 12px; padding: 10px 16px; min-height: 58px; font-weight: 800; font-size: 17px; text-transform: uppercase;
	color: #fff; background: linear-gradient(180deg, var(--msn-primary), color-mix(in srgb, var(--msn-primary) 78%, #000)); line-height: 1.15; }
.msn-card__icon { display: inline-flex; font-size: 24px; }
.msn-card__icon svg { width: 1em; height: 1em; fill: currentColor; }
.msn-card__img { height: 150px; overflow: hidden; }
.msn-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.msn-card:hover .msn-card__img img { transform: scale(1.06); }
.msn-card__body { padding: 12px 14px 16px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; flex: 1; }
.msn-card__text { margin: 0; font-size: 14px; font-weight: 500; line-height: 1.35; }
.msn-card .msn-btn { margin-top: auto; }

/* ---------- Banner publicitario ---------- */
.msn-ad-wrap { position: relative; }
.msn-ad__label { display: block; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--msn-muted); text-align: center; margin-bottom: 4px; }
.msn-ad--image img { width: 100%; height: auto; border-radius: var(--msn-radius); }
.msn-ad--code { display: flex; justify-content: center; }
.msn-ad--cta {
	position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
	padding: 16px 28px; min-height: 90px; border-radius: var(--msn-radius); overflow: hidden; color: #fff;
	background: linear-gradient(90deg, #0d1b2a, #1b263b 60%, #0d1b2a); background-size: cover; background-position: center;
}
.msn-ad--cta::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.35); }
.msn-ad--cta > * { position: relative; z-index: 1; }
.msn-ad__text { flex: 1; text-align: center; }
.msn-ad__title { font-size: clamp(24px, 3.4vw, 42px); font-weight: 900; letter-spacing: .02em; line-height: 1; text-shadow: 0 2px 8px rgba(0,0,0,.4); }
.msn-ad__sub { font-size: clamp(14px, 1.6vw, 20px); font-weight: 600; margin-top: 4px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.msn-hero { grid-template-columns: 1fr; }
	.msn-hero--side-grid .msn-hero__side, .msn-hero--bottom .msn-hero__side { grid-template-columns: 1fr 1fr; }
	.msn-mixed { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
	.msn-ticker__label span { display: none; }
	.msn-ticker__label { padding: 0 20px 0 14px; }
	.msn-ticker__nav { display: none; }
	.msn-hero__main { min-height: 280px; }
	.msn-hero__main .msn-excerpt { display: none; }
	.msn-hero--side-grid .msn-hero__side, .msn-hero--bottom .msn-hero__side { grid-template-columns: 1fr; }
	.msn-item--row .msn-thumb { width: 110px; }
	.msn-ad--cta { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
	.msn-w *, .msn-w *::before { animation: none !important; transition: none !important; }
	/* La marquesina sigue moviéndose salvo que el widget pida respetar "reducir movimiento". */
	.msn-ticker--marquee:not(.msn-ticker--calm) .msn-ticker__list { animation: msn-marquee var(--msn-marquee, 30s) linear infinite !important; }
	.msn-ticker--marquee:not(.msn-ticker--calm):hover .msn-ticker__list,
	.msn-ticker--marquee:not(.msn-ticker--calm):focus-within .msn-ticker__list { animation-play-state: paused !important; }
}

/* ---------- Espacios publicitarios del panel ---------- */
.msn-slot .msn-ad-item { display: none; position: relative; }
.msn-slot .msn-ad-item.is-on { display: block; }
.msn-ad--cta { background-size: cover; background-position: center; }

/* ---------- Radio en vivo ---------- */
.msn-radio { --msn-radio: var(--msn-primary); display: flex; align-items: center; gap: 14px; background: var(--msn-dark); color: #fff;
	padding: 10px 16px; border-radius: var(--msn-radius); box-shadow: 0 4px 16px rgba(0,0,0,.18); }
.msn-radio__logo { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; flex: none; background: #222; }
.msn-radio__play { position: relative; flex: none; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer; padding: 0;
	background: var(--msn-radio); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 0 color-mix(in srgb, var(--msn-radio) 60%, transparent); transition: transform .2s; }
.msn-radio__play:hover { transform: scale(1.06); }
.msn-radio__play svg { width: 24px; height: 24px; }
.msn-radio__play .i-pause, .msn-radio__play .i-load { display: none; }
.msn-radio.is-playing .msn-radio__play { animation: msn-pulse 1.8s infinite; }
.msn-radio.is-playing .i-play, .msn-radio.is-loading .i-play { display: none; }
.msn-radio.is-playing .i-pause { display: block; }
.msn-radio.is-loading .i-load { display: block; width: 22px; height: 22px; border: 3px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: msn-spin .8s linear infinite; }
@keyframes msn-spin { to { transform: rotate(360deg); } }
@keyframes msn-pulse { 70% { box-shadow: 0 0 0 12px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.msn-radio__info { flex: 1; min-width: 0; }
.msn-radio__top { display: flex; align-items: center; gap: 8px; }
.msn-radio__live { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 800; letter-spacing: .08em;
	background: var(--msn-radio); color: #fff; padding: 3px 6px; border-radius: 3px; }
.msn-radio__live i { width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.msn-radio.is-playing .msn-radio__live i { animation: msn-blink 1s infinite; }
.msn-radio__name { font-size: 16px; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msn-radio__np { font-size: 13px; opacity: .85; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msn-radio__listeners { font-size: 11px; opacity: .65; margin-top: 2px; }
.msn-radio__tools { display: flex; align-items: center; gap: 8px; flex: none; }
.msn-radio__vol { width: 90px; accent-color: var(--msn-radio); }
.msn-radio__btn { background: rgba(255,255,255,.12); color: #fff !important; border: 0; border-radius: 4px; padding: 6px 10px; font-size: 12px; font-weight: 700; cursor: pointer; line-height: 1; }
.msn-radio__btn:hover { background: var(--msn-radio); }
/* Tarjeta */
.msn-radio--card { flex-direction: column; text-align: center; padding: 22px; gap: 12px; }
.msn-radio--card .msn-radio__logo { width: 100%; max-width: 260px; height: auto; aspect-ratio: 1; border-radius: 12px; }
.msn-radio--card .msn-radio__play { width: 64px; height: 64px; }
.msn-radio--card .msn-radio__top { justify-content: center; flex-direction: column; }
.msn-radio--card .msn-radio__name { font-size: 20px; white-space: normal; }
.msn-radio--card .msn-radio__np { white-space: normal; }
.msn-radio--card .msn-radio__info { width: 100%; }
/* Mini */
.msn-radio--mini { display: inline-flex; padding: 6px 12px 6px 6px; border-radius: 40px; gap: 10px; }
.msn-radio--mini .msn-radio__logo, .msn-radio--mini .msn-radio__tools, .msn-radio--mini .msn-radio__np, .msn-radio--mini .msn-radio__listeners { display: none; }
.msn-radio--mini .msn-radio__play { width: 36px; height: 36px; }
.msn-radio--mini .msn-radio__play svg { width: 18px; height: 18px; }
.msn-radio--mini .msn-radio__name { font-size: 14px; }
/* Fija abajo */
.msn-radio--sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990; border-radius: 0; padding: 8px 18px; }
body:has(.msn-radio--sticky) { padding-bottom: 72px; }
@media (max-width: 767px) {
	.msn-radio__vol { display: none; }
	.msn-radio--bar .msn-radio__logo, .msn-radio--sticky .msn-radio__logo { width: 40px; height: 40px; }
}

/* ==========================================================================
   Redes sociales
   ========================================================================== */
.msn-social { --msn-social-size: 30px; --msn-social-gap: 8px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.msn-social__label { font-weight: 700; white-space: nowrap; }
.msn-social__list { display: flex; flex-wrap: wrap; gap: var(--msn-social-gap); list-style: none; margin: 0; padding: 0; }
.msn-social__list li { margin: 0; padding: 0; }
.msn-social__a { display: grid; place-items: center; width: var(--msn-social-size); height: var(--msn-social-size); border-radius: 50%;
	color: #fff !important; background: var(--msn-brand); transition: transform .2s, filter .2s, background .2s; }
.msn-social__a svg { width: 56%; height: 56%; }
.msn-social__a:hover { transform: translateY(-2px) scale(1.06); filter: brightness(1.1); }
.msn-social__a--tiktok, .msn-social__a--x { box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.msn-social--brand-square .msn-social__a { border-radius: 6px; }
.msn-social--mono .msn-social__a { background: none; color: inherit !important; width: auto; height: var(--msn-social-size); }
.msn-social--mono .msn-social__a svg { width: calc(var(--msn-social-size) * .7); height: calc(var(--msn-social-size) * .7); }
.msn-social--mono .msn-social__a:hover { color: var(--msn-primary) !important; filter: none; }
.msn-social--outline .msn-social__a { background: none; color: inherit !important; box-shadow: inset 0 0 0 2px currentColor; }
.msn-social--outline .msn-social__a:hover { background: var(--msn-brand); color: #fff !important; box-shadow: none; }
.msn-hint { font-size: 12px; opacity: .7; font-style: italic; }

/* ==========================================================================
   Barra superior
   ========================================================================== */
.msn-topbar { --msn-topbar-hover: var(--msn-primary); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
	background: var(--msn-dark); color: #fff; min-height: 40px; padding: 4px 16px; font-size: 14px; }
.msn-topbar a { color: inherit; }
.msn-topbar a:hover { color: var(--msn-topbar-hover); }
.msn-topbar__left, .msn-topbar__right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.msn-topbar__home { display: inline-flex; padding-right: 14px; border-right: 1px solid rgba(255,255,255,.3); }
.msn-topbar__home svg { width: 22px; height: 22px; }
.msn-topbar--sep-none .msn-topbar__home { border: 0; padding-right: 0; }
.msn-topbar__menu { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.msn-topbar__menu li { margin: 0; display: flex; align-items: center; }
.msn-topbar__menu a { font-weight: 600; padding: 2px 0; }
.msn-topbar--sep-pipe .msn-topbar__menu li + li::before { content: ""; width: 1px; height: 14px; background: rgba(255,255,255,.35); margin: 0 14px; }
.msn-topbar--sep-dot .msn-topbar__menu li + li::before { content: "•"; margin: 0 10px; opacity: .6; }
.msn-topbar--sep-none .msn-topbar__menu { gap: 18px; }
.msn-topbar__date { opacity: .85; font-size: .92em; }
.msn-topbar .msn-social { --msn-social-size: 26px; gap: 10px; }
@media (max-width: 767px) {
	.msn-topbar { justify-content: center; font-size: 13px; padding: 6px 12px; row-gap: 6px; }
	.msn-topbar__left, .msn-topbar__right { width: 100%; justify-content: center; gap: 4px 12px; }
	.msn-topbar__menu { justify-content: center; gap: 2px 14px; }
	.msn-topbar__menu li + li::before { display: none !important; }
	.msn-topbar__home { border: 0; padding-right: 0; }
	.msn-topbar--hide-menu-m .msn-topbar__menu { display: none; }
	.msn-topbar--hide-menu-m .msn-topbar__home { border: 0; }
}

/* ==========================================================================
   Menú principal
   ========================================================================== */
.msn-mm { --msn-mm-bg: var(--msn-primary); --msn-mm-fg: #fff; --msn-mm-active: rgba(0,0,0,.2); --msn-mm-sub-bg: #fff; --msn-mm-sub-fg: var(--msn-text);
	--msn-mm-line: var(--msn-dark); --msn-mm-pad: 12px; --msn-mm-h: 44px; position: relative; z-index: 50; }
.msn-mm__bar { display: flex; align-items: stretch; background: var(--msn-mm-bg); color: var(--msn-mm-fg); min-height: var(--msn-mm-h);
	border-bottom: 3px solid var(--msn-mm-line); position: relative; }
.msn-mm__menu { display: flex; flex: 1; flex-wrap: wrap; align-items: stretch; list-style: none; margin: 0; padding: 0; }
.msn-mm__menu li { position: relative; margin: 0; list-style: none; }
.msn-mm__menu > li > a { display: flex; align-items: center; gap: 7px; height: 100%; min-height: var(--msn-mm-h); padding: 0 var(--msn-mm-pad);
	color: var(--msn-mm-fg) !important; font-weight: 800; font-size: 14px; letter-spacing: -.01em; white-space: nowrap; transition: background .2s; }
.msn-mm--upper .msn-mm__menu > li > a { text-transform: uppercase; }
.msn-mm__menu > li:hover > a, .msn-mm__menu > li:focus-within > a,
.msn-mm__menu > li.current-menu-item > a, .msn-mm__menu > li.current-menu-ancestor > a, .msn-mm__menu > li.current-menu-parent > a { background: var(--msn-mm-active); }
.msn-mm__home > a { background: var(--msn-mm-active); }
.msn-mm__home svg { width: 20px; height: 20px; }
/* Indicadores */
.msn-mm--ind-before .msn-mm__menu > .menu-item-has-children > a::before { content: ""; border: 5px solid transparent; border-left: 6px solid currentColor; border-right: 0; margin-right: -1px; opacity: .9; }
.msn-mm--ind-after .msn-mm__menu > .menu-item-has-children > a::after { content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); margin-left: 2px; }
/* Submenús */
.msn-mm .sub-menu { position: absolute; top: 100%; left: 0; min-width: 220px; list-style: none; margin: 0; padding: 6px 0; background: var(--msn-mm-sub-bg);
	box-shadow: 0 10px 28px rgba(0,0,0,.18); border-top: 3px solid var(--msn-mm-bg); border-radius: 0 0 var(--msn-radius) var(--msn-radius);
	opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .18s, transform .18s, visibility .18s; z-index: 60; }
.msn-mm .sub-menu .sub-menu { top: -6px; left: 100%; border-top: 0; border-radius: var(--msn-radius); }
.msn-mm__menu li:hover > .sub-menu, .msn-mm__menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.msn-mm .sub-menu a { display: block; padding: 9px 16px; color: var(--msn-mm-sub-fg) !important; font-weight: 600; font-size: 14px; text-transform: none; }
.msn-mm .sub-menu a:hover, .msn-mm .sub-menu .current-menu-item > a { color: var(--msn-mm-bg) !important; background: rgba(0,0,0,.04); }
/* Buscador */
.msn-mm__search { position: relative; display: flex; align-items: stretch; }
.msn-mm__search-btn { background: none; border: 0; color: var(--msn-mm-fg); width: 52px; cursor: pointer; display: grid; place-items: center; padding: 0; }
.msn-mm__search-btn:hover { background: var(--msn-mm-active); }
.msn-mm__search-btn svg { width: 22px; height: 22px; }
.msn-mm__search-btn .msn-ico--close, .msn-mm__toggle .msn-ico--close { display: none; }
.msn-mm.is-search-open .msn-mm__search-btn .msn-ico--search { display: none; }
.msn-mm.is-search-open .msn-mm__search-btn .msn-ico--close { display: block; }
.msn-mm__search-form { position: absolute; top: 100%; right: 0; display: flex; width: min(420px, 92vw); background: #fff; padding: 10px;
	box-shadow: 0 10px 28px rgba(0,0,0,.2); border-top: 3px solid var(--msn-mm-line); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s; z-index: 70; }
.msn-mm.is-search-open .msn-mm__search-form { opacity: 1; visibility: visible; transform: none; }
.msn-mm__search-form input { flex: 1; border: 1px solid #ccc; border-radius: 4px 0 0 4px; padding: 10px 12px; font-size: 15px; min-width: 0; }
.msn-mm__search-form button { border: 0; background: var(--msn-mm-bg); color: #fff; width: 46px; border-radius: 0 4px 4px 0; cursor: pointer; display: grid; place-items: center; }
.msn-mm__search-form button svg { width: 20px; height: 20px; }
/* Botón móvil */
.msn-mm__toggle { display: none; align-items: center; gap: 8px; background: none; border: 0; color: var(--msn-mm-fg); font-weight: 800; font-size: 15px; padding: 0 16px; cursor: pointer; }
.msn-mm__toggle svg { width: 24px; height: 24px; }
.msn-mm__sub-toggle { display: none; }
/* Fijo al hacer scroll */
.msn-mm.is-fixed .msn-mm__bar { position: fixed; top: var(--msn-mm-offset, 0px); left: 0; right: 0; z-index: 9980; box-shadow: 0 4px 14px rgba(0,0,0,.2); animation: msn-drop .25s ease; }
@keyframes msn-drop { from { transform: translateY(-100%); } to { transform: none; } }

@media (max-width: 1024px) {
	.msn-mm--bp-tablet .msn-mm__toggle { display: inline-flex; margin-right: auto; }
	.msn-mm--bp-tablet .msn-mm__menu { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--msn-mm-bg); max-height: 75vh; overflow-y: auto; box-shadow: 0 12px 24px rgba(0,0,0,.25); }
	.msn-mm--bp-tablet.is-open .msn-mm__menu { display: flex; }
	.msn-mm--bp-tablet.is-open .msn-mm__toggle .msn-ico--menu { display: none; }
	.msn-mm--bp-tablet.is-open .msn-mm__toggle .msn-ico--close { display: block; }
	.msn-mm--bp-tablet .msn-mm__menu > li > a { min-height: 48px; border-top: 1px solid rgba(255,255,255,.12); padding-right: 56px; }
	.msn-mm--bp-tablet .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; display: none; border: 0; border-radius: 0; background: rgba(0,0,0,.18); min-width: 0; padding: 0; }
	.msn-mm--bp-tablet .sub-menu a { color: var(--msn-mm-fg) !important; padding: 11px 16px 11px 30px; }
	.msn-mm--bp-tablet li.is-sub-open > .sub-menu { display: block; }
	.msn-mm--bp-tablet .msn-mm__sub-toggle { display: grid; place-items: center; position: absolute; right: 0; top: 0; width: 52px; height: 48px; background: none; border: 0; border-left: 1px solid rgba(255,255,255,.15); color: var(--msn-mm-fg); cursor: pointer; }
	.msn-mm--bp-tablet .msn-mm__sub-toggle::after { content: ""; width: 8px; height: 8px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s; }
	.msn-mm--bp-tablet li.is-sub-open > .msn-mm__sub-toggle::after { transform: rotate(-135deg); }
	.msn-mm--bp-tablet.msn-mm--ind-before .msn-mm__menu > .menu-item-has-children > a::before, .msn-mm--bp-tablet.msn-mm--ind-after .msn-mm__menu > .menu-item-has-children > a::after { display: none; }
}
@media (max-width: 767px) {
	.msn-mm--bp-mobile .msn-mm__toggle { display: inline-flex; margin-right: auto; }
	.msn-mm--bp-mobile .msn-mm__menu { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--msn-mm-bg); max-height: 75vh; overflow-y: auto; box-shadow: 0 12px 24px rgba(0,0,0,.25); }
	.msn-mm--bp-mobile.is-open .msn-mm__menu { display: flex; }
	.msn-mm--bp-mobile.is-open .msn-mm__toggle .msn-ico--menu { display: none; }
	.msn-mm--bp-mobile.is-open .msn-mm__toggle .msn-ico--close { display: block; }
	.msn-mm--bp-mobile .msn-mm__menu > li > a { min-height: 48px; border-top: 1px solid rgba(255,255,255,.12); padding-right: 56px; }
	.msn-mm--bp-mobile .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; display: none; border: 0; border-radius: 0; background: rgba(0,0,0,.18); min-width: 0; padding: 0; }
	.msn-mm--bp-mobile .sub-menu a { color: var(--msn-mm-fg) !important; padding: 11px 16px 11px 30px; }
	.msn-mm--bp-mobile li.is-sub-open > .sub-menu { display: block; }
	.msn-mm--bp-mobile .msn-mm__sub-toggle { display: grid; place-items: center; position: absolute; right: 0; top: 0; width: 52px; height: 48px; background: none; border: 0; border-left: 1px solid rgba(255,255,255,.15); color: var(--msn-mm-fg); cursor: pointer; }
	.msn-mm--bp-mobile .msn-mm__sub-toggle::after { content: ""; width: 8px; height: 8px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); }
	.msn-mm--bp-mobile li.is-sub-open > .msn-mm__sub-toggle::after { transform: rotate(-135deg); }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.msn-footer { --msn-ft-bg: #0d0d0d; --msn-ft-fg: #d6d6d6; --msn-ft-head: #fff; --msn-ft-hover: #fff; --msn-ft-line: rgba(255,255,255,.18); --msn-ft-bottom: var(--msn-primary);
	background: var(--msn-ft-bg); color: var(--msn-ft-fg); font-size: 14px; }
.msn-footer a { color: inherit; }
.msn-footer__main { display: grid; grid-template-columns: repeat(var(--msn-ft-cols, 4), minmax(0, 1fr)); gap: 0; padding: 34px 24px; align-items: start; }
.msn-footer__main.has-brand { grid-template-columns: minmax(0, 1.5fr) repeat(var(--msn-ft-cols, 4), minmax(0, 1fr)); }
.msn-footer__col { padding: 0 24px; min-width: 0; }
.msn-ft-div-yes .msn-footer__col + .msn-footer__col { border-left: 1px solid var(--msn-ft-line); }
.msn-footer__brand { padding-left: 0; }
.msn-footer__logo img { width: 260px; max-width: 100%; height: auto; display: block; }
.msn-footer__sitename { font-size: 26px; font-weight: 900; color: var(--msn-ft-head); }
.msn-footer__about { margin: 12px 0 0; line-height: 1.5; }
.msn-footer__title { color: var(--msn-ft-head); font-size: 17px; font-weight: 800; margin: 0 0 12px; line-height: 1.2; }
.msn-footer__links { list-style: none; margin: 0; padding: 0; }
.msn-footer__links li { margin: 0 0 7px; }
.msn-footer__links a { display: inline-flex; align-items: center; gap: 8px; transition: color .2s, transform .2s; }
.msn-footer__links a::before { content: ""; border: 4px solid transparent; border-left: 5px solid currentColor; border-right: 0; }
.msn-footer__links a:hover { color: var(--msn-ft-hover); transform: translateX(3px); }
.msn-footer .msn-social { --msn-social-size: 36px; --msn-social-gap: 10px; }
.msn-footer__contact { display: flex; gap: 12px; align-items: flex-start; }
.msn-footer__cico { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--msn-primary); color: #fff; display: grid; place-items: center; }
.msn-footer__cico svg { width: 22px; height: 22px; }
.msn-footer__contact .msn-footer__title { margin-bottom: 2px; }
.msn-footer__mail { font-size: 13px; overflow-wrap: anywhere; }
.msn-footer__mail:hover { color: var(--msn-ft-hover); }
.msn-footer__line { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; }
.msn-footer__line svg { width: 16px; height: 16px; flex: none; }
.msn-footer__wa { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; background: #25D366; color: #fff !important; font-weight: 800; font-size: 14px;
	padding: 10px 18px; border-radius: 40px; box-shadow: 0 4px 14px rgba(37,211,102,.35); transition: transform .2s, filter .2s; }
.msn-footer__wa svg { width: 22px; height: 22px; }
.msn-footer__wa:hover { transform: translateY(-2px); filter: brightness(1.06); }
.msn-footer__text p { margin: 0 0 8px; }
.msn-footer__bottom { position: relative; overflow: hidden; background: var(--msn-ft-bottom); color: #fff; text-align: center; font-weight: 700; font-size: 15px; padding: 12px 80px; }
.msn-footer__bottom.has-stripes::before, .msn-footer__bottom.has-stripes::after { content: ""; position: absolute; top: 0; bottom: 0; width: 110px;
	background: repeating-linear-gradient(-55deg, transparent 0 10px, #111 10px 22px, transparent 22px 30px, rgba(255,255,255,.85) 30px 33px, transparent 33px 44px); opacity: .9; }
.msn-footer__bottom.has-stripes::before { left: -20px; transform: scaleX(-1); }
.msn-footer__bottom.has-stripes::after { right: -20px; }
@media (max-width: 1024px) {
	.msn-footer__main, .msn-footer__main.has-brand { grid-template-columns: 1fr 1fr; row-gap: 28px; }
	.msn-footer__brand { grid-column: 1 / -1; }
	.msn-ft-div-yes .msn-footer__col + .msn-footer__col { border-left: 0; }
	.msn-footer__col { padding: 0; }
}
@media (max-width: 600px) {
	.msn-footer__main, .msn-footer__main.has-brand { grid-template-columns: 1fr; }
	.msn-footer__bottom { padding: 12px 20px; font-size: 13px; }
	.msn-footer__bottom.has-stripes::before, .msn-footer__bottom.has-stripes::after { width: 40px; }
}
.msn-is-placeholder { opacity: .85; }

/* ---------- YouTube ---------- */
.msn-yt { --msn-yt-play: #ff0000; display: grid; gap: var(--msn-gap); }
.msn-yt-box .msn-head--bar { border-radius: var(--msn-radius); margin-bottom: var(--msn-gap); }
.msn-yt__item { min-width: 0; }
.msn-yt__thumb, .msn-yt__frame { position: relative; display: block; aspect-ratio: 16/9; border-radius: var(--msn-radius); overflow: hidden; background: #000; }
.msn-w .msn-yt__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease, opacity .2s; }
.msn-yt__thumb:hover img, .msn-yt__thumb:focus-visible img { transform: scale(1.04); opacity: .9; }
.msn-yt__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.msn-yt__play { position: absolute; left: 50%; top: 50%; width: 64px; height: 45px; margin: -22px 0 0 -32px; border-radius: 12px;
	background: var(--msn-yt-play); box-shadow: 0 4px 14px rgba(0,0,0,.35); transition: transform .2s; }
.msn-yt__play::after { content: ""; position: absolute; left: 26px; top: 13px; border-style: solid; border-width: 9.5px 0 9.5px 16px; border-color: transparent transparent transparent #fff; }
.msn-yt__thumb:hover .msn-yt__play { transform: scale(1.08); }
.msn-yt__item:not(.msn-yt__item--big) .msn-yt__play { width: 44px; height: 31px; margin: -15px 0 0 -22px; border-radius: 9px; }
.msn-yt__item:not(.msn-yt__item--big) .msn-yt__play::after { left: 17px; top: 8px; border-width: 7.5px 0 7.5px 12px; }
.msn-yt__live { position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 6px; background: var(--msn-yt-play); color: #fff;
	font-size: 12px; font-weight: 700; letter-spacing: .04em; padding: 4px 8px; border-radius: 4px; }
.msn-yt__live i { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: msn-blink 1s infinite; }
.msn-yt__body { padding-top: 10px; }
.msn-w .msn-yt__title { margin: 0; font-size: 15px; line-height: 1.35; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.msn-w .msn-yt__item--big .msn-yt__title { font-size: 20px; -webkit-line-clamp: 3; }
.msn-yt__title a:hover { color: var(--msn-primary); }
.msn-yt__meta { margin-top: 5px; font-size: 12.5px; color: var(--msn-muted); }
.msn-yt__dot { margin: 0 6px; }
.msn-w .msn-yt__desc { margin: 8px 0 0; font-size: 14px; color: var(--msn-muted); line-height: 1.5; }
.msn-yt__sub { grid-column: 1 / -1; justify-self: start; display: inline-flex; align-items: center; gap: 8px; background: var(--msn-yt-play); color: #fff !important;
	font-weight: 700; font-size: 14px; padding: 10px 16px; border-radius: 999px; }
.msn-yt__sub:hover { filter: brightness(1.08); }

/* Grilla */
.msn-yt--grid .msn-yt__list { display: grid; grid-template-columns: repeat(var(--msn-yt-cols, 3), minmax(0, 1fr)); gap: var(--msn-gap); }

/* Lista */
.msn-yt--list .msn-yt__list { display: grid; gap: var(--msn-gap); }
.msn-yt--list .msn-yt__item { display: grid; grid-template-columns: clamp(120px, 34%, 300px) 1fr; gap: 14px; align-items: start; }
.msn-yt--list .msn-yt__body { padding-top: 0; }

/* Destacado + lista */
.msn-yt--featured_list { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
.msn-yt--featured_list .msn-yt__list { display: flex; flex-direction: column; gap: 4px; overflow-y: auto; background: var(--msn-dark); color: #fff;
	border-radius: var(--msn-radius); padding: 8px; scrollbar-width: thin; }
.msn-yt--featured_list .msn-yt__list .msn-yt__item { display: grid; grid-template-columns: 42% 1fr; gap: 10px; padding: 6px; border-radius: calc(var(--msn-radius) - 2px); align-items: start; }
.msn-yt--featured_list .msn-yt__list .msn-yt__item:hover, .msn-yt--featured_list .msn-yt__list .msn-yt__item.is-active { background: rgba(255,255,255,.1); }
.msn-yt--featured_list .msn-yt__list .msn-yt__body { padding-top: 0; }
.msn-w .msn-yt--featured_list .msn-yt__list .msn-yt__title { font-size: 13.5px; -webkit-line-clamp: 3; }
.msn-yt--featured_list .msn-yt__list .msn-yt__meta { color: rgba(255,255,255,.65); font-size: 12px; }
.msn-yt--featured_list .msn-yt__list .msn-yt__play { display: none; }
.msn-yt--featured_list .msn-yt__list .msn-yt__title a:hover { color: #fff; text-decoration: underline; }
.msn-yt--featured_list .msn-yt__sub { grid-column: 1 / -1; }

@media (max-width: 767px) {
	.msn-yt--featured_list { grid-template-columns: minmax(0, 1fr); }
	.msn-yt--featured_list .msn-yt__list { max-height: none !important; }
	.msn-w .msn-yt__item--big .msn-yt__title { font-size: 17px; }
	.msn-yt-wrap .msn-yt--grid .msn-yt__list { grid-template-columns: minmax(0, 1fr); }
}
.msn-yt__item:not(.msn-yt__item--big) .msn-yt__live { left: 6px; top: 6px; font-size: 10px; padding: 2px 6px; gap: 4px; }
.msn-yt__item:not(.msn-yt__item--big) .msn-yt__live i { width: 6px; height: 6px; }

/* Ventana del video */
.msn-yt-modal { position: fixed; inset: 0; z-index: 100000; display: none; place-items: center; background: rgba(0,0,0,.85); padding: 20px; }
.msn-yt-modal.is-open { display: grid; }
.msn-yt-modal__box { position: relative; width: min(960px, 100%); }
.msn-yt-modal__body .msn-yt__frame { position: relative; aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; background: #000; }
.msn-yt-modal__body iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.msn-yt-modal__title { color: #fff; margin: 12px 0 0; font: 600 16px/1.4 system-ui, sans-serif; }
.msn-yt-modal__x { position: absolute; right: 0; top: -44px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.msn-yt-modal__x:hover { background: rgba(255,255,255,.3); }
html.msn-yt-lock { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .msn-w .msn-yt__thumb img, .msn-yt__play { transition: none; } }

/* ---------- TikTok ---------- */
.msn-tt { --msn-tt-accent: #fe2c55; position: relative; }
.msn-tt-box .msn-head--bar { border-radius: var(--msn-radius); margin-bottom: var(--msn-gap); }
.msn-tt__list { display: grid; grid-template-columns: repeat(var(--msn-tt-cols, 4), minmax(0, 1fr)); gap: var(--msn-gap); }
.msn-tt__item { min-width: 0; }
.msn-tt__thumb, .msn-tt__frame { position: relative; display: block; aspect-ratio: 9/16; border-radius: calc(var(--msn-radius) + 4px); overflow: hidden;
	background: linear-gradient(160deg, #25f4ee 0%, #111 45%, #111 55%, #fe2c55 100%); }
.msn-w .msn-tt__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.msn-tt__thumb:hover img { transform: scale(1.04); }
.msn-tt__thumb::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.55)); pointer-events: none; }
.msn-tt__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.msn-tt__play { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: rgba(0,0,0,.45);
	border: 2px solid rgba(255,255,255,.9); transition: transform .2s, background .2s; z-index: 1; }
.msn-tt__play::after { content: ""; position: absolute; left: 19px; top: 14px; border-style: solid; border-width: 10px 0 10px 16px; border-color: transparent transparent transparent #fff; }
.msn-tt__thumb:hover .msn-tt__play { transform: scale(1.08); background: var(--msn-tt-accent); border-color: var(--msn-tt-accent); }
.msn-tt__logo { position: absolute; right: 10px; bottom: 10px; color: #fff; z-index: 1; filter: drop-shadow(1px 1px 0 #fe2c55) drop-shadow(-1px -1px 0 #25f4ee); }
.msn-tt__body { padding-top: 8px; }
.msn-tt__author { font-size: 12.5px; font-weight: 700; color: var(--msn-text); }
.msn-w .msn-tt__caption { margin: 2px 0 0; font-size: 13px; line-height: 1.4; color: var(--msn-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.msn-tt__follow { display: inline-flex; align-items: center; gap: 8px; margin-top: var(--msn-gap); background: #000; color: #fff !important; font-weight: 700; font-size: 14px;
	padding: 10px 18px; border-radius: 999px; box-shadow: -2px -2px 0 #25f4ee, 2px 2px 0 var(--msn-tt-accent); }
.msn-tt__follow:hover { transform: translateY(-1px); }

/* Carrusel */
.msn-tt--carousel .msn-tt__list { display: grid; grid-auto-flow: column; grid-template-columns: none;
	grid-auto-columns: calc((100% - (var(--msn-tt-cols, 4) - 1) * var(--msn-gap)) / var(--msn-tt-cols, 4));
	overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.msn-tt--carousel .msn-tt__list::-webkit-scrollbar { display: none; }
.msn-tt--carousel .msn-tt__item { scroll-snap-align: start; }
.msn-tt__nav { position: absolute; top: calc(50% - 40px); z-index: 2; width: 40px; height: 40px; border: 0; border-radius: 50%; cursor: pointer;
	background: #fff; color: #111; font-size: 26px; line-height: 1; box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.msn-tt__nav--prev { left: -8px; } .msn-tt__nav--next { right: -8px; }
.msn-tt__nav:disabled { opacity: 0; pointer-events: none; }

@media (max-width: 767px) {
	.msn-tt-wrap .msn-tt__list { --msn-tt-cols: 2; }
	.msn-tt__nav { display: none; }
}

/* Perfil oficial */
.msn-tt-profile { display: flex; justify-content: center; }
.msn-tt-profile .tiktok-embed { margin: 0 !important; }

/* Ventana vertical (TikTok) */
.msn-yt-modal.is-vertical .msn-yt-modal__box { width: min(400px, 100%, calc((100vh - 140px) * 9 / 16)); }
.msn-yt-modal.is-vertical .msn-tt__frame { aspect-ratio: 9/16; border-radius: 12px; overflow: hidden; background: #000; position: relative; }
.msn-yt-modal.is-vertical iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (prefers-reduced-motion: reduce) { .msn-w .msn-tt__thumb img { transition: none; } }

/* ---------- Autor ---------- */
.msn-author { --msn-author-photo: 96px; --msn-author-bg: #fff; --msn-author-accent: var(--msn-primary);
	display: grid; grid-template-columns: var(--msn-author-photo) minmax(0, 1fr); gap: 20px; align-items: start;
	background: var(--msn-author-bg); border: 1px solid rgba(0,0,0,.08); border-radius: calc(var(--msn-radius) + 6px);
	padding: 22px; box-shadow: 0 1px 3px rgba(0,0,0,.05); position: relative; overflow: hidden; }
.msn-author::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--msn-author-accent); }
.msn-author__photo { display: block; width: var(--msn-author-photo); height: var(--msn-author-photo); }
.msn-w .msn-author__photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block;
	box-shadow: 0 0 0 3px var(--msn-author-bg), 0 0 0 5px var(--msn-author-accent); }
.msn-author--rounded .msn-author__photo img { border-radius: 18%; }
.msn-author__label { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--msn-author-accent); margin-bottom: 2px; }
.msn-w .msn-author__name { margin: 0; font-size: 21px; line-height: 1.25; font-weight: 800; }
.msn-author__name a { color: inherit; }
.msn-author__name a:hover { color: var(--msn-author-accent); }
.msn-author__meta { margin-top: 3px; font-size: 13.5px; color: var(--msn-muted); display: flex; flex-wrap: wrap; align-items: center; }
.msn-author__role { font-weight: 600; color: var(--msn-text); }
.msn-author__dot { margin: 0 7px; }
.msn-w .msn-author__bio { margin: 10px 0 0; font-size: 15px; line-height: 1.6; color: var(--msn-text); }
.msn-author__bio--long p { margin: 0 0 .8em; }
.msn-author__beats { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; }
.msn-author__beats span { color: var(--msn-muted); margin-right: 2px; }
.msn-author__beats a { background: rgba(0,0,0,.05); padding: 3px 10px; border-radius: 20px; font-weight: 600; }
.msn-author__beats a:hover { background: var(--msn-author-accent); color: #fff; }
.msn-author__foot { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.msn-author__social { display: flex; gap: 8px; flex-wrap: wrap; }
.msn-author__sn { width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; background: rgba(0,0,0,.06); color: var(--msn-text); transition: background .2s, color .2s, transform .2s; }
.msn-author__sn:hover { background: var(--msn-author-accent); color: #fff; transform: translateY(-2px); }
.msn-author__more { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: #fff !important; background: var(--msn-author-accent);
	padding: 9px 18px; border-radius: 999px; transition: filter .2s, gap .2s; }
.msn-author__more:hover { filter: brightness(1.08); gap: 10px; }
.msn-author__latest { grid-column: 1 / -1; border-top: 1px solid rgba(0,0,0,.08); padding-top: 14px; margin-top: 4px; }
.msn-author__latest-h { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--msn-muted); margin-bottom: 8px; }
.msn-author__latest ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.msn-author__latest li { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.msn-author__latest time { flex: none; font-size: 12px; font-weight: 400; color: var(--msn-muted); }

/* Vertical: tarjeta centrada */
.msn-author--vertical { --msn-author-photo: 112px; grid-template-columns: 1fr; justify-items: center; text-align: center; padding-top: 28px; }
.msn-author--vertical::before { left: 0; right: 0; bottom: auto; width: auto; height: 64px;
	background: linear-gradient(135deg, var(--msn-author-accent), color-mix(in srgb, var(--msn-author-accent) 55%, #000)); }
.msn-author--vertical .msn-author__photo { position: relative; margin-top: 0; }
.msn-author--vertical .msn-author__meta, .msn-author--vertical .msn-author__foot, .msn-author--vertical .msn-author__beats { justify-content: center; }
.msn-author--vertical .msn-author__foot { flex-direction: column; }
.msn-author--vertical .msn-author__latest { text-align: left; width: 100%; }

/* Compacto: una línea */
.msn-author--compact { --msn-author-photo: 48px; gap: 12px; padding: 12px 16px; align-items: center; grid-template-columns: var(--msn-author-photo) minmax(0, 1fr); }
.msn-author--compact::before { display: none; }
.msn-author--compact .msn-author__info { display: flex; align-items: center; gap: 4px 14px; flex-wrap: wrap; }
.msn-w .msn-author--compact .msn-author__name { font-size: 16px; }
.msn-author--compact .msn-author__label { width: 100%; margin: 0; }
.msn-author--compact .msn-author__meta { margin: 0; }
.msn-author--compact .msn-author__foot { margin: 0 0 0 auto; }
.msn-author--compact .msn-author__more { padding: 6px 14px; font-size: 13px; }
.msn-author--compact .msn-author__social { display: none; }

/* Perfil completo (página del autor) */
.msn-author--full { --msn-author-photo: 150px; gap: 28px; padding: 28px; }
.msn-w .msn-author--full .msn-author__name { font-size: 30px; }

/* Sin borde (opción del bloque) */
.elementor-widget.msn-author-card- .msn-author { border: 0; box-shadow: none; padding-left: 0; padding-right: 0; background: transparent; }
.elementor-widget.msn-author-card- .msn-author::before { display: none; }

.msn-author-after { margin: 32px 0 8px; }

@media (max-width: 600px) {
	.msn-author:not(.msn-author--compact) { --msn-author-photo: 72px; gap: 14px; padding: 18px; }
	.msn-author--vertical { --msn-author-photo: 96px; }
	.msn-author__meta { flex-direction: column; align-items: flex-start; gap: 1px; }
	.msn-author--vertical .msn-author__meta, .msn-author--full .msn-author__meta { align-items: center; }
	.msn-author__dot { display: none; }
	.msn-author--full { --msn-author-photo: 110px; grid-template-columns: 1fr; justify-items: center; text-align: center; }
	.msn-author--full .msn-author__meta, .msn-author--full .msn-author__foot, .msn-author--full .msn-author__beats { justify-content: center; }
	.msn-author--horizontal .msn-author__foot { flex-direction: column; align-items: flex-start; }
	.msn-w .msn-author:not(.msn-author--compact) .msn-author__name { font-size: 18px; }
	.msn-w .msn-author--full .msn-author__name { font-size: 24px; }
	.msn-author__latest li { flex-direction: column; gap: 2px; }
}
.msn-w .msn-author__bio--long { font-size: 15.5px; line-height: 1.7; }
.msn-w .msn-author__bio--long p { margin: 0 0 .9em; }
.msn-w .msn-author__bio--long p:last-child { margin-bottom: 0; }
.msn-w .msn-author__bio--long ul, .msn-w .msn-author__bio--long ol { margin: 0 0 .9em 1.2em; padding: 0; }
.msn-w .msn-author__bio--long li { margin: 0 0 .3em; }
.msn-w .msn-author__bio--long h3, .msn-w .msn-author__bio--long h4 { margin: 1.1em 0 .4em; font-size: 17px; }
.msn-w .msn-author__bio--long a { color: var(--msn-author-accent); text-decoration: underline; }
.msn-w .msn-author__bio--long blockquote { margin: 0 0 .9em; padding-left: 14px; border-left: 3px solid var(--msn-author-accent); font-style: italic; }
/* Bio extendida con secciones */
.msn-w .msn-author__bio--long section { margin: 0 0 1.6em; }
.msn-w .msn-author__bio--long section:last-child { margin-bottom: 0; }
.msn-w .msn-author__bio--long h2 { margin: 1.4em 0 .6em; padding-left: 12px; border-left: 4px solid var(--msn-author-accent); font-size: 20px; line-height: 1.35; }
.msn-w .msn-author__bio--long > h2:first-child, .msn-w .msn-author__bio--long > section:first-child > h2:first-child { margin-top: 0; }
.msn-w .msn-author__bio--long .msn-bio-box { padding: 18px 20px; background: rgba(0,0,0,.04); border: 1px solid rgba(0,0,0,.08); border-radius: 10px; margin: 0 0 .9em; }
.msn-w .msn-author__bio--long .msn-bio-box p:last-child { margin-bottom: 0; }
.msn-w .msn-author__bio.msn-author__bio--long { margin-top: 18px; }
