/* Sección Actualidad — portada, listados y nota. Usa las variables de style.css (--brand, --ink, --hero-grad). */

.news-page { background: #fff; }

/* ---------- Encabezado de sección (debajo del navbar fijo) ---------- */
.news-header {
  margin-top: 96px;
  padding: 2.75rem 0 2.25rem;
  background: var(--hero-grad);
  color: #fff;
}
.news-header a { color: #fff; }
.news-header-title { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; margin: 0 0 .35rem; letter-spacing: -.01em; }
.news-header-sub { opacity: .85; max-width: 720px; }
.news-kicker { text-transform: uppercase; font-size: .75rem; letter-spacing: .12em; font-weight: 700; opacity: .8; margin-bottom: .25rem; }
.news-social a { font-size: 1.2rem; margin-right: .6rem; opacity: .9; }
.news-social a:hover { opacity: 1; }

/* ---------- Barra de categorías ---------- */
.news-catbar { border-bottom: 1px solid #eee; background: #fff; position: sticky; top: 72px; z-index: 10; }
.news-catbar-list { display: flex; gap: .35rem; list-style: none; margin: 0; padding: .75rem 0; overflow-x: auto; scrollbar-width: none; }
.news-catbar-list::-webkit-scrollbar { display: none; }
.news-catbar-list a {
  display: inline-block; white-space: nowrap; padding: .35rem .9rem; border-radius: 999px;
  border: 1px solid #ddd; color: #444; text-decoration: none; font-size: .9rem;
}
.news-catbar-list a:hover { border-color: var(--brand); color: var(--brand); }
.news-catbar-list a.active { background: var(--brand); border-color: var(--brand); color: #fff; }

.news-main { padding: 2.5rem 0 3.5rem; }
.news-section-title { font-size: 1.35rem; font-weight: 800; color: var(--ink); margin-bottom: 1.25rem; padding-bottom: .5rem; border-bottom: 3px solid var(--brand); display: inline-block; }

/* ---------- Elementos comunes de tarjeta ---------- */
.news-cat {
  display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--brand); text-decoration: none; margin-bottom: .4rem;
}
.news-cat:hover { color: var(--ink); }
.news-meta { font-size: .82rem; color: #777; display: flex; flex-wrap: wrap; gap: .25rem; }
.news-meta a { color: #555; text-decoration: none; }
.news-meta a:hover { color: var(--brand); }
.news-summary { color: #555; font-size: .95rem; margin-bottom: .75rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-noimg { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: #f1eef5; color: #b9a8cc; font-size: 2.5rem; }
.news-card a, .news-row a, .news-hero a { text-decoration: none; }

/* Tarjeta de grilla */
.news-card { display: flex; flex-direction: column; width: 100%; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 2px 14px rgba(75, 26, 138, .08); transition: transform .2s, box-shadow .2s; }
.news-card:hover { transform: translateY(-3px); box-shadow: 0 8px 26px rgba(75, 26, 138, .14); }
.news-card-img { display: block; aspect-ratio: 16/10; overflow: hidden; }
.news-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.news-card:hover .news-card-img img { transform: scale(1.04); }
.news-card-body { display: flex; flex-direction: column; flex: 1; padding: 1rem 1.1rem 1.1rem; }
.news-card-title { font-size: 1.1rem; font-weight: 700; line-height: 1.3; margin-bottom: .5rem; }
.news-card-title a { color: #222; }
.news-card-title a:hover { color: var(--brand); }

/* Nota principal */
.news-hero { position: relative; border-radius: 16px; overflow: hidden; min-height: 440px; height: 100%; display: flex; align-items: flex-end; background: #222; }
.news-hero-img { position: absolute; inset: 0; }
.news-hero-img img, .news-hero-img .news-noimg { width: 100%; height: 100%; object-fit: cover; }
.news-hero-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.35) 45%, rgba(0,0,0,0) 75%); }
.news-hero-body { position: relative; z-index: 1; padding: 2rem; color: #fff; max-width: 820px; }
.news-hero .news-cat { color: #fff; background: var(--brand); padding: .25rem .6rem; border-radius: 4px; }
.news-hero-title { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 800; line-height: 1.15; margin: .35rem 0 .6rem; }
.news-hero-title a { color: #fff; }
.news-hero-title a:hover { text-decoration: underline; }
.news-hero .news-summary { color: rgba(255,255,255,.88); font-size: 1.05rem; }
.news-hero .news-meta, .news-hero .news-meta a { color: rgba(255,255,255,.8); }

/* Destacada secundaria (horizontal) */
.news-row { display: flex; gap: .9rem; align-items: stretch; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 12px rgba(75, 26, 138, .07); flex: 1; }
.news-row-img { flex: 0 0 40%; display: block; overflow: hidden; min-height: 120px; }
.news-row-img img { width: 100%; height: 100%; object-fit: cover; }
.news-row-body { padding: .8rem .9rem .8rem 0; display: flex; flex-direction: column; justify-content: center; }
.news-row-title { font-size: 1rem; font-weight: 700; line-height: 1.3; margin-bottom: .35rem; }
.news-row-title a { color: #222; }
.news-row-title a:hover { color: var(--brand); }

@media (max-width: 991.98px) {
  .news-hero { min-height: 360px; }
  .news-hero-body { padding: 1.25rem; }
}
@media (max-width: 575.98px) {
  .news-header { margin-top: 80px; padding: 2rem 0 1.5rem; }
  .news-catbar { top: 64px; }
  .news-hero { min-height: 320px; }
  .news-hero .news-summary { display: none; }
}

/* ---------- Autor ---------- */
.news-author-photo { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.news-author-photo-lg { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex: 0 0 96px; border: 3px solid rgba(255,255,255,.6); }

/* ---------- Página de la nota ---------- */
.news-article-main { margin-top: 96px; padding-top: 2rem; }
.news-narrow { max-width: 780px; }
.news-article-title { font-size: clamp(1.9rem, 4.2vw, 2.9rem); font-weight: 800; line-height: 1.12; color: #1d1d1f; letter-spacing: -.015em; margin-bottom: .75rem; }
.news-article-lead { font-size: 1.25rem; line-height: 1.5; color: #555; margin-bottom: 1.25rem; }
.news-byline { display: flex; align-items: center; gap: .75rem; font-size: .92rem; padding: .9rem 0; border-top: 1px solid #eee; border-bottom: 1px solid #eee; margin-bottom: 1.75rem; }
.news-byline a { color: var(--ink); text-decoration: none; }
.news-byline a:hover { color: var(--brand); }
.news-cover-wrap { max-width: 1080px; margin: 0 auto 2rem; }
.news-cover-img { width: 100%; max-height: 620px; object-fit: cover; border-radius: 14px; }
.news-cover-wrap figcaption, .news-body figcaption { font-size: .85rem; color: #777; margin-top: .4rem; }

.news-body { font-size: 1.12rem; line-height: 1.75; color: #2a2a2a; }
.news-body p { margin-bottom: 1.3rem; }
.news-body h2 { font-size: 1.6rem; font-weight: 800; color: var(--ink); margin: 2.2rem 0 1rem; }
.news-body h3 { font-size: 1.3rem; font-weight: 700; color: var(--ink); margin: 1.8rem 0 .8rem; }
.news-body a { color: var(--brand); }
.news-body img { max-width: 100%; height: auto; border-radius: 10px; }
.news-body figure { margin: 2rem 0; }
.news-body figure.image { display: block; }
.news-body blockquote { border-left: 4px solid var(--brand); padding: .25rem 0 .25rem 1.25rem; margin: 2rem 0; font-size: 1.3rem; font-style: italic; color: #444; }
.news-body ul, .news-body ol { margin-bottom: 1.3rem; }
.news-body table { width: 100%; margin-bottom: 1.5rem; border-collapse: collapse; font-size: 1rem; }
.news-body table td, .news-body table th { border: 1px solid #ddd; padding: .5rem .75rem; }
.news-body iframe { max-width: 100%; border-radius: 10px; }
.news-body iframe[src*="youtube"], .news-body iframe[src*="vimeo"] { width: 100%; height: auto; aspect-ratio: 16/9; }

.news-author-box { display: flex; gap: 1.25rem; align-items: center; background: #f7f4fa; border-radius: 14px; padding: 1.5rem; margin: 2.5rem 0 1rem; }
.news-author-box .news-author-photo-lg { border-color: #fff; }
.news-author-box .news-kicker { color: var(--brand); opacity: 1; }

.news-related { background: #faf8fc; padding: 3rem 0; margin-top: 2.5rem; }
@media (max-width: 575.98px) {
  .news-article-main { margin-top: 80px; }
  .news-body { font-size: 1.05rem; }
  .news-author-box { flex-direction: column; text-align: center; }
}

/* Galería de la nota + visor */
.news-gallery { margin: 2.5rem 0 1rem; }
.news-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .5rem; }
.news-gallery-item { display: block; overflow: hidden; border-radius: .5rem; aspect-ratio: 4 / 3; background: #eee; }
.news-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.news-gallery-item:hover img { transform: scale(1.04); }
.news-lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; }
.news-lightbox[hidden] { display: none; }
.news-lightbox figure { margin: 0; max-width: 90vw; text-align: center; }
.news-lightbox img { max-width: 90vw; max-height: 82vh; object-fit: contain; }
.news-lightbox figcaption { color: #ddd; font-size: .9rem; margin-top: .5rem; min-height: 1.3em; }
.news-lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 2.5rem; line-height: 1; padding: .5rem 1rem; cursor: pointer; opacity: .85; }
.news-lightbox button:hover { opacity: 1; }
.news-lb-close { top: .25rem; right: .5rem; }
.news-lb-prev { left: .25rem; top: 50%; transform: translateY(-50%); }
.news-lb-next { right: .25rem; top: 50%; transform: translateY(-50%); }

/* "Conocé este lugar" */
.news-places { margin: 2.5rem 0 1rem; }
.news-places-list { display: grid; gap: .75rem; }
.news-place { display: flex; gap: 1rem; align-items: center; padding: .6rem; background: #fff; border-radius: 14px; box-shadow: 0 2px 14px rgba(75, 26, 138, .08); text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; }
.news-place:hover { transform: translateY(-2px); box-shadow: 0 8px 26px rgba(75, 26, 138, .14); }
.news-place img, .news-place-noimg { flex: 0 0 110px; width: 110px; height: 84px; object-fit: cover; border-radius: 10px; background: #eee; }
.news-place-info { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.news-place-info strong { font-size: 1.05rem; line-height: 1.25; }
.news-place-cta { font-size: .85rem; font-weight: 600; color: var(--marca-color, #4B1A8A); }
@media (min-width: 768px) { .news-places-list { grid-template-columns: repeat(2, 1fr); } }

/* Compartir */
.news-share { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; margin: 2rem 0 1rem; padding-top: 1rem; border-top: 1px solid #e6e1ee; }
.news-share-label { font-weight: 700; font-size: .9rem; color: var(--ink); margin-right: .25rem; }
.news-share-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #f1ecf8; color: var(--brand); font-size: 1.15rem; text-decoration: none; cursor: pointer; transition: background .2s, color .2s; }
.news-share-btn:hover, .news-share-btn:focus-visible { background: var(--brand); color: #fff; }
.news-share-ok { font-size: .85rem; color: #1a7f4b; font-weight: 600; }
