/* ====== Paleta adaptada al banner (amarillo → naranja) ====== */
:root {
  --na-sun: #f2b318; /* amarillo cálido principal */
  --na-amber: #f39b1a; /* ámbar */
  --na-tangerine: #e8741e; /* naranja */
  --na-burnt: #d65d1c; /* naranja quemado para hovers/énfasis */
  --ink: #1e1e1e; /* texto principal */
  --soft: #f7f2ec; /* fondo suave */
}

html,
body {
  height: 100%;
}
body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial;
  color: var(--ink);
  background: #fff;
}

/* ====== Encabezado / Banner de marca ====== */
.brand-banner {
  background: linear-gradient(
    180deg,
    var(--na-sun) 0%,
    var(--na-tangerine) 100%
  );
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.brand-mark {
  width: 102px;
  height: 102px;
  flex: 0 0 102px;
  border-radius: 0; /* recto */
  object-fit: cover;
  box-shadow: none;
}
.site-title {
  line-height: 1;
}
.site-title .byline {
  font-family: "Merriweather", serif;
  font-weight: 400;
  color: #fff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
  letter-spacing: 0.3px;
}
.site-title .name {
  font-family: "Merriweather", serif;
  font-weight: 800;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  color: #111;
  letter-spacing: 0.2px;
}
.site-title .domain {
  font-weight: 800;
  color: #111;
}

/* ====== Navbar ====== */
/* ====== Navbar ====== */
.navbar {
  border-radius: 0;
}

/* Navbar negra con barra naranja abajo */
.navbar-altivo {
  background-color: #000;
  border-bottom: 3px solid var(--na-tangerine); /* barra naranja inferior */
}

/* Marca */
.navbar-altivo .navbar-brand {
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #ffffff !important;
  text-transform: uppercase;
}
.navbar-altivo .navbar-brand:hover {
  color: var(--na-sun) !important;
}

/* Links del menú */
.navbar-altivo .nav-link {
  font-weight: 600;
  color: #f5f5f5 !important;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid transparent;
}

/* Hover normal */
.navbar-altivo .nav-link:hover {
  color: var(--na-sun) !important;
}

/* Opción activa en azul + subrayado */
.navbar-altivo .nav-link.active {
  color: #f37a11 !important; /* azul fuerte */
  border-bottom-color: #f37a11; /* subrayado azul */
}

/* Botón de búsqueda se mantiene naranja */
.btn-brand {
  background: var(--na-tangerine);
  color: #fff;
  border: 0;
}
.btn-brand:hover {
  background: var(--na-burnt);
  color: #fff;
}

/* Toggler en fondo negro (opcional para mejor visibilidad) */
.navbar-altivo .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.25);
}
.navbar-altivo .navbar-toggler-icon {
  filter: invert(1); /* icono blanco sobre fondo negro */
}

.navbar-altivo .btn-brand i.bi-search {
  color: #f37a11;
}

/* ====== Breaking ====== */
.breaking-wrap {
  background: var(--soft);
  border-inline: 4px solid var(--na-tangerine);
}
.ticker {
  white-space: nowrap;
  overflow: hidden;
  position: relative;
}
.ticker span {
  display: inline-block;
  padding-left: 100%;
  animation: slide 22s linear infinite;
}
@keyframes slide {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* ====== Hero y tarjetas ====== */
/* ====== Hero y tarjetas ====== */
.hero-card {
  position: relative;
  overflow: hidden;
  background: #000;
  border-radius: 0;
}

/* Mantener proporción 16:9 sin depender del tamaño original de la imagen */
.hero-card::before {
  content: "";
  display: block;
  padding-top: 56.25%; /* 16/9 * 100 */
}

/* La imagen se adapta al contenedor y se recorta si es muy alta o muy ancha */
.hero-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Overlay y contenido siguen “pegados” al hero */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.05) 0%,
    rgba(0, 0, 0, 0.65) 75%
  );
}
.hero-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  color: #fff;
  padding: 24px;
}
.badge-category {
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: saturate(130%) blur(2px);
  font-weight: 600;
  letter-spacing: 0.3px;
}
.hero-title {
  font-family: "Merriweather", serif;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 6px 28px rgba(0, 0, 0, 0.55);
}

