/* ═══════════════════════════════════════════════════════════════
   REENCUENTRO TV · PORTAL DE NOTICIAS
   Hoja de estilos del rediseño editorial (portada + noticias).
   Se carga DESPUÉS de style.css en index.html y en noticias/*.html
   ═══════════════════════════════════════════════════════════════ */

:root {
  --paper:  #faf4e8;          /* fondo papel periódico cálido            */
  --panel:  #ffffff;          /* tarjetas                                 */
  --ink:    #241307;          /* titulares                                */
  --ink-2:  #4b372a;          /* texto secundario                         */
  --ink-3:  #95826f;          /* metadatos                                */
  --rule:   #e9dcc7;          /* líneas finas                             */
  --rtv-red:    #E30613;
  --rtv-red-d:  #b00410;
  --rtv-amber:  #f7a32f;
  --serif: 'PT Serif', Georgia, 'Times New Roman', serif;
  --card-shadow: 0 1px 2px rgba(36,19,7,0.05), 0 6px 18px rgba(36,19,7,0.06);
  --card-shadow-h: 0 2px 4px rgba(36,19,7,0.07), 0 14px 30px rgba(36,19,7,0.12);
  


.news-search-bar {
  margin-top: 18px;
  margin-top: 2rem;  
}

@media (max-width: 700px) {
  .news-search-bar {
    margin-top: 8vh;   
  }
}


}



.news-search-bar {
  margin-top: 3rem;   
}
@media (max-width: 700px) {
  .news-search-bar {
    margin-top: 1.8rem;
  }
}/* Ajuste del buscador: más abajo en móvil */
.news-search-bar {
  margin-top: 2rem;   /* valor por defecto para desktop */
}

@media (max-width: 700px) {
  .news-search-bar {
    margin-top: 8vh;   /* 8% de la altura de la ventana en móviles */
  }
}

html { background: var(--paper); }
body.portal { background: var(--paper); color: var(--ink-2); font-size: 14px; }

.portal a { -webkit-tap-highlight-color: rgba(227,6,19,0.12); }
.portal :focus-visible { outline: 2.5px solid var(--rtv-red); outline-offset: 2px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  .portal *, .portal *::before, .portal *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.pwrap { max-width: 1240px; margin: 0 auto; padding: 0 28px; }

.portal-home { padding-top: calc(var(--nav-h) + 6px); }

/* ───────────────────────────────────────────────
   CINTILLO "ÚLTIMA HORA" (ticker)
─────────────────────────────────────────────── */
.tk {
  display: flex;
  align-items: stretch;
  height: 40px;
  background: linear-gradient(90deg, #c00511 0%, var(--rtv-red) 60%, #f01421 100%);
  box-shadow: 0 3px 14px rgba(176,4,16,0.35);
  position: relative;
  z-index: 20;
}

.tk-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px 0 16px;
  background: var(--yellow);
  color: #1a0800;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  clip-path: polygon(0 0, 100% 0, calc(100% - 11px) 100%, 0 100%);
  padding-right: 26px;
}

.tk-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--rtv-red);
  animation: tkPulse 1.4s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes tkPulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.35; transform: scale(0.72); } }

.tk-track { flex: 1; overflow: hidden; display: flex; align-items: center; }

.tk-move {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: tkScroll 60s linear infinite;
  will-change: transform;
}

.tk:hover .tk-move { animation-play-state: paused; }

@keyframes tkScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.tk-item {
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.tk-item::after {
  content: '◆';
  font-size: 7px;
  color: rgba(255,255,255,0.55);
}

.tk-item:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .tk-track { overflow-x: auto; scrollbar-width: none; }
  .tk-move { animation: none; }
}

/* ───────────────────────────────────────────────
   ETIQUETAS COMUNES (kicker, fechas)
─────────────────────────────────────────────── */
.kick {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--rtv-red);
}

.n-date, .n-list-date {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}

