/* ACEVAL — Noticias: listado (/publicaciones) y nota individual */

/* ---------- Filtro por año ---------- */
.nt-years { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0 0 2rem; padding: 0; list-style: none; }
.nt-years a {
  display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .9rem; border-radius: 999px;
  font-size: .84rem; font-weight: 600; color: var(--color-primary); text-decoration: none;
  background: #fff; border: 1px solid rgba(7, 41, 77, .15); transition: background-color .2s, color .2s, border-color .2s;
}
.nt-years a small { font-weight: 600; opacity: .6; }
.nt-years a:hover { border-color: var(--color-accent); background: rgba(217, 130, 24, .08); }
.nt-years a.is-active { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.nt-years a:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.nt-result-note { font-size: .88rem; color: #55657a; margin: -.75rem 0 1.5rem; }

/* ---------- Nota destacada ---------- */
.nt-feature {
  display: grid; grid-template-columns: 1fr; background: #fff; border: 1px solid rgba(7, 41, 77, .1);
  border-radius: 16px; overflow: hidden; margin-bottom: 2rem; box-shadow: 0 10px 30px rgba(4, 22, 43, .08);
  transition: box-shadow .3s, border-color .3s;
}
.nt-feature:hover { box-shadow: 0 18px 40px rgba(4, 22, 43, .14); border-color: rgba(217, 130, 24, .5); }
@media (min-width: 992px) { .nt-feature { grid-template-columns: 1.1fr 1fr; } }
.nt-feature__media { position: relative; display: block; background: var(--color-primary-dark); min-height: 240px; overflow: hidden; }
.nt-feature__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.16, 1, .3, 1); }
.nt-feature:hover .nt-feature__media img { transform: scale(1.04); }
.nt-feature__body { padding: 2rem; display: flex; flex-direction: column; justify-content: center; }
@media (min-width: 992px) { .nt-feature__body { padding: 2.75rem; } }
.nt-badge { align-self: flex-start; background: var(--color-accent); color: #fff; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .3rem .7rem; border-radius: 999px; margin-bottom: 1rem; }
.nt-feature__title { font-size: clamp(1.4rem, 2.2vw, 1.9rem); font-weight: 700; line-height: 1.3; margin: 0 0 .75rem; }
.nt-feature__title a { color: var(--color-primary); text-decoration: none; }
.nt-feature__title a:hover { color: var(--color-accent-hover); }
.nt-feature__excerpt { color: #55657a; line-height: 1.75; margin-bottom: 1.25rem; }

/* ---------- Tarjetas ---------- */
.nt-card { height: 100%; display: flex; flex-direction: column; background: #fff; border: 1px solid rgba(7, 41, 77, .1); border-radius: 14px; overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s; }
.nt-card:hover { transform: translateY(-5px); box-shadow: 0 16px 34px rgba(4, 22, 43, .13); border-color: rgba(217, 130, 24, .5); }
.nt-card__media { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--color-primary-dark); overflow: hidden; }
.nt-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.16, 1, .3, 1); }
.nt-card:hover .nt-card__media img { transform: scale(1.05); }
.nt-date { position: absolute; left: .8rem; top: .8rem; z-index: 2; line-height: 1.05; text-align: center; background: #fff; color: var(--color-primary); border-radius: 10px; padding: .4rem .65rem; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; box-shadow: 0 4px 14px rgba(0, 0, 0, .22); border-top: 3px solid var(--color-accent); }
.nt-date strong { display: block; font-size: 1.3rem; letter-spacing: 0; }
.nt-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.3rem 1.4rem 1.2rem; }
.nt-cat { display: block; font-family: var(--font-mono, ui-monospace, monospace); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--color-accent-hover); margin-bottom: .5rem; }
.nt-card__title { font-size: 1.08rem; font-weight: 700; line-height: 1.38; margin: 0 0 .6rem; }
.nt-card__title a { color: var(--color-primary); text-decoration: none; }
.nt-card__title a:hover { color: var(--color-accent-hover); }
.nt-card__excerpt { font-size: .87rem; color: #55657a; line-height: 1.65; margin-bottom: 1rem; }
.nt-card__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding-top: .85rem; border-top: 1px solid rgba(7, 41, 77, .08); font-size: .8rem; color: #6b7a8c; }
.nt-more { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; color: var(--color-primary); text-decoration: none; }
.nt-more i { transition: transform .2s; }
.nt-more:hover { color: var(--color-accent-hover); }
.nt-more:hover i, .nt-card:hover .nt-more i, .nt-feature:hover .nt-more i { transform: translateX(4px); }
.nt-fb { position: absolute; right: .7rem; top: .7rem; z-index: 2; width: 32px; height: 32px; border-radius: 50%; background: #1877f2; color: #fff; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }

/* ---------- Nota individual ---------- */
.nt-progress { position: fixed; left: 0; top: 0; right: 0; height: 4px; z-index: 2000; background: transparent; pointer-events: none; }
.nt-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light)); transition: width .1s linear; }
.nt-hero-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; list-style: none; padding: 0; margin: 1.25rem 0 0; }
.nt-hero-meta li { display: inline-flex; align-items: center; gap: .45rem; font-size: .8rem; font-weight: 600; padding: .4rem .85rem; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); color: #fff; }
.nt-hero-meta i { color: var(--color-accent-light); }

