/* Ajustes propios de WordPress (paginación, enlaces de página, accesibilidad). */

.sr-only,
.skip-link.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  position: fixed;
  top: 8px;
  left: 8px;
  width: auto;
  height: auto;
  clip: auto;
  padding: 8px 12px;
  background: #ffe600;
  color: #050505;
  z-index: 1000;
}

/* Paginación de WordPress (the_posts_pagination) con el estilo de .page-btn */
.navigation.pagination { margin-top: 32px; }
.navigation .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.navigation .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: inherit;
  font-weight: 700;
  text-decoration: none;
}
.navigation .page-numbers.current,
.navigation .page-numbers:hover {
  background: #ffe600;
  border-color: #ffe600;
  color: #050505;
}
.navigation .page-numbers.dots { border-color: transparent; }

.page-links { margin: 24px 0; font-weight: 700; }
.page-links a { margin-left: 6px; }
.cat-empty { padding: 48px 0; text-align: center; }
.share-btn--copy { cursor: pointer; }

/* wp_nav_menu envuelve los enlaces en ul/li; el CSS original espera enlaces directos. */
.main-nav ul,
.main-nav li { display: contents; list-style: none; margin: 0; padding: 0; }
.footer-grid li { display: block; list-style: none; }
.footer-grid ul { margin: 0; padding: 0; list-style: none; }

/* Sección Música de la portada: artículos (no videos). */
.music-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}
@media (max-width: 900px) {
  .music-grid { grid-template-columns: 1fr; }
}
.music-grid .news-list a { background: #141414; color: #fff; }
.music-grid .news-list span { color: #fff; }
.music-grid .news-list b { color: #ffe600; }
.music-grid .news-list a { display: flex; align-items: stretch; min-height: 150px; overflow: hidden; }
.music-grid .news-list img { position: static; width: 42%; height: auto; flex: 0 0 42%; object-fit: cover; }
.music-grid .news-list span { position: static; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 14px; font-size: 15px; line-height: 1.25; }
.music-grid .news-list b { display: inline-block; }

/* Sección Música de la portada: fondo negro con destellos amarillo y magenta de la marca. */
#musica {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background-color: var(--black);
  background-image:
    repeating-linear-gradient(115deg, rgba(239, 255, 0, 0.05) 0 2px, transparent 2px 46px),
    radial-gradient(ellipse 60% 70% at 0% 0%, rgba(239, 255, 0, 0.22), transparent 70%),
    radial-gradient(ellipse 55% 65% at 100% 100%, rgba(255, 0, 100, 0.28), transparent 70%);
}
#musica::before {
  content: "";
  position: absolute;
  inset: -20% -10%;
  z-index: -1;
  background: conic-gradient(from 180deg at 50% 50%, transparent 0deg, rgba(255, 0, 100, 0.18) 40deg, transparent 90deg, rgba(239, 255, 0, 0.16) 200deg, transparent 260deg);
  filter: blur(40px);
  opacity: 0.9;
  animation: lqsm-music-glow 14s ease-in-out infinite alternate;
}
#musica > .shell { position: relative; z-index: 1; }
#musica .section-heading--dark h2 { text-shadow: 0 0 24px rgba(239, 255, 0, 0.35); }
#musica .section-heading--dark a { color: var(--yellow); }

@keyframes lqsm-music-glow {
  from { transform: translate3d(-3%, 0, 0) rotate(0deg); }
  to   { transform: translate3d(3%, -2%, 0) rotate(6deg); }
}
@media (prefers-reduced-motion: reduce) {
  #musica::before { animation: none; }
}

/* Ecualizador animado junto al título MÚSICA. */
#musica .eq { display: inline-flex; align-items: flex-end; gap: 4px; height: 34px; margin: 0 6px; }
#musica .eq i {
  display: block; width: 6px; height: 100%;
  background: var(--yellow);
  box-shadow: 0 0 10px rgba(239, 255, 0, 0.6);
  transform-origin: bottom;
  animation: lqsm-eq 1.1s ease-in-out infinite alternate;
}
#musica .eq i:nth-child(1) { animation-delay: -0.2s; }
#musica .eq i:nth-child(2) { animation-delay: -0.7s; background: var(--magenta); box-shadow: 0 0 10px rgba(255, 0, 100, 0.6); }
#musica .eq i:nth-child(3) { animation-delay: -0.4s; }
#musica .eq i:nth-child(4) { animation-delay: -0.9s; background: var(--magenta); box-shadow: 0 0 10px rgba(255, 0, 100, 0.6); }
#musica .eq i:nth-child(5) { animation-delay: -0.5s; }
@keyframes lqsm-eq {
  0%   { transform: scaleY(0.2); }
  100% { transform: scaleY(1); }
}

