:root {
  --g: clamp(12px, 4.2vw, 48px);
  --max: 1560px;
}
@media (max-width: 300px) {
  :root { --g: 10px; }
}

@media (min-width: 1880px) {
  html:has(> body.portal) { zoom: 1.1; }
}
@media (min-width: 2200px) {
  html:has(> body.portal) { zoom: 1.25; }
}
@media (min-width: 2800px) {
  :root { --max: 1720px; }
  html:has(> body.portal) { zoom: 1.5; }
}
@media (min-width: 3600px) {
  html:has(> body.portal) { zoom: 1.75; }
}
@media (min-width: 4400px) {
  html:has(> body.portal) { zoom: 2; }
}

/* ---------- Contenedores: un solo margen lateral para todo ---------- */
.pwrap { max-width: var(--max); padding-inline: var(--g); }
body.home-full .pwrap { max-width: var(--max); }
.news-search-bar .pwrap { position: relative; }
.news-search-bar .news-search-results { top: calc(100% + 6px); }

@media (min-width: 1021px) {
  .home-hero,
  .home-lower {
    max-width: var(--max);
    padding-inline: var(--g);
  }
}

@media (max-width: 600px) {
  .adb { padding-left: 0 !important; padding-right: 0 !important; }
  .news-search-bar { padding-left: 0; padding-right: 0; }
}

/* ---------- Navbar ---------- */
.nav-hint { display: none; }

@media (min-width: 961px) {
  .navbar {
    gap: clamp(14px, 1.6vw, 28px);
    padding-inline: max(var(--g), calc((100% - var(--max)) / 2 + var(--g)));
  }
  /* La pildora ya esta separada 14px del borde: se descuenta para que el logo siga alineado con el contenido. */
  .navbar.is-scrolled {
    padding-inline: max(22px, calc((100% - var(--max)) / 2 + var(--g) - 14px));
  }
  .nav-links {
    position: static;
    transform: none;
    flex: 1 1 auto;
    min-width: 0;
    justify-content: center;
    gap: clamp(14px, 1.9vw, 34px);
  }
  .nav-buscar {
    flex: 0 1 auto;
    width: clamp(210px, 21vw, 360px);
  }
}
@media (min-width: 961px) and (max-width: 1279px) {
  .nav-txt-full { display: none; }
  .nav-txt-corto { display: inline; }
  .nav-item { font-size: 12.5px; letter-spacing: 0.05em; }
}

@media (min-width: 761px) and (max-width: 960px) {
  :root { --nav-h: 78px; }
  .navbar {
    height: var(--nav-h);
    padding-inline: var(--g);
    gap: 16px;
  }
  .logo-img { height: 54px; }
  .nav-links {
    position: static;
    transform: none;
    flex: 1 1 auto;
    min-width: 0;
    justify-content: center;
    gap: clamp(12px, 2.2vw, 24px);
  }
  .nav-item { font-size: 13px; letter-spacing: 0.05em; }
  .nav-txt-full { display: none; }
  .nav-txt-corto { display: inline; }
}

@media (max-width: 760px) {
  :root { --nav-h: 56px; --anchor-off: 72px; }
  .navbar {
    height: var(--nav-h);
    padding-inline: var(--g) 4px;
    justify-content: flex-start;
    gap: 0;
    overflow: hidden;
    border-bottom-width: 2px;
  }
  .navbar::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 38px; height: 100%;
    background: linear-gradient(to right, rgba(245,197,0,0), #f5c500 70%);
    pointer-events: none;
    z-index: 10;
    transition: opacity 0.25s ease;
  }
  .logo-img { height: 38px; flex-shrink: 0; }
  .nav-rtv-label { display: none !important; }
  .nav-logo { padding-right: 4px; flex-shrink: 0; }
  .nav-links {
    position: static;
    transform: none;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0;
    margin-left: 4px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-right: 30px;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links > li:first-child { margin-left: auto; }
  .nav-links > li:last-child { margin-right: auto; }
  .nav-item {
    font-size: 11.5px;
    letter-spacing: 0.01em;
    padding: 8px 9px;
    flex-shrink: 0;
  }
  .nav-item::after { bottom: 2px; }
  .nav-buscar, .nav-live-btn, .nav-right-spacer { display: none; }
  .dropdown { display: none !important; pointer-events: none !important; }
  .has-dropdown::after { display: none; }

  .nav-hint {
    display: grid;
    place-items: center;
    position: absolute;
    top: 0; bottom: 0;
    width: 30px;
    margin: 0;
    padding: 0 0 2px;
    border: 0;
    background: none;
    z-index: 11;
    font: 800 22px/1 var(--font);
    color: var(--red);
    opacity: 1;
    transform: none;
    pointer-events: auto;
    cursor: pointer;
    animation: none;
    transition: opacity 0.2s ease, visibility 0.2s;
  }
  .nav-hint--der { right: 0; left: auto; animation: rtvNavHint 1.6s ease-in-out infinite; }
  .nav-hint--izq {
    right: auto;
    background: linear-gradient(to left, rgba(245,197,0,0), #f5c500 55%);
  }
  .navbar.nav-fin .nav-hint--der,
  .navbar.nav-inicio .nav-hint--izq { opacity: 0; visibility: hidden; }
  .navbar.nav-fin::after { opacity: 0; }
  .navbar.nav-desliza .nav-links {
    cursor: grab;
    -webkit-user-select: none;
    user-select: none;
  }
  .nav-links.arrastrando,
  .nav-links.arrastrando * { cursor: grabbing !important; }
  @media (hover: hover) {
    .nav-hint:hover { color: #8c030b; }
  }

  .navbar.is-scrolled {
    left: 10px; right: 10px;
    top: 6px;
    height: 52px;
    border-radius: 50px;
    padding-inline: 12px 4px;
  }
  .navbar.is-scrolled .logo-img { height: 32px; }
  .navbar.is-scrolled::after { border-radius: 0 50px 50px 0; }
}
@keyframes rtvNavHint {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(3px); }
}
@media (prefers-reduced-motion: reduce) {
  .nav-hint--der { animation: none; }
}

@media (max-width: 340px) {
  .logo-img { height: 32px; }
  .nav-item { font-size: 10.5px; padding: 8px 7px; }
  .rtv-ticker-label { font-size: 9.5px; letter-spacing: 0.06em; padding: 0 9px; gap: 6px; }
  .rtv-ticker-track a { font-size: 12px; }
}

/* Celular acostado: la barra y el ticker no deben comerse la pantalla. */
@media (max-height: 500px) and (orientation: landscape) {
  :root { --nav-h: 56px; --anchor-off: 70px; }
  .navbar { height: var(--nav-h); }
  .logo-img { height: 38px; }
  .navbar.is-scrolled { height: 50px; top: 5px; }
  .navbar.is-scrolled .logo-img { height: 32px; }
  .rtv-ticker { height: 34px; }
  body.home-full .portal-home { padding-top: calc(var(--nav-h) + 40px); }
}

/* ---------- Buscador de la portada (movil y tablet) ---------- */
.news-search-box {
  max-width: 640px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(36,19,7,0.06);
}
.news-search-box svg { color: #b80410; flex-shrink: 0; }
.news-search-results { width: min(640px, calc(100% - 2 * var(--g))); }

/* ---------- Carrusel de destacadas ---------- */
.ndd2-carousel .pwrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto minmax(0, 1fr);
  align-items: center;
  column-gap: 14px;
}
.ndd2-wrap { grid-column: 1 / -1; width: 100%; }
.ndd2-controls { display: contents; }
.ndd2-prev { grid-column: 2; grid-row: 2; }
.ndd2-dots { grid-column: 3; grid-row: 2; }
.ndd2-next { grid-column: 4; grid-row: 2; }
.ndd2-dots, .ndd2-prev, .ndd2-next { margin-top: 14px; }
.ndd2-arrow { width: 38px; height: 38px; }
.ndd2-dot { width: 9px; height: 9px; }
.ndd2-dot.active { width: 26px; }

/* Las portadas del carrusel son de 250-400px reales: la foto se topa en
   ~300px (8:5) para no ampliarla de mas y el resto del ancho es texto. */
.ndd2-wrap { max-width: 100%; }
.ndd2-card {
  height: auto;
  grid-template-columns: minmax(0, clamp(220px, 22vw, 300px)) minmax(0, 1fr);
  align-items: center;
}
.ndd2-imgwrap {
  width: auto;
  height: auto;
  min-height: 0;
  aspect-ratio: 8 / 5;
  margin: 16px 0 16px 16px;
  border-radius: 10px;
  align-self: center;
}
.ndd2-body {
  padding: 18px 26px 18px 22px;
  gap: 7px;
}
.ndd2-title { font-size: clamp(18px, 0.9vw + 10px, 24px); }
.ndd2-desc {
  max-height: none;
  -webkit-mask-image: none;
  mask-image: none;
  font-size: 14.5px;
  line-height: 1.58;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 600px) {
  .ndd2-card { grid-template-columns: minmax(0, 1fr); }
  .ndd2-imgwrap {
    width: min(calc(100% - 24px), 340px);
    margin: 12px auto 0;
    justify-self: center;
  }
  .ndd2-body { padding: 14px 16px 16px; }
  .ndd2-title { font-size: 18px; }
  .ndd2-desc { font-size: 14px; }
  .ndd2-arrow { width: 40px; height: 40px; }
}

/* ---------- Lo ultimo ---------- */
.pt-lead-title { font-size: clamp(21px, 1.1vw + 13px, 30px); }
.pt-lead-body { display: flex; flex-direction: column; align-items: flex-start; }
.pt-lead { display: flex; flex-direction: column; }
.pt-lead-body { flex: 1; }
.pt-lead .n-date { margin-top: auto; }

@media (max-width: 1279px) {
  .pt-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 701px) and (max-width: 1279px) {
  .pt-rail {
    column-count: 2;
    column-gap: 40px;
    padding: 18px 24px 8px;
  }
  .pt-rail-head,
  .pt-rail-item { break-inside: avoid; }
  .pt-rail-head { break-after: avoid; }
  .pt-rail-head ~ .pt-rail-head { break-before: column; }
}
@media (max-width: 700px) {
  .pt-lead-title { font-size: clamp(20px, 5.6vw, 26px); }
}

/* ---------- Secciones por categoria ---------- */
@media (min-width: 640px) and (max-width: 920px) {
  .cb-list { grid-template-columns: 1fr 1fr; column-gap: 26px; }
}
@media (max-width: 380px) {
  .cb-head { gap: 8px; }
  .cb-name { white-space: normal; max-width: 100%; line-height: 1.25; }
}
@media (max-width: 340px) {
  .pt-card,
  .cb-card { display: flex; flex-direction: column; }
  .pt-card-imgwrap,
  .cb-card-imgwrap { aspect-ratio: 16 / 9; height: auto; min-height: 0; }
  .cb-row { gap: 11px; }
  .cb-row-thumb { width: 80px; height: 58px; }
  .hh-item { grid-template-columns: 72px 1fr; }
  .hh-item img { width: 72px; height: 54px; }
}

/* Punto de color en cada etiqueta de categoria. */
.kick[data-cat]::before,
.hh-item-cat[data-cat]::before,
.sb-cat[data-cat]::before,
.tpg-cat[data-cat]::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cat-bg, var(--cat));
  margin-right: 6px;
  vertical-align: 1px;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--cat) 22%, transparent);
}

/* Tarjetas: la foto invita a entrar. */
@media (hover: hover) {
  .pt-card-title, .cb-card-title, .cb-lead-title, .pt-lead-title { transition: color 0.2s ease; }
}
.cb-lead-body::after,
.pt-lead-body::after {
  content: "Leer nota \2192";
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cat-ink, var(--rtv-red));
  opacity: 0.9;
}
.pt-lead-body::after { margin-top: 12px; }
@media (hover: hover) {
  .cb-lead:hover .cb-lead-body::after,
  .pt-lead:hover .pt-lead-body::after { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
}

/* ---------- Farandula: mismo margen lateral que las demas cajas ---------- */
@media (max-width: 1020px) {
  .fa { margin-inline: var(--g); border-radius: 18px; }
  .fa .pwrap { padding-inline: clamp(14px, 4vw, 32px); }
}

/* ---------- Videos destacados ---------- */
@media (max-width: 559px) {

  .hv-grid::-webkit-scrollbar { display: none; }

  .hv-card:hover { transform: none; }
}

/* ---------- Pagina de noticia ---------- */
.crumbs { max-width: var(--max); padding-inline: var(--g); }

body.portal .article-outer { max-width: var(--max); padding-inline: var(--g); }

@media (max-width: 1300px) {
  body.portal .article-outer { padding-inline: 0; }
  body.portal .article-outer .article-wrap { padding-inline: var(--g); }
  .crumbs { max-width: 1080px; }
}
@media (max-width: 700px) {
  body.portal .article-outer .article-wrap { padding-inline: var(--g); }
}
@media (max-width: 480px) {
  body.portal .article-wrap article { padding: 20px 16px 24px; }
  body.portal .article-body p { font-size: 16.5px; line-height: 1.78; }
  .art-share { gap: 6px; }
  .art-share-label { width: 100%; margin-bottom: 2px; }
}

@media (max-width: 600px) {
  body.portal .article-photo-grid-3 img { max-height: 620px; }
}
/* main.js marca las fotos cuya caja no coincide con la proporcion real de la
   imagen; sin ancho forzado la caja vuelve a medir lo mismo que la foto. */
.article-wrap article img.sin-franjas {
  width: auto !important;
  height: auto !important;
  margin-left: auto !important;
  margin-right: auto !important;
  justify-self: center;
}

.art-lectura {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink-3);
}

