/* ==========================================================================
   Novedades Sucumbíos — estilos
   Colores tomados del logo: verde de la N, lima del brillo, dorado del texto
   y el carbón del fondo, teñido de selva.
   ========================================================================== */

:root {
  --carbon: #0E1A12;
  --carbon-2: #15251A;
  --carbon-3: #1D3223;
  --verde-profundo: #0E3B1E;
  --verde: #2F9E44;
  --verde-claro: #4CC14A;
  --lima: #B5E14B;
  --oro: #E9C02A;
  --oro-suave: #F6D75A;
  --hueso: #EEF3E8;
  --niebla: #A9BBA6;
  --rojo-vivo: #E5383B;

  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --lectura: "Source Serif 4", Georgia, serif;

  --ancho: 1240px;
  --margen: clamp(16px, 4vw, 40px);
  --radio-grande: 22px;
  --radio: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--carbon);
  color: var(--hueso);
  font-family: var(--display);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.05; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--oro); outline-offset: 3px; border-radius: 4px; }

.envoltura { max-width: var(--ancho); margin-inline: auto; padding-inline: var(--margen); }

.saltar {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--oro); color: var(--carbon); padding: 10px 16px; border-radius: 8px;
  font-weight: 700; text-decoration: none;
}
.saltar:focus { top: 12px; }

.boton {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 22px; border-radius: 999px;
  font-weight: 750; font-stretch: 90%; text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, background-color .15s ease;
}
.boton--oro { background: var(--oro); color: #142012; }
.boton--oro:hover { background: var(--oro-suave); }
.boton:active { transform: scale(.97); }

.punto {
  width: 9px; height: 9px; border-radius: 50%; background: var(--rojo-vivo);
  display: inline-block; flex: none;
  animation: latido 1.4s ease-in-out infinite;
}
@keyframes latido {
  0%, 100% { box-shadow: 0 0 0 0 rgba(229, 56, 59, .7); }
  50% { box-shadow: 0 0 0 7px rgba(229, 56, 59, 0); }
}

/* ---------- Logo animado ---------------------------------------------- */

.marca { position: relative; display: block; }
.marca img { display: block; width: 100%; height: auto; }
/* destello que recorre solo la forma del logo (la máscara es el mismo logo) */
.marca-brillo {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
  -webkit-mask: url(../assets/logo.webp) center / contain no-repeat;
  mask: url(../assets/logo.webp) center / contain no-repeat;
}
.marca-brillo::before {
  content: ""; position: absolute; top: -10%; bottom: -10%; left: -70%; width: 45%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .8), transparent);
  transform: skewX(-20deg);
}
@keyframes brillo { from { left: -70%; } to { left: 130%; } }

/* Entrada: solo una vez por visita */
.intro {
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-items: center;
  background: radial-gradient(60% 60% at 50% 50%, #183A22 0%, var(--carbon) 70%);
  pointer-events: none;
}
.intro .marca { width: min(72vmin, 560px); }
.intro .marca::after {
  content: ""; position: absolute; inset: 8%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(110, 214, 70, .55), transparent);
  filter: blur(30px); opacity: 0;
}
.intro.activa { animation: intro-salida .7s 2.6s cubic-bezier(.7, 0, .2, 1) forwards; }
.intro.activa .marca img { animation: logo-entra 1.2s .1s cubic-bezier(.2, .9, .25, 1.12) both; }
.intro.activa .marca::after { animation: resplandor 1.4s .5s ease-out forwards; }
.intro.activa .marca-brillo::before { animation: brillo 1s 1.3s ease-in-out both; }
.intro.oculta { display: none; }

@keyframes logo-entra {
  from { opacity: 0; transform: perspective(900px) rotateY(-75deg) scale(.55) translateY(40px); }
  to { opacity: 1; transform: none; }
}
@keyframes resplandor { to { opacity: 1; } }
@keyframes intro-salida { to { opacity: 0; transform: scale(1.06); visibility: hidden; } }

/* En la cabecera, un destello cada pocos segundos y al pasar el cursor */
.marca--cabecera .marca-brillo::before { animation: brillo-pausa 9s 3.5s ease-in-out infinite; }
.logo:hover .marca--cabecera .marca-brillo::before { animation: brillo .8s ease-in-out; }
.logo:hover .marca--cabecera img { transform: rotate(-4deg) scale(1.06); }
.marca--cabecera img { transition: transform .3s cubic-bezier(.2, .9, .25, 1.2); }
@keyframes brillo-pausa { 0% { left: -70%; } 12%, 100% { left: 130%; } }