/* Tarjetas pequeñas: al pasar el cursor, la imagen se acerca y aparece el borde amarillo. */
#musica .news-list a { border: 2px solid transparent; transition: border-color .25s ease, transform .25s ease; }
#musica .news-list a:hover { border-color: var(--yellow); transform: translateY(-3px); }
#musica .news-list a img { transition: transform .5s ease; }
#musica .news-list a:hover img { transform: scale(1.08); }
#musica .story-card.category-lead img { transition: transform .6s ease; }
#musica .story-card.category-lead:hover img { transform: scale(1.04); }

@media (prefers-reduced-motion: reduce) {
  #musica .eq i { animation: none; }
}
/* El título de sección estila todos sus span como línea magenta; el ecualizador no debe heredarlo. */
#musica .section-heading .eq { background: none; width: auto; height: 34px; flex: none; min-width: 0; }

/* Rediseño de las tarjetas pequeñas de Música: cuadrícula 2×2, imagen arriba y título debajo. */
.music-grid .news-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-content: stretch;
}
.music-grid .news-list a {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  color: #fff;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.music-grid .news-list a:hover {
  border-color: var(--yellow);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(239, 255, 0, 0.12);
}
.music-grid .news-list img {
  position: static;
  width: 100%;
  height: 150px;
  flex: none;
  object-fit: cover;
  transition: transform .5s ease;
}
.music-grid .news-list a:hover img { transform: scale(1.06); }
.music-grid .news-list span {
  position: static;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px 18px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}
.music-grid .news-list .tag {
  font-size: 11px;
  padding: 4px 8px;
}

/* Toda la tarjeta es clicable: el enlace del título cubre el cuadro completo.
   Los textos y enlaces internos siguen funcionando porque apuntan a la misma noticia. */
.cat-article-card,
.cat-lead-card,
.story-card,
.mini-story,
.event-card,
.video-card { position: relative; cursor: pointer; }

.cat-article-card h3 a::after,
.cat-lead-card h2 a::after,
.story-card h1 a::after,
.story-card h2 a::after,
.story-card h3 a::after,
.mini-story h3 a::after,
.event-card h3 a::after,
.video-card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
}

/* Anuncios con imagen (módulo Publicidad). */
.ad.ad--img {
  position: relative;
  display: block;
  padding: 0;
  min-height: 0;
  overflow: hidden;
  background: transparent;
}
.ad.ad--img .lqsm-ad__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ad.ad--img .ad-label { position: absolute; top: 10px; left: 10px; z-index: 2; }

/* Noticia que ocupa un espacio de publicidad cuando no hay anuncio. */
.ad-news-fallback { min-height: 100%; }

/* Publicidad: cada espacio conserva su proporción; una imagen vertical se recorta en vez de estirar la página. */
.ad.ad--img.ad--leaderboard { aspect-ratio: 1920 / 720; height: auto; }
.ad.ad--img.ad--music_strip,
.ad.ad--img.ad--sociales_strip { aspect-ratio: 1720 / 160; height: auto; }
.ad.ad--img.ad--sponsored,
.ad.ad--img.ad--after_hero { aspect-ratio: 1720 / 200; height: auto; }
.after-hero-ad { margin: clamp(16px, 2vw, 28px) auto; }
.ad.ad--img.ad--hero_square_1,
.ad.ad--img.ad--hero_square_2,
.ad.ad--img.ad--article_sidebar,
.ad.ad--img.ad--category_sidebar { aspect-ratio: 1 / 1; height: auto; }
.ad.ad--img.ad--category_sidebar { aspect-ratio: 380 / 600; }
.ad.ad--img.ad--ent_vertical,
.ad.ad--img.ad--famous_vertical { aspect-ratio: 400 / 800; height: auto; }

/* Artículo: una sola portada, grande, y el banner de publicidad debajo de ella. */
.art-hero-media img { height: clamp(420px, 56vw, 760px); }
.art-leaderboard { margin: 0 0 clamp(28px, 3vw, 40px); }

/* Columna derecha del hero: cada cuadro (anuncio o noticia) ocupa su mitad, con separación clara. */
.hero-ads {
  gap: 16px;
  min-height: 0;
}
.hero-ads > .ad.ad--img,
.hero-ads > .story-card {
  aspect-ratio: auto;
  height: 100%;
  min-height: 0;
  margin: 0;
}
.hero-ads .ad.ad--img .lqsm-ad__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-ads .ad.ad--img { position: relative; }
.hero-ads .story-card--small img { height: 100%; }

/* Música (portada): el título va arriba de la imagen en las tarjetas pequeñas. */
.music-grid .news-list a { flex-direction: column-reverse; }
.music-grid .news-list a img { border-top: 1px solid rgba(255, 255, 255, 0.08); }