.art-lectura svg { width: 13px; height: 13px; flex-shrink: 0; }

/* ---------- Programas (paginas de segmento) ---------- */
@media (max-width: 600px) {

  .seg-playlist {
    padding: 0;
    border-radius: 20px;
    background: rgba(0,0,0,0.45);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

}

/* ---------- Nuestros Medios ---------- */
.contact-links { max-width: 100%; }
.contact-links a { max-width: 100%; overflow-wrap: anywhere; text-align: center; }

/* ---------- Personajes e Historia: foto que llena el retrato ---------- */
/* La foto vertical cubre el marco de borde a borde; el encuadre (60 %) deja
   visibles la cabeza y el logotipo en los dos formatos del marco (4:5 y 5:6). */
.pe-retrato--foto {
  background: #000;
  box-shadow: 0 30px 64px rgba(48, 30, 16, 0.30);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.pe-retrato--foto::before,
.pe-retrato--foto::after { display: none; }
.pe-retrato--foto img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: 50% 60%;
  box-shadow: none;
  transition: transform 0.5s ease;
}
.pe-retrato .pe-retrato-link {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
}
.pe-retrato-link:focus-visible { outline: 3px solid var(--rtv-rosa); outline-offset: -3px; }
@media (hover: hover) {
  .pe-retrato--foto:has(.pe-retrato-link:hover) {
    transform: translateY(-4px);
    box-shadow: 0 36px 70px rgba(48, 30, 16, 0.36), 0 0 0 3px var(--rtv-amarillo);
  }
  .pe-retrato--foto:has(.pe-retrato-link:hover) img { transform: scale(1.03); }
}

/* ---------- RTV LIVE ---------- */
.lv-wrap { padding-inline: var(--g); }

/* ---------- Pie de pagina ---------- */
.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-top: 0;
  margin-top: clamp(40px, 5vw, 72px);
  padding: 48px var(--g) 22px;
  background:
    radial-gradient(55% 90% at 0% 100%, rgba(186, 37, 88, 0.26), transparent 70%),
    radial-gradient(50% 90% at 100% 100%, rgba(21, 127, 187, 0.24), transparent 70%),
    radial-gradient(40% 60% at 50% 0%, rgba(255, 197, 17, 0.12), transparent 75%),
    #301e10;
}
@media (max-width: 600px) {
  .site-footer { padding-top: 40px; padding-bottom: 76px; }
}

.footer-inner { max-width: calc(var(--max) - 2 * var(--g)); }
.footer-partners { border-bottom-color: rgba(255, 255, 255, 0.1); }
.footer-partners img { opacity: 0.7; }
.footer-bottom-row .footer-copy { color: rgba(255, 244, 230, 0.6); }

.footer-socials { gap: 9px; }
.footer-social-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid var(--sc, rgba(255, 255, 255, 0.2));
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.footer-social-icon[href*="instagram.com"] { --sc: var(--rtv-rosa); }
.footer-social-icon[href*="youtube.com"]   { --sc: #E30613; }
.footer-social-icon[href*="tiktok.com"]    { --sc: var(--rtv-verde); }
.footer-social-icon[href*="facebook.com"]  { --sc: var(--rtv-celeste); }
.footer-social-icon[href*="x.com"],
.footer-social-icon[href*="twitter.com"]   { --sc: var(--rtv-amarillo); }
@media (hover: hover) {
  .footer-social-icon:hover {
    background: var(--sc);
    border-color: var(--sc);
    transform: translateY(-3px);
  }
  .footer-social-icon[href*="tiktok.com"]:hover .fsoc-svg,
  .footer-social-icon[href*="x.com"]:hover .fsoc-svg,
  .footer-social-icon[href*="twitter.com"]:hover .fsoc-svg { fill: #301e10; }
}

.footer-sague-bar { border-top-color: rgba(255, 255, 255, 0.1); }
.footer-sague-bar p { color: rgba(255, 244, 230, 0.55); }

/* ---------- Boton para volver arriba (lo crea main.js) ---------- */
.rtv-subir {
  position: fixed;
  right: var(--g);
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 9990;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.9);
  background: var(--red);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(120,3,9,0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.9);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s, background 0.2s ease;
}
.rtv-subir.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}
@media (hover: hover) {
  .rtv-subir:hover { background: #b80410; transform: translateY(-2px); }
}
.rtv-subir:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
@media (max-width: 600px) {
  .rtv-subir { width: 42px; height: 42px; }
}
@media print {
  .rtv-subir { display: none !important; }
}

.rtv-live24-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 9px;
}

.rtv-live24-canal::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--rtv-red, #E30613);
  flex: none;
}

/* la proporcion la fija el JS por video para que el reproductor no deje franjas */
.rtv-live24-frame {
  position: relative;
  aspect-ratio: var(--rtv-live-ar, 1280/714);
  background: #120a05;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--card-shadow, 0 6px 18px rgba(36,19,7,.12));
}
.rtv-live24-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.rtv-live24-obra {
  margin-top: 14px;
}
@media (max-width: 760px) {

  .rtv-live24-frame { border-radius: 10px; }
  .rtv-live24-obra { margin-top: 10px; }
}

/* Las columnas del hero llenan todo el alto: con el reproductor arriba la
   central crece, asi que la caja de noticias de cada lado estira sus items
   en vez de dejar un hueco (repartir el sobrante entre cajas abria dos). */
@media (min-width: 1021px) {
  .hh-right { display: flex; flex-direction: column; align-self: stretch; }
  .hh-right > .hh-box:last-child { margin-bottom: 0; }
  .hh-right > .hh-box--reciente { flex: 1 1 auto; display: flex; flex-direction: column; }
  .hh-right > .hh-box--reciente .hh-item { flex: 1 1 auto; }
}
@media (min-width: 1300px) {
  .hh-left { display: flex; flex-direction: column; align-self: stretch; }
  .hh-left > .hh-box:last-child { margin-bottom: 0; flex: 1 1 auto; display: flex; flex-direction: column; }
  .hh-left > .hh-box:last-child .hh-item { flex: 1 1 auto; }
}

