/* Noticias y eventos (noticias.php, noticia.php y bloque del inicio). Usa las variables de site.css. */

/* ---------- Tarjetas ---------- */
.nt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.nt-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: 0 2px 10px rgba(6, 20, 38, .05); transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease; }
.nt-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: #C9D3DE; }
.nt-card:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.nt-card__media { position: relative; aspect-ratio: 16 / 10; background: var(--navy-700); overflow: hidden; }
.nt-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.nt-card:hover .nt-card__media img { transform: scale(1.04); }
.nt-sin { width: 100%; height: 100%; display: grid; place-items: center; background: var(--navy-700); }
.nt-sin img { width: 34%; max-width: 120px; height: auto; opacity: .28; object-fit: contain; }
.nt-card:hover .nt-sin img { transform: none; }
.nt-tipo { display: inline-block; font: 700 .74rem var(--font); letter-spacing: .12em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; background: var(--paper); color: var(--navy-700); border: 1px solid var(--line); }
.nt-card__media .nt-tipo { position: absolute; left: 12px; top: 12px; background: rgba(6, 20, 38, .86); color: var(--white); border-color: transparent; }
.nt-card__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.nt-fecha { display: inline-flex; align-items: center; gap: 7px; font-size: .88rem; font-weight: 600; color: var(--muted); }
.nt-fecha svg { flex: none; color: var(--sea); }
.nt-card h3 { font-size: 1.32rem; color: var(--navy-800); margin: 0; }
.nt-card p { margin: 0; color: var(--muted); font-size: .97rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nt-card__go { margin-top: auto; padding-top: 6px; font-weight: 700; color: var(--sea); font-size: .94rem; }

/* ---------- Listado ---------- */
.nt-filtros { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.nt-filtros .chip { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.nt-filtros .chip span { font-size: .8rem; opacity: .7; }
.nt-pag { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 40px; }
.nt-pag a, .nt-pag span { min-width: 44px; height: 44px; padding: 0 14px; display: inline-grid; place-items: center; border-radius: 8px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; background: var(--white); }
.nt-pag a:hover { border-color: var(--navy-600); }
.nt-pag [aria-current] { background: var(--navy-700); border-color: var(--navy-700); color: var(--white); }
.nt-pag .is-off { color: #9AA6B2; }

/* ---------- Estado vacío ---------- */
.nt-vacio { max-width: 640px; margin: 0 auto; text-align: center; padding: 44px 24px; border: 1px dashed #C9D3DE; border-radius: 14px; background: var(--paper); }
.nt-vacio__ico { width: 64px; height: 64px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 50%; background: var(--white); color: var(--navy-600); border: 1px solid var(--line); }
.nt-vacio h2 { font-size: 1.9rem; color: var(--navy-800); }
.nt-vacio p { color: var(--muted); }
.nt-vacio .btns { justify-content: center; margin-top: 18px; }

/* ---------- Detalle ---------- */
.nt-hero h1 { max-width: 26ch; }
.nt-hero .nt-tipo { background: rgba(255, 255, 255, .12); color: var(--gold-soft); border-color: rgba(255, 255, 255, .22); margin-bottom: 14px; }
.nt-hero__fecha { display: flex; align-items: center; gap: 8px; margin-top: 14px; color: rgba(255, 255, 255, .82); font-weight: 600; }
.nt-det { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 44px; align-items: start; }
.nt-portada { margin: 0 0 28px; border-radius: 12px; overflow: hidden; background: var(--navy-700); }
.nt-portada img { width: 100%; height: auto; max-height: 620px; object-fit: cover; }
.nt-lead { font-size: 1.2rem; line-height: 1.55; color: var(--navy-700); font-weight: 500; margin-bottom: 1.2em; }
.nt-texto { max-width: 70ch; }
.nt-texto p { margin: 0 0 1.1em; }
.nt-aside { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 18px; }
.nt-datos { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.nt-datos h2 { font-size: 1.15rem; letter-spacing: .12em; text-transform: uppercase; color: var(--navy-700); margin-bottom: 14px; }
.nt-datos dl { margin: 0; display: grid; gap: 14px; }
.nt-datos dt { display: flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.nt-datos dt svg { color: var(--sea); flex: none; }
.nt-datos dd { margin: 2px 0 0; color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.nt-datos .btn { width: 100%; justify-content: center; margin-top: 10px; }
.nt-datos .btn + .btn { margin-top: 10px; }
.nt-compartir { display: flex; flex-wrap: wrap; gap: 8px; }
.nt-compartir a, .nt-compartir button { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; min-height: 44px; border-radius: 8px; border: 1px solid var(--line); background: var(--white); color: var(--navy-800); font: 600 .92rem var(--font); text-decoration: none; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.nt-compartir a:hover, .nt-compartir button:hover { border-color: var(--navy-600); background: var(--paper); }
.nt-compartir__ok { font-size: .88rem; color: #1E6B47; min-height: 1.3em; margin: 8px 0 0; }

/* Galería */
.nt-gal { margin-top: 36px; }
.nt-gal h2 { font-size: 1.6rem; color: var(--navy-800); }
.nt-gal__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.nt-gal__btn { display: block; width: 100%; padding: 0; border: 0; border-radius: 10px; overflow: hidden; cursor: zoom-in; background: var(--navy-700); aspect-ratio: 4 / 3; }
.nt-gal__btn img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease, opacity .2s ease; }
.nt-gal__btn:hover img { transform: scale(1.05); }
.nt-gal__btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.nt-gal figcaption { font-size: .86rem; color: var(--muted); margin-top: 6px; line-height: 1.35; }
.nt-gal figure { margin: 0; }

/* Visor (reutiliza .lb de multimedia.css) */
.nt-visor .lb__fig img { max-height: 78vh; }
.nt-visor__cont { color: rgba(255, 255, 255, .6); font-size: .85rem; margin-top: 4px; }

/* Más publicaciones */
.nt-mas h2 { font-size: 1.7rem; color: var(--navy-800); margin-bottom: 22px; }

/* Bloque del inicio */
.nt-inicio .sec__more { margin-top: 36px; }

@media (max-width: 1000px) {
    .nt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nt-det { grid-template-columns: minmax(0, 1fr); gap: 30px; }
    .nt-aside { position: static; }
}
@media (max-width: 640px) {
    .nt-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .nt-gal__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .nt-lead { font-size: 1.08rem; }
    .nt-vacio { padding: 34px 18px; }
    .nt-visor .lb__nav { top: auto; bottom: 16px; margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .nt-card, .nt-card__media img, .nt-gal__btn img { transition: none; }
    .nt-card:hover, .nt-card:hover .nt-card__media img, .nt-gal__btn:hover img { transform: none; }
}
.btn--claro { background: var(--white); border-color: var(--line); color: var(--navy-800); }
.btn--claro:hover { border-color: var(--navy-600); }
.nt-datos .btn { flex-wrap: wrap; text-align: center; column-gap: 8px; row-gap: 2px; }
.nt-datos .btn small { flex-basis: 100%; font-weight: 500; font-size: .8rem; opacity: .8; }