/* Música (portada): títulos de las tarjetas pequeñas más grandes. */
.music-grid .news-list span {
  font-size: clamp(19px, 1.6vw, 26px);
  line-height: 1.15;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .01em;
}

/* Música (portada): el título va sobre la imagen, al frente, con degradado para que se lea. */
.music-grid .news-list {
  grid-template-rows: 1fr 1fr;
  min-height: 0;
}
.music-grid .news-list a {
  position: relative;
  display: block;
  min-height: 200px;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: hidden;
}
.music-grid .news-list a img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-top: 0;
  transition: transform .5s ease;
}
.music-grid .news-list a span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 48px 14px 14px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.85) 70%, rgba(0,0,0,.95) 100%);
  color: #fff;
  display: block;
}
.music-grid .news-list a:hover { border: 0; box-shadow: none; transform: none; }
.music-grid .news-list a:hover img { transform: scale(1.06); }
.music-grid .news-list a:hover { outline: 2px solid var(--yellow); outline-offset: -2px; }

/* Publicidad: la imagen se ve completa dentro de su espacio; el zoom (en el admin) la acerca o aleja. */
.ad.ad--img .lqsm-ad__img { object-fit: contain !important; }


/* Anuncio sin alto fijado: su alto sigue la proporción de la imagen (ver lqsm_ad_markup). */
.ad.ad--img.is-ratio { height: 0 !important; min-height: 0 !important; aspect-ratio: auto !important; }
.ad.ad--img.is-ratio .lqsm-ad__img { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Hero: la altura del banner manda; la cuadrícula de noticias conserva su tamaño y el banner ya no la aplasta. */
.hero__inner { height: auto !important; max-height: none !important; min-height: 0 !important; }
.hero__inner > .ad--leaderboard { flex: 0 0 auto !important; min-height: 0 !important; }
@media (min-width: 821px) {
  .hero-grid { height: clamp(460px, 56vh, 640px) !important; flex: 0 0 auto !important; }
}

/* Hero en móvil: la altura la dan los bloques (sin altura fija que los aplaste). */
@media (max-width: 820px) {
  .hero-grid { height: auto !important; }
  .hero-stack > .story-card--small { min-height: 190px; }
  .hero-ads > .ad.ad--img,
  .hero-ads > .story-card { height: auto !important; min-height: 190px; }
}

/* Banner de la portada pegado al menú (sin el espacio extra de la sección del hero). */
.hero { padding-top: 0 !important; }
.hero__inner > .ad--leaderboard { margin-top: 0 !important; }

/* Música: tercera columna para el vertical (anuncio o noticia). */
.music-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, .7fr); }
.music-grid > .ad.ad--img.ad--music_vertical,
.music-grid > .story-card { min-height: 0; }
@media (max-width: 900px) {
  .music-grid { grid-template-columns: 1fr; }
}

/* Vertical de Música: ocupa toda su columna (el margen automático lo dejaba sin ancho). */
.music-grid > .ad.ad--img.ad--music_vertical { width: 100% !important; margin: 0 !important; }

/* Hero de categoría: halos rosado (--magenta) y lima (--yellow) que derivan en sentidos
   contrarios, más una línea de color que recorre la base. Solo CSS; el contenido queda encima.
   Se desactiva con "reducir movimiento". */
.cat-hero { position: relative; overflow: hidden; isolation: isolate; }
.cat-hero::before,
.cat-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
}
.cat-hero::before {
  inset: -20%;
  background:
    radial-gradient(ellipse 34% 55% at 22% 50%, rgba(255, 0, 100, .34), transparent 70%),
    radial-gradient(ellipse 30% 50% at 78% 50%, rgba(239, 255, 0, .22), transparent 70%);
  filter: blur(26px);
  animation: lqsm-cat-drift 6s ease-in-out infinite alternate;
}
.cat-hero::after {
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--magenta), var(--yellow), var(--magenta));
  background-size: 200% 100%;
  animation: lqsm-cat-line 3s linear infinite;
}
@keyframes lqsm-cat-drift {
  from { transform: translate3d(-18%, 4%, 0) scale(1); }
  to   { transform: translate3d(18%, -6%, 0) scale(1.18); }
}
@keyframes lqsm-cat-line {
  from { background-position: 0% 0; }
  to   { background-position: 200% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .cat-hero::before,
  .cat-hero::after { animation: none; }
}

/* Hero de categoría: contenido centrado (breadcrumb, título, descripción y filtros). */
.cat-hero__inner { align-items: center; text-align: center; }
.cat-hero__headline { margin-inline: auto; }
.breadcrumbs { justify-content: center; }
.cat-filters { justify-content: center; }

/* Buscador del encabezado (lupa): panel bajo el menú, visible también en móvil. */
.header__actions .search-button { display: flex; }
.site-header { position: sticky; }
.header-search {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  gap: 10px;
  width: min(calc(100% - (var(--gutter) * 2)), var(--shell));
  margin: 0 auto;
  padding: 12px 0;
  background: var(--black);
}
.header-search[hidden] { display: none; }
.header-search input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  background: #111;
  border: 1px solid #444;
  color: #fff;
  font: 600 16px Inter, Arial, sans-serif;
}
.header-search input:focus { outline: 2px solid var(--yellow); outline-offset: -2px; }
.header-search button {
  height: 44px;
  padding: 0 20px;
  background: var(--magenta);
  color: #fff;
  border: 0;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  cursor: pointer;
}
.header-search button:hover { background: var(--yellow); color: #000; }

/* Encabezado: sigue negro, con los colores del logo (rosado y lima) en resplandores sutiles y en el borde inferior. */
.site-header { isolation: isolate; }
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 38% 150% at 0% 0%, rgba(255, 0, 100, .26), transparent 70%),
    radial-gradient(ellipse 34% 150% at 100% 100%, rgba(239, 255, 0, .16), transparent 70%);
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(90deg, var(--magenta), var(--yellow) 60%, var(--magenta));
}

