/*
Theme Name: ATV Los Ríos
Theme URI: https://atvlosrios.cl
Author: Nube — Mauricio Espinoza
Author URI: https://nube.cl
Description: Tema de ATV Los Ríos, el canal de la región de Los Ríos. Portada con carousel, tarjetas y Destacados, franja de noticias en movimiento, Noticias con lista paginada, Señal Online, Programación y barra lateral. Pensado para celular y escritorio.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: atv-los-rios
Tags: news, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, blog, two-columns
*/

/* =====================================================================
   1. Colores, tipografías y base
   ===================================================================== */
:root {
  --rojo: #E93921;          /* color de marca */
  --oscuro: #252626;        /* barras y pie */
  --fondo: #eaeaea;         /* fondo de las páginas */
  --texto: #666;
  --titulo: #212121;
  --linea: #ddd;
  --f-titulo: 'Rubik', sans-serif;
  --f-texto: 'Poppins', sans-serif;
  --ancho: 1450px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fondo);
  color: var(--texto);
  font: 400 16px/1.78 var(--f-texto);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--rojo); text-decoration: none; }
a:hover { color: #b82b19; }
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .5em;
  color: var(--titulo);
  font-family: var(--f-titulo);
  font-weight: 500;
  line-height: 1.33;
}
p { margin: 0 0 16px; }
ul, ol { margin: 0; padding-left: 1.3em; }
.contenido-texto ul, .contenido-texto ol { margin: 0 0 16px; }
.sitio { overflow-x: clip; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link:focus {
  position: fixed; top: 8px; left: 8px; z-index: 100000;
  width: auto; height: auto; margin: 0; padding: 10px 16px; clip: auto;
  background: #fff; color: #000;
}
.wrap { width: 100%; max-width: var(--ancho); margin: 0 auto; padding: 0 15px; }
.fondo { background: #333 center / cover no-repeat; }
.enlace-total { position: absolute; inset: 0; z-index: 1; display: block; }
.solo-movil { display: none; }
.titulo-seccion.recientes-titulo { display: none; }

/* título de sección: etiqueta roja sobre una línea gris */
.titulo-seccion { position: relative; margin: 0 0 20px; border-bottom: 2px solid var(--linea); padding-bottom: 3px; line-height: 1; }
.titulo-seccion h4, .titulo-seccion h6 { margin: 0; line-height: 1; }
.titulo-seccion .bg {
  position: relative;
  display: inline-block;
  margin-bottom: -4px;
  padding: 5px 10px;
  background: var(--rojo);
  color: #fff;
  font: 700 18px/25px var(--f-titulo);
}
.titulo-seccion--linea { display: flex; align-items: center; }

.btn-rojo {
  display: inline-block; padding: 8px 20px;
  background: var(--rojo); color: #fff; font-weight: 700;
}
.btn-rojo:hover { background: var(--oscuro); color: #fff; }

/* =====================================================================
   2. Cabecera: barra superior, logo y lema
   ===================================================================== */
.barra-sup { background: var(--oscuro); padding: 6px 0 5px; }
.barra-sup__in { display: flex; align-items: center; justify-content: space-between; }
.fecha-hoy {
  display: inline-flex; align-items: center;
  padding: 0 15px; margin-right: 15px;
  background: var(--rojo); color: #fff;
  line-height: 35px;
}
.fecha-hoy i { margin-right: 10px; font-size: 14px; }
.fecha-hoy__hora::before { content: "-"; margin: 0 8px; }
.fecha-hoy__hora::after { content: ""; }

.redes { display: flex; margin: 0; padding: 0; list-style: none; }
.redes a {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 35px;
  color: #fff; font-size: 18px;
}
.redes a:hover { color: #fff; opacity: .7; }

.marca { background: var(--rojo); padding: 10px 0 20px; }
.marca__in { display: flex; align-items: center; padding-top: 20px; padding-bottom: 20px; }
.logo { line-height: 0; }
.logo .custom-logo-link { display: inline-block; vertical-align: top; }
.logo .custom-logo { display: block; width: 160px; max-width: 100%; height: auto; }
.logo__texto { color: #fff; font: 700 28px/1.2 var(--f-titulo); }

/* lema con brillo suave (escritorio y tablet) */
.lema {
  position: relative; top: 5px;
  margin: 0 0 0 auto;
  text-align: right;
  font-size: clamp(22px, 2.6vw, 38px);
  font-weight: 700;
  line-height: 1.2;
  color: transparent;
  background: linear-gradient(105deg, #fff 40%, #ffe3a3 50%, #fff 60%) 100% 0 / 250% 100% no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, .25));
  animation: lema-entra 1s ease-out both, lema-brillo 5s ease-in-out 1.2s infinite;
}
@keyframes lema-entra { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes lema-brillo { 0%, 20% { background-position: 100% 0; } 60%, 100% { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .lema { animation: none; } }

/* =====================================================================
   3. Menú
   ===================================================================== */
.menu { position: relative; background: var(--oscuro); box-shadow: 0 2px 2px rgba(0, 0, 0, .08); }
.menu__in { position: relative; display: flex; align-items: center; min-height: 51px; }
.menu__lista { display: flex; margin: 0; padding: 0; list-style: none; }
.menu__lista a {
  display: block; padding: 13px 22px;
  color: #fff;
  font: 600 14px/24.92px var(--f-texto);
  letter-spacing: .03em;
  text-transform: uppercase;
}
.menu__lista li:hover > a,
.menu__lista .is-active > a,
.menu__lista .current-menu-item > a,
.menu__lista .current-menu-ancestor > a,
.menu__lista .current_page_item > a,
.menu__lista .current_page_parent > a { background: var(--rojo); color: #fff; }
.menu__casa i { font-size: 19px; vertical-align: -1px; }

.menu__acciones { display: flex; align-items: center; margin-left: auto; }
.menu__buscar {
  padding: 0 14px; border: 0; background: none;
  color: #fff; font-size: 16px; line-height: 29px; cursor: pointer;
}
.menu__buscar:hover { opacity: .7; }
.btn-senal {
  margin-left: 8px; padding: 0 16px;
  background: var(--rojo); color: #fff;
  font-size: 16px; line-height: 29px;
  letter-spacing: .03em; text-transform: uppercase;
  white-space: nowrap;
}
.btn-senal:hover { background: #fff; color: var(--rojo); }
.menu__casa-movil, .menu__hamburguesa { display: none; }

.buscador {
  position: absolute; z-index: 50; top: 100%; right: 15px;
  display: none; width: 600px; max-width: 92vw;
  padding: 20px; background: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .2);
}
.buscador--abierto { display: block; }
.buscar-form { display: flex; }
.buscar-form input[type="search"] {
  flex: 1; min-width: 0; height: 55px; padding: 0 14px;
  border: 1px solid #ccc; border-right: 0; border-radius: 4px 0 0 4px;
  font: 400 20px var(--f-texto); color: var(--titulo);
}
.buscar-form button {
  height: 55px; padding: 0 28px;
  border: 0; border-radius: 0 4px 4px 0;
  background: var(--rojo); color: #fff; font-size: 20px; cursor: pointer;
}
.buscar-form button:hover { background: var(--oscuro); }

/* =====================================================================
   4. Franja de noticias en movimiento
   ===================================================================== */
.franja { margin-top: 24px; }
.franja__in { display: flex; height: 50px; overflow: hidden; background: var(--rojo); box-shadow: 0 3px 5px rgba(70, 70, 70, .1); }
.franja__titulo {
  flex: 0 0 199px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  border-right: 1px solid #fff;
  color: #fff; font: 700 19px/1 var(--f-titulo);
}
.franja__pista { flex: 1; min-width: 0; overflow: hidden; }
.franja__lista {
  display: inline-flex; align-items: center; height: 50px;
  white-space: nowrap;
  animation: franja var(--dur, 60s) linear infinite;
}
.franja__lista:hover { animation-play-state: paused; }
.franja__item {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 0 28px;
  color: #fff; font-size: 16px; font-weight: 500; text-transform: uppercase;
}
.franja__item:hover { color: #fff; text-decoration: underline; }
.franja__item img { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; }
@keyframes franja { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .franja__lista { animation: none; } }

/* =====================================================================
   5. Portada: carousel, tarjetas y Destacados
   ===================================================================== */
.portada { padding: 24px 0; }
.portada__caja { padding: 20px 5px 5px; background: #fff; }
.portada__fila { display: flex; flex-wrap: wrap; }
.portada__destacados { order: -1; flex: 0 0 25%; max-width: 25%; padding: 0 15px; }
.portada__centro { flex: 0 0 50%; max-width: 50%; padding: 0 15px; }
.portada__derecha { flex: 0 0 25%; max-width: 25%; padding: 0 15px; }

.hero { position: relative; height: 450px; overflow: hidden; }
.hero__pista { display: flex; height: 100%; transition: transform .5s ease; }
.hero__slide { position: relative; flex: 0 0 100%; display: flex; align-items: flex-end; }
.hero__slide::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, .78) 100%);
}
.hero__texto { position: relative; z-index: 2; padding: 25px; pointer-events: none; }
.hero__texto a { pointer-events: auto; }
.hero__titulo { margin: 5px 0 8px; font-size: 30px; font-weight: 500; line-height: 1.3; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.hero__titulo a { color: #fff; }
.hero__fecha { color: #fff; font-size: 14px; font-weight: 500; letter-spacing: .5px; }
.hero__btn {
  position: absolute; z-index: 3; top: 50%; margin-top: -22px;
  display: flex; align-items: center; justify-content: center;
  width: 35px; height: 35px; padding: 0; border: 0;
  background: #fff; color: #000; font-size: 16px; cursor: pointer;
  box-shadow: 0 2px 2px rgba(0, 0, 0, .14), 0 3px 1px -2px rgba(0, 0, 0, .2), 0 1px 5px rgba(0, 0, 0, .12);
}
.hero__btn--ant { left: 10px; }
.hero__btn--sig { right: 10px; }

.tarjeta { background: #fff; border: 1px solid #eee; }
.tarjeta__foto { position: relative; }
.tarjeta__titulo { margin: 0; padding: 5px 10px 0; font-size: 18px; font-weight: 500; line-height: 1.33; }
.tarjeta--chica .tarjeta__titulo { font-size: 15px; line-height: 1.3; }
.tarjeta--chica .tarjeta__resumen { font-size: 12.5px; -webkit-line-clamp: 2; line-clamp: 2; }
.tarjeta__titulo a {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
  color: var(--titulo);
}
.tarjeta__resumen {
  margin: 4px 10px 10px; padding: 0; color: #666; font-size: 13px; line-height: 1.45;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden;
}
.hero__resumen {
  margin: 0 0 8px; max-width: 560px; color: #fff; font-size: 14px; line-height: 1.45; opacity: .92;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
}
.portada__tres { display: flex; gap: 30px; margin-top: 16px; }
.tarjeta--chica { flex: 1; min-width: 0; }
.tarjeta--chica .tarjeta__foto { height: 120px; }
.tarjeta--grande { margin-bottom: 24px; }
.tarjeta--grande .tarjeta__foto { height: 243px; }

.destacado {
  display: flex; align-items: stretch;   /* la foto llena todo el alto del destacado: queda vertical */
  margin: 0 20px 13px; padding-bottom: 13px;
  border-bottom: 1px solid #b8b8b8;
}
.destacado:last-child { border-bottom: 0; }
.destacado__foto { position: relative; flex: 0 0 100px; width: 100px; min-height: 100px; margin-right: 10px; }
.destacado__texto { flex: 1; min-width: 0; }
.destacado__titulo {
  margin: 0 0 4px;
  font: 600 15px/1.3 var(--f-texto);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden;
}
.destacado__titulo a { color: var(--oscuro); }
.destacado__titulo a:hover { color: var(--rojo); }
.destacado__resumen {
  margin: 0; color: #666; font-size: 12.5px; line-height: 1.45;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden;
}
.portada__destacados .titulo-seccion { margin-bottom: 20px; }

/* =====================================================================
   6. Contenido: columnas, barra lateral, lista de noticias
   ===================================================================== */
#contenido { padding-top: 30px; padding-bottom: 30px; }
#contenido.contenido-inicio, body.es-noticias #contenido { padding-top: 0; }
#contenido.contenido-inicio, body.es-noticias #contenido { padding-bottom: 0; }
.layout { display: flex; flex-wrap: wrap; margin: 0 -15px; }
.layout__aside { flex: 0 0 33.3333%; max-width: 33.3333%; padding: 0 15px; }
.layout__main { flex: 0 0 66.6667%; max-width: 66.6667%; padding: 0 15px; min-width: 0; }
/* una publicación: la barra lateral y el texto van pegados (sin separación entre columnas) */
.layout--single { margin: 0; }
.layout--single .layout__aside { padding: 0 15px 0 0; }
.layout--single .layout__main { padding: 0; }
@media (min-width: 992px) {
  .layout--single .layout__aside { flex-basis: 25%; max-width: 25%; }
  .layout--single .layout__main { flex-basis: 75%; max-width: 75%; }
}

.widget { margin-bottom: 30px; padding: 20px; background: #fff; border: 1px solid #eee; }
.widget figure { margin: 0 0 16px; }
.widget .titulo-seccion { margin-bottom: 20px; }
.widget ul { margin: 0; padding: 0; list-style: none; }
.widget .wp-block-latest-posts__list { margin-top: 43px; }   /* se junta con el margen del título: 43 px bajo el título */
.widget .wp-block-latest-posts__list li { position: relative; padding: 9px 0; border-bottom: 1px solid #eee; }
.widget .wp-block-latest-posts__list li + li { margin-top: 24px; }
.widget .wp-block-latest-posts__list li:first-child { padding-top: 0; }
.widget .wp-block-latest-posts__list li:last-child { padding-bottom: 0; border-bottom: 0; }
.widget .wp-block-latest-posts__post-title { color: #222; font-size: 16px; }
.widget .wp-block-latest-posts__post-title:hover { color: var(--rojo); }
.widget img { display: block; }
.widget figure a { display: block; }
.widget--destacado img { width: 100%; }

.caja { padding: 20px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .08); }
.contenido-texto > :last-child { margin-bottom: 0; }
.contenido-texto h1, .contenido-texto h2, .contenido-texto h3 { margin-top: 1.2em; }
.contenido-texto h2 { font-size: 32px; }
.contenido-texto h3 { font-size: 26px; }
.contenido-texto img { height: auto; }
.contenido-texto figure { margin: 0 0 16px; }
.contenido-texto blockquote { margin: 0 0 16px; padding: 4px 20px; border-left: 4px solid var(--rojo); color: #444; }
.contenido-texto iframe { max-width: 100%; }

/* lista de noticias */
.grilla { display: flex; flex-wrap: wrap; margin: 0 -15px; }
.grilla__item { flex: 0 0 50%; max-width: 50%; padding: 0 15px; }
.entrada { margin-bottom: 30px; }
.entrada__foto { position: relative; height: 300px; }
.entrada__texto { padding: 16px; background: #fff; }
.entrada__titulo { margin: 5px 0; font-size: 22px; font-weight: 500; line-height: 1.33; }
.entrada__titulo a { color: var(--titulo); }
.entrada__titulo a:hover { color: var(--rojo); }
.fecha-entrada { color: #333; font-size: 14px; font-weight: 500; letter-spacing: .5px; line-height: 1.78; }
.entrada__texto p { margin: 0 0 16px; }

/* números de página */
.navigation.pagination { display: flex; justify-content: center; margin: 0; }
.navigation.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; }
.page-numbers {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; margin: 0 6px 10px;
  background: #fff; color: var(--oscuro);
  font-size: 18px; font-weight: 400; line-height: 40px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .15);
}
.page-numbers.current, a.page-numbers:hover { background: var(--rojo); color: #fff; }
.page-numbers.dots { box-shadow: none; background: transparent; }

/* migas de pan y título de las páginas */
.migas { background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .15); }
.migas__in { display: flex; align-items: center; justify-content: space-between; padding: 30px 24px; gap: 0 20px; }
.migas h1 { margin: 0; color: #222; font-size: 30px; font-weight: 700; line-height: 30px; }
.migas__ruta { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 15px; line-height: 30px; }
.migas__ruta li:first-child a { color: #000; }
.migas__ruta i { font-size: 13px; color: #000; }

/* =====================================================================
   7. Una publicación
   ===================================================================== */
.post__cabecera { padding: 15px 20px 0; background: #fff; }
.post__titulo { margin: 0 0 22px; font-size: 38px; font-weight: 700; line-height: 1.33; }
.post__fecha { padding: 9px 0 10.5px; color: #333; }
.caja--post { margin-bottom: 24px; background: #fff; }
.post__texto { padding: 16px; }
.post__texto .wp-block-image, .post__texto .post__img { margin: 0 0 16px; }
.post__img { display: block; width: 100%; height: auto; }

.compartir { display: flex; justify-content: flex-end; gap: 4px; margin-top: 17px; }
.compartir a {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; color: #fff; font-size: 13px;
}
.compartir a:hover { opacity: .85; color: #fff; }
.compartir__facebook { background: #3b5998; }
.compartir__x { background: #252626; }
.compartir__correo { background: #111; }
.compartir__linkedin { background: #0077b5; }
.compartir__telegram { background: #0088cc; }
.compartir__pinterest { background: #cb2027; }
.compartir__imprimir { background: #000; }

.post-nav { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.post-nav__ant { justify-content: space-between; }
.post-nav a {
  display: flex; align-items: center; gap: 8px;
  color: #000; font: 700 19px/1.2 var(--f-titulo); letter-spacing: -.02em;
}
.post-nav a:hover { color: var(--rojo); }
.post-nav__ant { justify-content: space-between; }
.post-nav__sig { justify-content: flex-start; }

.relacionadas { margin-bottom: 30px; padding: 10px; background: #fff; }
.relacionadas__lista { display: flex; flex-wrap: wrap; gap: 30px; margin: 0 -15px; }
.relacionada { display: flex; align-items: flex-start; gap: 25px; flex: 0 0 calc(50% - 15px); padding: 0 15px; }
.relacionada__foto { position: relative; flex: 0 0 176px; width: 176px; height: 78px; }
.relacionada h5 {
  margin: 5px 0 0; font-size: 18px; font-weight: 700; line-height: 1.33;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
}
.relacionada h5 a { color: var(--titulo); }

.comentarios { margin-top: 30px; }
.comentarios__lista { padding-left: 0; list-style: none; }

/* =====================================================================
   8. Pie de página
   ===================================================================== */
.pie { background: var(--oscuro); color: #fff; }
.pie__menu { padding: 40px 0 37px; }
.pie__widgets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.pie .widget { margin: 0; padding: 0; background: none; border: 0; }
.pie ul { margin: 0; padding: 0; list-style: none; }
.pie li { padding: 0 0 17px; line-height: 28.48px; }
.pie a { color: #fff; }
.pie a:hover { opacity: .75; }
.pie__marca { padding: 0 0 45px; }
.pie__linea { height: 1px; margin-bottom: 56px; background: #3a3b3b; }
.pie__fila { display: flex; align-items: center; justify-content: space-between; }
.pie__credito { display: flex; justify-content: center; padding: 14px 0; background: var(--oscuro); }
.credito { display: inline-flex; align-items: center; gap: 2px; color: #fff; font-size: 12px; line-height: 1; }
.credito img { width: 48px; height: 14px; filter: invert(1); }  /* el logo es negro y el pie oscuro: se vuelve blanco */

/* volver arriba */
.subir {
  position: fixed; z-index: 9999; right: 18px;
  bottom: calc(var(--atv-bar-h, 0px) + 16px);
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: var(--rojo); color: #fff; font-size: 16px;
  box-shadow: 0 2px 2px rgba(0, 0, 0, .14), 0 3px 1px -2px rgba(0, 0, 0, .2), 0 1px 5px rgba(0, 0, 0, .12);
  opacity: 0; visibility: hidden;
  transition: opacity .25s, bottom .2s, visibility .25s;
}
.subir--visible { opacity: 1; visibility: visible; }
.subir:hover { color: #fff; background: var(--oscuro); }

/* barra fija "Dónde ver ATV" */
.atv-bar {
  position: fixed; z-index: 9998; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 10px 48px 10px 16px;
  background: var(--rojo); color: #fff;
  font-size: 15px; line-height: 1.35; text-align: center;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, .2);
}
.atv-bar p { margin: 0; color: #fff; }
.atv-bar .atv-bar__close,
.atv-bar .atv-bar__close:hover,
.atv-bar .atv-bar__close:focus {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; padding: 0; border: 0; background: none;
  color: #fff; font-size: 26px; line-height: 1; cursor: pointer;
}
.atv-bar .atv-bar__close:hover { opacity: .75; }
.atv-bar .atv-bar__close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.atv-bar-off .atv-bar { display: none; }

/* =====================================================================
   9. Tablet (hasta 991 px): el menú pasa a botón de hamburguesa
   ===================================================================== */
@media (max-width: 991.98px) {
  .menu__in { flex-wrap: wrap; }
  .menu__casa-movil {
    display: block; order: 1;
    width: 40px; height: 40px; background: var(--rojo);
    color: #fff; text-align: center; line-height: 40px; font-size: 16px;
  }
  .menu__hamburguesa {
    display: flex; order: 2; margin-left: auto;
    flex-direction: column; justify-content: center; gap: 4px;
    width: 40px; height: 40px; padding: 0 9px; border: 0; background: none; cursor: pointer;
  }
  .menu__hamburguesa span { display: block; height: 2px; background: #fff; transition: transform .2s, opacity .2s; }
  .menu--abierto .menu__hamburguesa span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu--abierto .menu__hamburguesa span:nth-child(2) { opacity: 0; }
  .menu--abierto .menu__hamburguesa span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .menu__acciones { order: 3; margin-left: 0; }
  .menu__lista { order: 4; display: none; flex-direction: column; width: 100%; }
  .menu--abierto .menu__lista { display: flex; }
  .menu__lista .menu__casa { display: none; }
  .menu__lista a { padding: 12px 15px; }
  .buscador { left: 0; right: 0; width: 100%; max-width: 100%; padding: 15px; }
  .menu__in { position: static; }
  .menu { position: relative; }
}

/* =====================================================================
   10. Escritorio chico y tablet (768–991 px)
   ===================================================================== */
@media (max-width: 1199.98px) {
  .hero__titulo { font-size: 28px; }
  .tarjeta__titulo { font-size: 16px; }
}

/* Escritorio y tablet: las 2 tarjetas grandes de la derecha se reparten todo el alto de la columna;
   la foto se recorta para que no quede espacio en blanco debajo. */
@media (min-width: 768px) {
  .portada__derecha { display: flex; flex-direction: column; gap: 24px; }
  .portada__derecha .tarjeta--grande { flex: 1 1 0; display: flex; flex-direction: column; margin: 0; }
  .portada__derecha .tarjeta__foto { flex: 1 1 auto; min-height: 140px; height: auto; }
  .portada__derecha .tarjeta__titulo, .portada__derecha .tarjeta__resumen { flex: none; }
}

/* Las tres columnas de la portada terminan a la misma altura: lo que sobra se reparte entre las fotos y los ítems. */
@media (min-width: 768px) {
  .portada__centro { display: flex; flex-direction: column; }
  .portada__tres { flex: 1 1 auto; }
  .tarjeta--chica { display: flex; flex-direction: column; }
  .tarjeta--chica .tarjeta__foto { flex: 1 1 auto; min-height: 120px; height: auto; }
}
@media (min-width: 992px) {
  .portada__destacados { display: flex; flex-direction: column; }
  .portada__destacados .destacado { flex: 1 1 auto; }
  .portada__destacados .destacado:last-child { margin-bottom: 0; }
}

/* Tablet vertical (768–991 px): Destacados pasa debajo, en dos columnas, para que los títulos se lean */
@media (min-width: 768px) and (max-width: 991.98px) {
  .portada__centro { flex-basis: 66.6667%; max-width: 66.6667%; }
  .portada__derecha { flex-basis: 33.3333%; max-width: 33.3333%; }
  .portada__destacados {
    order: 3; flex-basis: 100%; max-width: 100%; margin-top: 10px;
    display: grid; grid-template-columns: 1fr 1fr; column-gap: 30px;
  }
  .portada__destacados .titulo-seccion { grid-column: 1 / -1; }
  .destacado { margin: 0 0 13px; }
}

/* =====================================================================
   11. Celular (hasta 767 px)
   ===================================================================== */
@media (max-width: 767.98px) {
  .solo-web { display: none; }
  .solo-movil { display: inline; }
  .titulo-seccion.recientes-titulo { display: flex; }

  /* barra superior: solo redes, compacta */
  .barra-sup { padding: 0; }
  .fecha-hoy { display: none; }
  .barra-sup__in { justify-content: center; }
  .redes { width: 100%; justify-content: center; }
  .redes a { width: 34px; height: 38px; margin: 0 8px; }

  /* logo centrado, sin lema */
  .marca { padding: 10px 0 5px; }
  .marca__in { justify-content: center; padding-top: 10px; padding-bottom: 15px; }
  .lema { display: none; }
  .menu__in { min-height: 40px; }
  .btn-senal { margin-left: 4px; }

  /* franja: sin título, solo las noticias */
  .franja { margin-top: 20px; }
  .franja__titulo { display: none; }

  /* portada: todo en una columna */
  .portada { padding: 20px 0 0; }
  .portada__fila { display: block; }
  .portada__destacados, .portada__centro, .portada__derecha { max-width: 100%; padding: 0 15px; }
  .portada__destacados { order: 0; }
  .hero__titulo { font-size: 24px; }
  .portada__tres { display: block; margin-top: 0; }
  .tarjeta--chica, .tarjeta--grande { margin-top: 12px; margin-bottom: 12px; }
  .tarjeta--chica .tarjeta__foto, .tarjeta--grande .tarjeta__foto { height: 200px; }
  .tarjeta--chica { margin-top: 12px; }
  .portada__derecha { margin-top: 0; }
  .portada__destacados { margin-top: 12px; }
  .destacado { margin: 0 0 13px; }

  /* columnas apiladas */
  .layout { flex-direction: column; flex-wrap: nowrap; }
  .layout__aside, .layout__main { flex: none; width: 100%; max-width: 100%; }
  .grilla__item { flex-basis: 100%; max-width: 100%; }
  .entrada__foto { height: 250px; }
  .entrada__titulo { font-size: 20px; }
  .widget--alerta { display: none; }  /* ocupa mucho espacio */
  .migas__in { flex-wrap: wrap; padding-left: 19px; padding-right: 19px; gap: 0 4px; }
  #contenido { padding-top: 20px; padding-bottom: 20px; }

  /* números de página centrados y con sangría */
  .navigation.pagination { padding: 0 16px; margin: 24px 0 28px; }

  /* una publicación: título, imagen, Dreams, texto y luego el resto */
  .post__titulo { font-size: 28px; }
  .layout--single { display: flex; flex-direction: column; }
  .layout--single > .layout__aside,
  .layout--single .layout__main,
  .layout--single .barra-lateral,
  .layout--single .caja--post { display: contents; }
  .layout--single .widget { order: 10; width: 100%; }
  .layout--single .post__cabecera { order: 1; }
  .layout--single .widget--destacado { order: 2; }
  .layout--single .post__texto { order: 3; background: #fff; }
  .layout--single .relacionadas, .layout--single .comentarios { order: 11; }
  .layout--single .layout__aside, .layout--single .layout__main { padding: 0; }
  .layout--single > * { width: 100%; }
  .post__texto { margin-bottom: 0; }
  .relacionada { flex-basis: 100%; }
  .relacionada__foto { flex-basis: 120px; width: 120px; }

  /* Noticias: carousel, Dreams, tiempo y la lista bajo "Noticias recientes" */
  body.es-noticias .portada__tres,
  body.es-noticias .portada__derecha,
  body.es-noticias .portada__destacados,
  body.es-noticias .widget--recientes { display: none; }
  body.es-noticias .portada__caja { padding-bottom: 20px; }
  body.es-noticias .layout--lista { display: flex; flex-direction: column; }
  body.es-noticias .layout--lista > .layout__aside,
  body.es-noticias .layout--lista .barra-lateral { display: contents; }
  body.es-noticias .layout--lista .layout__main { order: 3; }
  body.es-noticias .layout--lista .layout__aside { padding: 0; }
  body.es-noticias .layout--lista .widget { margin: 0 15px 30px; }
  body.es-noticias .layout--lista .widget--destacado { order: 1; margin-top: 20px; }
  body.es-noticias .layout--lista .widget--tiempo { order: 2; }
  body.es-noticias .layout--lista .layout__main { margin-top: 10px; }

  /* páginas sin barra lateral en celular (Contacto y textos legales) */
  body.sin-barra-movil .layout__aside { display: none; }

  /* Señal Online: el reproductor primero; abajo solo los programas destacados */
  body.slug-senal-online .layout--pagina .layout__main { order: 1; }
  body.slug-senal-online .layout--pagina .layout__aside { order: 2; }
  body.slug-senal-online .widget--destacado,
  body.slug-senal-online .widget--tiempo,
  body.slug-senal-online .widget--alerta { display: none; }

  /* pie */
  .pie__widgets { grid-template-columns: 1fr; }
  .pie__fila { flex-direction: column; gap: 20px; }
  .pie__marca { text-align: center; }
  .barra-sup + .marca { }
  .atv-bar { font-size: 13px; padding: 10px 44px 10px 12px; }
}