/* ───────────────────────────────────────────────
   PORTADA (nota principal + secundarias + Lo último)
─────────────────────────────────────────────── */
.pt { padding: 26px 0 6px; scroll-margin-top: calc(var(--nav-h) + 14px); }

.pt-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 336px;
  gap: 26px;
  align-items: start;
}

.pt-main { display: grid; gap: 24px; min-width: 0; }

.pt-lead {
  display: block;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--card-shadow);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.pt-lead:hover { box-shadow: var(--card-shadow-h); transform: translateY(-2px); }

.pt-lead-imgwrap { overflow: hidden; aspect-ratio: 16 / 8.4; background: #1a0d04; }

.pt-lead-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }

.pt-lead:hover .pt-lead-img { transform: scale(1.025); }

.pt-lead-body { padding: 22px 28px 26px; }

.pt-lead-title {
  font-size: clamp(23px, 2.9vw, 37px);
  font-weight: 900;
  line-height: 1.13;
  letter-spacing: -0.022em;
  color: var(--ink);
  margin: 10px 0 12px;
}

.pt-lead:hover .pt-lead-title { color: var(--rtv-red-d); }

.pt-lead-desc {
  font-size: 15.5px;
  line-height: 1.62;
  color: var(--ink-2);
  margin-bottom: 14px;
  max-width: 64ch;
}

.pt-sub { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.pt-card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--card-shadow);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  min-width: 0;
}

.pt-card:hover { box-shadow: var(--card-shadow-h); transform: translateY(-2px); }

.pt-card-imgwrap { aspect-ratio: 16 / 9.6; overflow: hidden; background: #1a0d04; }

.pt-card-imgwrap img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.45s ease; }

.pt-card:hover .pt-card-imgwrap img { transform: scale(1.03); }

.pt-card-body { padding: 15px 18px 17px; display: flex; flex-direction: column; gap: 8px; flex: 1; }

.pt-card-title { font-size: 16.5px; font-weight: 800; line-height: 1.3; letter-spacing: -0.012em; color: var(--ink); }

.pt-card:hover .pt-card-title { color: var(--rtv-red-d); }

.pt-card .n-date { margin-top: auto; }

/* Riel "Lo último" */
.pt-rail {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 18px 20px 8px;
  box-shadow: var(--card-shadow);
  min-width: 0;
}

.pt-rail-head {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 12px;
  border-bottom: 3px solid var(--rtv-red);
}

.pt-rail-head .tk-dot { background: var(--rtv-red); }

.pt-rail-item {
  display: block;
  position: relative;
  padding: 13px 2px 14px 20px;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
}

.pt-rail-item:last-child { border-bottom: none; }

.pt-rail-item::before {
  content: '';
  position: absolute;
  left: 5px; top: 0; bottom: 0;
  width: 2px;
  background: var(--rule);
}

.pt-rail-item:first-of-type::before { top: 14px; }
.pt-rail-item:last-of-type::before { bottom: auto; height: 22px; }

.pt-rail-item::after {
  content: '';
  position: absolute;
  left: 0; top: 17px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--rtv-red);
  border: 2.5px solid var(--panel);
  box-shadow: 0 0 0 1.5px var(--rtv-red);
}

.pt-rail-title {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.38;
  color: var(--ink);
  margin-bottom: 5px;
  transition: color 0.18s;
}

.pt-rail-item:hover .pt-rail-title { color: var(--rtv-red); }

/* ───────────────────────────────────────────────
   BANDA DE SECCIÓN (categorías)
─────────────────────────────────────────────── */
.cb { padding: 36px 0 8px; scroll-margin-top: calc(var(--nav-h) + 12px); }

.cb-head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }

.cb-name {
  font-size: clamp(15px, 1.7vw, 19px);
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  background: var(--rtv-red);
  padding: 8px 24px 8px 15px;
  margin: 0;
  clip-path: polygon(0 0, 100% 0, calc(100% - 13px) 100%, 0 100%);
  white-space: nowrap;
  flex-shrink: 0;
}