/* Pie: columna "Sobre nosotros" con texto y datos de contacto. */
.footer-about p { margin: 0 0 14px; font-size: 14px; line-height: 1.5; color: #bbb; }
.footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; color: #bbb; }
.footer-contact a:hover { color: var(--yellow); }

/* Entretenimiento (portada): fondo blanco, igual que el hero. */
#entretenimiento { background: #ffffff; }

/* Sin franja beige entre Entretenimiento (blanca) y Música (negra): Música va pegada a la sección blanca. */
#entretenimiento + #musica { margin-top: 0 !important; }

/* Los Famosos (portada): lista tipo ranking, con números grandes en contorno rosado y filas separadas. */
#famosos .famous-grid { grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.3fr) minmax(0, .6fr); height: clamp(420px, 40vw, 540px); align-items: stretch; }
#famosos .famous-lead { height: 100%; }
#famosos .famous-lead img { object-position: center top; }
#famosos .news-list img { display: none; }
#famosos .news-list {
  display: flex;
  flex-direction: column;
  grid-template-rows: none;
  gap: 0;
  background: #fff;
  border: 1px solid var(--line);
  counter-reset: famosos;
}
#famosos .news-list a {
  counter-increment: famosos;
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1 1 0;
  min-height: 0;
  padding: 10px 16px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  height: auto;
  transition: background-color .2s ease;
}
#famosos .news-list a:last-child { border-bottom: 0; }
#famosos .news-list a:hover { transform: none; box-shadow: none; background: #fff7fa; }
#famosos .news-list a::before {
  content: counter(famosos, decimal-leading-zero);
  flex: 0 0 auto;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(38px, 3.6vw, 56px);
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--magenta);
}
#famosos .news-list span {
  flex: 1;
  min-width: 0;
  padding: 0;
  font-size: clamp(16px, 1.3vw, 20px);
  font-weight: 800;
  line-height: 1.12;
  text-transform: uppercase;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
#famosos .news-list a:hover span { color: var(--magenta); }
#famosos .news-list img {
  flex: 0 0 80px;
  width: 80px;
  height: 60px;
  object-fit: cover;
}

/* Los Famosos: el anuncio vertical ocupa toda la altura de la fila (no se encoge). */
#famosos .famous-grid > .ad.ad--img { position: relative; aspect-ratio: auto !important; height: 100% !important; min-height: 0; }
#famosos .famous-grid > .ad.ad--img .lqsm-ad__img { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Separación entre Sociales (negro) y el pie: línea de degradado rosado-lima y pie en un negro un poco más claro. */
.site-footer {
  position: relative;
  background: #111111;
  border-top: 0;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--magenta), var(--yellow) 60%, var(--magenta));
}
#sociales { padding-bottom: clamp(48px, 5vw, 72px); }

/* Sociales: más espacio arriba para que no quede pegado a la sección de noticias de arriba (el fondo sigue negro, sin huecos). */
#sociales { padding-top: clamp(56px, 6vw, 96px); }

/* Los Famosos (diseño de referencia): sin bordes redondeados, lista con miniatura, categoría, título y hora. */
#famosos, #famosos * { border-radius: 0 !important; }
#famosos .famous-grid { grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.5fr) minmax(0, .7fr); }
#famosos .famosos-kicker {
  display: block;
  margin: 0 0 2px;
  color: var(--magenta);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .04em;
}
#famosos .famous-lead__meta { margin-top: 8px; font: 500 13px Inter, Arial, sans-serif; color: #ddd; }
#famosos .radar-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; height: 100%; min-height: 0; }
#famosos .radar-list li { flex: 1 1 0; min-height: 0; border-bottom: 1px solid var(--line); }
#famosos .radar-list li:last-child { border-bottom: 0; }
#famosos .radar-list a { display: flex; align-items: center; gap: 14px; height: 100%; padding: 10px 0; }
#famosos .radar-list img { flex: 0 0 130px; width: 130px; height: 82px; object-fit: cover; }
#famosos .radar-list a > div { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 3px; }
#famosos .radar-cat { color: var(--magenta); font: 800 13px Inter, Arial, sans-serif; letter-spacing: .04em; text-transform: uppercase; }
#famosos .radar-list h3 {
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(17px, 1.4vw, 21px);
  font-weight: 800;
  line-height: 1.08;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
