/* =========================================================================
   CHICLAYO HONESTO — Hoja de estilos principal
   -------------------------------------------------------------------------
   Estructura:
   01. Variables (paleta extraída del logo)
   02. Base y tipografía
   03. Utilidades y accesibilidad
   04. Topbar + Header + Navbar
   05. Ticker "Última hora"
   06. Componentes de noticias (cards, badges, hero)
   07. Secciones de portada (categorías, más leídas, tendencias)
   08. Widget de denuncia ciudadana
   09. Página Noticias (filtros, paginación)
   10. Página Detalle (lectura, compartir, galería, comentarios)
   11. Página Nosotros
   12. Footer
   13. Responsive y movimiento reducido
   ========================================================================= */

/* ---------- 01. VARIABLES ---------- */
:root {
  /* Colores oficiales (logo) */
  --ch-red: #c80000;
  --ch-red-dark: #9a0000;
  --ch-red-soft: #fde8e8;
  --ch-blue: #064895;
  --ch-blue-dark: #04326b;
  --ch-blue-deep: #021f44;
  --ch-blue-soft: #e7eef8;

  /* Neutros */
  --ch-ink: #14171c;        /* texto principal (contraste AAA sobre blanco) */
  --ch-text: #2c323a;
  --ch-muted: #5d6673;      /* texto secundario (AA) */
  --ch-line: #e3e7ed;
  --ch-bg: #ffffff;
  --ch-bg-alt: #f4f6f9;

  /* Colores por categoría */
  --cat-local: var(--ch-blue);
  --cat-region: #0b7a5c;
  --cat-denuncia: var(--ch-red);
  --cat-opinion: #6b3fa0;
  --cat-politica: #1c2b46;
  --cat-cultura: #b85c00;

  /* Tipografía */
  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Archivo", "Inter", system-ui, sans-serif;
  --font-read: "Source Serif 4", Georgia, "Times New Roman", serif;

  /* Forma y sombra */
  --radius: 10px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 2px rgba(10, 25, 50, .06), 0 1px 3px rgba(10, 25, 50, .08);
  --shadow-md: 0 6px 20px rgba(10, 25, 50, .10);
  --transition: .2s ease;

  /* Ajustes de Bootstrap con la paleta de la marca */
  --bs-primary: var(--ch-blue);
  --bs-primary-rgb: 6, 72, 149;
  --bs-danger: var(--ch-red);
  --bs-danger-rgb: 200, 0, 0;
  --bs-link-color: var(--ch-blue);
  --bs-link-color-rgb: 6, 72, 149;
  --bs-link-hover-color: var(--ch-red);
  --bs-link-hover-color-rgb: 200, 0, 0;
  --bs-body-font-family: var(--font-ui);
  --bs-body-color: var(--ch-text);
}

/* ---------- 02. BASE ---------- */
body {
  font-family: var(--font-ui);
  color: var(--ch-text);
  background: var(--ch-bg);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.font-head {
  font-family: var(--font-head);
  color: var(--ch-ink);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

a { text-decoration: none; transition: color var(--transition); }
img { max-width: 100%; height: auto; }

/* Botones con la paleta de marca */
.btn { font-weight: 600; border-radius: var(--radius-sm); }
.btn-primary {
  --bs-btn-bg: var(--ch-blue); --bs-btn-border-color: var(--ch-blue);
  --bs-btn-hover-bg: var(--ch-blue-dark); --bs-btn-hover-border-color: var(--ch-blue-dark);
  --bs-btn-active-bg: var(--ch-blue-deep); --bs-btn-active-border-color: var(--ch-blue-deep);
}
.btn-danger, .btn-ch-red {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--ch-red); --bs-btn-border-color: var(--ch-red);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--ch-red-dark); --bs-btn-hover-border-color: var(--ch-red-dark);
  --bs-btn-active-bg: var(--ch-red-dark); --bs-btn-active-border-color: var(--ch-red-dark);
  --bs-btn-active-color: #fff;
}
.btn-outline-primary {
  --bs-btn-color: var(--ch-blue); --bs-btn-border-color: var(--ch-blue);
  --bs-btn-hover-bg: var(--ch-blue); --bs-btn-hover-border-color: var(--ch-blue);
  --bs-btn-active-bg: var(--ch-blue-dark);
}
.form-control:focus, .form-select:focus, .form-check-input:focus {
  border-color: var(--ch-blue);
  box-shadow: 0 0 0 .2rem rgba(6, 72, 149, .2);
}
.form-check-input:checked { background-color: var(--ch-blue); border-color: var(--ch-blue); }