.nt-prose { font-size: 1.08rem; line-height: 1.85; color: #34455c; max-width: 46rem; overflow-wrap: anywhere; }
.nt-prose > :first-child { margin-top: 0; }
.nt-prose h2, .nt-prose h3, .nt-prose h4 { color: var(--color-primary); font-weight: 700; line-height: 1.3; margin: 2.2rem 0 .8rem; }
.nt-prose h2 { font-size: 1.6rem; } .nt-prose h3 { font-size: 1.3rem; } .nt-prose h4 { font-size: 1.12rem; }
.nt-prose p { margin-bottom: 1.15rem; }
.nt-prose ul, .nt-prose ol { margin: 0 0 1.25rem; padding-left: 1.4rem; }
.nt-prose li { margin-bottom: .4rem; }
.nt-prose blockquote { margin: 1.6rem 0; padding: 1rem 1.4rem; border-left: 4px solid var(--color-accent); background: var(--color-primary-pale, #F4F6F9); border-radius: 0 10px 10px 0; font-size: 1.05rem; color: #2b3b52; }
.nt-prose img, .nt-prose video { max-width: 100%; height: auto; border-radius: 10px; }
.nt-prose figure { margin: 1.6rem 0; }
.nt-prose figcaption { font-size: .85rem; color: #6b7a8c; margin-top: .5rem; text-align: center; }
.nt-prose iframe { max-width: 100%; border-radius: 10px; }
.nt-prose table { width: 100%; margin-bottom: 1.25rem; display: block; overflow-x: auto; }
.nt-prose hr { margin: 2rem 0; opacity: .15; }

.nt-pager { display: grid; gap: 1rem; margin-top: 3rem; }
@media (min-width: 768px) { .nt-pager { grid-template-columns: 1fr 1fr; } }
.nt-pager a { display: flex; flex-direction: column; gap: .25rem; padding: 1.1rem 1.3rem; border: 1px solid rgba(7, 41, 77, .12); border-radius: 12px; text-decoration: none; background: #fff; transition: border-color .2s, box-shadow .2s, transform .2s; }
.nt-pager a:hover { border-color: var(--color-accent); box-shadow: 0 10px 24px rgba(4, 22, 43, .1); transform: translateY(-2px); }
.nt-pager small { font-family: var(--font-mono, ui-monospace, monospace); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--color-accent-hover); }
.nt-pager span { color: var(--color-primary); font-weight: 700; line-height: 1.35; }
.nt-pager .is-next { text-align: right; }
.nt-back { margin-top: 1.25rem; text-align: center; }

@media (prefers-reduced-motion: reduce) {
  .nt-card, .nt-feature, .nt-card__media img, .nt-feature__media img, .nt-pager a, .nt-more i, .nt-progress span { transition: none !important; }
}

/* Fecha de publicación dentro del artículo */
.nt-dateline { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin: 0 0 1rem; color: #475569; font-size: .92rem; font-weight: 600; }
.nt-dateline i { color: var(--color-accent-hover, #b86a0f); }
.nt-dateline__sep { margin: 0 .25rem; color: #94a3b8; }

/* Filtro compacto: año (desplegable) + búsqueda */
.nt-filter { align-items: stretch; }
.nt-filter__year { width: auto; min-width: 150px; font-weight: 600; color: var(--color-primary); }
.nt-filter__q { width: 240px; max-width: 100%; }
@media (max-width: 575.98px) { .nt-filter { width: 100%; } .nt-filter__year { flex: 1 1 100%; } .nt-filter__q { flex: 1 1 0; width: auto; } }

/* Noticia reciente: mismo lenguaje visual que las tarjetas */
.nt-feature__media { background: #eef2f7; min-height: 340px; }
.nt-feature__media img { object-fit: contain; }
.nt-feature:hover .nt-feature__media img { transform: none; }
.nt-feature .nt-cat { margin-bottom: .5rem; }
.nt-feature__title { color: var(--color-primary); }
.nt-feature__title a, .nt-feature__title a:hover { color: inherit; }
.nt-feature__title a:hover { color: var(--color-accent-hover); }
.nt-feature__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.25rem; padding-top: 1rem; border-top: 1px solid rgba(7, 41, 77, .08); margin-top: auto; }
@media (max-width: 991.98px) { .nt-feature__media { min-height: 260px; } }
.nt-feature .news-read-more { border-top: 0; padding: 0; margin: 0; width: auto; justify-content: flex-start; gap: .5rem; }
.nt-feature__foot { margin-top: 1rem; }