#famosos .radar-list a:hover h3 { color: var(--magenta); }
#famosos .radar-time { font: 500 12px Inter, Arial, sans-serif; color: #666; }

/* Los Famosos: las miniaturas de la lista ocupan todo el alto de cada fila (la lista iguala la altura de la tarjeta principal). */
#famosos .radar-list a { align-items: stretch; padding: 8px 0; }
#famosos .radar-list img { flex: 0 0 170px; width: 170px; height: auto; align-self: stretch; min-height: 0; }
#famosos .famous-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1.7fr) minmax(0, .6fr); }

/* Los Famosos: el texto de cada fila va centrado en su espacio; la columna del anuncio tiene un tamaño razonable. */
#famosos .radar-list a > div { flex: 0 1 auto; justify-content: center; }
#famosos .radar-list h3 { margin: 0; }
#famosos .famous-grid { grid-template-columns: minmax(0, 1.8fr) minmax(0, 1.5fr) minmax(0, 1.1fr); }

/* Los Famosos en móvil: una sola columna (tarjeta principal, lista y anuncio), con miniaturas y textos legibles. */
@media (max-width: 820px) {
  #famosos .famous-grid { grid-template-columns: minmax(0, 1fr); height: auto; gap: 14px; }
  #famosos .famous-lead { height: 340px; }
  #famosos .radar-list { height: auto; }
  #famosos .radar-list li { flex: none; }
  #famosos .radar-list a { align-items: center; gap: 12px; padding: 10px 0; }
  #famosos .radar-list img { flex: 0 0 112px; width: 112px; height: 76px; align-self: center; }
  #famosos .radar-list h3 { font-size: 17px; }
  #famosos .radar-time { font-size: 11px; }
  #famosos .famous-grid > .ad.ad--img {
    width: 100% !important;
    max-width: 320px !important;
    margin: 0 auto !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 4 / 5 !important;
  }
}

/* Artículo: texto del cuerpo más grande y con más aire entre líneas. */
.art-content {
  font-size: clamp(19px, 1.5vw, 22px);
  line-height: 1.8;
}
.art-content p { margin: 0 0 26px; }