/* ---------- 03. UTILIDADES Y ACCESIBILIDAD ---------- */
.skip-link {
  position: absolute; left: 1rem; top: -60px; z-index: 2000;
  background: var(--ch-red); color: #fff; padding: .6rem 1rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm); font-weight: 700;
}
.skip-link:focus { top: 0; color: #fff; }

:focus-visible { outline: 3px solid var(--ch-red); outline-offset: 2px; }

.text-ch-red { color: var(--ch-red) !important; }
.text-ch-blue { color: var(--ch-blue) !important; }
.bg-ch-blue { background: var(--ch-blue) !important; }
.bg-ch-red { background: var(--ch-red) !important; }
.bg-alt { background: var(--ch-bg-alt); }
.text-muted-ch { color: var(--ch-muted) !important; }

/* Título de sección con doble barra de marca */
.section-title {
  display: flex; align-items: center; gap: .75rem;
  font-size: 1.35rem; text-transform: uppercase; letter-spacing: .02em;
  margin-bottom: 1.25rem; padding-bottom: .6rem;
  border-bottom: 2px solid var(--ch-line); position: relative;
}
.section-title::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 64px; height: 4px;
  background: linear-gradient(90deg, var(--ch-red) 0 50%, var(--ch-blue) 50% 100%);
}
.section-title .see-all {
  margin-left: auto; font-family: var(--font-ui); font-size: .8rem;
  font-weight: 700; text-transform: none; letter-spacing: 0;
}

