/*
 * custom.css
 * Estilos especificos del proyecto que sobreescriben o complementan
 * los archivos base. Usa este archivo para ajustes puntuales.
 */

#novedades-home {
  background: var(--dark2);
}

.logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  line-height: 0;
  overflow: visible;
}

.logo img {
  display: block;
  height: auto;
  max-width: 100%;
}

body.page-inner .inner-site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding: 14px 28px;
  border-bottom: 1px solid var(--border);
  background: #06101f;
}

body.page-inner .inner-site-logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  line-height: 0;
  overflow: visible;
}

body.page-inner .inner-site-logo img {
  display: block;
  width: auto;
  height: 42px;
  max-width: 210px;
  max-height: 42px;
  object-fit: contain;
}

body.page-inner .inner-site-links {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
}

body.page-inner .inner-site-links a {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.2s ease, color 0.2s ease;
}

body.page-inner main {
  margin-top: 78px;
}

body.page-inner .inner-site-links a:hover,
body.page-inner .inner-site-links a.active {
  opacity: 1;
  color: var(--red);
}

.home-news-header {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 48px;
}

.home-news-title,
.news-page-title,
.news-article-title {
  font-family: var(--font-heading);
  line-height: 0.95;
  letter-spacing: -0.01em;
}

.home-news-title,
.news-page-title {
  font-size: clamp(2.8rem, 6vw, 5.5rem);
}

.home-news-intro,
.news-page-intro,
.news-list-desc,
.news-article-lead,
.news-article-body p,
.news-side-card p,
.news-side-card a {
  font-size: var(--fs-base);
  line-height: 1.8;
  color: var(--gray);
}

.home-news-card,
.news-list-card,
.news-side-card,
.news-agenda-item,
.news-inline-note,
.news-hero-media,
.news-gallery-item {
  border: 1px solid var(--border);
  background: rgba(6, 16, 31, 0.78);
}

.home-news-card,
.news-list-card {
  padding: 36px;
  display: grid;
  gap: 18px;
  max-width: 960px;
}

.home-news-thumb,
.news-list-thumb {
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(6, 16, 31, 0.78);
}

.home-news-thumb {
  aspect-ratio: 16 / 9;
}

.news-list-thumb {
  aspect-ratio: 16 / 8;
}

.home-news-thumb img,
.news-list-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-news-meta,
.news-list-meta,
.news-kicker,
.news-side-label {
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
}

.home-news-card-title,
.news-list-title {
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1;
  font-family: var(--font-heading);
}

.news-page,
.news-article-page {
  padding-top: 48px;
}

.news-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
}

.news-breadcrumbs a {
  text-decoration: none;
}

.news-breadcrumbs a:hover {
  color: var(--white);
}

.news-page-header {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 56px;
}

.news-list {
  display: grid;
  gap: 24px;
}

.news-article-shell {
  display: grid;
  gap: 32px;
}

.news-article-header {
  max-width: 920px;
}

.news-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
}

.news-kicker span {
  color: var(--white);
  opacity: 0.72;
}

.news-article-title {
  font-size: clamp(2.6rem, 5.5vw, 5.25rem);
  margin-bottom: 24px;
}

.news-article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 32px;
  align-items: start;
}

.news-article-aside {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 120px;
}

.news-article-body {
  display: grid;
  gap: 22px;
}

.news-article-body h2,
.news-article-body h3 {
  font-family: var(--font-heading);
  line-height: 1;
  letter-spacing: -0.01em;
}

.news-article-body h2 {
  font-size: clamp(42px, 5vw, 72px);
  margin-top: 12px;
}

.news-article-body h3 {
  font-size: clamp(24px, 3vw, 34px);
  margin-bottom: 8px;
}

.news-agenda {
  display: grid;
  gap: 16px;
}

.news-agenda-item,
.news-inline-note,
.news-side-card {
  padding: 24px;
}

.news-inline-note {
  color: var(--light);
}

.news-inline-note strong {
  color: var(--white);
}

.news-inline-note code {
  font-family: var(--font-body);
  color: var(--red);
}

.news-side-card {
  display: grid;
  gap: 10px;
}

.news-side-card a {
  color: var(--white);
  text-decoration: none;
}

.news-side-card a:hover {
  color: var(--red);
}

.news-hero-media {
  overflow: hidden;
}

.news-hero-media img,
.news-gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.news-gallery-item {
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

@media (max-width: 900px) {
  body.page-inner .inner-site-header {
    min-height: 72px;
    padding: 14px 18px;
  }

  body.page-inner .inner-site-logo img {
    height: 36px;
    max-width: 165px;
    max-height: 36px;
  }

  body.page-inner main {
    margin-top: 72px;
  }

  body.page-inner .inner-site-links {
    gap: 18px;
  }

  body.page-inner .inner-site-links a {
    font-size: 10px;
  }

  .home-news-header,
  .news-page-header,
  .news-article-grid {
    grid-template-columns: 1fr;
  }

  .home-news-card,
  .news-list-card {
    padding: 28px;
  }

  .news-article-aside {
    position: static;
  }
}

@media (max-width: 768px) {
  .news-page,
  .news-article-page {
    padding-top: 32px;
  }

  .home-news-title,
  .news-page-title,
  .news-article-title,
  .home-news-card-title,
  .news-list-title {
    word-break: break-word;
  }

  .news-gallery {
    grid-template-columns: 1fr;
  }
}