/* Enlaces "VER MÁS" de los encabezados de sección: botones de color para que llamen la atención (rosado; lima al pasar el cursor). */
.section-heading > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--magenta);
  color: #fff;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease;
}
.section-heading > a:hover { background: var(--yellow); color: #000; }

/* Redes sociales: en escritorio quedan en la barra; en móvil se muestran dentro del menú desplegable. */
.nav-socials { display: none; }
@media (max-width: 820px) {
  .header__actions .header-socials { display: none; }
  .nav-socials {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
    padding: 16px 0 8px;
    border-top: 1px solid #222;
  }
  .nav-socials .header-social { width: 44px; height: 44px; background: #151515; border: 1px solid #333; }
  .nav-socials .header-social svg { width: 20px; height: 20px; }
}

/* Publicidad en móvil: el banner de portada conserva su proporción real (1920:720). Las imágenes se ven completas. */
@media (max-width: 820px) {
  .ad.ad--img.ad--leaderboard { aspect-ratio: 1920 / 720 !important; height: auto !important; }
}

/* Redes en el menú móvil: los iconos quedan centrados, sin la flecha ni los estilos de los enlaces del menú. */
@media (max-width: 820px) {
  .nav-socials a.header-social {
    width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 1px solid #333 !important;
    border-bottom: 1px solid #333 !important;
    background: #151515 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0 !important;
  }
  .nav-socials a.header-social::after { content: none !important; display: none !important; }
  .nav-socials a.header-social svg { width: 20px !important; height: 20px !important; }
}

/* Pie en móvil: todo centrado (marca, columnas, contacto, redes y línea final). */
@media (max-width: 820px) {
  .site-footer { text-align: center; }
  .site-footer .footer-grid { display: flex !important; flex-direction: column; align-items: center; gap: 28px; text-align: center; }
  .site-footer .footer-grid > div { display: flex; flex-direction: column; align-items: center; text-align: center; width: 100%; }
  .site-footer .footer-grid > div > a:not(.brand) { margin: 6px 0; }
  .site-footer .brand--footer { margin: 0 auto; }
  .site-footer .social-links { display: flex; justify-content: center; }
  .site-footer .footer-about p { text-align: center; }
  .site-footer .footer-contact { justify-items: center; text-align: center; }
  .site-footer .footer-bottom { flex-direction: column; align-items: center; gap: 8px; text-align: center; }
}

/* Encabezados de sección en móvil: título y "VER MÁS" en la misma fila, alineados a la derecha.
   Si el título es largo se reduce la tipografía en vez de bajar el botón a otra línea. */
@media (max-width: 820px) {
  .section-heading { flex-wrap: nowrap; align-items: center; gap: 12px; }
  .section-heading h2 { font-size: clamp(24px, 7.2vw, 42px); min-width: 0; white-space: nowrap; }
  .section-heading > a { flex: none; white-space: nowrap; margin-left: auto; padding: 9px 13px; font-size: 14px; }
}

/* Temas en tendencia: en escritorio los envoltorios no cambian la rejilla de 4 columnas. */
.trends__viewport,
.trends__track,
.trends__group { display: contents; }
.trends__group[aria-hidden="true"] { display: none; }

/* Móvil: la barra se convierte en un ticker que se desplaza solo (los 3 temas con su número), en bucle y pausado al tocarla. */
@media (max-width: 820px) {
  .trends { display: flex; overflow: hidden; }
  .trends > strong { flex: 0 0 auto; }
  .trends__viewport { display: block; flex: 1 1 auto; min-width: 0; overflow: hidden; }
  .trends__track { display: flex; width: max-content; animation: lqsm-ticker 26s linear infinite; }
  .trends:hover .trends__track,
  .trends:focus-within .trends__track { animation-play-state: paused; }
  .trends__group { display: flex; flex: none; }
  .trends__group[aria-hidden="true"] { display: flex; }
  .trends__group a {
    display: flex;
    align-items: center;
    flex: none;
    gap: 8px;
    height: 40px;
    padding: 0 18px;
    white-space: nowrap;
    font-size: 13px;
    color: #fff;
    border-right: 1px solid #333;
  }
  .trends__group a b {
    flex: none;
    color: var(--magenta);
    font-family: "Barlow Condensed", sans-serif;
    font-size: 20px;
    font-weight: 900;
    line-height: 1;
  }
}
@keyframes lqsm-ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .trends__track { animation: none !important; }
}

/* Tamaños de anuncio para móvil (configurables en Publicidad > Móvil). Solo aplican en pantallas de 820 px o menos. */
@media (max-width: 820px) {
  /* Incluye los contenedores de Música y Los Famosos, que tienen reglas propias con más especificidad. */
  .ad.ad--img.has-m-w,
  .music-grid > .ad.ad--img.has-m-w,
  #famosos .famous-grid > .ad.ad--img.has-m-w { width: var(--lqsm-mw) !important; }
  .ad.ad--img.has-m-h,
  .music-grid > .ad.ad--img.has-m-h,
  #famosos .famous-grid > .ad.ad--img.has-m-h { height: var(--lqsm-mh) !important; padding-top: 0 !important; aspect-ratio: auto !important; }
}

/* Logo con imagen (Personalizador > Lo Que Se Mueve — General > Logos): tamaño base por alto, multiplicado por el zoom (--logo-zoom). */
.brand.brand--img { width: auto; transform: none; display: inline-flex; align-items: center; line-height: 0; }
.brand--img .brand__img { display: block; height: calc(56px * var(--logo-zoom, 1)); width: auto; max-width: calc(190px * var(--logo-zoom, 1)); object-fit: contain; }
.site-footer .brand--img .brand__img { height: calc(64px * var(--logo-zoom, 1)); max-width: calc(240px * var(--logo-zoom, 1)); }
/* Noticia de reserva en un espacio de publicidad: título de tamaño de noticia destacada, no de texto pequeño. */
.ad-news-fallback h3 { font-size: clamp(36px, 3.4vw, 65px); line-height: .95; }
@media (max-width: 820px) {
  .ad-news-fallback h3 { font-size: clamp(26px, 6.5vw, 36px); }
}

/* Música: la frase de la cabecera va en una sola línea en escritorio (en móvil está oculta). */
@media (min-width: 821px) {
  #musica .section-heading--dark p { max-width: none; white-space: nowrap; }
}

/* Hero: título de la noticia central más pequeño y sin extracto (no tapa la imagen). */
.story-card--feature h1 { font-size: clamp(36px, 3.9vw, 62px); }
@media (max-width: 820px) {
  .story-card--feature h1 { font-size: clamp(24px, 6vw, 30px); }
}
/* Promos del lateral de artículo: una debajo de otra, con separación compacta. */
.art-ads {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}
.art-ads > .ad,
.art-ads > .widget-ad { width: 100%; margin: 0 !important; }
.art-ads .ad.ad--img { max-width: 100%; }

@media (max-width: 820px) {
  .brand--img .brand__img { height: calc(42px * var(--logo-zoom, 1)); max-width: calc(150px * var(--logo-zoom, 1)); }
  .site-footer .brand--img .brand__img { height: calc(56px * var(--logo-zoom, 1)); max-width: calc(200px * var(--logo-zoom, 1)); }
}

/* Columna lateral de artículo: "overflow-x: clip" evita el scroll horizontal sin convertir html/body en
   contenedor de scroll (con "hidden", el sticky de .art-sidebar dejaba de funcionar). */
html, body { overflow-x: hidden; overflow-x: clip; }

/* Noticias relacionadas del artículo en móvil: el título puede ocupar varias líneas y el botón "VER MÁS EN ESTA CATEGORÍA →"
   baja a su propia fila (a la derecha) en vez de encimarse sobre el título. */
@media (max-width: 820px) {
  .art-related .section-heading { flex-wrap: wrap; align-items: flex-start; row-gap: 14px; }
  .art-related .section-heading h2 { white-space: normal; font-size: clamp(24px, 6.8vw, 36px); flex: 1 1 0; min-width: 0; }
  .art-related .section-heading > span { display: none; }
  .art-related .section-heading > a { margin-left: auto; white-space: normal; text-align: center; line-height: 1.2; padding: 10px 14px; font-size: 14px; }
}

/* Artículo en una sola columna (tablets y móvil): la columna puede encogerse para que el texto nunca se salga de la pantalla. */
@media (max-width: 990px) {
  .art-layout { grid-template-columns: minmax(0, 1fr); }
  .art-layout > * { min-width: 0; }
}

/* Pantallas muy angostas (320 px): los botones de compartir pueden envolverse en vez de salirse de la pantalla. */
@media (max-width: 420px) {
  .art-share { flex-wrap: wrap; gap: 8px; }
  .art-share__links { flex-wrap: wrap; gap: 6px; }
}

/* Música (portada): las 4 noticias pequeñas con la imagen arriba y el título DEBAJO, fuera de la foto.
   Así el texto nunca tapa la imagen y los títulos largos se leen completos (sin cortes). */
.music-grid .news-list a {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.music-grid .news-list a img {
  position: static;
  inset: auto;
  width: 100%;
  height: clamp(140px, 12vw, 180px);
  flex: none;
  object-fit: cover;
  border-top: 0;
}
.music-grid .news-list a span {
  position: static;
  display: block;
  max-height: none;
  overflow: visible;
  -webkit-line-clamp: unset;
  -webkit-box-orient: initial;
  background: none;
  padding: 12px 14px 14px;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.2;
  color: #fff;
}
.music-grid .news-list a:hover { border-color: var(--yellow); outline: 0; transform: none; }
@media (max-width: 820px) {
  .music-grid .news-list a img { height: 170px; }
  .music-grid .news-list a span { font-size: clamp(15px, 4vw, 18px); }
}

/* Música (portada): las tarjetas crecen con su contenido (imagen + título). Sin filas fijas, la imagen no se corta
   en móvil, donde la rejilla de 2 columnas era demasiado baja para la foto. */
.music-grid .news-list { grid-template-rows: none; grid-auto-rows: auto; align-content: start; }
.music-grid .news-list a { height: auto; }

/* Pantallas de escritorio pequeñas (portátiles y monitores de 1024 px, sobre todo de 600 px de alto):
   1) El banner del hero se limita en alto; la imagen completa se ve centrada (contain).
   2) Las noticias pequeñas del hero tienen alto mínimo, para que el título nunca se salga de la tarjeta. */
@media (min-width: 821px) and (max-width: 1280px) {
  .hero__inner > .ad--leaderboard { aspect-ratio: auto !important; padding-top: 0 !important; height: clamp(140px, 30svh, 260px) !important; }
  .hero__inner > .ad--leaderboard .lqsm-ad__img { object-fit: contain; }
  .hero-stack > .story-card--small,
  .hero-ads > .story-card--small { min-height: 150px; }
}

/* Entretenimiento en 2 columnas de 821 a 1050 px: el anuncio vertical se quedaba solo en otra fila con un hueco.
   Se mantienen 3 columnas (noticia grande, 2×2 pequeñas y anuncio) para que todo quede en la misma fila. */
@media (min-width: 821px) and (max-width: 1050px) {
  .entertainment-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.1fr) minmax(0, .8fr) !important; }
  .entertainment-grid > .ad.ad--img.ad--ent_vertical { width: 100%; margin: 0 !important; }
}