.cb-rule {
  flex: 1;
  height: 3px;
  background: linear-gradient(90deg, var(--rtv-red) 0%, var(--rtv-amber) 36%, rgba(247,163,47,0) 100%);
  border-radius: 2px;
}

.cb-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rtv-red);
  text-decoration: none;
  border: 1.5px solid rgba(227,6,19,0.45);
  border-radius: 40px;
  padding: 7px 16px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.cb-link:hover { background: var(--rtv-red); color: #fff; border-color: var(--rtv-red); }

/* Nota principal de la sección (foto + texto en horizontal) */
.cb-lead {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--card-shadow);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.cb-lead:hover { box-shadow: var(--card-shadow-h); transform: translateY(-2px); }

.cb-lead-imgwrap { overflow: hidden; background: #1a0d04; min-height: 272px; }

.cb-lead-imgwrap img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }

.cb-lead:hover .cb-lead-imgwrap img { transform: scale(1.03); }

.cb-lead-body {
  padding: 26px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 11px;
  min-width: 0;
}

.cb-lead-title {
  font-size: clamp(19px, 2.2vw, 27px);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.018em;
  color: var(--ink);
}

.cb-lead:hover .cb-lead-title { color: var(--rtv-red-d); }

.cb-lead-desc {
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Tarjetas medianas */
.cb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }

.cb-card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--card-shadow);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  min-width: 0;
}

.cb-card:hover { box-shadow: var(--card-shadow-h); transform: translateY(-2px); }

.cb-card-imgwrap { aspect-ratio: 3 / 2; overflow: hidden; background: #1a0d04; }

.cb-card-imgwrap img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.45s ease; }

.cb-card:hover .cb-card-imgwrap img { transform: scale(1.035); }

.cb-card-body { padding: 13px 16px 15px; display: flex; flex-direction: column; gap: 7px; flex: 1; }

.cb-card-title { font-size: 14.5px; font-weight: 800; line-height: 1.32; letter-spacing: -0.008em; color: var(--ink); }

.cb-card:hover .cb-card-title { color: var(--rtv-red-d); }

.cb-card .n-date { margin-top: auto; }

/* Lista compacta (resto de la sección) */
.cb-list {
  margin-top: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 40px;
}

.cb-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  min-width: 0;
}

.cb-row-thumb {
  width: 102px;
  height: 70px;
  object-fit: cover;
  border-radius: 7px;
  background: #1a0d04;
  flex-shrink: 0;
}

.cb-row-body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }

.cb-row-title {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.36;
  color: var(--ink);
  transition: color 0.18s;
}

.cb-row:hover .cb-row-title { color: var(--rtv-red); }

/* "Ver más" dentro de la lista */
.cb-list .ver-mas-wrap { display: none; }
.cb-list .ver-mas-wrap.open { display: contents; }

.cb-list .ver-mas-btn {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 4px;
  padding: 13px 0 6px;
  background: none;
  border: none;
  border-top: none;
  font-family: var(--font);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rtv-red);
  cursor: pointer;
  transition: opacity 0.2s;
}

.cb-list .ver-mas-btn:hover { opacity: 0.72; }

/* ───────────────────────────────────────────────
   PUBLICIDAD (banda 728×90) y FRANJA EN VIVO
─────────────────────────────────────────────── */
.adb { padding: 30px 0 4px; }

.adb-tag {
  display: block;
  text-align: center;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 7px;
}

.adb .ad-band-box {
  position: relative;
  width: 100%;
  max-width: 982px;
  margin: 0 auto;
  aspect-ratio: 728 / 90;
  height: auto;
  border-radius: 9px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--rule);
  box-shadow: var(--card-shadow);
}

.live-strip { padding: 34px 0 6px; }