/* ---------- 04. TOPBAR + HEADER + NAVBAR ---------- */
.topbar {
  background: var(--ch-blue-deep); color: #c9d6ea; font-size: .82rem;
}
.topbar a { color: #c9d6ea; }
.topbar a:hover { color: #fff; }
.topbar .social a {
  display: inline-grid; place-items: center; width: 28px; height: 28px;
  border-radius: 50%;
}
.topbar .social a:hover { background: rgba(255,255,255,.12); }
.topbar .date-now { text-transform: capitalize; }

.site-header { background: #fff; border-bottom: 1px solid var(--ch-line); }
.brand { display: flex; align-items: center; gap: .85rem; color: var(--ch-ink); }
.brand:hover { color: var(--ch-ink); }
.brand img { width: 64px; height: 64px; object-fit: contain; }
.brand-name {
  font-family: var(--font-head); font-weight: 900; font-style: italic;
  font-size: 1.9rem; line-height: 1; letter-spacing: -.02em; text-transform: uppercase;
}
.brand-name .c { color: var(--ch-red); }
.brand-name .h { color: var(--ch-blue); }
.brand-tag {
  font-size: .78rem; color: var(--ch-muted); font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; margin-top: .25rem;
}

.header-search { max-width: 380px; }
.header-search .form-control { border-radius: 999px 0 0 999px; padding-left: 1.1rem; }
.header-search .btn { border-radius: 0 999px 999px 0; }

.main-nav { background: var(--ch-blue); position: sticky; top: 0; z-index: 1030; box-shadow: var(--shadow-sm); }
.main-nav .navbar-nav .nav-link {
  color: #fff; font-weight: 700; font-size: .9rem; text-transform: uppercase;
  letter-spacing: .03em; padding: .95rem 1rem; position: relative;
}
.main-nav .navbar-nav .nav-link::after {
  content: ""; position: absolute; left: 1rem; right: 1rem; bottom: 0; height: 4px;
  background: var(--ch-red); transform: scaleX(0); transition: transform var(--transition);
}
.main-nav .navbar-nav .nav-link:hover::after,
.main-nav .navbar-nav .nav-link.active::after { transform: scaleX(1); }
.main-nav .navbar-nav .nav-link.active { color: #fff; }
.main-nav .dropdown-menu { border: 0; border-top: 4px solid var(--ch-red); border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow-md); }
.main-nav .dropdown-item { font-weight: 600; padding: .55rem 1.1rem; }
.main-nav .dropdown-item:hover { background: var(--ch-blue-soft); color: var(--ch-blue); }
.main-nav .navbar-toggler { border-color: rgba(255,255,255,.4); }
.main-nav .navbar-toggler-icon { filter: invert(1); }
.nav-brand-mini { display: none; }
.nav-brand-mini img { width: 34px; height: 34px; background: #fff; border-radius: 6px; padding: 2px; }
.main-nav.is-stuck .nav-brand-mini { display: inline-flex; }

.btn-live {
  background: var(--ch-red); color: #fff; font-size: .8rem; font-weight: 800;
  text-transform: uppercase; border-radius: 999px; padding: .4rem .9rem;
}
.btn-live:hover { background: #fff; color: var(--ch-red); }

/* ---------- 05. TICKER ÚLTIMA HORA ---------- */
.ticker {
  display: flex; align-items: stretch; background: #fff;
  border-bottom: 1px solid var(--ch-line); overflow: hidden; font-size: .9rem;
}
.ticker-label {
  flex: 0 0 auto; display: flex; align-items: center; gap: .5rem;
  background: var(--ch-red); color: #fff; font-weight: 800; text-transform: uppercase;
  padding: .55rem 1rem; letter-spacing: .04em; position: relative; z-index: 1;
}
.ticker-label::after {
  content: ""; position: absolute; right: -14px; top: 0; bottom: 0; width: 14px;
  background: var(--ch-red); clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.pulse-dot {
  width: 9px; height: 9px; border-radius: 50%; background: #fff;
  animation: pulse 1.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,255,255,.8); }
  70% { box-shadow: 0 0 0 8px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}
.ticker-viewport { flex: 1; overflow: hidden; display: flex; align-items: center; padding-left: 1.5rem; }
.ticker-track {
  display: flex; gap: 2.5rem; white-space: nowrap; list-style: none; margin: 0; padding: 0;
  animation: ticker-scroll var(--ticker-duration, 45s) linear infinite;
}
.ticker:hover .ticker-track,
.ticker.is-paused .ticker-track { animation-play-state: paused; }
.ticker-track li a { color: var(--ch-ink); font-weight: 600; }
.ticker-track li a:hover { color: var(--ch-red); }
.ticker-track li time { color: var(--ch-red); font-weight: 800; margin-right: .4rem; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker-toggle {
  flex: 0 0 auto; border: 0; background: var(--ch-bg-alt); color: var(--ch-muted);
  padding: 0 .9rem; border-left: 1px solid var(--ch-line);
}
.ticker-toggle:hover { color: var(--ch-blue); }

/* ---------- 06. COMPONENTES DE NOTICIAS ---------- */
.badge-cat {
  display: inline-block; font-size: .7rem; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: #fff; padding: .3em .65em; border-radius: 4px;
  background: var(--ch-blue);
}
.badge-cat:hover { color: #fff; filter: brightness(1.1); }
.cat-local { background: var(--cat-local); }
.cat-region { background: var(--cat-region); }
.cat-denuncia { background: var(--cat-denuncia); }
.cat-opinion { background: var(--cat-opinion); }
.cat-politica { background: var(--cat-politica); }
.cat-cultura { background: var(--cat-cultura); }

.news-meta { font-size: .8rem; color: var(--ch-muted); display: flex; flex-wrap: wrap; gap: .25rem .9rem; }
.news-meta i { margin-right: .25rem; }

/* Card estándar */
.news-card {
  background: #fff; border-radius: var(--radius); overflow: hidden; height: 100%;
  border: 1px solid var(--ch-line); display: flex; flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
}
.news-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.news-card .thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ch-blue-soft); }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.news-card:hover .thumb img { transform: scale(1.04); }
.news-card .thumb .badge-cat { position: absolute; left: .75rem; top: .75rem; }
.news-card .body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.news-card h3 { font-size: 1.08rem; margin: 0; }
.news-card h3 a { color: var(--ch-ink); }
.news-card h3 a:hover { color: var(--ch-blue); }
/* Enlace extendido: toda la card es clicable sin anidar enlaces */
.news-card h3 a::after { content: ""; position: absolute; inset: 0; }
.news-card { position: relative; }
.news-card .thumb .badge-cat { z-index: 2; }
.news-card p { font-size: .92rem; color: var(--ch-muted); margin: 0; }
.news-card .news-meta { margin-top: auto; }

/* Card horizontal compacta */
.news-row { display: flex; gap: .9rem; position: relative; padding: .85rem 0; border-bottom: 1px solid var(--ch-line); }
.news-row:last-child { border-bottom: 0; }
.news-row img { width: 108px; height: 76px; object-fit: cover; border-radius: var(--radius-sm); flex: 0 0 auto; }
.news-row h4 { font-size: .95rem; margin: 0 0 .3rem; font-family: var(--font-head); font-weight: 700; }
.news-row h4 a { color: var(--ch-ink); }
.news-row h4 a::after { content: ""; position: absolute; inset: 0; }
.news-row:hover h4 a { color: var(--ch-blue); }

/* Hero principal */
.hero { padding: 1.75rem 0 1rem; }
.hero-main {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 460px;
  display: flex; align-items: flex-end; color: #fff; background: var(--ch-blue-deep);
}
.hero-main > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-main::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(2,31,68,0) 25%, rgba(2,31,68,.75) 60%, rgba(2,31,68,.95) 100%);
}
.hero-main .hero-content { position: relative; z-index: 2; padding: 2rem; max-width: 820px; }
.hero-main h1 { color: #fff; font-size: clamp(1.6rem, 3.2vw, 2.6rem); margin: .75rem 0; }
.hero-main h1 a { color: #fff; }
.hero-main h1 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.hero-main p.lead { color: #dce6f4; font-size: 1.05rem; }
.hero-main .news-meta { color: #b9c9e2; }
.hero-flag {
  display: inline-flex; align-items: center; gap: .45rem; background: #fff; color: var(--ch-red);
  font-size: .72rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase;
  padding: .3em .7em; border-radius: 4px; margin-left: .4rem;
}

.hero-side { position: relative; border-radius: var(--radius); overflow: hidden; height: calc(50% - .5rem); min-height: 222px; display: flex; align-items: flex-end; background: var(--ch-blue-deep); }
.hero-side img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.hero-side:hover img { transform: scale(1.04); }
.hero-side::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 30%, rgba(2,31,68,.92)); }
.hero-side .hero-content { position: relative; z-index: 2; padding: 1.1rem 1.25rem; }
.hero-side h2 { font-size: 1.15rem; margin: .5rem 0 0; }
.hero-side h2 a { color: #fff; }
.hero-side h2 a::after { content: ""; position: absolute; inset: 0; z-index: 3; }

/* ---------- 07. SECCIONES DE PORTADA ---------- */
.cat-block { margin-bottom: 2.75rem; }
.cat-block[data-cat="denuncia"] .section-title::after { background: var(--ch-red); }
.cat-block[data-cat="region"] .section-title::after { background: var(--cat-region); }
.cat-block[data-cat="opinion"] .section-title::after { background: var(--cat-opinion); }

/* Columna de opinión */
.opinion-card { display: flex; gap: 1rem; padding: 1.1rem; border: 1px solid var(--ch-line); border-left: 4px solid var(--cat-opinion); border-radius: var(--radius); height: 100%; position: relative; background: #fff; }
.opinion-card .avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.opinion-card .author { font-size: .78rem; font-weight: 800; text-transform: uppercase; color: var(--cat-opinion); letter-spacing: .04em; }
.opinion-card h3 { font-family: var(--font-read); font-style: italic; font-weight: 700; font-size: 1.1rem; margin: .25rem 0 0; }
.opinion-card h3 a { color: var(--ch-ink); }
.opinion-card h3 a::after { content: ""; position: absolute; inset: 0; }
.opinion-card:hover { box-shadow: var(--shadow-md); }

/* Sidebar */
.sidebar-box { background: #fff; border: 1px solid var(--ch-line); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1.5rem; }
.sticky-sidebar { position: sticky; top: 76px; }

.most-read { list-style: none; padding: 0; margin: 0; counter-reset: rank; }
.most-read li { display: flex; gap: .9rem; padding: .8rem 0; border-bottom: 1px solid var(--ch-line); position: relative; counter-increment: rank; }
.most-read li:last-child { border-bottom: 0; padding-bottom: 0; }
.most-read li::before {
  content: counter(rank); font-family: var(--font-head); font-weight: 900; font-size: 2rem;
  line-height: 1; color: var(--ch-blue-soft); -webkit-text-stroke: 1.5px var(--ch-blue); min-width: 1.6rem;
}
.most-read li:nth-child(-n+3)::before { color: var(--ch-red-soft); -webkit-text-stroke-color: var(--ch-red); }
.most-read a { color: var(--ch-ink); font-weight: 700; font-size: .93rem; line-height: 1.35; }
.most-read a::after { content: ""; position: absolute; inset: 0; }
.most-read li:hover a { color: var(--ch-blue); }
.most-read .views { font-size: .75rem; color: var(--ch-muted); display: block; margin-top: .2rem; }

.trend-tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.trend-tags a {
  font-size: .82rem; font-weight: 700; padding: .35rem .75rem; border-radius: 999px;
  background: var(--ch-blue-soft); color: var(--ch-blue);
}
.trend-tags a:hover { background: var(--ch-blue); color: #fff; }
.trend-tags a.hot { background: var(--ch-red-soft); color: var(--ch-red); }
.trend-tags a.hot:hover { background: var(--ch-red); color: #fff; }

.fb-cta { background: linear-gradient(135deg, var(--ch-blue) 0%, var(--ch-blue-deep) 100%); color: #fff; border: 0; text-align: center; }
.fb-cta h3 { color: #fff; font-size: 1.15rem; }
.fb-cta p { color: #c9d6ea; font-size: .9rem; }

/* ---------- 08. WIDGET DENUNCIA CIUDADANA ---------- */
.denuncia-band {
  background:
    radial-gradient(circle at 90% 10%, rgba(255,255,255,.08) 0 120px, transparent 121px),
    linear-gradient(120deg, var(--ch-red) 0%, var(--ch-red-dark) 55%, var(--ch-blue-dark) 100%);
  color: #fff; border-radius: var(--radius); padding: 2.25rem; margin-bottom: 2.75rem;
}
.denuncia-band h2 { color: #fff; font-size: clamp(1.4rem, 2.6vw, 2rem); }
.denuncia-band .lead { color: #ffe1e1; }
.denuncia-band ul { list-style: none; padding: 0; }
.denuncia-band ul li { display: flex; gap: .6rem; margin-bottom: .5rem; color: #fff; }
.denuncia-form {
  background: #fff; color: var(--ch-text); border-radius: var(--radius); padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,.2);
}
.denuncia-form .form-label { font-weight: 700; font-size: .85rem; color: var(--ch-ink); }
.char-counter { font-size: .75rem; color: var(--ch-muted); }
.char-counter.is-limit { color: var(--ch-red); font-weight: 700; }

/* Mensaje de error del textarea (va dentro de un contenedor junto al contador) */
.was-validated .js-counter:invalid + div .invalid-feedback { display: block; }

/* ---------- 09. PÁGINA NOTICIAS ---------- */
.page-banner {
  background: linear-gradient(120deg, var(--ch-blue-deep), var(--ch-blue));
  color: #fff; padding: 2.5rem 0 2.25rem; position: relative; overflow: hidden;
}
.page-banner::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px;
  border: 40px solid rgba(200,0,0,.35); border-radius: 50%;
}
.page-banner h1 { color: #fff; font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin: 0; }
.page-banner p { color: #c9d6ea; margin: .5rem 0 0; }
.page-banner .breadcrumb { --bs-breadcrumb-divider-color: #9fb3d3; --bs-breadcrumb-item-active-color: #fff; margin-bottom: .75rem; font-size: .85rem; }
.page-banner .breadcrumb a { color: #c9d6ea; }

.filter-bar {
  background: #fff; border: 1px solid var(--ch-line); border-radius: var(--radius);
  padding: 1rem 1.1rem; box-shadow: var(--shadow-sm); margin-top: -1.75rem; position: relative; z-index: 2;
}
.filter-chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.filter-chip {
  border: 1.5px solid var(--ch-line); background: #fff; color: var(--ch-text);
  font-size: .82rem; font-weight: 700; padding: .38rem .85rem; border-radius: 999px;
  transition: all var(--transition);
}
.filter-chip:hover { border-color: var(--ch-blue); color: var(--ch-blue); }
.filter-chip[aria-pressed="true"] { background: var(--ch-blue); border-color: var(--ch-blue); color: #fff; }
.filter-chip .count { opacity: .7; font-weight: 600; margin-left: .2rem; }

.results-info { font-size: .9rem; color: var(--ch-muted); }
.results-info strong { color: var(--ch-ink); }

.empty-state { text-align: center; padding: 3.5rem 1rem; color: var(--ch-muted); }
.empty-state i { font-size: 3rem; color: var(--ch-line); }

.pagination { --bs-pagination-color: var(--ch-blue); --bs-pagination-active-bg: var(--ch-blue); --bs-pagination-active-border-color: var(--ch-blue); --bs-pagination-hover-color: var(--ch-red); --bs-pagination-focus-box-shadow: 0 0 0 .2rem rgba(6,72,149,.2); gap: .3rem; }
.pagination .page-link { border-radius: var(--radius-sm) !important; font-weight: 700; min-width: 40px; text-align: center; }

mark.hl { background: #fff3a8; padding: 0 .1em; border-radius: 2px; }

/* ---------- 10. PÁGINA DETALLE ---------- */
.reading-progress { position: fixed; top: 0; left: 0; height: 4px; width: 0; z-index: 1100; background: linear-gradient(90deg, var(--ch-red), var(--ch-blue)); }

.article-header { padding: 2rem 0 1.25rem; }
.article-header h1 { font-size: clamp(1.8rem, 4vw, 2.75rem); margin: .85rem 0; }
.article-lead { font-family: var(--font-read); font-size: 1.25rem; color: var(--ch-muted); line-height: 1.55; }
.author-line { display: flex; align-items: center; gap: .8rem; }
.author-line img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.author-line .name { font-weight: 800; color: var(--ch-ink); }

.share-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; }
.share-btn {
  display: inline-flex; align-items: center; gap: .45rem; border: 0; color: #fff;
  font-size: .85rem; font-weight: 700; padding: .5rem .9rem; border-radius: 999px;
}
.share-btn:hover { color: #fff; filter: brightness(1.1); }
.share-fb { background: #1877f2; }
.share-wa { background: #128c4b; }
.share-x { background: #000; }
.share-copy { background: var(--ch-bg-alt); color: var(--ch-ink); }
.share-copy:hover { color: var(--ch-ink); background: var(--ch-line); }

.article-figure img { border-radius: var(--radius); width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.article-figure figcaption { font-size: .82rem; color: var(--ch-muted); margin-top: .5rem; padding-left: .75rem; border-left: 3px solid var(--ch-red); }

.article-body {
  font-family: var(--font-read); font-size: var(--article-size, 1.15rem); line-height: 1.8;
  color: #1f242b; max-width: 720px;
}
.article-body > p:first-of-type::first-letter {
  float: left; font-family: var(--font-head); font-weight: 900; font-size: 3.6em;
  line-height: .85; margin: .08em .12em 0 0; color: var(--ch-red);
}
.article-body h2 { font-size: 1.5rem; margin: 2.2rem 0 1rem; }
.article-body p { margin-bottom: 1.35rem; }
.article-body a { text-decoration: underline; text-underline-offset: 3px; }
.article-body ul li { margin-bottom: .5rem; }

.pull-quote {
  margin: 2.25rem 0; padding: 1.5rem 1.75rem; background: var(--ch-blue-soft);
  border-left: 6px solid var(--ch-blue); border-radius: 0 var(--radius) var(--radius) 0; position: relative;
}
.pull-quote::before {
  content: "\201C"; position: absolute; right: 1rem; top: -.5rem; font-family: Georgia, serif;
  font-size: 6rem; line-height: 1; color: rgba(6,72,149,.15);
}
.pull-quote p { font-size: 1.35rem; font-style: italic; font-weight: 600; color: var(--ch-blue-dark); margin: 0 0 .5rem; line-height: 1.45; }
.pull-quote cite { font-family: var(--font-ui); font-size: .85rem; font-style: normal; font-weight: 700; color: var(--ch-red); }

.fact-box { font-family: var(--font-ui); font-size: .95rem; background: var(--ch-bg-alt); border-radius: var(--radius); padding: 1.25rem 1.5rem; border-top: 4px solid var(--ch-red); margin: 2rem 0; }
.fact-box h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ch-red); }

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin: 2rem 0; }
.gallery-grid button { border: 0; padding: 0; border-radius: var(--radius-sm); overflow: hidden; position: relative; aspect-ratio: 4 / 3; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-grid button:hover img { transform: scale(1.06); }
.gallery-grid button::after {
  content: "\F52A"; font-family: "bootstrap-icons"; position: absolute; inset: 0; display: grid; place-items: center;
  color: #fff; font-size: 1.5rem; background: rgba(2,31,68,.45); opacity: 0; transition: opacity var(--transition);
}
.gallery-grid button:hover::after, .gallery-grid button:focus-visible::after { opacity: 1; }

.article-tags a { display: inline-block; font-size: .82rem; font-weight: 700; padding: .3rem .75rem; border: 1px solid var(--ch-line); border-radius: 999px; color: var(--ch-text); margin: 0 .3rem .4rem 0; }
.article-tags a:hover { border-color: var(--ch-blue); color: var(--ch-blue); }

.author-box { display: flex; gap: 1.1rem; padding: 1.4rem; background: var(--ch-bg-alt); border-radius: var(--radius); }
.author-box img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; }

.font-tools button { border: 1px solid var(--ch-line); background: #fff; width: 36px; height: 36px; border-radius: 50%; font-weight: 800; color: var(--ch-ink); }
.font-tools button:hover { border-color: var(--ch-blue); color: var(--ch-blue); }

.comment { display: flex; gap: .9rem; padding: 1.1rem 0; border-bottom: 1px solid var(--ch-line); }
.comment .avatar-initials {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; color: #fff; background: var(--ch-blue);
}
.comment:nth-child(even) .avatar-initials { background: var(--ch-red); }
.comment .c-name { font-weight: 800; color: var(--ch-ink); }
.comment .c-date { font-size: .78rem; color: var(--ch-muted); }
.comment p { margin: .35rem 0 .3rem; }
.comment .c-actions button { background: none; border: 0; padding: 0; font-size: .8rem; font-weight: 700; color: var(--ch-muted); margin-right: 1rem; }
.comment .c-actions button:hover, .comment .c-actions button.liked { color: var(--ch-red); }

/* ---------- 11. PÁGINA NOSOTROS ---------- */
.about-hero { background: var(--ch-blue-deep); color: #fff; padding: 4rem 0; position: relative; overflow: hidden; }
.about-hero::before {
  content: ""; position: absolute; inset: 0; opacity: .12;
  background: repeating-linear-gradient(-55deg, transparent 0 40px, var(--ch-red) 40px 44px);
}
.about-hero > .container { position: relative; }
.about-hero h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3.2rem); }
.about-hero h1 span { color: #ff5c5c; }
.about-hero .lead { color: #c9d6ea; max-width: 640px; }
.about-hero .logo-big { width: 100%; max-width: 280px; filter: drop-shadow(0 20px 40px rgba(0,0,0,.4)); }

.stat { text-align: center; padding: 1.5rem 1rem; }
.stat .num { font-family: var(--font-head); font-weight: 900; font-size: clamp(2rem, 4vw, 2.75rem); color: var(--ch-blue); line-height: 1; }
.stat:nth-child(odd) .num { color: var(--ch-red); }
.stat .lbl { font-size: .85rem; font-weight: 700; color: var(--ch-muted); text-transform: uppercase; letter-spacing: .05em; margin-top: .4rem; }

.timeline { position: relative; padding-left: 2rem; list-style: none; margin: 0; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 3px; background: linear-gradient(var(--ch-red), var(--ch-blue)); border-radius: 3px; }
.timeline li { position: relative; padding-bottom: 1.75rem; }
.timeline li::before { content: ""; position: absolute; left: -2rem; top: 4px; width: 17px; height: 17px; border-radius: 50%; background: #fff; border: 4px solid var(--ch-blue); }
.timeline li:first-child::before { border-color: var(--ch-red); }
.timeline .when { font-size: .8rem; font-weight: 800; color: var(--ch-red); text-transform: uppercase; letter-spacing: .05em; }
.timeline h3 { font-size: 1.1rem; margin: .2rem 0 .35rem; }

.mv-card { border-radius: var(--radius); padding: 2rem; height: 100%; color: #fff; }
.mv-card h3 { color: #fff; }
.mv-card .icon { font-size: 2.2rem; margin-bottom: .75rem; display: block; opacity: .9; }
.mv-card p { color: rgba(255,255,255,.88); margin: 0; }

.principle-card { background: #fff; border: 1px solid var(--ch-line); border-radius: var(--radius); padding: 1.75rem; height: 100%; transition: box-shadow var(--transition), border-color var(--transition); }
.principle-card:hover { box-shadow: var(--shadow-md); border-color: transparent; }
.principle-card .icon { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 1rem; background: var(--ch-blue-soft); color: var(--ch-blue); }
.row > :nth-child(2n) > .principle-card .icon { background: var(--ch-red-soft); color: var(--ch-red); }
.principle-card h3 { font-size: 1.15rem; }
.principle-card p { color: var(--ch-muted); margin: 0; font-size: .95rem; }

.report-tabs .nav-link { font-weight: 700; color: var(--ch-muted); border: 0; border-bottom: 3px solid transparent; border-radius: 0; }
.report-tabs .nav-link.active { color: var(--ch-blue); border-bottom-color: var(--ch-red); background: none; }

/* ---------- 12. FOOTER ---------- */
.site-footer { background: var(--ch-blue-deep); color: #aebfd9; font-size: .92rem; margin-top: 3rem; }
.site-footer .footer-top { padding: 3.25rem 0 2rem; border-top: 6px solid var(--ch-red); }
.site-footer h2 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 1rem; }
.site-footer a { color: #aebfd9; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: .55rem; }
.footer-brand img { width: 56px; height: 56px; background: #fff; border-radius: 10px; padding: 4px; }
.footer-brand .brand-name .h { color: #6ea8ff; }
.footer-brand .brand-name .c { color: #ff5c5c; }
.footer-social a {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.08); color: #fff; margin-right: .35rem; font-size: 1.05rem;
}
.footer-social a:hover { background: var(--ch-red); }
.footer-newsletter .form-control { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #fff; }
.footer-newsletter .form-control::placeholder { color: #8ea3c4; }
.footer-newsletter .form-check-label { font-size: .8rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.1rem 0; font-size: .82rem; }

.back-to-top {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 1040; width: 46px; height: 46px; border-radius: 50%;
  border: 0; background: var(--ch-red); color: #fff; font-size: 1.2rem; box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: all var(--transition);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--ch-blue); }

.toast-container { z-index: 1090; }

/* ---------- 13. RESPONSIVE ---------- */
@media (max-width: 991.98px) {
  .main-nav .navbar-nav .nav-link { padding: .7rem .25rem; }
  .main-nav .navbar-nav .nav-link::after { left: 0; right: auto; width: 40px; }
  .main-nav .navbar-collapse { padding-bottom: 1rem; }
  .main-nav .dropdown-menu { background: var(--ch-blue-dark); border-top: 0; box-shadow: none; }
  .main-nav .dropdown-item { color: #fff; }
  .hero-main { min-height: 400px; }
  .hero-side { height: auto; }
  .sticky-sidebar { position: static; }
  .nav-brand-mini { display: inline-flex !important; }
}
@media (max-width: 575.98px) {
  .brand img { width: 48px; height: 48px; }
  .brand-name { font-size: 1.45rem; }
  .hero-main .hero-content { padding: 1.25rem; }
  .hero-main p.lead { display: none; }
  .denuncia-band { padding: 1.5rem 1.1rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .ticker-label .txt { display: none; }
  .news-row img { width: 88px; height: 66px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .ticker-viewport { overflow-x: auto; }
  .ticker-track { animation: none !important; }
}

@media print {
  .topbar, .main-nav, .ticker, .site-footer, .share-bar, .back-to-top, .comments-section, .related-section, aside { display: none !important; }
  .article-body { max-width: none; font-size: 12pt; }
}