/* ---------- Noticias destacadas del dia ---------- */
.nd {
  position: relative;
  overflow: hidden;
  margin: clamp(14px, 1.8vw, 22px) 0 clamp(16px, 2.2vw, 26px);
  border-radius: 16px;
  padding: clamp(16px, 1.9vw, 22px) 0 clamp(12px, 1.5vw, 16px);
  background: var(--panel, #fff);
  border: 1px solid var(--rule, #e9dcc7);
  box-shadow: var(--card-shadow);
}
.nd::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 4px;
  background: var(--rtv-red, #E30613);
}
.nd .pwrap { position: relative; z-index: 1; }

.nd-head { text-align: center; margin-bottom: 8px; }
.nd-kicker {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink, #241307);
  margin-bottom: 5px;
}
.nd-title {
  margin: 0 0 5px;
  font-family: 'Montserrat', 'RTV Sans', system-ui, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
  line-height: 1.1;
  font-size: clamp(17px, 2.1vw, 25px);
  color: var(--ink, #241307);
}
.nd-desc {
  margin: 0 auto;
  max-width: 62ch;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink, #241307);
}

.nd-ribbon {
  position: relative;
  overflow: hidden;
  margin: 8px 0 11px;
  padding: 7px 0;
  border-top: 1px solid var(--rule, #e9dcc7);
  border-bottom: 1px solid var(--rule, #e9dcc7);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.nd-ribbon-track {
  display: flex;
  width: max-content;
  animation: ndRibbon 38s linear infinite;
}
/* se detiene al pasar el mouse para poder hacer clic en la categoria */
.nd-ribbon:hover .nd-ribbon-track,
.nd-ribbon:focus-within .nd-ribbon-track { animation-play-state: paused; }
.nd-ribbon-track a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 16px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink, #241307);
  text-decoration: none;
  white-space: nowrap;
  transition: color .18s ease;
}
.nd-ribbon-track a::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cat-bg, var(--cat, var(--rtv-red)));
  flex: none;
  transition: transform .18s ease;
}
.nd-ribbon-track a:hover { color: var(--cat-ink, var(--rtv-red)); }
.nd-ribbon-track a:hover::before { transform: scale(1.35); }
@keyframes ndRibbon {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .nd-ribbon-track { animation: none; }
  .nd-ribbon { overflow-x: auto; scrollbar-width: none; }
}

/* Cada pagina del carrusel lleva las tarjetas apiladas (el JS las agrupa);
   la tarjeta sigue siendo horizontal, foto a la izquierda y texto al lado. */
.nd .ndd2-carousel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto minmax(0, 1fr);
  align-items: center;
  column-gap: 14px;
  padding: 0;
}
.nd .ndd2-wrap {
  grid-column: 1 / -1;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
}
.nd .ndd2-controls { display: contents; }
.nd .ndd2-prev { grid-column: 2; grid-row: 2; }
.nd .ndd2-dots { grid-column: 3; grid-row: 2; }
.nd .ndd2-next { grid-column: 4; grid-row: 2; }
.nd .ndd2-dots, .nd .ndd2-prev, .nd .ndd2-next { margin-top: 10px; }
.nd .ndd2-track { display: flex; }
.nd-pagina {
  flex: 0 0 100%;
  min-width: 100%;
  box-sizing: border-box;
  /* margen interno: con anchos fraccionarios el borde de la pagina vecina asomaba como una linea */
  padding-inline: 3px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.nd .ndd2-card {
  height: auto;
  grid-template-columns: minmax(0, clamp(150px, 16vw, 210px)) minmax(0, 1fr);
  color: var(--ink, #241307);
  background: var(--panel, #fff);
  border: 1px solid var(--rule, #e9dcc7);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
@media (hover: hover) {
  .nd .ndd2-card:hover {
    border-color: var(--cat, var(--rtv-red));
    box-shadow: var(--card-shadow-h);
    transform: translateY(-2px);
  }
}
.nd .ndd2-imgwrap { margin: 10px 0 10px 10px; border-radius: 8px; }
.nd .ndd2-body { padding: 10px 16px 10px 14px; gap: 4px; }
.nd .ndd2-title { font-size: clamp(15px, 1vw + 7px, 18.5px); line-height: 1.25; color: var(--ink, #241307); }
.nd .ndd2-desc { -webkit-line-clamp: 3; font-size: 13px; line-height: 1.45; color: var(--ink, #241307); }
.nd .ndd2-card .kick[data-cat] { color: var(--ink, #241307); }
.nd .ndd2-card .n-date { color: var(--ink, #241307) !important; opacity: .72; }
.nd .ndd2-arrow { width: 34px; height: 34px; }
.nd .ndd2-dot { background: var(--rule, #e9dcc7); }
.nd .ndd2-dot.active { background: var(--rtv-red, #E30613); }

@media (max-width: 600px) {
  .nd { border-radius: 13px; }
  .nd-desc { display: none; }
  .nd .ndd2-card { grid-template-columns: minmax(0, 1fr); }
  .nd .ndd2-imgwrap { width: min(calc(100% - 24px), 320px); margin: 10px auto 0; }
  .nd .ndd2-body { padding: 12px 14px 14px; }
}
/* ---------- Portadas animadas en el index (notas con video) ---------- */
.rtv-tiene-video { position: relative; overflow: hidden; }
.rtv-portada-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  opacity: 0;
  transition: opacity .45s ease;
}
.rtv-portada-video.rtv-lista { opacity: 1; }
/* Vimeo no admite object-fit: se agranda el iframe para que llene la caja */
.rtv-portada-marco {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity .45s ease;
}
.rtv-portada-marco.rtv-lista { opacity: 1; }
.rtv-portada-marco iframe {
  position: absolute;
  top: var(--foco, 35%);
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, calc(var(--foco, 35%) * -1));
  border: 0;
  pointer-events: none;
}
/* El reproductor se dimensiona en 16:9 exacto sobre la caja (no sobre la pantalla):
   asi el video llena la caja sin ampliarse de mas y la cara no queda cortada. */
@supports (width: 1cqw) {
  .rtv-portada-marco { container-type: size; }
  .rtv-portada-marco iframe {
    width: max(100cqw, 177.78cqh);
    height: max(100cqh, 56.25cqw);
  }
}
.rtv-marca-video {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px 5px 8px;
  border-radius: 999px;
  background: rgba(18, 10, 5, .72);
  color: #fff;
  font: 800 10.5px/1 'Montserrat', 'RTV Sans', system-ui, sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
  pointer-events: none;
}
.rtv-marca-video svg { fill: currentColor; }
@media (prefers-reduced-motion: reduce) {
  .rtv-portada-video, .rtv-portada-marco { display: none; }
}

/* Vertical recortado a una caja ancha: se ve la parte de arriba del cuadro
   (la cara de quien habla), no el centro. El corrimiento es menor que el
   sobrante de alto, asi que nunca deja franja. */
.rtv-portada-marco--vertical iframe {
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 9 / 16;
  transform: translate(-50%, -50%) translateY(12%);
}
.rtv-portada-video { object-position: 50% 32%; }

/* ---------- Barra superior: sin animacion al cargar ya desplazado ---------- */
.navbar.nav-sin-anim,
.navbar.nav-sin-anim * { transition: none !important; }

/* ---------- Listas con linea de color: la linea queda a un lado de la foto ---------- */
@media (hover: hover) {
  .cb-row > *,
  .sb-item > * { transition: transform .22s ease; }
  .cb-row:hover > *,
  .sb-item:hover > * { transform: translateX(12px); }
  .cb-row, .sb-item { transition: box-shadow .22s ease; }
}

/* ---------- Lo ultimo: riel de hoy + publicidad vertical ---------- */
.pt-rail {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.pt-rail-lista {
  background: var(--panel, #fff);
  border: 1px solid var(--rule, #e9dcc7);
  border-radius: 12px;
  padding: 18px 20px 8px;
  box-shadow: var(--card-shadow);
}
.pt-rail-ad {
  background: var(--panel, #fff);
  border: 1px solid var(--rule, #e9dcc7);
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  padding: 12px;
}
.pt-rail-ad .hl-ad-video {
  width: 100%;
  max-width: 300px;
  height: auto;
  aspect-ratio: 300 / 600;
  object-fit: cover;
  margin: 0 auto;
}
@media (min-width: 1280px) {
  .pt-grid { align-items: stretch; }
  .pt-rail-ad {
    position: sticky;
    top: calc(var(--nav-h, 68px) + 58px);
  }
}
@media (min-width: 701px) and (max-width: 1279px) {
  .pt-rail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
    column-count: auto;
    gap: 22px;
    align-items: start;
    padding: 0;
  }
  .pt-rail-ad { padding: 10px; }
}
@media (max-width: 700px) {
  .pt-rail-ad { align-self: center; width: min(100%, 324px); }
}

/* ---------- Videos destacados del index ---------- */
.vt { padding: clamp(28px, 3.4vw, 44px) 0 6px; }
.vt-caja {
  position: relative;
  overflow: hidden;
  background: var(--panel, #fff);
  border: 1px solid var(--rule, #e9dcc7);
  border-radius: 18px;
  box-shadow: var(--card-shadow);
  padding: clamp(16px, 2.2vw, 28px);
}
.vt-caja::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--rtv-red, #E30613);
}
.vt-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 24px;
  flex-wrap: wrap;
  margin-bottom: clamp(14px, 1.8vw, 20px);
}
.vt-head-txt { min-width: 0; max-width: 62ch; }
.vt-kicker,
.vt-etiqueta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 800 10.5px/1 'Montserrat', 'RTV Sans', system-ui, sans-serif;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.vt-kicker { color: var(--rtv-red, #E30613); margin-bottom: 8px; }
.vt-rec {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--rtv-red, #E30613);
  box-shadow: 0 0 0 0 rgba(227, 6, 19, .5);
  animation: vtRec 1.8s ease-out infinite;
  flex: none;
}
@keyframes vtRec {
  0%   { box-shadow: 0 0 0 0 rgba(227, 6, 19, .55); }
  70%  { box-shadow: 0 0 0 9px rgba(227, 6, 19, 0); }
  100% { box-shadow: 0 0 0 0 rgba(227, 6, 19, 0); }
}
.vt-titulo {
  margin: 0;
  font-family: 'PT Serif', 'RTV Serif', Georgia, serif;
  font-weight: 900;
  font-size: clamp(25px, 2.8vw, 38px);
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--ink, #241307);
}
.vt-desc {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2, #4b372a);
}
.vt-head-acciones { display: flex; gap: 10px; flex-wrap: wrap; }
.vt-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  font: 800 13px/1 'Montserrat', 'RTV Sans', system-ui, sans-serif;
  letter-spacing: .02em;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.vt-btn--yt {
  background: #E30613;
  color: #fff;
  box-shadow: 0 8px 20px rgba(227, 6, 19, .28);
}
.vt-btn--linea {
  color: var(--ink, #241307);
  border: 1.5px solid var(--rule, #e9dcc7);
  background: #fff;
}
@media (hover: hover) {
  .vt-btn--yt:hover { background: #b80410; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(227, 6, 19, .34); }
  .vt-btn--linea:hover { border-color: var(--ink, #241307); transform: translateY(-2px); }
}

.vt-cuerpo {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(250px, 1fr);
  gap: clamp(12px, 1.6vw, 20px);
  align-items: start;
}
.vt-escenario {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #120a05;
  cursor: pointer;
  isolation: isolate;
  box-shadow: 0 18px 40px rgba(36, 19, 7, .18);
}
.vt-poster,
.vt-previa,
.vt-reproductor {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.vt-poster { object-fit: cover; transition: transform .6s ease; }
.vt-previa {
  overflow: hidden;
  opacity: 0;
  transition: opacity .6s ease;
  pointer-events: none;
}
.vt-previa.is-lista { opacity: 1; }
.vt-previa iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.vt-reproductor { z-index: 4; }
.vt-velo {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(to top, rgba(12, 6, 2, .86) 0%, rgba(12, 6, 2, .38) 42%, rgba(12, 6, 2, 0) 70%),
    linear-gradient(to right, rgba(12, 6, 2, .35), rgba(12, 6, 2, 0) 55%);
  pointer-events: none;
}
.vt-info {
  position: absolute;
  left: clamp(14px, 2.2vw, 28px);
  right: clamp(14px, 2.2vw, 28px);
  bottom: clamp(14px, 2.2vw, 26px);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  color: #fff;
}
.vt-etiqueta {
  padding: 6px 11px 6px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
}
.vt-nombre {
  margin: 0;
  font-family: 'PT Serif', 'RTV Serif', Georgia, serif;
  font-weight: 900;
  font-size: clamp(22px, 2.6vw, 38px);
  line-height: 1.08;
  letter-spacing: -.015em;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .35);
}
.vt-play {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 18px 7px 7px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--ink, #241307);
  font: 800 13.5px/1 'Montserrat', 'RTV Sans', system-ui, sans-serif;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .28);
  transition: transform .2s ease, box-shadow .2s ease;
}
.vt-play-ico {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--rtv-red, #E30613);
  color: #fff;
  padding-left: 2px;
}
@media (hover: hover) {
  .vt-escenario:hover .vt-poster { transform: scale(1.03); }
  .vt-escenario:hover .vt-play { transform: translateY(-2px) scale(1.03); box-shadow: 0 14px 30px rgba(0, 0, 0, .34); }
}
.vt-play:focus-visible { outline: 3px solid var(--rtv-amarillo, #ffc511); outline-offset: 3px; }
.vt-escenario.is-reproduciendo { cursor: default; }
.vt-escenario.is-reproduciendo .vt-velo,
.vt-escenario.is-reproduciendo .vt-info,
.vt-escenario.is-reproduciendo .vt-previa { display: none; }

.vt-lista {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  scrollbar-width: thin;
}
.vt-item {
  width: 100%;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 7px;
  border: 1px solid var(--rule, #e9dcc7);
  border-radius: 12px;
  background: #fff;
  color: var(--ink, #241307);
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.vt-item-img {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: #120a05;
}
.vt-item-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s ease; }
.vt-item-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(12, 6, 2, .18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%23E30613'/%3E%3Cpath d='M9.5 7.5v9l7-4.5z' fill='%23fff'/%3E%3C/svg%3E") center / 26px no-repeat;
  opacity: 0;
  transition: opacity .2s ease;
}
.vt-item-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.vt-item-num {
  font: 800 10.5px/1 'Montserrat', 'RTV Sans', system-ui, sans-serif;
  letter-spacing: .14em;
  color: var(--rtv-red, #E30613);
}
.vt-item-titulo {
  font-weight: 800;
  font-size: 13.5px;
  line-height: 1.3;
  color: var(--ink, #241307);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.vt-item.is-activo {
  border-color: var(--rtv-red, #E30613);
  background: #fff6f4;
  box-shadow: 0 6px 16px rgba(227, 6, 19, .12);
}
.vt-item.is-activo .vt-item-num::after {
  content: "  ·  En pantalla";
  letter-spacing: .08em;
}
@media (hover: hover) {
  .vt-item:hover { border-color: var(--ink-3, #95826f); transform: translateX(3px); }
  .vt-item:hover .vt-item-img::after { opacity: 1; }
  .vt-item:hover .vt-item-img img { transform: scale(1.06); }
  .vt-item.is-activo:hover { border-color: var(--rtv-red, #E30613); }
}
.vt-item:focus-visible { outline: 3px solid var(--rtv-amarillo, #ffc511); outline-offset: 2px; }

.vt-pie {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: clamp(14px, 1.8vw, 20px);
}
.vt-pie-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-radius: 14px;
  border: 1px solid var(--rule, #e9dcc7);
  background: var(--paper, #f9f4e8);
  color: var(--ink, #241307);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.vt-pie-ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #fff;
  color: var(--rtv-red, #E30613);
  box-shadow: 0 2px 8px rgba(36, 19, 7, .08);
}
.vt-pie-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.vt-pie-txt strong { font-size: 14.5px; font-weight: 800; line-height: 1.2; }
.vt-pie-txt span { font-size: 12.5px; color: var(--ink-2, #4b372a); line-height: 1.35; }
.vt-pie-link > svg { flex: none; color: var(--ink-3, #95826f); transition: transform .2s ease, color .2s ease; }
.vt-pie-link--anuncio {
  background: var(--rtv-amarillo, #ffc511);
  border-color: #f0b400;
}
.vt-pie-link--anuncio .vt-pie-ico { color: var(--rtv-cafe, #301e10); }
.vt-pie-link--anuncio .vt-pie-txt span { color: var(--rtv-cafe, #301e10); }
.vt-pie-link--anuncio > svg { color: var(--rtv-cafe, #301e10); }
@media (hover: hover) {
  .vt-pie-link:hover { transform: translateY(-3px); box-shadow: var(--card-shadow-h); border-color: var(--ink-3, #95826f); background: #fff; }
  .vt-pie-link--anuncio:hover { background: #ffd23f; border-color: #e0a800; }
  .vt-pie-link:hover > svg { transform: translateX(4px); color: var(--rtv-red, #E30613); }
}

@media (max-width: 900px) {
  .vt-cuerpo { grid-template-columns: minmax(0, 1fr); }
  .vt-lista {
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    padding-bottom: 4px;
    max-height: none !important;
  }
  .vt-lista > li { flex: 0 0 min(46%, 250px); scroll-snap-align: start; }
  .vt-item { grid-template-columns: minmax(0, 1fr); gap: 8px; height: 100%; align-content: start; }
  .vt-item.is-activo .vt-item-num::after { content: "  ·  En pantalla"; }
  .vt-pie { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .vt-head-acciones { width: 100%; }
  .vt-btn { flex: 1 1 auto; justify-content: center; }
  .vt-lista > li { flex-basis: 64%; }
  .vt-info { gap: 7px; }
  .vt-etiqueta { display: none; }
  .vt-play { font-size: 12.5px; padding-right: 14px; }
  .vt-play-ico { width: 30px; height: 30px; }
}

/* ---------- Redes sociales en el index ---------- */
.rd { padding: clamp(22px, 2.8vw, 36px) 0 6px; }
.rd-caja {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 18px;
  border: 1px solid var(--rule, #e9dcc7);
  box-shadow: var(--card-shadow);
  padding: clamp(18px, 2.6vw, 34px);
  background:
    radial-gradient(38% 70% at 0% 0%, rgba(186, 37, 88, .10), transparent 70%),
    radial-gradient(40% 80% at 100% 100%, rgba(21, 127, 187, .10), transparent 70%),
    radial-gradient(30% 60% at 70% 0%, rgba(255, 197, 17, .16), transparent 70%),
    #fff;
}
.rd-intro { text-align: center; max-width: 640px; margin: 0 auto clamp(16px, 2vw, 24px); }
.rd-kicker {
  display: inline-block;
  font: 800 10.5px/1 'Montserrat', 'RTV Sans', system-ui, sans-serif;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--rtv-rosa, #ba2558);
  margin-bottom: 8px;
}
.rd-titulo {
  margin: 0;
  font-family: 'PT Serif', 'RTV Serif', Georgia, serif;
  font-weight: 900;
  font-size: clamp(24px, 2.7vw, 36px);
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--ink, #241307);
}
.rd-desc { margin: 8px 0 0; font-size: 14px; line-height: 1.55; color: var(--ink-2, #4b372a); }

.rd-redes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
  perspective: 900px;
}
.rd-red {
  --rx: 0deg;
  --ry: 0deg;
  --ty: 0px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-height: 210px;
  padding: 20px 20px 18px;
  border-radius: 16px;
  color: #fff;
  text-decoration: none;
  transform: translateY(var(--ty)) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform .25s ease, box-shadow .25s ease;
  box-shadow: 0 12px 28px var(--rd-sombra, rgba(0, 0, 0, .18));
}
.rd-red--yt { background: linear-gradient(135deg, #ff2a36 0%, #E30613 45%, #9d030c 100%); --rd-sombra: rgba(227, 6, 19, .28); }
.rd-red--fb { background: linear-gradient(135deg, #3b8bff 0%, #1877f2 45%, #0a4fb4 100%); --rd-sombra: rgba(24, 119, 242, .28); }
.rd-red--ig { background: linear-gradient(135deg, #feda75 0%, #fa7e1e 22%, #d62976 55%, #962fbf 80%, #4f5bd5 100%); --rd-sombra: rgba(214, 41, 118, .28); }
.rd-red--tt { background: radial-gradient(70% 90% at 0% 0%, rgba(37, 244, 238, .35), transparent 60%), radial-gradient(70% 90% at 100% 100%, rgba(254, 44, 85, .45), transparent 60%), #111; --rd-sombra: rgba(254, 44, 85, .26); }
.rd-red::before {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  z-index: -1;
  transition: transform .5s ease;
}
.rd-red::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .28) 48%, transparent 66%);
  transform: translateX(-120%);
  transition: transform .8s ease;
}
.rd-red-ico {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .28);
  margin-bottom: 6px;
  transition: transform .3s ease;
}
.rd-red-nombre {
  font: 900 22px/1.1 'Montserrat', 'RTV Sans', system-ui, sans-serif;
  letter-spacing: -.01em;
}
.rd-red-txt { font-size: 13.5px; line-height: 1.45; color: rgba(255, 255, 255, .92); max-width: 34ch; }
.rd-red-usuario { font: 700 12px/1 'Montserrat', 'RTV Sans', system-ui, sans-serif; color: rgba(255, 255, 255, .8); letter-spacing: .02em; }
.rd-red-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 10px 16px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink, #241307);
  font: 800 13px/1 'Montserrat', 'RTV Sans', system-ui, sans-serif;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .16);
  transition: transform .2s ease;
}
.rd-red--yt .rd-red-cta { color: #c00512; }
.rd-red--fb .rd-red-cta { color: #0b5fcf; }
.rd-red--ig .rd-red-cta { color: #b0206a; }
.rd-red--tt .rd-red-cta { color: #111; }
.rd-red--tt .rd-red-ico { box-shadow: -2px -2px 0 rgba(37, 244, 238, .55), 2px 2px 0 rgba(254, 44, 85, .6); }
@media (hover: hover) {
  .rd-red:hover { box-shadow: 0 22px 40px var(--rd-sombra, rgba(0, 0, 0, .22)); --ty: -5px; }
  .rd-red:hover::before { transform: scale(1.25); }
  .rd-red:hover::after { transform: translateX(120%); }
  .rd-red:hover .rd-red-ico { transform: translateY(-3px) rotate(-6deg); }
  .rd-red:hover .rd-red-cta { transform: translateX(4px); }
}
.rd-red:focus-visible { outline: 3px solid var(--rtv-amarillo, #ffc511); outline-offset: 3px; }

.rd-mas {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(14px, 1.8vw, 20px);
}
.rd-mas-txt { font-size: 13px; font-weight: 700; color: var(--ink-2, #4b372a); }
.rd-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border-radius: 999px;
  background: #fff;
  border: 1.5px solid var(--rule, #e9dcc7);
  color: var(--ink, #241307);
  font: 800 13px/1 'Montserrat', 'RTV Sans', system-ui, sans-serif;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
@media (hover: hover) {
  .rd-chip:hover { background: var(--ink, #241307); border-color: var(--ink, #241307); color: #fff; transform: translateY(-2px); }
}
@media (max-width: 1100px) {
  .rd-redes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .rd-redes { grid-template-columns: minmax(0, 1fr); }
  .rd-red {
    min-height: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "ico nombre" "ico txt" "ico usuario" "cta cta";
    column-gap: 14px;
    row-gap: 4px;
    align-items: center;
  }
  .rd-red-ico { grid-area: ico; margin: 0; align-self: start; }
  .rd-red-nombre { grid-area: nombre; }
  .rd-red-txt { grid-area: txt; }
  .rd-red-usuario { grid-area: usuario; }
  .rd-red-cta { grid-area: cta; justify-self: start; margin-top: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .rd-red, .rd-red::after, .rd-red::before { transition: none; }
  .vt-rec { animation: none; }
}

/* ---------- Siguenos del lateral: cada red con su color ---------- */
.hh-social { flex-wrap: wrap; }
.hh-social a[href*="facebook.com"]  { background: #1877f2; }
.hh-social a[href*="instagram.com"] { background: linear-gradient(135deg, #fa7e1e, #d62976 55%, #962fbf); }
.hh-social a[href*="youtube.com"]   { background: #E30613; }
.hh-social a[href*="tiktok.com"]    { background: #111; }
.hh-social a[href*="x.com"]         { background: #241307; }
@media (hover: hover) {
  .hh-social a:hover { transform: translateY(-3px) scale(1.06); filter: brightness(1.08); }
}

/* ---------- Documentos (comunicados) dentro de una nota ---------- */
.article-documento {
  display: grid;
  gap: 16px;
  margin: 26px 0;
}
.article-documento-pag {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--rule, #e9dcc7);
  background: #fff;
  box-shadow: var(--card-shadow);
  cursor: zoom-in;
  transition: box-shadow .2s ease, transform .2s ease;
}
body.portal .article-wrap article .article-documento-pag img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  max-height: none;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
  object-fit: fill;
}
.article-documento-zoom {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(36, 19, 7, .86);
  color: #fff;
  font: 700 12px/1 'Montserrat', 'RTV Sans', system-ui, sans-serif;
  pointer-events: none;
}
@media (hover: hover) {
  .article-documento-pag:hover { box-shadow: var(--card-shadow-h); transform: translateY(-2px); }
}
.article-documento .article-img-caption { margin-top: -4px; }

/* ---------- Visor de imagenes ampliadas (lo arma main.js) ---------- */
.rtv-visor {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  flex-direction: column;
  background: rgba(14, 7, 2, .94);
  opacity: 0;
  transition: opacity .2s ease;
}
.rtv-visor.is-abierto { opacity: 1; }
.rtv-visor-barra {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px max(12px, env(safe-area-inset-left)) 10px 16px;
  color: #fff;
  font: 700 13px/1.3 'Montserrat', 'RTV Sans', system-ui, sans-serif;
  flex: none;
}
.rtv-visor-botones { display: flex; gap: 8px; }
.rtv-visor-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font: 700 13px/1 'Montserrat', 'RTV Sans', system-ui, sans-serif;
  cursor: pointer;
}
.rtv-visor-btn:hover { background: rgba(255, 255, 255, .2); }
.rtv-visor-lienzo {
  flex: 1;
  overflow: auto;
  display: grid;
  place-items: center;
  padding: 0 12px 16px;
  overscroll-behavior: contain;
}
.rtv-visor-lienzo img {
  display: block;
  width: min(100%, 1100px, calc((100vh - 96px) * var(--ar, 1.6)));
  max-width: none;
  max-height: none;
  height: auto;
  border-radius: 6px;
  background: #fff;
  cursor: zoom-in;
}
.rtv-visor.is-zoom .rtv-visor-lienzo { place-items: start; }
.rtv-visor.is-zoom .rtv-visor-lienzo img {
  max-width: none;
  max-height: none;
  width: max(100%, 1400px);
  cursor: zoom-out;
}
html.rtv-visor-on { overflow: hidden; }

/* ---------- RTV LIVE: pagina clara, con la misma piel que el index ---------- */
body.portal.live-rtv {
  background:
    radial-gradient(55% 460px at 0% 0%, rgba(227, 6, 19, .07), transparent 70%),
    radial-gradient(50% 420px at 100% 0%, rgba(255, 197, 17, .16), transparent 70%),
    var(--paper, #f9f4e8);
  background-attachment: scroll;
  color: var(--ink-2, #4b372a);
}
body.portal.live-rtv .lv-page {
  padding-top: calc(var(--nav-h, 68px) + 44px);
  padding-bottom: 0;
  min-height: 0;
}
body.portal.live-rtv .lv-wrap {
  max-width: min(1240px, 100%);
  margin: 0 auto;
  padding-inline: var(--g);
}
.lv-hero {
  text-align: center;
  padding: clamp(18px, 3vw, 34px) 0 clamp(18px, 2.6vw, 28px);
}
body.portal.live-rtv .lv-title { color: var(--ink, #241307); }
body.portal.live-rtv .lv-title span { color: var(--rtv-red, #E30613); }
body.portal.live-rtv .lv-sub {
  font-family: inherit;
  font-style: normal;
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: 1.55;
  color: var(--ink-2, #4b372a);
  max-width: 60ch;
  margin: 12px auto 0;
}
.lv-atajos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}
.lv-atajos a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: 999px;
  background: #fff;
  border: 1.5px solid var(--rule, #e9dcc7);
  color: var(--ink, #241307);
  font: 800 12.5px/1 'Montserrat', 'RTV Sans', system-ui, sans-serif;
  text-decoration: none;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.lv-atajo-num {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--rtv-red, #E30613);
  color: #fff;
  font-size: 11px;
}
.lv-atajo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rtv-red, #E30613);
  animation: lvPulse 1.4s ease-in-out infinite;
}
@media (hover: hover) {
  .lv-atajos a:hover { border-color: var(--ink, #241307); transform: translateY(-2px); box-shadow: var(--card-shadow); }
}

body.portal.live-rtv .lv-panel {
  background: var(--panel, #fff);
  color: var(--ink-2, #4b372a);
  border: 1px solid var(--rule, #e9dcc7);
  border-radius: 18px;
  box-shadow: var(--card-shadow);
  padding: clamp(16px, 2.6vw, 30px);
}
body.portal.live-rtv .lv-panel .cb-head { margin-bottom: 16px; }
.lv-cuenta {
  flex: none;
  font: 800 12px/1 'Montserrat', 'RTV Sans', system-ui, sans-serif;
  color: var(--ink-2, #4b372a);
  background: var(--paper, #f9f4e8);
  border: 1px solid var(--rule, #e9dcc7);
  padding: 7px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
body.portal.live-rtv .lv-prev-label { display: block; margin: 22px 0 12px; }

.vt-lista.vt-lista--galeria {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  overflow: visible;
  max-height: none;
}
.vt-lista--galeria .vt-item {
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  height: 100%;
  padding: 8px 8px 12px;
  align-content: start;
}
.vt-lista--galeria .vt-item-txt { padding: 0 4px; }
@media (hover: hover) {
  .vt-lista--galeria .vt-item:hover { transform: translateY(-3px); box-shadow: var(--card-shadow-h); }
}
@media (max-width: 1000px) {
  .vt-lista.vt-lista--galeria { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .vt-lista.vt-lista--galeria { display: grid; overflow: visible; scroll-snap-type: none; padding-bottom: 0; }
  .vt-lista--galeria > li { flex: none; }
}
@media (max-width: 700px) {
  .vt-lista.vt-lista--galeria { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .vt-lista--galeria .vt-item-titulo { font-size: 12.5px; }
}
@media (max-width: 330px) {
  .vt-lista.vt-lista--galeria { grid-template-columns: minmax(0, 1fr); }
}

.lv-adb { padding: clamp(24px, 3vw, 36px) 0 0; }

.lv-senal {
  margin-top: clamp(24px, 3vw, 36px);
  background: var(--panel, #fff);
  border: 1px solid var(--rule, #e9dcc7);
  border-radius: 18px;
  box-shadow: var(--card-shadow);
  padding: clamp(16px, 2.6vw, 30px);
}
.lv-senal-head { text-align: center; max-width: 64ch; margin: 0 auto 18px; }
.lv-senal-head .lv-label { margin-bottom: 12px; }
.lv-senal-titulo {
  margin: 0;
  font-family: 'PT Serif', 'RTV Serif', Georgia, serif;
  font-weight: 900;
  font-size: clamp(24px, 2.8vw, 36px);
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--ink, #241307);
}
.lv-senal-desc { margin: 8px 0 0; font-size: 14px; line-height: 1.55; color: var(--ink-2, #4b372a); }
body.portal.live-rtv .lv-actions { margin: 20px 0 0; }

.lv-anuncio {
  position: relative;
  overflow: hidden;
  margin-top: clamp(24px, 3vw, 36px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
  flex-wrap: wrap;
  padding: clamp(18px, 2.8vw, 34px);
  border-radius: 18px;
  background:
    radial-gradient(40% 120% at 100% 0%, rgba(255, 255, 255, .35), transparent 70%),
    var(--rtv-amarillo, #ffc511);
  color: var(--rtv-cafe, #301e10);
  box-shadow: 0 14px 34px rgba(240, 180, 0, .28);
}
.lv-anuncio-txt { max-width: 62ch; min-width: 0; }
.lv-anuncio-kicker {
  display: inline-block;
  font: 800 10.5px/1 'Montserrat', 'RTV Sans', system-ui, sans-serif;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.lv-anuncio-titulo {
  margin: 0 0 8px;
  font-family: 'PT Serif', 'RTV Serif', Georgia, serif;
  font-weight: 900;
  font-size: clamp(22px, 2.6vw, 34px);
  line-height: 1.1;
  letter-spacing: -.015em;
}
.lv-anuncio p { margin: 0; font-size: 14.5px; line-height: 1.55; }
.lv-anuncio-acciones { display: flex; gap: 10px; flex-wrap: wrap; }
.lv-anuncio-btn { background: var(--rtv-cafe, #301e10); color: #fff; box-shadow: 0 8px 20px rgba(48, 30, 16, .25); }
@media (hover: hover) {
  .lv-anuncio-btn:hover { background: #000; transform: translateY(-2px); }
}
body.portal.live-rtv .rd { padding-bottom: 0; }
@media (max-width: 700px) {
  body.portal.live-rtv .lv-page { padding-top: calc(var(--nav-h, 56px) + 40px); }
  .lv-anuncio-acciones, .lv-anuncio-acciones .vt-btn { width: 100%; justify-content: center; }
  body.portal.live-rtv .lv-actions .vt-btn { width: 100%; justify-content: center; }
}
body.portal.live-rtv .lv-player-wrap {
  background: #fff;
  border: 1px solid var(--rule, #e9dcc7);
  border-top: 3px solid var(--rtv-red, #E30613);
  box-shadow: var(--card-shadow);
}
body.portal.live-rtv .rd .pwrap { max-width: min(1240px, 100%); }

/* ---------- Programas (nuestros-programas) ---------- */
.pg { padding-top: calc(var(--nav-h, 68px) + 6px); }
.pg-hero {
  position: relative;
  isolation: isolate;
  padding: clamp(22px, 3.4vw, 48px) 0 clamp(16px, 2.4vw, 28px);
}
.pg-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(45% 70% at 0% 10%, rgba(255, 197, 17, .18), transparent 70%),
    radial-gradient(40% 70% at 100% 0%, rgba(186, 37, 88, .10), transparent 70%),
    radial-gradient(35% 60% at 60% 100%, rgba(21, 127, 187, .08), transparent 70%);
  pointer-events: none;
}
.pg-hero-in {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(20px, 3.4vw, 56px);
  align-items: center;
}
.pg-kicker {
  display: inline-block;
  font: 800 11px/1 'Montserrat', 'RTV Sans', system-ui, sans-serif;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--rtv-red, #E30613);
}
.pg-titulo {
  margin: 12px 0 14px;
  font-family: 'PT Serif', 'RTV Serif', Georgia, serif;
  font-weight: 900;
  font-size: clamp(36px, 5.2vw, 72px);
  line-height: .98;
  letter-spacing: -.03em;
  color: var(--ink, #241307);
}
.pg-lead {
  margin: 0;
  max-width: 46ch;
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.6;
  color: var(--ink-2, #4b372a);
}
.pg-hero-acciones { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }

.pg-mosaico {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(3, clamp(96px, 9.6vw, 156px));
  gap: clamp(8px, .9vw, 12px);
}
.pg-tesela {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 14px;
  background: #1a0d04;
  box-shadow: 0 10px 26px rgba(36, 19, 7, .16);
  text-decoration: none;
}
.pg-tesela img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.pg-tesela::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(12, 6, 2, .78) 0%, rgba(12, 6, 2, .15) 55%, rgba(12, 6, 2, 0) 80%);
  transition: background .3s ease;
}
.pg-tesela-nombre {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 11px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #fff;
  font: 800 clamp(11.5px, 1vw, 14px)/1.2 'Montserrat', 'RTV Sans', system-ui, sans-serif;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .4);
  transition: transform .3s ease;
}
.pg-tesela-nombre::before {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cat-bg, var(--cat));
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .85);
}
.pg-tesela--1 { grid-column: 1 / 3; grid-row: 1 / 3; }
.pg-tesela--1 .pg-tesela-nombre { font-size: clamp(14px, 1.5vw, 20px); left: 16px; bottom: 15px; }
.pg-tesela--2 { grid-column: 3 / 5; grid-row: 1 / 2; }
.pg-tesela--3 { grid-column: 3 / 4; grid-row: 2 / 3; }
.pg-tesela--4 { grid-column: 4 / 5; grid-row: 2 / 4; }
.pg-tesela--5 { grid-column: 1 / 2; grid-row: 3 / 4; }
.pg-tesela--6 { grid-column: 2 / 3; grid-row: 3 / 4; }
.pg-tesela--7 { grid-column: 3 / 4; grid-row: 3 / 4; }
@media (hover: hover) {
  .pg-tesela:hover img { transform: scale(1.07); }
  .pg-tesela:hover .pg-tesela-nombre { transform: translateY(-3px); }
}
.pg-tesela:focus-visible { outline: 3px solid var(--rtv-amarillo, #ffc511); outline-offset: 3px; }

.pg-explora { padding: clamp(8px, 1.4vw, 18px) 0 clamp(22px, 2.8vw, 36px); scroll-margin-top: calc(var(--nav-h, 68px) + 12px); }
.pg-explora-caja {
  position: relative;
  overflow: hidden;
  background: var(--panel, #fff);
  border: 1px solid var(--rule, #e9dcc7);
  border-radius: 18px;
  box-shadow: var(--card-shadow);
  padding: clamp(16px, 2.4vw, 30px) clamp(16px, 2.4vw, 30px) clamp(20px, 2.8vw, 34px);
}
.pg-explora-caja::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--cat-bg, var(--cat, var(--rtv-red, #E30613)));
  transition: background .4s ease;
}
.pg-explora-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 6px 20px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.pg-explora-titulo {
  margin: 0;
  font-family: 'PT Serif', 'RTV Serif', Georgia, serif;
  font-weight: 900;
  font-size: clamp(22px, 2.6vw, 34px);
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--ink, #241307);
}
.pg-explora-head p { margin: 0; font-size: 13.5px; color: var(--ink-2, #4b372a); }
.pg-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 2px 6px;
  margin: 0 -2px 16px;
}
.pg-tabs::-webkit-scrollbar { display: none; }
.pg-tab {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border-radius: 999px;
  border: 1.5px solid var(--rule, #e9dcc7);
  background: #fff;
  color: var(--ink, #241307);
  font: 800 13px/1 'Montserrat', 'RTV Sans', system-ui, sans-serif;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.pg-tab-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--cat-bg, var(--cat)); flex: none; }
.pg-tab[aria-selected="true"] {
  background: var(--cat-bg, var(--cat));
  border-color: var(--cat);
  color: var(--cat-on, #fff);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--cat) 30%, transparent);
}
.pg-tab[aria-selected="true"] .pg-tab-dot { background: currentColor; }
@media (hover: hover) {
  .pg-tab:hover { border-color: var(--cat); transform: translateY(-2px); }
}
.pg-tab:focus-visible { outline: 3px solid var(--rtv-amarillo, #ffc511); outline-offset: 2px; }

.pg-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(16px, 2.8vw, 40px);
  align-items: center;
  animation: pgEntra .5s ease;
}
.pg-panel[hidden] { display: none; }
@keyframes pgEntra {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
.pg-panel-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  background: #1a0d04;
  box-shadow: 0 18px 40px rgba(36, 19, 7, .18);
}
.pg-panel-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s ease; }
@media (hover: hover) {
  .pg-panel-media:hover img { transform: scale(1.04); }
}
.pg-panel-num {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .94);
  color: var(--ink, #241307);
  font: 900 20px/1 'Montserrat', 'RTV Sans', system-ui, sans-serif;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
}
.pg-panel-num small { font-size: 12px; font-weight: 800; color: var(--ink-3, #95826f); }
.pg-panel-kicker {
  font: 800 11px/1 'Montserrat', 'RTV Sans', system-ui, sans-serif;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cat-ink, var(--rtv-red));
}
.pg-panel-nombre {
  margin: 8px 0 14px;
  font-family: 'PT Serif', 'RTV Serif', Georgia, serif;
  font-weight: 900;
  font-size: clamp(26px, 3.2vw, 44px);
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--ink, #241307);
}
.pg-panel-nombre::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  border-radius: 2px;
  background: var(--cat-bg, var(--cat));
  margin-top: 12px;
}
.pg-panel-desc { margin: 0 0 16px; font-size: 15px; line-height: 1.65; color: var(--ink-2, #4b372a); }
.pg-panel-notas {
  background: var(--paper, #f9f4e8);
  border: 1px solid var(--rule, #e9dcc7);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 18px;
}
.pg-panel-notas[hidden] { display: none; }
.pg-panel-notas-titulo {
  font: 800 10.5px/1 'Montserrat', 'RTV Sans', system-ui, sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink, #241307);
}
.pg-panel-lista { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.pg-panel-lista a {
  display: flex;
  gap: 9px;
  color: var(--ink, #241307);
  font-weight: 700;
  font-size: 13.5px;
  line-height: 1.38;
  text-decoration: none;
  transition: color .18s ease;
}
.pg-panel-lista a::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--cat-bg, var(--cat));
}
@media (hover: hover) {
  .pg-panel-lista a:hover { color: var(--cat-ink, var(--rtv-red)); }
}
.pg-panel-acciones { display: flex; gap: 12px 18px; align-items: center; flex-wrap: wrap; }
.pg-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--cat-bg, var(--cat));
  color: var(--cat-on, #fff);
  font: 800 14px/1 'Montserrat', 'RTV Sans', system-ui, sans-serif;
  text-decoration: none;
  box-shadow: 0 10px 22px color-mix(in srgb, var(--cat) 32%, transparent);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.pg-link {
  color: var(--ink, #241307);
  font-weight: 800;
  font-size: 13.5px;
  text-decoration: underline;
  text-decoration-color: var(--cat);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
@media (hover: hover) {
  .pg-btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
}
.pg-barra {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: var(--rule, #e9dcc7);
}
.pg-barra span {
  display: block;
  height: 100%;
  background: var(--cat-bg, var(--cat, var(--rtv-red)));
  transform-origin: left center;
  transform: scaleX(0);
}
.pg-barra span.corre { animation: pgBarra 8s linear forwards; }
.pg-explora-caja:hover .pg-barra span,
.pg-explora-caja:focus-within .pg-barra span,
.pg-explora-caja.fuera .pg-barra span { animation-play-state: paused; }
.pg-explora-caja.is-detenido .pg-barra { display: none; }
@keyframes pgBarra { to { transform: scaleX(1); } }

.pg-cta { padding: 0; }
.pg-cta-in {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
}
.pg-cta-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  padding: clamp(18px, 2.4vw, 30px);
  border-radius: 18px;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease;
}
.pg-cta-card::before {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  z-index: -1;
  background: rgba(255, 255, 255, .1);
  transition: transform .5s ease;
}

.pg-cta-card--marca {
  background: var(--rtv-amarillo, #ffc511);
  color: var(--rtv-cafe, #301e10);
  box-shadow: 0 14px 34px rgba(240, 180, 0, .28);
}
.pg-cta-kicker {
  font: 800 10.5px/1 'Montserrat', 'RTV Sans', system-ui, sans-serif;
  letter-spacing: .2em;
  text-transform: uppercase;
  opacity: .85;
}
.pg-cta-card strong {
  font-family: 'PT Serif', 'RTV Serif', Georgia, serif;
  font-weight: 900;
  font-size: clamp(20px, 2.1vw, 28px);
  line-height: 1.15;
  letter-spacing: -.01em;
}
.pg-cta-txt { font-size: 14px; line-height: 1.55; opacity: .92; max-width: 48ch; }
.pg-cta-accion {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  background: #fff;
  color: var(--rtv-cafe, #301e10);
  font: 800 13.5px/1 'Montserrat', 'RTV Sans', system-ui, sans-serif;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .14);
}
.pg-cta-card--marca .pg-cta-accion { background: var(--rtv-cafe, #301e10); color: #fff; }
@media (hover: hover) {
  .pg-cta-card:hover { transform: translateY(-4px); }
  .pg-cta-card:hover::before { transform: scale(1.3); }
}

@media (max-width: 960px) {
  .pg-hero-in { grid-template-columns: minmax(0, 1fr); }
  .pg-hero-txt { text-align: center; }
  .pg-lead { margin-inline: auto; }
  .pg-hero-acciones { justify-content: center; }
  .pg-mosaico { grid-template-rows: repeat(3, clamp(92px, 15vw, 150px)); }
  .pg-panel { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .pg-cta-in { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .pg-mosaico {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    grid-auto-rows: 104px;
  }
  .pg-tesela { grid-column: auto; grid-row: auto; }
  .pg-tesela--1 { grid-column: 1 / -1; grid-row: span 2; }
  .pg-hero-acciones .vt-btn { flex: 1 1 auto; justify-content: center; }
  .pg-panel-acciones .pg-btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .pg-panel { animation: none; }
}

/* ---------- Pagina de cada programa ---------- */
.pd { padding-top: calc(var(--nav-h, 68px) + 47px); }
.pd-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(360px, 46vw, 520px);
  display: flex;
  align-items: flex-end;
  background: #1a0d04;
}
.pd-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  animation: pdAcerca 18s ease-out both;
}
@keyframes pdAcerca {
  from { transform: scale(1.08); }
  to   { transform: scale(1); }
}
.pd-hero-velo {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(12, 6, 2, .92) 0%, rgba(12, 6, 2, .55) 45%, rgba(12, 6, 2, .15) 100%),
    linear-gradient(to right, rgba(12, 6, 2, .55), rgba(12, 6, 2, 0) 65%);
}
.pd-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  background: var(--cat-bg, var(--cat));
}
.pd-hero-in {
  width: 100%;
  padding-top: clamp(28px, 4vw, 48px);
  padding-bottom: clamp(30px, 4vw, 54px);
  color: #fff;
}
.pd-volver {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: clamp(18px, 3vw, 34px);
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .3);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  font: 800 12.5px/1 'Montserrat', 'RTV Sans', system-ui, sans-serif;
  text-decoration: none;
  transition: background .2s ease;
}
.pd-volver:hover { background: rgba(255, 255, 255, .26); }
.pd-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 800 11.5px/1 'Montserrat', 'RTV Sans', system-ui, sans-serif;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .9);
}
.pd-dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cat-bg, var(--cat));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--cat) 30%, transparent);
}
.pd-titulo {
  margin: 10px 0 14px;
  font-family: 'PT Serif', 'RTV Serif', Georgia, serif;
  font-weight: 900;
  font-size: clamp(34px, 5.6vw, 76px);
  line-height: 1;
  letter-spacing: -.03em;
  color: #fff;
  text-shadow: 0 4px 30px rgba(0, 0, 0, .35);
}
.pd-desc {
  margin: 0;
  max-width: 62ch;
  font-size: clamp(14.5px, 1.3vw, 17px);
  line-height: 1.62;
  color: rgba(255, 255, 255, .92);
}
.pd-acciones { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.pd-btn-claro { background: #fff; color: var(--ink, #241307); }
@media (hover: hover) {
  .pd-btn-claro:hover { transform: translateY(-2px); background: var(--cat-bg, var(--cat)); color: var(--cat-on, #fff); }
}

.pd-cuerpo { padding: clamp(24px, 3.2vw, 44px) 0 0; }
.pd-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 336px;
  gap: clamp(18px, 2.4vw, 30px);
  align-items: start;
}
.pd-episodios {
  background: var(--panel, #fff);
  border: 1px solid var(--rule, #e9dcc7);
  border-radius: 18px;
  box-shadow: var(--card-shadow);
  padding: clamp(16px, 2.2vw, 26px);
  min-width: 0;
}
.pd-episodios .cb-head { margin-bottom: 16px; }
.pd-videos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 18px);
}
.pd-videos--1 { grid-template-columns: minmax(0, 1fr); }
.pd-video {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--rule, #e9dcc7);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
@media (hover: hover) {
  .pd-video:hover { box-shadow: var(--card-shadow-h); border-color: var(--cat); transform: translateY(-2px); }
}
.pd-video-caja { background: #120a05; }
.pd-video-caja video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 70vh;
  margin: 0 auto;
  background: #120a05;
}
.pd-video-info {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px 14px;
}
.pd-video-titulo {
  margin: 0;
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--ink, #241307);
}
.pd-video-dur {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--paper, #f9f4e8);
  color: var(--ink-2, #4b372a);
  font: 800 11.5px/1 'Montserrat', 'RTV Sans', system-ui, sans-serif;
}

.pd-lateral { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.pd-notas {
  background: var(--panel, #fff);
  border: 1px solid var(--rule, #e9dcc7);
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
}
.pd-notas-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 14px 16px 12px;
  border-bottom: 3px solid var(--cat);
  font: 900 13px/1 'Montserrat', 'RTV Sans', system-ui, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink, #241307);
}
.pd-notas-lista { list-style: none; margin: 0; padding: 4px 16px; }
.pd-notas-lista li + li { border-top: 1px solid var(--rule, #e9dcc7); }
.pd-notas-lista a {
  display: block;
  padding: 11px 0;
  color: var(--ink, #241307);
  font-weight: 700;
  font-size: 13.5px;
  line-height: 1.38;
  text-decoration: none;
  transition: color .18s ease, transform .2s ease;
}
@media (hover: hover) {
  .pd-notas-lista a:hover { color: var(--cat-ink, var(--rtv-red)); transform: translateX(4px); }
}
.pd-notas-mas {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 13px 16px;
  background: var(--paper, #f9f4e8);
  color: var(--ink, #241307);
  font: 800 13px/1 'Montserrat', 'RTV Sans', system-ui, sans-serif;
  text-decoration: none;
}
.pd-notas-mas:hover { color: var(--cat-ink, var(--rtv-red)); }
.pd-anuncio {
  background: var(--panel, #fff);
  border: 1px solid var(--rule, #e9dcc7);
  border-radius: 16px;
  box-shadow: var(--card-shadow);
}
.pd-anuncio .hl-ad-video {
  width: 100%;
  max-width: 300px;
  height: auto;
  aspect-ratio: 300 / 600;
  object-fit: cover;
  margin: 0 auto;
}

.pd-mas { padding: clamp(26px, 3.4vw, 44px) 0 0; }
.pd-mas-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(8px, 1vw, 14px);
}
.pd-tesela { aspect-ratio: 4 / 3; grid-column: auto; grid-row: auto; }

body.page-programa .adb { padding-top: clamp(24px, 3vw, 36px); }

@media (max-width: 1100px) {
  .pd-mas-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1180px) {
  .pd-grid { grid-template-columns: minmax(0, 1fr); }
  .pd-lateral { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 300px); align-items: stretch; }
}
@media (min-width: 1181px) {
  .pd-grid { align-items: stretch; }
  .pd-lateral.pd-ajustado { contain: size; }

}

.pd-ajustado .pd-notas { flex: 1 1 auto; }

.pd-ajustado .pd-notas-lista,
.pd-ajustado-tab .pd-notas-lista { flex: 1 1 auto; min-height: 0; overflow: hidden; }
@media (max-width: 700px) {
  .pd { padding-top: calc(var(--nav-h, 56px) + 43px); }
  .pd-videos { grid-template-columns: minmax(0, 1fr); }
  .pd-lateral { display: flex; }
  .pd-anuncio { align-self: center; width: min(100%, 324px); }
  .pd-mas-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pd-acciones .vt-btn { flex: 1 1 auto; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .pd-hero-img { animation: none; }
}

@media (min-width: 901px) {
  .vt-cuerpo { align-items: stretch; }
  .vt-lista:not(.vt-lista--galeria) { contain: size; }
}

@media (min-width: 1021px) {
  .hh-center > .nd:last-child { margin-bottom: 0; }
}

/* ---------- Menu: no se queda abierto al elegir, al volver ni al cargar ---------- */
.navbar.nav-quieto .dropdown,
.has-dropdown.nav-cerrado .dropdown {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateX(-50%) translateY(-6px) !important;
}
.navbar.nav-quieto .sub-dropdown,
.has-dropdown.nav-cerrado .sub-dropdown { display: none !important; }
/* Las ultimas categorias abren su submenu hacia arriba para caber en monitores bajos. */
.dropdown > .has-sub:nth-last-child(-n+4) > .sub-dropdown { top: auto; bottom: -6px; }

/* ---------- Cajas del index: margen interior para que las tarjetas no toquen el borde ---------- */
.nd .pwrap,
.home-hero .nd .pwrap { padding-inline: clamp(12px, 1.4vw, 18px); }
@media (max-width: 1020px) {
  .nd { margin-inline: var(--g); }
}
@media (min-width: 1021px) {
  .home-lower .fa .pwrap { padding-inline: clamp(18px, 2.2vw, 32px); }
}

/* ---------- Ultima Hora: escondida del todo al bajar (sin quedar flotando) ---------- */
.rtv-ticker {
  transition: transform .35s ease, opacity .35s ease, visibility 0s linear 0s;
}
.rtv-ticker.rtv-ticker--hidden {
  visibility: hidden;
  transition: transform .35s ease, opacity .35s ease, visibility 0s linear .35s;
}

/* ---------- Titulo de Noticias del dia en rojo ---------- */
.nd-title { color: var(--rtv-red, #E30613); }

/* ---------- Personajes y Programas llevan la franja de Ultima Hora debajo de la barra ---------- */
main.pe-main { padding-top: calc(var(--nav-h, 97px) + 47px + clamp(18px, 3vw, 34px)); }
.pg { padding-top: calc(var(--nav-h, 68px) + 47px); }
@media (max-width: 700px) {
  main.pe-main { padding-top: calc(var(--nav-h, 56px) + 43px + clamp(14px, 3vw, 24px)); }
  .pg { padding-top: calc(var(--nav-h, 56px) + 43px); }
}

/* ---------- Medios: telefono y boton de WhatsApp ---------- */
.contact-links .medios-tel { font-weight: 800; }
.contact-block .contact-links a.medios-wa {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  background: #25D366;
  color: #fff;
  font: 800 14px/1 'Montserrat', 'RTV Sans', system-ui, sans-serif;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(37, 211, 102, .32);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.contact-block .contact-links a.medios-wa:hover {
  background: #1ebe5b;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(37, 211, 102, .4);
}

/* ---------- Programas: una sola tarjeta de publicidad a todo el ancho ---------- */
.pg-cta-in { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 761px) {
  .pg-cta-card--marca {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "kicker accion" "titulo accion" "texto accion";
    column-gap: clamp(20px, 3vw, 48px);
    row-gap: 8px;
    align-items: center;
  }
  .pg-cta-card--marca .pg-cta-kicker { grid-area: kicker; }
  .pg-cta-card--marca strong { grid-area: titulo; }
  .pg-cta-card--marca .pg-cta-txt { grid-area: texto; max-width: 70ch; }
  .pg-cta-card--marca .pg-cta-accion { grid-area: accion; margin-top: 0; padding: 14px 24px; font-size: 14.5px; }
}

/* ---------- Programas: el explorador muestra un episodio de cada programa ---------- */
.pg-panel-media { aspect-ratio: 16 / 9; }
.pg-panel-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #120a05;
}
.pg-panel-num { z-index: 2; pointer-events: none; }
.pg-panel-video {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: -4px 0 14px;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--ink-2, #4b372a);
}
.pg-panel-video span { color: var(--cat-ink, var(--rtv-red)); font-size: 11px; }
.pg-panel-video strong { color: var(--ink, #241307); }

/* ---------- Destacadas: la tarjeta sube al pasar el mouse sin cortarse arriba ---------- */
.nd .ndd2-wrap { padding-block: 5px 12px; margin-block: -5px -12px; }

/* ---------- Index: Noticias en video (las mas recientes con video) ---------- */
.nv { padding: clamp(28px, 3.4vw, 44px) 0 6px; }
.nv-caja {
  position: relative;
  overflow: hidden;
  background: var(--panel, #fff);
  border: 1px solid var(--rule, #e9dcc7);
  border-radius: 18px;
  box-shadow: var(--card-shadow);
  padding: clamp(16px, 2.2vw, 28px);
}
.nv-caja::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--rtv-red, #E30613);
}
.nv-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px 24px;
  flex-wrap: wrap;
  margin-bottom: clamp(14px, 1.8vw, 20px);
}
.nv-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font: 800 10.5px/1 'Montserrat', 'RTV Sans', system-ui, sans-serif;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--rtv-red, #E30613);
}
.nv-titulo {
  margin: 0;
  font-family: 'PT Serif', 'RTV Serif', Georgia, serif;
  font-weight: 900;
  font-size: clamp(25px, 2.8vw, 38px);
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--ink, #241307);
}
.nv-desc { margin: 0; max-width: 46ch; font-size: 14px; line-height: 1.55; color: var(--ink-2, #4b372a); }
.nv-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 18px);
}
.nv-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--rule, #e9dcc7);
  border-radius: 14px;
  background: #fff;
  color: var(--ink, #241307);
  text-decoration: none;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.nv-card--grande { grid-column: span 2; grid-row: span 2; }
.nv-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #120a05;
}
.nv-card--grande .nv-media { aspect-ratio: auto; flex: 1 1 auto; min-height: 240px; }
.nv-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.nv-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to top, rgba(12, 6, 2, .45), rgba(12, 6, 2, 0) 55%);
  pointer-events: none;
}
.nv-media .rtv-marca-video { display: none; }
.nv-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--rtv-red, #E30613);
  color: #fff;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 6px rgba(227, 6, 19, .22), 0 10px 24px rgba(0, 0, 0, .35);
  transition: transform .25s ease, box-shadow .25s ease;
  pointer-events: none;
}
.nv-play svg { width: 22px; height: 22px; margin-left: 3px; }
.nv-card--grande .nv-play { width: 68px; height: 68px; }
.nv-card--grande .nv-play svg { width: 30px; height: 30px; }
.nv-body { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; }
.nv-card-titulo {
  margin: 0;
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.32;
  color: var(--ink, #241307);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nv-card--grande .nv-body { padding: 16px 18px 18px; }
.nv-card--grande .nv-card-titulo {
  font-family: 'PT Serif', 'RTV Serif', Georgia, serif;
  font-weight: 900;
  font-size: clamp(19px, 1.7vw, 26px);
  line-height: 1.18;
  -webkit-line-clamp: 3;
}
@media (hover: hover) {
  .nv-card:hover { transform: translateY(-3px); box-shadow: var(--card-shadow-h); border-color: var(--rtv-red, #E30613); }
  .nv-card:hover .nv-media img { transform: scale(1.04); }
  .nv-card:hover .nv-play { transform: translate(-50%, -50%) scale(1.1); box-shadow: 0 0 0 9px rgba(227, 6, 19, .25), 0 12px 28px rgba(0, 0, 0, .4); }
  .nv-card:hover .nv-card-titulo { color: var(--rtv-red-d, #b80410); }
}
@media (max-width: 900px) {
  .nv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nv-card--grande { grid-column: 1 / -1; grid-row: auto; }
  .nv-card--grande .nv-media { aspect-ratio: 16 / 9; flex: none; min-height: 0; }
}
@media (max-width: 520px) {
  .nv-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .nv-card:not(.nv-card--grande) {
    flex-direction: row;
    align-items: stretch;
  }
  .nv-card:not(.nv-card--grande) .nv-media { flex: 0 0 42%; aspect-ratio: 4 / 3; }
  .nv-card:not(.nv-card--grande) .nv-play { width: 36px; height: 36px; box-shadow: 0 0 0 4px rgba(227, 6, 19, .22); }
  .nv-card:not(.nv-card--grande) .nv-play svg { width: 16px; height: 16px; }
  .nv-card:not(.nv-card--grande) .nv-body { padding: 10px 12px; justify-content: center; }
  .nv-card:not(.nv-card--grande) .nv-card-titulo { font-size: 13.5px; }
}

/* ---------- Visor: videos con su proporcion y fotos chicas sin agrandar de mas ---------- */
.rtv-visor-lienzo img { width: min(100%, 1100px, calc((100vh - 96px) * var(--ar, 1.6)), var(--nat, 1100px)); }
.rtv-visor-video {
  position: relative;
  width: min(100%, 1100px, calc((100vh - 96px) * var(--ar, 1.78)));
  aspect-ratio: var(--ar, 16 / 9);
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}
.rtv-visor-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Farandula en rojo y azul ---------- */
.fa {
  background:
    radial-gradient(80% 110% at 8% 0%, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 55%),
    radial-gradient(70% 90% at 96% 100%, rgba(212, 17, 46, .55), rgba(212, 17, 46, 0) 62%),
    linear-gradient(135deg, #0f1d52 0%, #1e3a8a 38%, #5a1f6b 62%, #a3122f 82%, #d4112e 100%);
  box-shadow: 0 20px 48px rgba(15, 29, 82, .32), inset 0 0 0 1px rgba(255, 255, 255, .14);
}
.fa::before {
  inset: 0;
  height: auto;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, .22) 48%, rgba(255, 255, 255, 0) 56%);
  background-size: 260% 100%;
  background-repeat: no-repeat;
  background-position: 100% 0;
  animation: faBrillo 8s ease-in-out infinite;
}
@keyframes faBrillo {
  0%, 35% { background-position: 100% 0; }
  75%, 100% { background-position: 0% 0; }
}
.fa::after { background: linear-gradient(90deg, var(--rtv-fa-rojo), #fff 50%, var(--rtv-fa-azul)); }

.fa-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffd2d8;
}
.fa-kicker::before,
.fa-kicker::after {
  content: "\2726";
  display: inline-block;
  font-size: 14px;
  letter-spacing: 0;
  color: #ff6b7d;
  animation: faDestello 2.4s ease-in-out infinite;
}
.fa-kicker::after { animation-delay: 1.2s; }
@keyframes faDestello {
  0%, 100% { opacity: .35; transform: scale(.8) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.18) rotate(25deg); }
}
.fa-title { color: #fff; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .fa-title {
    background: linear-gradient(95deg, #fff 0%, #fff 34%, #ffb3bd 39%, #fff 44%, #fff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 2px 10px rgba(10, 18, 60, .45));
    animation: faBrilloTitulo 9s linear infinite;
  }
}
@keyframes faBrilloTitulo {
  from { background-position: -100% 0; }
  to { background-position: 100% 0; }
}
.fa-desc { color: rgba(255, 255, 255, .86); }

.fa-ribbon {
  border-top-color: rgba(255, 255, 255, .22);
  border-bottom-color: rgba(255, 255, 255, .22);
}
.fa-ribbon-track span { color: rgba(255, 255, 255, .82); }
.fa-ribbon-track span b { color: #ff8796; }

.fa-feature {
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  align-items: stretch;
  background: linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(240, 244, 255, .95));
  border: 1px solid rgba(255, 255, 255, .85);
  box-shadow: 0 18px 42px rgba(10, 18, 60, .38);
}
@media (hover: hover) {
  .fa-feature:hover {
    border-color: #fff;
    box-shadow: 0 26px 60px rgba(10, 18, 60, .46), 0 0 0 3px rgba(212, 17, 46, .45);
  }
  .fa-feature:hover .fa-cta { background: var(--rtv-fa-rojo); color: #fff; }
}
.fa-feature-media {
  aspect-ratio: auto;
  min-height: 260px;
  background: #0f1d52;
  box-shadow: 0 12px 28px rgba(10, 18, 60, .32);
}
.fa-feature-media img { position: absolute; inset: 0; }
.fa-feature-body { justify-content: center; }
.fa-feature-kick { color: var(--rtv-fa-rojo); }
.fa-feature-title { color: #0f1d52; font-size: clamp(21px, 3.5cqw, 32px); }
.fa-feature-desc { color: #33405f; }
.fa-feature .n-date { color: rgba(15, 29, 82, .66) !important; }
.fa-cta {
  align-self: flex-start;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--rtv-fa-azul);
  color: #fff;
  box-shadow: 0 8px 18px rgba(15, 29, 82, .3);
  transition: background .25s ease, color .25s ease;
}

.fa-mas {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: stretch;
  gap: 12px;
}
.fa-mas-head {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 150px;
  padding: 12px 16px;
  border-radius: 14px;
  background: linear-gradient(160deg, var(--rtv-fa-rojo), #8f0f27);
  color: #fff;
  font: 800 11px/1.3 'Montserrat', 'RTV Sans', system-ui, sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-align: center;
}
.fa-mas-lista {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}
.fa-mini {
  display: grid;
  grid-template-columns: clamp(96px, 22%, 150px) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(255, 255, 255, .8);
  color: #0f1d52;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.fa-mini-img {
  display: block;
  aspect-ratio: 8 / 5;
  border-radius: 10px;
  overflow: hidden;
  background: #0f1d52;
}
.fa-mini-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s ease;
}
.fa-mini-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fa-mini-title {
  font-family: 'PT Serif', 'RTV Serif', Georgia, serif;
  font-weight: 700;
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.25;
  color: #0f1d52;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .2s ease;
}
.fa-mini .n-date { color: rgba(15, 29, 82, .66) !important; font-size: 12px; }
@media (hover: hover) {
  .fa-mini:hover { transform: translateY(-3px); background: #fff; box-shadow: 0 14px 30px rgba(10, 18, 60, .38); }
  .fa-mini:hover .fa-mini-title { color: var(--rtv-fa-rojo); }
  .fa-mini:hover .fa-mini-img img { transform: scale(1.06); }
}
@supports (container-type: inline-size) {
  @container (max-width: 640px) {
    .fa-feature { grid-template-columns: minmax(0, 1fr); }
    .fa-feature-media { max-width: none; aspect-ratio: 8 / 5; min-height: 0; }
  }
  @container (max-width: 520px) {
    .fa-mas { grid-template-columns: minmax(0, 1fr); }
    .fa-mas-head { max-width: none; justify-content: flex-start; padding: 10px 14px; }
    .fa-mini { grid-template-columns: 104px minmax(0, 1fr); }
  }
  @container (max-width: 340px) {
    .fa-mini { grid-template-columns: 84px minmax(0, 1fr); gap: 10px; }
  }
}
@media (prefers-reduced-motion: reduce) {
  .fa::before, .fa-kicker::before, .fa-kicker::after { animation: none; }
}

/* ---------- Pie: logotipo de Grupo Sague dentro del texto ---------- */
.footer-sague-bar p { line-height: 2; }
.footer-sague-logo {
  display: inline-block;
  height: 32px;
  width: auto;
  margin: 0 1px 0 5px;
  vertical-align: middle;
  filter: brightness(0) invert(1);
  opacity: .85;
  transition: opacity .2s ease, transform .2s ease;
}
.footer-sague-bar a.footer-sague-marca { display: inline-block; vertical-align: middle; text-decoration: none; }
@media (hover: hover) {
  .footer-sague-marca:hover .footer-sague-logo { opacity: 1; transform: scale(1.08); }
}
@media (max-width: 600px) {
  .footer-sague-logo { height: 26px; }
}

/* ---------- Destacadas: la caja ya se ve armada antes de que corra el JS ---------- */
.nd .ndd2-track:not(:has(.nd-pagina)) { display: block; }
.nd .ndd2-track:not(:has(.nd-pagina)) .ndd2-card + .ndd2-card { margin-top: 10px; }
.nd .ndd2-track:not(:has(.nd-pagina)) .ndd2-card:nth-child(n+3) { display: none; }
@media (max-width: 600px) {
  .nd .ndd2-track:not(:has(.nd-pagina)) .ndd2-card:nth-child(n+2) { display: none; }
}

/* ---------- Destacadas: si la ultima pagina queda con una sola nota, esa tarjeta
   conserva el tamano de las demas y se centra en la caja (de 601px en adelante).
   En celular cada pagina lleva una tarjeta y llena su pagina. ---------- */
@media (min-width: 601px) {
  .nd-pagina:has(> .ndd2-card:only-child) { justify-content: center; }
}
@media (max-width: 600px) {
  .nd-pagina > .ndd2-card:only-child {
    flex: 1 1 auto;
    align-items: start;
    grid-template-columns: minmax(0, 1fr);
  }
  .nd-pagina > .ndd2-card:only-child .ndd2-imgwrap { aspect-ratio: 8 / 5; height: auto; align-self: center; }
  .nd-pagina > .ndd2-card:only-child .ndd2-body { justify-content: center; }
}

/* ---------- Carga sin saltos ---------- */
/* Senal 24/7: la caja es siempre 16:9 y muestra la portada del video mientras
   entra el reproductor, que aparece con un fundido cuando ya esta andando. */
.rtv-live24-frame {
  aspect-ratio: 16 / 9;
  background-color: #120a05;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.rtv-live24-frame iframe {
  transform: scale(var(--rtv-live-escala, 1));
  opacity: 0;
  transition: opacity .6s ease;
}
.rtv-live24-frame.is-lista iframe { opacity: 1; }

/* Hero: las columnas laterales toman el alto de la central sin empujarla. Las
   notas que no caben pasan a una segunda columna que queda fuera de la caja,
   asi nunca se corta una nota a la mitad y no hace falta medir con JS. */
@media (min-width: 1021px) {
  .hh-right { contain: size; }
  .hh-right > .hh-box--reciente {
    flex: 1 1 0;
    min-height: 0;
    flex-wrap: wrap;
    align-content: flex-start;
    overflow: hidden;
    overflow: clip;
  }
  .hh-right > .hh-box--reciente > * { width: 100%; }
}
@media (min-width: 1300px) {
  .hh-left { contain: size; }
  .hh-left > .hh-box:last-child {
    flex: 1 1 0;
    min-height: 0;
    flex-wrap: wrap;
    align-content: flex-start;
    overflow: hidden;
    overflow: clip;
  }
  .hh-left > .hh-box:last-child > * { width: 100%; }
}

/* Portadas animadas: --foco es la altura donde esta la cara de quien habla
   (0% arriba, 100% abajo); funciona igual que object-position. */
.rtv-portada-video { object-position: 50% var(--foco, 15%); }
.rtv-portada-marco--vertical iframe {
  top: var(--foco, 15%);
  transform: translate(-50%, calc(var(--foco, 15%) * -1));
}

/* Publicidad lateral: el anuncio nuevo entra encima del anterior con un fundido.
   Debe ganarle a ".rtv-js .hl-ad video { position: relative }" de style.css:
   el anuncio que entra no ocupa lugar, asi la caja y las tarjetas vecinas no crecen. */
.rtv-ad-entra,
.rtv-ads-on .rtv-ad-entra,
.rtv-js .sb-ad .rtv-ad-entra,
.rtv-js .hl-ad .rtv-ad-entra { position: absolute; z-index: 2; margin: 0; pointer-events: none; }

/* La caja de la columna izquierda de las notas no toma el ancho del video (los
   anuncios miden distinto): siempre 300 x 600. */
.article-left-ad .sb-ad { width: 100%; }

/* ---------- Personajes: retrato compacto que invita a entrar a la nota ---------- */
/* La foto deja de ocupar media pantalla: columna fija y angosta, el texto
   manda, y sobre la foto una pildora "Leer su historia" deja claro que es
   la puerta a la nota completa. */
.pe-ficha {
  grid-template-columns: clamp(240px, 25vw, 340px) minmax(0, 1fr);
  gap: clamp(24px, 3.6vw, 56px);
}
.pe-col-foto { position: sticky; top: calc(var(--nav-h, 97px) + 64px); }
.pe-retrato { aspect-ratio: 4 / 5; border-radius: 6px 24px 6px 24px; }
.pe-retrato--foto img { object-position: 50% 58%; }
.pe-retrato-cta {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255, 197, 17, 0.96);
  color: #2a1a0e;
  font: 800 11px/1 'Montserrat', 'RTV Sans', system-ui, sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .35);
  pointer-events: none;
  transition: background .25s ease, color .25s ease;
}
.pe-retrato-cta svg { transition: transform .25s ease; }
@media (hover: hover) {
  .pe-retrato--foto:has(.pe-retrato-link:hover) .pe-retrato-cta { background: var(--rtv-rosa); color: #fff; }
  .pe-retrato--foto:has(.pe-retrato-link:hover) .pe-retrato-cta svg { transform: translateX(3px); }
}
.pe-datos dd b { font-size: clamp(22px, 2.4vw, 32px); }
.pe-datos { align-items: end; }
.pe-datos dt { letter-spacing: .1em; white-space: normal; line-height: 1.35; }

@media (max-width: 900px) {
  .pe-ficha { grid-template-columns: clamp(210px, 30vw, 270px) minmax(0, 1fr); }
  .pe-retrato { max-width: none; aspect-ratio: 4 / 5; }
  .pe-datos { max-width: none; }
}
/* Celular: foto y cifras en una sola franja, el nombre enseguida. */
@media (max-width: 640px) {
  .pe-ficha { grid-template-columns: 1fr; }
  .pe-col-foto {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
    gap: clamp(16px, 4vw, 28px);
    align-items: center;
  }
  .pe-retrato { max-width: none; aspect-ratio: 4 / 5; }
  .pe-datos {
    max-width: none;
    margin: 0;
    padding-top: 0;
    border-top: 0;
    grid-template-columns: 1fr;
    gap: clamp(12px, 3vw, 20px);
  }
  .pe-datos > div { padding-left: 14px; border-left: 2px solid rgba(48, 30, 16, 0.14); }
}
@media (max-width: 520px) {
  .pe-col-foto { grid-template-columns: minmax(0, 46%) minmax(0, 1fr); gap: 14px; }
  .pe-retrato-cta { bottom: 10px; padding: 7px 11px; font-size: 9.5px; gap: 5px; }
  .pe-datos dd b { font-size: 22px; }
  .pe-datos dt { white-space: normal; font-size: 8.5px; }
  .pe-datos dd span { font-size: 9.5px; }
}
.pe-datos { grid-template-columns: repeat(3, auto); justify-content: space-between; }
.pe-datos dt { overflow: visible; text-overflow: clip; }
@media (max-width: 640px) { .pe-datos { grid-template-columns: 1fr; justify-content: stretch; } }
@media (max-width: 420px) {
  .pe-cta-mas { display: none; }
  .pe-retrato-cta { right: 8px; bottom: 8px; }
}

/* Paginas de programa: la columna lateral mide lo mismo que los episodios sin
   JS. Las notas que no caben pasan a una columna oculta (ninguna se corta) y la
   publicidad solo entra si cabe completa debajo de las notas. */
@media (min-width: 1181px) {
  .pd-lateral {
    contain: size;
    flex-wrap: wrap;
    column-gap: 48px;
    align-content: flex-start;
    overflow: hidden;
    overflow: clip;
  }
  .pd-lateral > * { width: 100%; }
  .pd-lateral > .pd-notas { flex: 1 1 300px; min-height: 300px; display: flex; flex-direction: column; }
  .pd-lateral > .pd-anuncio { flex: 0 0 auto; }
}
@media (min-width: 701px) and (max-width: 1180px) {
  .pd-lateral > .pd-notas { contain: size; display: flex; flex-direction: column; }
}
@media (min-width: 701px) {
  .pd-notas-lista {
    flex: 1 1 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-content: flex-start;
    column-gap: 48px;
    justify-content: space-between;
    overflow: hidden;
    overflow: clip;
  }
  .pd-notas-lista > li { width: 100%; }
}
@media (max-width: 700px) {
  .pd-notas-lista > li:nth-child(n+6) { display: none; }
}

/* NotasRTV: las tarjetas se ven desde el primer pintado (sin entrada animada). */
.nota-card { opacity: 1; transform: none; }

/* ---------- Listas dentro de una nota ---------- */
body.portal .article-body ul { margin: -8px 0 22px; padding-left: 24px; list-style: disc; }
body.portal .article-body li {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.7;
  color: #36241a;
  margin-bottom: 6px;
}
body.portal .article-body li::marker { color: var(--rtv-red); }
body.portal .article-body li strong { color: var(--ink); }
@media (max-width: 480px) {
  body.portal .article-body li { font-size: 16.5px; }
}

/* Lo ultimo (>=1280): si el riel de hoy es mas alto, el espacio extra va alrededor
   del banner y las tarjetas conservan su alto natural. La fecha de cada nota del
   riel sobra ahi (el encabezado ya dice "Hoy"). */
@media (min-width: 1280px) {
  .pt-main { grid-template-rows: auto auto 1fr; }
  .pt-main > .pt-adb { align-self: center; }
  .pt-rail-item .n-list-date { display: none; }
  .pt-rail-title { margin-bottom: 0; }
}

/* ---------- Video destacado (arriba al centro del index) ---------- */
.vd { padding-top: 18px; }
.vd-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-bottom: 10px;
}
.vd-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 800 clamp(11.5px, 1.2vw, 13px)/1.1 'Montserrat', 'RTV Sans', system-ui, sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--rtv-red, #E30613);
}
.vd-titulo {
  margin: 0;
  font-family: 'PT Serif', 'RTV Serif', Georgia, serif;
  font-weight: 900;
  font-size: clamp(21px, 2vw, 28px);
  line-height: 1.1;
  letter-spacing: -.01em;
  color: var(--ink, #241307);
}
/* El clic en el video o en el boton enciende y apaga el sonido (main.js). */
.vd-escenario { cursor: default; }
.rtv-js .vd-escenario { cursor: pointer; }
@media (hover: hover) {
  .vd-escenario:hover .vt-poster { transform: none; }
  .vd-escenario:hover .vd-sonido { transform: translateY(-2px); background: rgba(18, 10, 5, .86); }
}
.vd-sonido {
  position: absolute;
  z-index: 3;
  left: clamp(10px, 1.4vw, 16px);
  bottom: clamp(20px, 2vw, 24px);
  display: none;
  align-items: center;
  gap: 8px;
  padding: 5px 14px 5px 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(18, 10, 5, .72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  font: 800 12.5px/1 'Montserrat', 'RTV Sans', system-ui, sans-serif;
  letter-spacing: .03em;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .28);
  transition: transform .2s ease, background .2s ease;
}
.rtv-js .vd-sonido { display: inline-flex; }
.is-reproduciendo .vd-sonido,
.is-reproduciendo .vd-dur { display: none; }
.vd-sonido-ico {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--rtv-red, #E30613);
  animation: vdLlamar 1.8s ease-out 1.5s 3;
}
@keyframes vdLlamar {
  0% { box-shadow: 0 0 0 0 rgba(227, 6, 19, .6); }
  100% { box-shadow: 0 0 0 12px rgba(227, 6, 19, 0); }
}
.vd-sonido:focus-visible { outline: 3px solid var(--rtv-amarillo, #ffc511); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .vd-sonido-ico { animation: none; }
}
.vd-dur {
  position: absolute;
  z-index: 3;
  top: clamp(10px, 1.4vw, 16px);
  right: clamp(10px, 1.4vw, 16px);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(18, 10, 5, .62);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  font: 800 12px/1 'Montserrat', 'RTV Sans', system-ui, sans-serif;
  letter-spacing: .04em;
}
.vd-desc {
  grid-template-columns: minmax(0, 1fr);
  margin-top: 14px;
}
.vd-chips {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.vd-chips li {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(48, 30, 16, .07);
  color: #5a4532;
  font: 700 11px/1.2 'Montserrat', 'RTV Sans', system-ui, sans-serif;
  letter-spacing: .02em;
}
.vd-chips li:first-child { background: var(--rtv-rosa, #ba2558); color: #fff; }
.vd-desc .pe-obra-txt p { font-size: 13.5px; color: #5a4532; }
.vd-desc .pe-obra-txt p.vd-dato {
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(255, 197, 17, .18);
  color: #4b372a;
}
.vd-dato strong { color: #2a1a0e; }
.vd-acciones {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
}
.vd-red {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  color: #fff;
  font: 800 11.5px/1 'Montserrat', 'RTV Sans', system-ui, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform .25s ease, background .25s ease;
}
.vd-red--yt { background: #E30613; box-shadow: 0 8px 18px rgba(227, 6, 19, .24); }
.vd-red--tt { background: #111; box-shadow: 0 8px 18px rgba(17, 17, 17, .2); }
@media (hover: hover) {
  .vd-red:hover { transform: translateY(-2px); }
  .vd-red--yt:hover { background: #b80410; }
  .vd-red--tt:hover { background: #2b2b2b; }
}
.vd-red:focus-visible,
.vd-acciones .pe-cta:focus-visible { outline: 3px solid var(--rtv-amarillo, #ffc511); outline-offset: 2px; }
@media (max-width: 760px) {
  .vd { padding-top: 12px; }
  .vd-desc { margin-top: 10px; }
}
@media (max-width: 600px) {
  .vd-chips li:nth-child(3) { display: none; }
  .vd-desc .pe-obra-txt p { font-size: 13px; line-height: 1.55; margin-bottom: 12px; }
  .vd-desc .pe-obra-txt p.vd-dato { padding: 8px 10px; }
}

/* ---------- Descubre algo nuevo (columna derecha del hero) ---------- */
/* La lista trae unas 30 notas; la cabecera de la pagina marca 5 al azar
   (.hd-azar / .hd-ver) mientras se arma, y sin JS quedan las 5 primeras. */
@media (min-width: 1021px) {
  .hh-right > .hd { flex: none; }
}
.hd-head svg { color: var(--rtv-amarillo, #ffc511); flex: none; }
.hd-nota {
  margin-left: auto;
  font-size: 9.5px;
  letter-spacing: .1em;
  color: rgba(255, 255, 255, .62);
  white-space: nowrap;
}
.hd .hh-item {
  grid-template-columns: 72px minmax(0, 1fr);
  padding: 9px 12px;
}
.hd .hh-item img { width: 72px; height: 52px; border-radius: 7px; }
.hd-item:nth-child(n+6) { display: none; }
.hd-azar .hd-item { display: none; }
.hd-azar .hd-item.hd-ver { display: grid; }
.hd-azar .hd-item.hd-primero { border-top: 0; }
.hd-item.hd-anim { animation: hdEntra .42s ease both; }
@keyframes hdEntra {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}
.hd-otra {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 12px;
  border: 0;
  border-top: 1px solid var(--rule, #e9dcc7);
  background: var(--panel, #fff);
  color: var(--rtv-red, #E30613);
  font: 800 11.5px/1 'Montserrat', 'RTV Sans', system-ui, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s ease;
}
.rtv-js .hd-otra { display: flex; }
.hd-otra svg { transition: transform .45s ease; }
.hd-otra.is-girando svg { transform: rotate(180deg); }
@media (hover: hover) {
  .hd-otra:hover { background: #fff6dc; }
}
.hd-otra:focus-visible { outline: 3px solid var(--rtv-amarillo, #ffc511); outline-offset: -3px; }
@media (prefers-reduced-motion: reduce) {
  .hd-item.hd-anim { animation: none; }
}

/* ---------- Historia de Reencuentro: franja con la senal continua ---------- */
.rl { padding: clamp(28px, 3.4vw, 44px) 0 6px; }
.rl-caja {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(16px, 2.4vw, 34px);
  align-items: center;
}
.rl-txt { min-width: 0; }
.rl-titulo { margin: 0 0 clamp(12px, 1.4vw, 18px); }
.rl-titulo a { color: inherit; text-decoration: none; transition: color .2s ease; }
@media (hover: hover) {
  .rl-titulo a:hover { color: var(--rtv-red, #E30613); }
}
.rl .rtv-live24-obra { margin-top: 0; }
@media (max-width: 900px) {
  .rl-caja { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Farandula: rojo combinado con azul en todo el sitio ---------- */
/* --cat-bg solo existe en Farandula: las demas categorias siguen pintando con --cat. */
:root { --rtv-fa-rojo: #d4112e; --rtv-fa-azul: #1e3a8a; }
[data-cat="farandula"],
.pt-lead:has([data-cat="farandula"]), .pt-card:has([data-cat="farandula"]),
.tpg-card:has([data-cat="farandula"]), .hh-item:has([data-cat="farandula"]),
.sb-item:has([data-cat="farandula"]), .cb-card:has([data-cat="farandula"]),
.cb-lead:has([data-cat="farandula"]), .cb-row:has([data-cat="farandula"]),
.ndd2-card:has([data-cat="farandula"]),
.cb-head:has(.cb-name[data-cat="farandula"]),
.hh-box:has(.hh-box-head[data-cat="farandula"]),
.dropdown .has-sub > a[href*="#farandula"] {
  --cat: var(--rtv-fa-azul);
  --cat-ink: #1a3277;
  --cat-on: #fff;
  --cat-bg: linear-gradient(90deg, var(--rtv-fa-rojo), var(--rtv-fa-azul));
}
.fa-tag {
  background: linear-gradient(90deg, var(--rtv-fa-rojo), var(--rtv-fa-azul));
  box-shadow: 0 3px 14px rgba(30, 58, 138, .45);
}