/* Widget SÍGUENOS (YouTube) en la barra lateral de los artículos: últimos 3 videos + botón al canal. */
.widget-youtube .yt-list { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 16px; }
.widget-youtube .yt-list a { display: grid; gap: 8px; color: inherit; text-decoration: none; }
.widget-youtube .yt-thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.widget-youtube .yt-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.widget-youtube .yt-list a:hover .yt-thumb img { transform: scale(1.04); }
.widget-youtube .yt-play {
  position: absolute; left: 50%; top: 50%; width: 52px; height: 36px; transform: translate(-50%, -50%);
  background: #f00; border-radius: 10px; opacity: .92;
}
.widget-youtube .yt-play::after {
  content: ""; position: absolute; left: 21px; top: 10px;
  border-style: solid; border-width: 8px 0 8px 14px; border-color: transparent transparent transparent #fff;
}
.widget-youtube .yt-title { font-size: 14px; font-weight: 700; line-height: 1.35; }
.widget-youtube .yt-list a:hover .yt-title { color: var(--magenta); }
.widget-youtube .yt-follow {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--black); color: var(--yellow); padding: 14px 16px; text-decoration: none;
  font-family: "Barlow Condensed", sans-serif; font-size: 20px; font-weight: 900; letter-spacing: .02em;
}
.widget-youtube .yt-follow:hover { background: var(--magenta); color: #fff; }

/* Hero que cabe en la pantalla: tablets en horizontal, MacBook, portátiles Windows y monitores de cualquier tamaño.
   El hero (banner + noticias) ocupa el alto visible bajo el encabezado (--lqsm-hero-top, lo calcula main.js).
   El banner respeta el alto fijado en Publicidad (--lqsm-h) pero se reduce en pantallas bajas; la imagen se ve completa.
   La rejilla de noticias toma el resto, en 3 columnas. En vertical (tablets de pie) se mantiene el diseño apilado. */
@media (min-width: 821px) and (orientation: landscape) {
  .hero .hero__inner {
    display: flex !important;
    flex-direction: column !important;
    height: calc(100svh - var(--lqsm-hero-top, 72px)) !important;
    min-height: 480px !important;
    max-height: 1080px !important;
  }
  .hero .hero__inner > .ad--leaderboard {
    flex: 0 0 auto !important;
    padding-top: 0 !important;
    aspect-ratio: auto !important;
    min-height: 0 !important;
    height: min(var(--lqsm-h, 9999px), clamp(90px, 24svh, 300px)) !important;
  }
  .hero .hero__inner > .ad--leaderboard .lqsm-ad__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  .hero .hero-grid {
    flex: 1 1 0 !important;
    height: auto !important;
    min-height: 300px !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.72fr) minmax(0, 1fr) !important;
    grid-template-rows: minmax(0, 1fr) !important;
  }
  .hero .hero-stack,
  .hero .hero-ads {
    grid-column: auto !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: minmax(0, 1fr) minmax(0, 1fr) !important;
    min-height: 0 !important;
  }
  .hero .hero-stack > *,
  .hero .hero-ads > * { min-height: 0 !important; height: 100% !important; }
}
/* Tablets y portátiles pequeños (821–1180 px): títulos de las tarjetas pequeñas un poco menores para que quepan. */
@media (min-width: 821px) and (max-width: 1180px) and (orientation: landscape) {
  .hero .story-card--small h2 { font-size: clamp(17px, 1.9vw, 22px); }
  .hero .story-card--small .story-card__body { padding: 12px; }
}