.live-strip a {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 18px;
  padding: 19px 26px;
  border-radius: 12px;
  background: linear-gradient(100deg, #190301 0%, #420507 55%, #74050c 100%);
  border: 1px solid rgba(227,6,19,0.5);
  box-shadow: 0 10px 28px rgba(120,3,9,0.3);
  text-decoration: none;
  transition: box-shadow 0.25s, transform 0.25s;
}

.live-strip a:hover { box-shadow: 0 14px 36px rgba(150,4,12,0.42); transform: translateY(-2px); }

.live-strip-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #ff2e3b;
  box-shadow: 0 0 12px rgba(255,46,59,0.9);
  animation: tkPulse 1.3s ease-in-out infinite;
  flex-shrink: 0;
}

.live-strip-txt { color: #fff; font-size: 15px; font-weight: 800; letter-spacing: 0.01em; text-align: center; }

.live-strip-txt small { display: block; font-size: 11.5px; font-weight: 600; color: rgba(255,255,255,0.62); margin-top: 3px; letter-spacing: 0.04em; }

.live-strip-cta {
  background: var(--yellow);
  color: #1a0800;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 22px;
  border-radius: 40px;
  white-space: nowrap;
}

/* ───────────────────────────────────────────────
   RESPONSIVE — PORTADA Y SECCIONES
─────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .pt-grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; }
  .cb-list { column-gap: 30px; }
}

@media (max-width: 920px) {
  .pwrap { padding: 0 20px; }
  .pt-grid { grid-template-columns: 1fr; }
  .pt-rail { padding: 16px 18px 6px; }
  .cb-lead { grid-template-columns: 1fr; }
  .cb-lead-imgwrap { min-height: 0; aspect-ratio: 16 / 9; }
  .cb-lead-body { padding: 18px 20px 22px; }
  .cb-list { grid-template-columns: 1fr; column-gap: 0; }
  .cb-grid { gap: 14px; }
}

@media (max-width: 700px) {
  .pwrap { padding: 0 14px; }
  .portal-home .tk { height: 36px; }
  .tk-label { font-size: 9.5px; padding: 0 20px 0 12px; letter-spacing: 0.1em; }
  .tk-item { font-size: 11.5px; }

  .pt { padding-top: 16px; }
  .pt-main { gap: 14px; }
  .pt-lead-body { padding: 15px 16px 18px; }
  .pt-lead-title { font-size: clamp(20px, 6vw, 26px); }
  .pt-lead-desc { font-size: 13.5px; margin-bottom: 10px; }

  .pt-sub { grid-template-columns: 1fr; gap: 12px; }
  .pt-card { display: grid; grid-template-columns: 124px 1fr; }
  .pt-card-imgwrap { aspect-ratio: auto; height: 100%; min-height: 96px; }
  .pt-card-body { padding: 12px 14px; gap: 5px; }
  .pt-card-title { font-size: 14px; }
  .pt-card .kick { font-size: 9px; }

  .cb { padding: 26px 0 4px; }
  .cb-head { gap: 10px; margin-bottom: 14px; }
  .cb-name { font-size: 13.5px; padding: 7px 19px 7px 12px; }
  .cb-link { font-size: 9.5px; padding: 6px 12px; }

  .cb-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 14px; }
  .cb-card { display: grid; grid-template-columns: 124px 1fr; }
  .cb-card-imgwrap { aspect-ratio: auto; height: 100%; min-height: 96px; }
  .cb-card-body { padding: 12px 14px; gap: 5px; }
  .cb-card-title { font-size: 14px; }

  .cb-row-thumb { width: 92px; height: 64px; }

  .adb { padding: 22px 0 2px; }
  .live-strip a { padding: 16px 18px; }
  .live-strip-txt { font-size: 13.5px; }
}

@media (max-width: 380px) {
  .pwrap { padding: 0 11px; }
  .pt-card, .cb-card { grid-template-columns: 104px 1fr; }
  .pt-lead-title { font-size: 19px; }
  .cb-lead-title { font-size: 17.5px; }
  .tk-label { padding: 0 16px 0 10px; }
  .cb-link span { display: none; }
}

@media (min-width: 1600px) {
  .pwrap { max-width: 1300px; }
}

/* ═══════════════════════════════════════════════════════════════
   PÁGINA DE NOTICIA (artículo)
   ═══════════════════════════════════════════════════════════════ */

#readProgress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--rtv-red), var(--rtv-amber));
  z-index: 100000;
  transition: width 0.08s linear;
}