/* ---------- Última hora ----------------------------------------------- */

.ultima {
  display: flex; align-items: stretch; background: var(--oro); color: #142012;
  font-weight: 650; font-size: .95rem; position: relative; z-index: 5;
}
.ultima-tag {
  display: flex; align-items: center; gap: 8px; padding: 8px 16px;
  background: #142012; color: var(--oro); font-weight: 800; white-space: nowrap;
}
.ultima-cinta { overflow: hidden; flex: 1; display: flex; align-items: center; }
.ultima-pista { display: flex; gap: 48px; white-space: nowrap; padding-left: 24px; animation: cinta var(--duracion, 40s) linear infinite; }
.ultima:hover .ultima-pista { animation-play-state: paused; }
.ultima-pista a { text-decoration: none; }
.ultima-pista a:hover { text-decoration: underline; }
.ultima-pista span { opacity: .55; margin-right: 8px; }
@keyframes cinta { to { transform: translateX(-50%); } }

/* ---------- Cabecera -------------------------------------------------- */

.cabecera {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 20px;
  padding: 10px var(--margen);
  background: rgba(14, 26, 18, .86);
  backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid rgba(181, 225, 75, .12);
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.marca--cabecera { width: 64px; flex: none; margin-block: -6px; }
.logo-texto { font-weight: 900; font-stretch: 75%; font-size: 1.15rem; line-height: .95; letter-spacing: .01em; }

.cantones { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; flex: 1; justify-content: safe center; }
.cantones::-webkit-scrollbar { display: none; }
.cantones a {
  font-weight: 600; font-size: .92rem; color: var(--niebla); text-decoration: none;
  padding: 8px 12px; border-radius: 999px; white-space: nowrap;
  transition: color .15s, background-color .15s;
}
.cantones a:hover { color: var(--hueso); background: var(--carbon-3); }
.cantones a[aria-current="page"] { color: #142012; background: var(--lima); }

.buscador input {
  font: inherit; font-size: .92rem; color: var(--hueso); width: 150px;
  background: var(--carbon-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23A9BBA6' stroke-width='2'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='m11 11 4 4'/%3E%3C/svg%3E") no-repeat 12px 50%;
  border: 1px solid var(--carbon-3); border-radius: 999px; padding: 9px 14px 9px 36px;
  transition: width .25s ease, border-color .15s;
}
.buscador input:focus { width: 210px; border-color: var(--lima); outline: none; }
.buscador--grande { display: flex; gap: 10px; margin-top: 20px; max-width: 640px; }
.buscador--grande input { width: 100%; flex: 1; font-size: 1.05rem; padding-block: 12px; }
.buscador--grande input:focus { width: 100%; }
.oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sin-intro .intro { display: none; }

/* ---------- Portada --------------------------------------------------- */

/* La foto de portada deja el lado izquierdo libre para el titular; el logo queda a la derecha */
.portada { position: relative; isolation: isolate; overflow: hidden; min-height: min(80vh, 760px); display: flex; align-items: flex-end; }
.portada-fondo { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.portada-fondo img { width: 100%; height: 100%; object-fit: cover; object-position: 80% 45%; transform-origin: 75% 50%; animation: acercar 30s ease-in-out infinite alternate; }
.portada-fondo::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(14, 26, 18, .94) 0%, rgba(14, 26, 18, .78) 32%, rgba(14, 26, 18, .2) 52%, rgba(14, 26, 18, 0) 62%),
    linear-gradient(0deg, var(--carbon) 0%, rgba(14, 26, 18, .4) 18%, rgba(14, 26, 18, 0) 40%);
}
@keyframes acercar { from { transform: scale(1); } to { transform: scale(1.07); } }

.portada-contenido {
  width: 100%; max-width: var(--ancho); margin-inline: auto; padding: 80px var(--margen) 48px;
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px 48px; align-items: end;
}
.principal, .vivo { grid-column: 1; }
.vivo { grid-template-columns: minmax(0, 340px) auto; align-items: center; gap: 24px; }
.principal { max-width: 760px; }
.etiqueta { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .9rem; color: var(--lima); }
.etiqueta time { color: var(--niebla); font-weight: 500; }
.etiqueta a { text-decoration: none; }
.principal h1 a { text-decoration: none; }
.principal h1 a:hover { text-decoration: underline; text-decoration-color: var(--oro); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.principal h1 {
  margin: 14px 0 18px;
  font-size: clamp(2.3rem, 5.4vw, 4.8rem); font-weight: 860; font-stretch: 72%;
  line-height: .98; letter-spacing: -.01em; text-wrap: balance;
}
.principal p { font-family: var(--lectura); font-size: 1.18rem; line-height: 1.6; color: #D6E2D1; max-width: 62ch; }
.principal .boton { margin-top: 24px; }

.vivo { display: grid; gap: 14px; }
.vivo-tarjeta {
  display: grid; gap: 8px; padding: 22px; border-radius: var(--radio-grande); text-decoration: none;
  background: rgba(14, 26, 18, .72); border: 1px solid rgba(229, 56, 59, .4); backdrop-filter: blur(10px);
  transition: border-color .2s, transform .2s;
}
.vivo-tarjeta:hover { border-color: var(--rojo-vivo); transform: translateY(-2px); }
.vivo-tag { display: inline-flex; align-items: center; gap: 8px; color: #FF8A8C; font-weight: 800; }
.vivo-tarjeta strong { font-size: 1.35rem; font-stretch: 85%; line-height: 1.1; }
.vivo-tarjeta > span:not(.vivo-tag):not(.vivo-ver) { color: var(--niebla); font-size: .95rem; }
.vivo-ver { color: var(--oro); font-weight: 700; margin-top: 4px; }
.seguidores { padding: 4px 22px; }
.seguidores strong { display: block; font-size: 2.6rem; font-weight: 900; font-stretch: 70%; color: var(--oro); line-height: 1; }
.seguidores span { color: var(--niebla); font-size: .92rem; }

/* ---------- Anuncios -------------------------------------------------- */

.anuncio { position: relative; overflow: hidden; background: var(--verde-profundo); }
.anuncio::before {
  content: "Publicidad"; position: absolute; z-index: 3; top: 0; left: 0;
  font-size: .66rem; font-weight: 700; color: var(--niebla); letter-spacing: .02em;
  background: rgba(14, 26, 18, .82); padding: 2px 9px 3px; border-radius: 0 0 10px 0;
}
.anuncio-item { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility 0s .7s, transform .9s cubic-bezier(.2, .8, .2, 1); transform: scale(1.03); }
.anuncio-item.activo { opacity: 1; visibility: visible; transform: none; transition: opacity .7s ease, visibility 0s, transform .9s cubic-bezier(.2, .8, .2, 1); }
/* Cualquier medida se ve completa: el anuncio se ajusta sin recortarse y el espacio
   sobrante se rellena con la misma imagen difuminada */
.anuncio-item::before {
  content: ""; position: absolute; inset: -40px; z-index: 0;
  background: var(--fondo, none) center / cover no-repeat;
  filter: blur(28px) brightness(.55) saturate(1.3);
}
.anuncio-item > * { position: relative; z-index: 1; }
.anuncio-item > a, .anuncio-item picture { display: block; width: 100%; height: 100%; }
.anuncio-item img, .anuncio-item video, .anuncio-item iframe { display: block; width: 100%; height: 100%; border: 0; }
.anuncio-item img, .anuncio-item video { object-fit: contain; }
.anuncio-puntos { position: absolute; z-index: 3; bottom: 10px; right: 12px; display: flex; gap: 6px; }
.anuncio-puntos button {
  width: 22px; height: 6px; border-radius: 3px; border: 0; padding: 0; cursor: pointer;
  background: rgba(238, 243, 232, .35);
}
.anuncio-puntos button[aria-current="true"] { background: var(--oro); }
.anuncio-sonido {
  position: absolute; z-index: 3; bottom: 10px; left: 12px; cursor: pointer;
  font: inherit; font-size: .8rem; font-weight: 700; color: var(--hueso);
  background: rgba(14, 26, 18, .75); border: 1px solid rgba(238, 243, 232, .25);
  padding: 6px 12px; border-radius: 999px;
}
.anuncio-html { width: 100%; height: 100%; }

/* Aviso por defecto cuando un espacio está vacío y anuncios en HTML */
.ad-casa {
  width: 100%; height: 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 24px;
  padding: 28px; text-align: center;
  background: linear-gradient(120deg, var(--verde-profundo), #1F6E33);
}
.ad-casa strong { font-size: clamp(1.2rem, 2.4vw, 1.7rem); font-stretch: 80%; font-weight: 850; width: 100%; }
.ad-casa span { color: #CFE6C0; }
.ad-casa a { background: var(--oro); color: #142012; font-weight: 800; padding: 10px 20px; border-radius: 999px; text-decoration: none; }

/* Medidas fijas por espacio (las mismas que recomienda el panel) */
.anuncio--cabecera { aspect-ratio: 3 / 1; border-radius: var(--radio-grande); margin: 8px 0 56px; box-shadow: 0 0 0 1px rgba(233, 192, 42, .35), 0 24px 60px -24px rgba(47, 158, 68, .55); }
.anuncio--lateral { aspect-ratio: 1 / 2; border-radius: var(--radio-grande); box-shadow: 0 0 0 1px rgba(233, 192, 42, .3); }
.anuncio--entre { aspect-ratio: 3 / 1; border-radius: var(--radio); margin: 4px 0 40px 36px; }
.articulo-cuerpo .anuncio--entre { margin: 32px 0; }
.franja { margin: 72px auto; max-width: 1600px; padding-inline: var(--margen); }
.anuncio--franja { aspect-ratio: 16 / 9; max-height: 80vh; width: 100%; border-radius: var(--radio-grande); }

.flotante {
  position: fixed; right: 16px; bottom: 16px; z-index: 40;
  width: min(360px, calc(100vw - 32px));
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .7), 0 0 0 1px rgba(233, 192, 42, .5);
  transform: translateY(130%); transition: transform .6s cubic-bezier(.2, .9, .25, 1.1);
}
.flotante.visible { transform: none; }
.anuncio--flotante { aspect-ratio: 16 / 9; }
.flotante-cerrar {
  position: absolute; z-index: 5; top: 8px; right: 8px; width: 32px; height: 32px; border-radius: 50%;
  border: 0; background: rgba(14, 26, 18, .85); color: var(--hueso); font-size: 1.3rem; line-height: 1; cursor: pointer;
}

/* ---------- Noticias -------------------------------------------------- */

.columnas { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; }
.lista-cabeza { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.lista-cabeza h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 880; font-stretch: 70%; }
.lista-filtro { color: var(--lima); font-weight: 600; }

/* Línea de tiempo: las noticias van en orden, de la más nueva a la más antigua */
.noticias { position: relative; }
.noticias::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--verde), rgba(47, 158, 68, .1)); }
.nota { position: relative; padding: 0 0 34px 36px; }
.nota::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--carbon); border: 3px solid var(--verde);
}
.nota--urgente::before { border-color: var(--oro); background: var(--oro); }
.nota-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: .88rem; margin-bottom: 6px; }
.nota-canton { color: var(--lima); font-weight: 700; }
.nota-meta time { color: var(--niebla); }
.nota-video { display: inline-flex; align-items: center; gap: 6px; color: #FF8A8C; font-weight: 700; }
.nota-video::before { content: ""; border-left: 8px solid currentColor; border-block: 5px solid transparent; }
.nota h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 780; font-stretch: 85%; line-height: 1.12; text-wrap: balance; }
.nota h3 a { text-decoration: none; background: linear-gradient(var(--oro), var(--oro)) 0 100% / 0 2px no-repeat; transition: background-size .3s ease; }
.nota h3 a:hover { background-size: 100% 2px; }
.nota p { font-family: var(--lectura); color: #C9D6C4; line-height: 1.62; margin-top: 8px; max-width: 64ch; }
.nota--foto { display: grid; grid-template-columns: minmax(0, 1fr) 168px; gap: 20px; align-items: start; }
.nota-foto { display: block; border-radius: var(--radio); overflow: hidden; aspect-ratio: 4 / 3; margin-top: 4px; }
.nota-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.nota-foto:hover img { transform: scale(1.05); }
.nota-meta a { text-decoration: none; }
.vacio { padding: 24px 0 24px 36px; color: var(--niebla); }
.vacio a { color: var(--lima); }

.paginacion { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 8px 0 0 36px; color: var(--niebla); font-size: .92rem; }
.paginacion a { color: var(--hueso); font-weight: 700; text-decoration: none; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--carbon-3); }
.paginacion a:hover { border-color: var(--lima); color: var(--lima); }

.lateral-fijo { position: sticky; top: 96px; display: grid; gap: 28px; }

/* Tarjeta propia de Facebook (en lugar del recuadro de Facebook, que no se puede adaptar) */
.fb-tarjeta {
  position: relative; display: grid; justify-items: start; gap: 10px; padding: 0 22px 22px;
  background: var(--carbon-2); border: 1px solid var(--carbon-3); border-radius: var(--radio-grande); overflow: hidden;
}
.fb-portada { margin: 0 -22px; width: calc(100% + 44px); aspect-ratio: 16 / 7; overflow: hidden; }
.fb-portada img { width: 100%; height: 100%; object-fit: cover; object-position: 75% 50%; }
.fb-logo { width: 72px; height: 72px; margin-top: -40px; border-radius: 50%; background: var(--carbon); padding: 4px; border: 2px solid var(--carbon-3); }
.fb-tarjeta h2 { font-size: 1.3rem; font-weight: 850; font-stretch: 80%; }
.fb-tarjeta p { color: var(--niebla); font-size: .95rem; }
.fb-tarjeta p strong { color: var(--oro); }
.boton--fb { background: #1877F2; color: #fff; }
.boton--fb:hover { background: #3A8DF5; }
.fb-tarjeta .boton { width: 100%; margin-top: 4px; }
.fb-vivo { display: inline-flex; align-items: center; gap: 8px; color: #FF8A8C; font-weight: 700; font-size: .92rem; text-decoration: none; }
.fb-vivo:hover { text-decoration: underline; }

.mas-leidas h2 { font-size: 1.3rem; font-weight: 850; font-stretch: 80%; margin-bottom: 12px; }
.mas-leidas ol { margin: 0; padding: 0; list-style: none; counter-reset: leidas; display: grid; gap: 14px; }
.mas-leidas li { counter-increment: leidas; display: grid; grid-template-columns: 32px 1fr; gap: 8px; font-weight: 650; line-height: 1.25; }
.mas-leidas li::before { content: counter(leidas); font-size: 1.6rem; font-weight: 900; font-stretch: 70%; color: var(--oro); line-height: 1; }
.mas-leidas a { text-decoration: none; }
.mas-leidas a:hover { color: var(--lima); }

/* ---------- Secciones y detalle de noticia ------------------------------ */

.cabeza-seccion { padding-top: 40px; }
.titulo-seccion { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 880; font-stretch: 70%; margin: 10px 0 28px; }
.titulo-seccion small { font-size: .45em; color: var(--niebla); font-weight: 600; }
h1.envoltura.titulo-seccion { padding-top: 40px; }
.migas { display: flex; flex-wrap: wrap; gap: 8px; font-size: .9rem; color: var(--niebla); }
.migas a { color: var(--lima); text-decoration: none; font-weight: 600; }
.migas a:hover { text-decoration: underline; }
.aviso-borrador { margin-top: 20px; padding: 12px 16px; border-radius: var(--radio); background: rgba(233, 192, 42, .15); color: var(--oro-suave); font-weight: 600; }

.articulo-cabeza { padding-top: 36px; max-width: 980px; margin-left: max(0px, calc((100% - var(--ancho)) / 2)); }
.articulo-cabeza h1 {
  margin: 14px 0 16px; font-size: clamp(2.1rem, 4.8vw, 4rem); font-weight: 860; font-stretch: 72%;
  line-height: 1.02; letter-spacing: -.01em; text-wrap: balance;
}
.articulo-resumen { font-family: var(--lectura); font-size: clamp(1.15rem, 1.8vw, 1.35rem); line-height: 1.55; color: #D6E2D1; max-width: 62ch; }
.articulo-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin-top: 18px; color: var(--niebla); font-size: .92rem; }
.sello-urgente { display: inline-flex; align-items: center; gap: 8px; color: var(--oro); font-weight: 800; }
.compartir { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.compartir a, .compartir button {
  font: inherit; font-size: .88rem; font-weight: 700; text-decoration: none; cursor: pointer;
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--carbon-3); background: var(--carbon-2); color: var(--hueso);
  transition: border-color .15s, background-color .15s;
}
.compartir-wa:hover { border-color: #25D366; }
.compartir-fb:hover { border-color: #1877F2; }
.compartir-tg:hover { border-color: #3BB0E6; }
.compartir-copiar:hover { border-color: var(--lima); }

.articulo-medio { margin-top: 28px; margin-bottom: 40px; }
.medio { margin: 0; }
.medio img { width: 100%; max-height: 78vh; object-fit: cover; border-radius: var(--radio-grande); }
.medio figcaption { margin-top: 10px; color: var(--niebla); font-size: .9rem; }
.medio--video { aspect-ratio: 16 / 9; border-radius: var(--radio-grande); overflow: hidden; background: #000; }
.medio--video iframe, .medio--video video { width: 100%; height: 100%; border: 0; }
.medio--secundario { margin-top: 32px; }

.articulo-cuerpo { font-family: var(--lectura); font-size: 1.16rem; line-height: 1.75; color: #DCE6D7; max-width: 70ch; }
.articulo-cuerpo > p { margin: 0 0 1.2em; }
.articulo-cuerpo > p:first-of-type::first-letter { float: left; font-family: var(--display); font-weight: 900; font-size: 3.6em; line-height: .85; margin: .08em .1em 0 0; color: var(--lima); }
.articulo-cuerpo h2 { font-family: var(--display); font-size: 1.7rem; font-weight: 850; font-stretch: 80%; color: var(--hueso); margin: 1.6em 0 .6em; }
.articulo-cuerpo blockquote { margin: 1.4em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--oro); font-size: 1.25rem; font-style: italic; color: var(--hueso); }
.articulo-cuerpo a { color: var(--lima); }
.articulo-fb { margin-top: 28px; }

.galeria { margin-top: 40px; }
.galeria h2 { margin-top: 0; }
.galeria-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.galeria-grid a { display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; }
.galeria-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.galeria-grid a:hover img { transform: scale(1.06); }

.visor { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; background: rgba(5, 10, 7, .94); padding: 56px 64px; }
.visor[hidden] { display: none; }
.visor img { max-width: 100%; max-height: 82vh; border-radius: 10px; }
.visor button { position: absolute; border: 0; background: rgba(238, 243, 232, .12); color: var(--hueso); border-radius: 50%; width: 48px; height: 48px; font-size: 1.8rem; cursor: pointer; }
.visor button:hover { background: rgba(238, 243, 232, .25); }
.visor-cerrar { top: 16px; right: 16px; }
.visor-ant { left: 12px; top: 50%; transform: translateY(-50%); }
.visor-sig { right: 12px; top: 50%; transform: translateY(-50%); }
.visor-cuenta { position: absolute; bottom: 18px; color: var(--niebla); font-size: .9rem; }

.relacionadas { padding-block: 16px 64px; }
.relacionadas h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 860; font-stretch: 75%; margin-bottom: 24px; }
.relacionadas-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
.relacionadas-grid a { text-decoration: none; display: grid; gap: 8px; }
.rel-foto { aspect-ratio: 16 / 10; border-radius: var(--radio); overflow: hidden; background: linear-gradient(135deg, var(--verde-profundo), var(--carbon-3)); display: grid; place-items: center; }
.rel-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.rel-foto span { font-weight: 900; font-stretch: 70%; font-size: 1.6rem; color: rgba(181, 225, 75, .5); }
.relacionadas-grid a:hover img { transform: scale(1.05); }
.relacionadas-grid h3 { font-size: 1.2rem; font-weight: 780; font-stretch: 85%; line-height: 1.15; }
.relacionadas-grid a:hover h3 { color: var(--lima); }

.no-encontrada { padding-block: 72px 40px; }
.no-encontrada h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 880; font-stretch: 72%; max-width: 22ch; margin-bottom: 14px; }
.no-encontrada p { color: var(--niebla); margin-bottom: 24px; }

.pie-enlaces { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.pie-enlaces a { color: var(--niebla); }
.pie-enlaces a:hover { color: var(--lima); }

/* ---------- Comunidad ------------------------------------------------- */

.comunidad { padding-block: 24px 80px; }
.comunidad h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 860; font-stretch: 75%; margin-bottom: 28px; max-width: 20ch; }
.redes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.red {
  display: grid; gap: 4px; padding: 26px 24px; text-decoration: none; border-radius: var(--radio-grande);
  background: var(--carbon-2); border: 1px solid var(--carbon-3); transition: border-color .2s, background-color .2s;
}
.red strong { font-size: 1.5rem; font-stretch: 85%; }
.red span { color: var(--niebla); }
.red--fb:hover { border-color: #4A86F5; }
.red--tg:hover { border-color: #3BB0E6; }
.red--tt:hover { border-color: #F2F2F2; }
.red:hover { background: var(--carbon-3); }

/* ---------- Anúnciate ------------------------------------------------- */

.anunciate { background: var(--verde-profundo); padding: 88px 0; position: relative; overflow: hidden; }
.anunciate::before {
  content: ""; position: absolute; inset: auto -10% -40% -10%; height: 70%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(181, 225, 75, .18), transparent 70%);
}
.anunciate-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.anunciate h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); font-weight: 880; font-stretch: 70%; margin-bottom: 18px; text-wrap: balance; }
.anunciate p { font-family: var(--lectura); font-size: 1.15rem; line-height: 1.6; color: #D6E7CC; max-width: 52ch; }
.anunciate-acciones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.boton--linea { border: 2px solid var(--lima); color: var(--lima); }
.boton--linea:hover { background: var(--lima); color: #142012; }

.mapa-anuncios { margin: 0; }
.ma-pagina {
  position: relative; display: grid; gap: 8px; padding: 14px; border-radius: 18px;
  background: var(--carbon); border: 1px solid rgba(181, 225, 75, .2); font-size: .78rem; font-weight: 700;
}
.ma-portada { height: 64px; border-radius: 8px; background: var(--carbon-3); color: var(--niebla); padding: 8px 10px; }
.ma { border-radius: 8px; background: var(--oro); color: #142012; padding: 8px 10px; display: flex; align-items: center; }
.ma--cabecera { height: 40px; }
.ma-cuerpo { display: grid; grid-template-columns: 1fr 34%; gap: 8px; }
.ma-noticias { display: grid; gap: 8px; }
.ma-noticias i { height: 18px; border-radius: 6px; background: var(--carbon-3); }
.ma--entre { height: 30px; }
.ma--lateral { align-items: flex-start; }
.ma--franja { height: 56px; }
.ma--flotante { position: absolute; right: -14px; bottom: -14px; height: 44px; width: 36%; box-shadow: 0 10px 24px rgba(0, 0, 0, .5); }
.mapa-anuncios figcaption { margin-top: 26px; color: #CFE6C0; }
.ma { animation: resalta 6s ease-in-out infinite; }
.ma--entre { animation-delay: 1.2s; } .ma--lateral { animation-delay: 2.4s; } .ma--franja { animation-delay: 3.6s; } .ma--flotante { animation-delay: 4.8s; }
@keyframes resalta { 0%, 14%, 100% { box-shadow: 0 0 0 0 rgba(233, 192, 42, 0); } 7% { box-shadow: 0 0 0 5px rgba(233, 192, 42, .45); } }

/* ---------- Pie ------------------------------------------------------- */

.pie { padding: 40px 0 120px; border-top: 1px solid var(--carbon-3); color: var(--niebla); }
.pie-grid { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 40px; }
.logo--pie { color: var(--hueso); }

/* ---------- Responsive ------------------------------------------------ */

@media (max-width: 1080px) {
  .cantones { justify-content: flex-start; }
  .buscador input { width: 120px; }
  .buscador input:focus { width: 160px; }
}
@media (max-width: 960px) {
  .portada { flex-direction: column; align-items: stretch; min-height: 0; }
  .portada-fondo { position: relative; inset: auto; height: min(58vw, 460px); }
  .portada-fondo::after { background: linear-gradient(0deg, var(--carbon) 0%, rgba(14, 26, 18, 0) 40%); }
  .portada-contenido { grid-template-columns: 1fr; gap: 24px; padding-top: 0; margin-top: -48px; }
  .vivo { grid-template-columns: 1fr auto; }
  .columnas { grid-template-columns: 1fr; }
  .lateral-fijo { position: static; grid-template-columns: 300px 1fr; align-items: start; }
  .anunciate-grid { grid-template-columns: 1fr; }
  .relacionadas-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .articulo-cabeza { margin-left: 0; }
}
@media (max-width: 640px) {
  .cabecera { flex-wrap: wrap; gap: 6px 12px; padding-block: 8px 4px; }
  .cantones { order: 3; flex-basis: 100%; margin-inline: calc(var(--margen) * -1); padding-inline: var(--margen); padding-bottom: 6px; }
  .marca--cabecera { width: 50px; }
  .portada-contenido { margin-top: -28px; }
  .principal p { font-size: 1.05rem; }
  .vivo { grid-template-columns: 1fr; }
  .seguidores { padding: 0 4px; }
  .anuncio--cabecera { margin-bottom: 36px; border-radius: var(--radio); }
  .anuncio--entre { margin-left: 0; }
  .franja { margin: 48px 0; }
  .anuncio--franja { border-radius: var(--radio); }
  .flotante { width: min(250px, 66vw); right: 10px; bottom: 10px; border-radius: 12px; }
  .flotante-cerrar { width: 28px; height: 28px; top: 4px; right: 4px; font-size: 1.1rem; }
  .anuncio--flotante .anuncio-sonido { padding: 4px 9px; font-size: .72rem; bottom: 6px; left: 6px; }
  .buscador { order: 2; margin-left: auto; }
  .buscador input { width: 44px; padding-right: 0; color: transparent; cursor: pointer; }
  .buscador input:focus { width: calc(100vw - 150px); color: var(--hueso); padding-right: 14px; cursor: text; }
  .nota--foto { grid-template-columns: minmax(0, 1fr) 92px; gap: 12px; }
  .paginacion { margin-left: 0; }
  .relacionadas-grid { grid-template-columns: 1fr; }
  .articulo-cuerpo { font-size: 1.08rem; }
  .compartir a, .compartir button { flex: 1 1 auto; text-align: center; }
  .visor { padding: 56px 8px; }
  .lateral-fijo { grid-template-columns: 1fr; }
  .anuncio--lateral { aspect-ratio: 4 / 5; }
  .redes { grid-template-columns: 1fr; }
  .noticias::before { left: 5px; }
  .nota { padding-left: 28px; }
  .nota::before { width: 12px; height: 12px; border-width: 2px; }
  .ultima { font-size: .88rem; }
  .ultima-tag { padding-inline: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .ultima-pista { animation: none; }
  .ultima-cinta { overflow-x: auto; scrollbar-width: none; }
}

/* ---------- En vivo ---------------------------------------------------- */

.barra-vivo {
  display: flex; align-items: center; gap: 14px; padding: 9px var(--margen);
  background: var(--rojo-vivo); color: #fff; text-decoration: none; font-weight: 700; position: relative; z-index: 6;
}
.barra-vivo .punto { background: #fff; }
.barra-vivo-titulo { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.barra-vivo-ver { white-space: nowrap; background: rgba(0, 0, 0, .25); padding: 4px 12px; border-radius: 999px; font-size: .9rem; }
.barra-vivo:hover .barra-vivo-ver { background: rgba(0, 0, 0, .4); }
.vivo-sello { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; white-space: nowrap; }
.barra-vivo .vivo-sello { text-transform: none; }
.vivo-sello--grande { color: #FF8A8C; font-size: 1.05rem; margin-top: 10px; }

.cantones .nav-vivo { color: #FF8A8C; display: inline-flex; align-items: center; gap: 7px; }
.cantones .nav-vivo--activo { background: rgba(229, 56, 59, .16); color: #FFB3B4; }
.cantones .nav-vivo[aria-current="page"] { background: var(--rojo-vivo); color: #fff; }
.cantones .nav-vivo .punto { width: 8px; height: 8px; }

.vivo-portada { padding: 28px 0 8px; background: radial-gradient(70% 120% at 30% 0%, rgba(229, 56, 59, .16), transparent 70%); }
.vivo-portada-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.vivo-reproductor { aspect-ratio: 16 / 9; border-radius: var(--radio-grande); overflow: hidden; background: #000; box-shadow: 0 0 0 2px var(--rojo-vivo), 0 30px 70px -30px rgba(229, 56, 59, .6); }
.vivo-reproductor iframe, .vivo-reproductor video { width: 100%; height: 100%; border: 0; }
.vivo-info .vivo-sello { color: #FF8A8C; }
.vivo-info h2 { font-size: clamp(1.8rem, 3.6vw, 3rem); font-weight: 860; font-stretch: 72%; line-height: 1.02; margin: 12px 0; text-wrap: balance; }
.vivo-info p { font-family: var(--lectura); color: #D6E2D1; }
.vivo-desde { color: var(--niebla) !important; font-family: var(--display) !important; font-size: .92rem; margin-top: 8px; }
.vivo-desde a { color: var(--lima); }
.vivo-acciones { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.vivo-tarjeta--activa { border-color: var(--rojo-vivo); background: rgba(60, 14, 16, .75); }

.vivo-grande { box-shadow: 0 0 0 2px var(--rojo-vivo); }
.vivo-descripcion { font-family: var(--lectura); font-size: 1.12rem; color: #D6E2D1; margin-top: 18px; max-width: 70ch; }
.pagina-vivo .columnas { margin-bottom: 48px; }
.vivo-vacio { padding-bottom: 48px; }
.vivo-vacio p { font-family: var(--lectura); font-size: 1.2rem; color: #D6E2D1; max-width: 60ch; }
.vivo-lista, .vivo-anteriores { padding-bottom: 48px; }
.vivo-lista h2, .vivo-anteriores h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 860; font-stretch: 75%; margin-bottom: 20px; }
.vivo-lista ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.vivo-lista li span { color: var(--niebla); margin-left: 8px; }
.vivo-anteriores-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 20px; }
.vivo-anteriores-grid h3 { font-size: 1.15rem; font-weight: 780; font-stretch: 85%; margin-top: 12px; }
.vivo-anteriores-grid .medio--video { border-radius: var(--radio); }

@media (max-width: 960px) {
  .vivo-portada-grid { grid-template-columns: 1fr; gap: 20px; }
  .vivo-anteriores-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .barra-vivo { gap: 10px; font-size: .9rem; }
  .barra-vivo-ver { display: none; }
  .vivo-anteriores-grid { grid-template-columns: 1fr; }
  .vivo-acciones .boton { flex: 1 1 auto; }
}