/* Música (portada, escritorio y tablets en horizontal): las 4 noticias pequeñas ocupan todo el alto de la noticia
   principal, arriba y abajo alineadas. Cada fila mide la mitad; la imagen llena el espacio libre y el título va debajo. */
@media (min-width: 901px) {
  .music-grid { align-items: stretch; }
  .music-grid .news-list {
    height: 100%;
    grid-template-rows: minmax(0, 1fr) minmax(0, 1fr) !important;
    grid-auto-rows: auto;
    align-content: stretch;
  }
  .music-grid .news-list a { height: 100%; min-height: 0; }
  .music-grid .news-list a img { flex: 1 1 0; height: auto; min-height: 90px; }
  .music-grid .news-list a span { flex: none; }
}

/* Noticias recientes de categoría: imagen más alta (200 → 250 px) */
.cat-article-card__media { height: 250px; }

/* Barra de filtros de categoría: solo en móvil y tablet (oculta en escritorio) */
@media (min-width: 821px) {
  .cat-filters { display: none; }
}

/* Noticias recientes de categoría: la cuadrícula termina al mismo nivel que la barra lateral */
@media (min-width: 821px) {
  .cat-layout { align-items: stretch; }
  .cat-feed { display: flex; flex-direction: column; }
  .cat-feed .feed-grid { flex: 1; grid-auto-rows: 1fr; }
}