/* Migas de pan */
body.portal .noticia-back-bar {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  padding: 0;
  margin-top: var(--nav-h);
}

.crumbs {
  max-width: 1240px;
  margin: 0 auto;
  padding: 11px 28px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
}

.crumbs a { color: var(--ink-2); text-decoration: none; transition: color 0.15s; }
.crumbs a:hover { color: var(--rtv-red); }
.crumbs .crumb-sep { color: var(--ink-3); font-size: 10px; }
.crumbs .crumb-here { color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46ch; }

/* Lienzo del artículo */
body.portal .article-main { background: var(--paper); padding-top: 0 !important; }

body.portal .article-outer { max-width: 1560px; padding: 0 20px; gap: 26px; }

body.portal .article-wrap {
  padding: 30px 0 64px;
  grid-template-columns: minmax(0, 1fr) 324px;
  gap: 44px;
}

body.portal .article-wrap article {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: clamp(22px, 4vw, 44px) clamp(18px, 4.4vw, 52px) clamp(26px, 4vw, 44px);
  box-shadow: var(--card-shadow);
  min-width: 0;
}

/* Cabecera del artículo */
body.portal .article-cat-badge {
  background: var(--rtv-red);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  padding: 5px 13px;
  border-radius: 4px;
  margin-bottom: 16px;
}

body.portal .article-h1 {
  font-size: clamp(25px, 3.5vw, 42px);
  font-weight: 900;
  color: var(--ink);
  line-height: 1.14;
  letter-spacing: -0.022em;
  margin-bottom: 14px;
}

body.portal .article-byline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-3);
  margin-bottom: 0;
  padding-bottom: 14px;
}

body.portal .article-byline::before { display: none; }
body.portal .article-byline strong { color: var(--ink); font-weight: 800; }
body.portal .article-byline .by-sep { color: var(--rule); }

/* Compartir */
.art-share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 13px 0 18px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-bottom: 26px;
}

.art-share-label {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-right: 4px;
}

.art-share a, .art-share button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
  transition: transform 0.18s, box-shadow 0.18s, opacity 0.18s;
}

.art-share a:hover, .art-share button:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(36,19,7,0.22); }

.art-share svg { width: 16px; height: 16px; fill: currentColor; display: block; }