.news-card {
  border: 0;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  background: #fff;
}
.news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.09);
}
.news-thumb {
  aspect-ratio: 16/9;
  object-fit: cover;
  width: 100%;
  display: block;
}
.card-title {
  font-weight: 700;
  line-height: 1.25;
}
.meta {
  font-size: 0.9rem;
  color: #666;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.6rem;
  border-radius: 0;
  background: #f0f0f0;
  font-size: 0.85rem;
}

/* ====== Sidebar, Opinión y Footer ====== */
.side-title {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15rem;
  font-size: 0.9rem;
  color: #6b6b6b;
}
.list-arrow li {
  padding: 0.4rem 0;
}
.list-arrow li a {
  text-decoration: none;
  color: #333;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.list-arrow li a:hover {
  color: var(--na-burnt);
}

.opinion-card {
  border: 0;
  border-radius: 0;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.06);
}

footer {
  background: #111;
  color: #d9d9d9;
}
footer a {
  color: #d9d9d9;
  text-decoration: none;
}
footer a:hover {
  color: #fff;
}
.footer-top {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Utilidades */
.soft {
  background: var(--soft);
}
.fade-up {
  opacity: 0;
  translate: 0 10px;
  transition: all 0.5s ease;
}
.fade-up.appear {
  opacity: 1;
  translate: 0 0;
}
/* ====== Justificar textos del contenido ====== */
.contenido-nota p,
.contenido-nota div,
.contenido-nota span,
.contenido-nota li {
  text-align: justify;
  text-justify: inter-word;
}

/* Justificar resumen / bajada */
.lead {
  text-align: justify;
  text-justify: inter-word;
}

/* Justificar texto del sidebar y tarjetas */
.card-body p,
.card-body div,
.side-title,
.list-arrow li a {
  text-align: justify;
  text-justify: inter-word;
}

/* Justificar TODO el contenido interno de la nota */
.contenido-nota * {
  text-align: justify !important;
  text-justify: inter-word;
}

/* ====== Header: aumentar tamaño de letras ====== */
.site-title .byline{
  font-size: clamp(0.95rem, 1.35vw, 1.2rem);
  line-height: 1.2;
}

.site-title .name{
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  line-height: 1.05;
}

/* ====== Header responsive (móvil): logo + textos un poco más pequeños ====== */
@media (max-width: 575.98px) {
  .brand-mark{
    width: 78px;
    height: 78px;
    flex: 0 0 78px;
  }

  .site-title .byline{
    font-size: 0.85rem;  /* más pequeño en móvil */
    line-height: 1.15;
  }

  .site-title .name{
    font-size: 1.35rem; /* más pequeño en móvil */
    line-height: 1.05;
  }
}

/* ====== Navbar: hamburguesa blanca (botón + rayitas) ====== */
.navbar-altivo .navbar-toggler{
  border-color: rgba(255,255,255,0.55);
}

.navbar-altivo .navbar-toggler:focus{
  box-shadow: 0 0 0 0.15rem rgba(255,255,255,0.25);
}

/* Rayitas blancas del ícono (Bootstrap usa un SVG como background-image) */
.navbar-altivo .navbar-toggler-icon{
  filter: none; /* quitamos el invert */
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===== Preloader DataTable ===== */
.dt-wrap-hidden {
  visibility: hidden;  /* no parpadea */
  height: 0;
  overflow: hidden;
}

.dt-loader {
  position: relative;
  min-height: 240px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
}

.dt-loader-box{
  text-align: center;
  padding: 1rem 1.25rem;
}

/* Justificación del texto de las notas */
.contenido-nota {
  text-align: justify;
  text-justify: inter-word;
}

/* Mejora visual en textos largos */
.contenido-nota p {
  margin-bottom: 1rem;
}

/* TITULAR tipo portada (como tu imagen) */
.na-headline{
  font-family: "Merriweather", serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: #fff !important;

  /* Sombra editorial (legible sobre foto) */
  text-shadow:
    0 2px 14px rgba(0,0,0,.55),
    0 1px 2px rgba(0,0,0,.65);
}


/* =========================
   TIPOGRAFÍA: TÍTULOS EN MERRIWEATHER
   ========================= */

/* Asegura que todo el body siga en Inter */
body{
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

/* Todos los títulos (y equivalentes Bootstrap) en Merriweather */
h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6,
.card-title,
.navbar-brand,
.side-title,
.hero-title,
.na-headline{
  font-family: "Merriweather", serif !important;
}

/* (Opcional) un toque editorial consistente */
h1, h2, h3, h4, h5, h6,
.card-title, .hero-title, .na-headline{
  letter-spacing: -0.01em;
}