:root {
  --news-bg: #f4f7fb;
  --news-card-border: #e3e8ef;
  --news-title: #1d2633;
  --news-muted: #5f6b7a;
}

body {
  background: linear-gradient(180deg, #f8fbff 0%, #f3f7fc 100%);
  color: var(--news-title);
}

.has-top-menu {
  padding-top: 70px;
}

.news-nav {
  backdrop-filter: blur(6px);
  background-color: rgba(255, 255, 255, 0.9) !important;
}

.news-nav .nav-link {
  color: var(--news-title);
  font-weight: 500;
}

.news-nav .nav-link:hover,
.news-nav .nav-link:focus-visible {
  color: #0d6efd;
}

.news-nav .nav-link.active {
  color: #0d6efd;
  background-color: #e9f2ff;
  border-radius: 999px;
}

.news-section {
  scroll-margin-top: 90px;
}

.tracking {
  letter-spacing: 0.08em;
}

.hero {
  background: radial-gradient(circle at top right, #e6f0ff 0%, #f8fbff 35%, #f8fbff 100%);
}

.section-header {
  border-bottom: 1px solid var(--news-card-border);
  padding-bottom: 0.5rem;
}

.news-link {
  display: block;
  color: inherit;
  text-decoration: none;
  height: 100%;
}

.news-card {
  border: 1px solid var(--news-card-border);
  border-radius: 0.85rem;
  overflow: hidden;
  background: #fff;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.news-link:hover .news-card,
.news-link:focus-visible .news-card {
  transform: translateY(-2px);
  box-shadow: 0 0.85rem 1.6rem rgba(25, 42, 62, 0.1);
}

.news-image {
  height: 190px;
  object-fit: cover;
  width: 100%;
  background-color: var(--news-bg);
}

.news-placeholder {
  height: 190px;
  background: linear-gradient(135deg, #e6ecf5, #f2f6fb);
}

.news-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-header {
  color: var(--news-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.6rem;
}

.news-body {
  color: #2d3948;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.95rem;
  margin-bottom: 0;
}

.news-meta {
  border-top: 1px solid var(--news-card-border);
  color: var(--news-muted);
  font-size: 0.82rem;
  margin-top: 0.75rem;
  padding-top: 0.6rem;
}

.empty-box {
  border: 1px dashed #bac7d8;
  border-radius: 0.85rem;
  padding: 1rem;
  color: var(--news-muted);
  background: #fff;
}

@media (max-width: 767px) {
  .has-top-menu {
    padding-top: 64px;
  }

  .news-section {
    scroll-margin-top: 82px;
  }

  .news-image,
  .news-placeholder {
    height: 170px;
  }
}

.btn-cerrar {
  color: #fff;
  background-color: #0b5ed7;
  border-color: #0a58ca;
}

.btn-cerrar:hover,
.btn-cerrar:focus-visible {
  color: #fff;
  background-color: #094eb3;
  border-color: #084aa8;
}

.btn-cerrar:focus-visible {
  box-shadow: 0 0 0 0.25rem rgba(49, 132, 253, 0.5);
}