.share-wa { background: #25d366; }
.share-fb { background: #1877f2; }
.share-x  { background: #14171a; }
.share-cp { background: var(--ink-2); position: relative; }

.share-cp.copied { background: #1f9d4d; }

.share-cp .cp-tip {
  position: absolute;
  bottom: calc(100% + 7px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 5px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.share-cp.copied .cp-tip { opacity: 1; }

/* Imagen principal */
body.portal .article-featured-img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 560px;
  aspect-ratio: auto;
  object-fit: contain;
  background: transparent;
  border-radius: 9px;
  margin: 0 auto 26px;
  box-shadow: 0 4px 18px rgba(36,19,7,0.12);
}

/* Cuerpo en serif editorial */
body.portal .article-body p {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.85;
  color: #36241a;
  margin-bottom: 22px;
}

body.portal .article-body p strong { color: var(--ink); }
body.portal .article-body p em { font-style: italic; }
body.portal .article-body a { color: var(--rtv-red); text-decoration: underline; text-underline-offset: 3px; }

/* Entradilla: primer párrafo destacado */
body.portal article > .article-body:first-of-type > p:first-child {
  font-family: var(--font);
  font-size: 18.5px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--ink-2);
}

body.portal .article-list li {
  font-family: var(--serif);
  font-size: 16.5px;
  line-height: 1.8;
  color: #36241a;
}

/* Medios dentro del artículo */
body.portal .article-photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 6px 0 26px;
}

body.portal .article-photo-grid img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 9px;
  display: block;
  background: #1a0d04;
}

body.portal .article-video-wrap { margin: 6px auto 26px; }

body.portal .article-video {
  border-radius: 10px;
  box-shadow: 0 8px 26px rgba(36,19,7,0.22);
}

body.portal .article-video-caption,
body.portal .article-img-caption {
  font-size: 12px;
  color: var(--ink-3);
  font-style: italic;
  margin-top: 8px;
  text-align: center;
}

/* "Te puede gustar" */
body.portal .tpg-section { margin-top: 44px; padding-top: 0; border-top: none; }

.tpg-head { display: flex; align-items: center; gap: 13px; margin-bottom: 18px; }

.tpg-head h2 {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #fff;
  background: var(--rtv-red);
  padding: 7px 20px 7px 13px;
  margin: 0;
  clip-path: polygon(0 0, 100% 0, calc(100% - 11px) 100%, 0 100%);
}

.tpg-head .cb-rule { height: 3px; }

body.portal .tpg-grid { gap: 16px; }

body.portal .tpg-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow 0.22s, transform 0.22s;
  min-width: 0;
}

body.portal .tpg-card:hover { opacity: 1; box-shadow: var(--card-shadow-h); transform: translateY(-2px); }

body.portal .tpg-thumb { border-radius: 0; margin-bottom: 0; aspect-ratio: 16 / 10; }

body.portal .tpg-cat { padding: 11px 13px 0; margin-bottom: 4px; font-size: 9.5px; letter-spacing: 0.12em; }

body.portal .tpg-card-title { padding: 0 13px 14px; font-size: 13.5px; line-height: 1.36; color: var(--ink); }

body.portal .tpg-card:hover .tpg-card-title { color: var(--rtv-red-d); }

/* Barra lateral */
body.portal .article-sidebar { position: sticky; top: calc(var(--nav-h) + 18px); gap: 22px; min-width: 0; }

.sb-block {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 17px 19px 7px;
  box-shadow: var(--card-shadow);
}

.sb-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 11px;
  border-bottom: 3px solid var(--rtv-red);
  margin-bottom: 3px;
}

.sb-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
}

.sb-item:last-child { border-bottom: none; }

.sb-thumb {
  width: 78px; height: 56px;
  object-fit: cover;
  border-radius: 6px;
  background: #1a0d04;
  flex-shrink: 0;
}

.sb-body { min-width: 0; }

.sb-cat {
  display: block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rtv-red);
  margin-bottom: 4px;
}

.sb-title {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.36;
  color: var(--ink);
  transition: color 0.18s;
}

.sb-item:hover .sb-title { color: var(--rtv-red); }

/* Ranking "Más leídas" */
.sb-rank {
  display: flex;
  gap: 13px;
  align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
}

.sb-rank:last-child { border-bottom: none; }

.sb-rank-num {
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 700;
  font-style: italic;
  color: var(--rtv-red);
  line-height: 1;
  min-width: 22px;
  text-align: center;
  flex-shrink: 0;
}

.sb-rank .sb-title { font-size: 13px; }

/* Publicidad lateral */
.sb-ad { text-align: center; }
.sb-ad .adb-tag { margin-bottom: 6px; }

.sb-ad video, .sb-ad img {
  display: block;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  height: auto;
  aspect-ratio: 300 / 600;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--rule);
}

body.portal .article-left-ad { padding-top: 30px; }

/* Responsive del artículo */
@media (max-width: 1300px) {
  body.portal .article-outer { padding: 0; }
  body.portal .article-outer .article-wrap { max-width: 1080px; padding: 26px 20px 56px; }
}

@media (max-width: 1020px) {
  body.portal .article-wrap { grid-template-columns: 1fr; gap: 26px; }
  body.portal .article-sidebar { position: static; }
  body.portal .tpg-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 700px) {
  .crumbs { padding: 10px 14px; }
  body.portal .article-outer .article-wrap { padding: 16px 12px 44px; gap: 20px; }
  body.portal .article-wrap article { border-radius: 11px; }
  body.portal .article-h1 { font-size: clamp(21px, 6.4vw, 27px); }
  body.portal .article-body p { font-size: 16px; line-height: 1.8; margin-bottom: 18px; }
  body.portal article > .article-body:first-of-type > p:first-child { font-size: 16.5px; }
  body.portal .article-featured-img { max-height: 70vh; }
  body.portal .article-photo-grid { grid-template-columns: 1fr; }
  body.portal .tpg-grid { grid-template-columns: 1fr 1fr; gap: 11px; }
  .art-share { gap: 7px; }
  .art-share a, .art-share button { width: 36px; height: 36px; }
}

@media (max-width: 430px) {
  body.portal .tpg-grid { grid-template-columns: 1fr; }
  .crumbs .crumb-here { max-width: 24ch; }
}

/* Impresión limpia */
@media print {
  .navbar, .tk, .noticia-back-bar, .art-share, .article-sidebar,
  .article-left-ad, .site-footer, .adb, .live-strip, #readProgress { display: none !important; }
  body.portal, body.portal .article-main { background: #fff; }
  body.portal .article-wrap { grid-template-columns: 1fr; padding: 0; }
  body.portal .article-wrap article { border: none; box-shadow: none; padding: 0; }
}

/* ─── NDD2 CAROUSEL (Noticias destacadas del día) ─────────── */
.ndd2-carousel { padding: 4px 0 22px; }
.ndd2-wrap {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--panel);
  box-shadow: var(--card-shadow);
}
.ndd2-track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.4,0,0.2,1);
}
.ndd2-card {
  min-width: 100%;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  text-decoration: none;
  color: var(--ink);
}
.ndd2-imgwrap { width: 100%; height: 100%; min-height: 320px; overflow: hidden; background: #111; }
.ndd2-imgwrap img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s ease; }
.ndd2-card:hover .ndd2-imgwrap img { transform: scale(1.04); }
.ndd2-body {
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.ndd2-title {
  font-family: var(--serif);
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 700;
  line-height: 1.22;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.ndd2-desc { font-size: 14.5px; line-height: 1.65; color: var(--ink-2); }
.ndd2-arrow {
  position: relative;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: rgba(255,255,255,0.92);
  color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: var(--card-shadow);
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
  z-index: 5;
}
.ndd2-arrow:hover { background: var(--rtv-red); color: #fff; border-color: var(--rtv-red); transform: scale(1.04); }
.ndd2-prev, .ndd2-next { position: relative; left: auto; right: auto; }
.ndd2-dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.ndd2-controls { display: flex; justify-content: center; gap: 12px; margin-top: 12px; }
.ndd2-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--rule); border: none; cursor: pointer;
  transition: background 0.25s, width 0.25s;
}
.ndd2-dot.active { background: var(--rtv-red); width: 24px; border-radius: 5px; }

@media (max-width: 900px) {
  .ndd2-card { grid-template-columns: 1fr; }
  .ndd2-imgwrap { min-height: 220px; }
  .ndd2-body { padding: 22px 22px; gap: 10px; }
  .ndd2-arrow { width: 34px; height: 34px; }
}
@media (max-width: 600px) {
  .ndd2-carousel { padding: 2px 0 16px; }
  .ndd2-imgwrap { min-height: 190px; }
  .ndd2-body { padding: 18px 16px; }
  .ndd2-title { font-size: 18px; }
  .ndd2-desc { font-size: 13.5px; }
  .ndd2-controls { flex-wrap: wrap; gap: 10px; }
  .ndd2-arrow { display: inline-flex; width: 36px; height: 36px; }
}
