/* ══════════════════════════════════════════
   Norte Grande 365 — main.css v4.0.0
   El layout crítico (header, nav, ticker, hero, grilla) va inline: assets/css/critical.css
   ══════════════════════════════════════════ */

/* ── FEED ── */
.ng-feed-section--archive { padding-top: 0; }
.ng-feed-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; padding-bottom: 12px; border-bottom: 3px solid var(--g); flex-wrap: wrap; gap: 12px; }
.ng-feed-title { font-size: 13px; font-weight: 900; letter-spacing: .12em; }
.ng-feed-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.ng-ff { font-size: 11px; font-weight: 700; padding: 5px 16px; border-radius: 20px; border: 2px solid #ddd; color: #6b6b6b; background: #fff; transition: all .15s; display: inline-block; }
.ng-ff:hover { border-color: var(--g); color: var(--g); }
.ng-ff.on { background: var(--g); color: #fff; border-color: var(--g); }
.ng-feed-grid.is-loading { opacity: .4; transition: opacity .15s; }

/* Card chica */
.ng-card { background: #fff; border-radius: 8px; overflow: hidden; border: 1px solid #e8e4dc; display: flex; flex-direction: column; }
.ng-card:hover .ng-card-title a { color: var(--g); }
.ng-card-img-link { display: block; flex-shrink: 0; }
.ng-card-img { height: 160px; overflow: hidden; position: relative; }
.ng-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.ng-card:hover .ng-card-img img { transform: scale(1.03); }
.ng-card-body { padding: 15px; flex: 1; display: flex; flex-direction: column; }
.ng-card-title { font-size: 14px; font-weight: 800; line-height: 1.35; color: var(--dk); flex: 1; }
.ng-card-title a { color: inherit; transition: color .15s; }
.ng-card-meta { font-size: 11px; color: #767676; margin-top: 10px; }

/* Card destacada */
.ng-card-feat { grid-column: 1 / 3; display: grid; grid-template-columns: 1.1fr 1fr; border-radius: 8px; overflow: hidden; border: 1px solid #e8e4dc; background: #fff; }
.ng-card-feat-img-link { display: block; }
.ng-card-feat-img { height: 100%; min-height: 240px; overflow: hidden; position: relative; }
.ng-card-feat-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.ng-card-feat:hover .ng-card-feat-img img { transform: scale(1.03); }
.ng-card-feat-body { padding: 22px; display: flex; flex-direction: column; justify-content: space-between; }
.ng-card-feat .ng-card-title--lg a { color: #fff; }
.ng-card-feat:hover .ng-card-title--lg a { color: rgba(255,255,255,.8); }
.ng-card-feat .ng-card-excerpt { color: rgba(255,255,255,.9); }
.ng-card-feat .ng-card-meta { color: rgba(255,255,255,.8); }
.ng-card-title--lg { font-size: 17px; line-height: 1.3; }
.ng-card-excerpt { font-size: 12px; color: #666; line-height: 1.55; margin-top: 8px; }

/* Cargar más + paginación */
.ng-load-more-wrap { text-align: center; padding: 20px 0 4px; }
.ng-load-more { font-size: 12px; font-weight: 700; letter-spacing: .06em; color: #6b6b6b; display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 4px; transition: color .15s; }
.ng-load-more:hover { color: var(--g); }
.ng-load-more[aria-busy="true"] { opacity: .5; pointer-events: none; }
.ng-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 18px 0 0; font-size: 12px; font-weight: 700; }
.ng-pagination .page-numbers { min-width: 34px; height: 34px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border-radius: 17px; background: #fff; border: 1px solid #e0dcd2; color: #555; }
.ng-pagination a.page-numbers:hover { border-color: var(--g); color: var(--g); }
.ng-pagination .current { background: var(--g); border-color: var(--g); color: #fff; }
.ng-pagination .dots { background: transparent; border: 0; }

/* ── ARCHIVO ── */
.ng-archive-header { padding: 22px var(--pad) 18px; max-width: var(--max); margin: 0 auto 22px; border-bottom: 3px solid var(--g); }
.ng-archive-title { font-size: 24px; font-weight: 900; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ng-archive-page { font-size: 15px; color: #888; font-weight: 700; }
.ng-archive-prov-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; display: inline-block; }
.ng-archive-desc { font-size: 13px; color: #666; margin-top: 6px; }
.ng-no-results { grid-column: 1 / -1; color: #777; font-size: 13px; padding: 20px 0; }
.ng-search-page { display: flex; gap: 8px; margin-top: 14px; max-width: 480px; }
.ng-search-page input { flex: 1; padding: 9px 14px; border: 1px solid #d8d3c8; border-radius: 20px; font-family: var(--f); font-size: 14px; }
.ng-search-page button { background: var(--g); color: #fff; border: 0; border-radius: 20px; padding: 9px 18px; font-weight: 700; }

/* ── NOTA ── */
.ng-single { max-width: 780px; margin: 0 auto; padding: 30px var(--pad) 52px; }
.ng-single-header { margin-bottom: 22px; }
.ng-single-title { font-size: 28px; font-weight: 900; line-height: 1.2; margin-bottom: 14px; }
.ng-single-meta { font-size: 12px; color: #666; display: flex; gap: 6px 14px; flex-wrap: wrap; }
.ng-single-author strong { color: var(--dk); }
.ng-read-time, .ng-updated { color: #777; }
.ng-single-hero-img { margin: 0 0 26px; }
.ng-single-hero-img img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; background: #e8e4dc; }
.ng-single-caption { font-size: 12px; color: #666; line-height: 1.45; margin-top: 8px; }
.ng-photo-credit { color: #888; font-style: italic; }
.ng-single-body { font-size: 17px; line-height: 1.8; color: #2a2a2a; overflow-wrap: break-word; }
.ng-single-body > * + * { margin-top: 1.25em; }
.ng-single-body p { margin-bottom: 0; }
.ng-single-body h2 { font-size: 21px; font-weight: 800; line-height: 1.35; margin-top: 1.5em; }
.ng-single-body h3 { font-size: 18px; font-weight: 700; margin-top: 1.25em; }
.ng-single-body a { color: var(--g); text-decoration: underline; }
.ng-single-body strong, .ng-single-body b { font-weight: 800; }
.ng-single-body ul, .ng-single-body ol { padding-left: 1.4em; }
.ng-single-body li + li { margin-top: .4em; }
.ng-single-body blockquote:not([class]) { border-left: 3px solid var(--g); padding: 8px 16px; color: #555; font-style: italic; }
.ng-single-body img { max-width: 100%; height: auto; border-radius: 6px; }
.ng-single-body iframe, .ng-single-body video, .ng-single-body embed, .ng-single-body object { max-width: 100%; }
.ng-single-body iframe[src*="youtube"], .ng-single-body iframe[src*="youtu.be"], .ng-single-body iframe[src*="vimeo"] { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.ng-single-body table { display: block; overflow-x: auto; border-collapse: collapse; font-size: 14px; }
.ng-single-body td, .ng-single-body th { border: 1px solid #e0dcd2; padding: 6px 10px; }
/* Epígrafes: [caption] y fotos de la Biblioteca. Siempre fluidos (sin ancho fijo). */
.ng-single-body .wp-caption, .ng-single-body figure { max-width: 100% !important; width: auto !important; }
.ng-single-body .wp-caption img { margin: 0; }
.ng-single-body .wp-caption-text, .ng-single-body figcaption { font-size: 12.5px; line-height: 1.45; color: #666; margin-top: 8px; }
.ng-single-body .alignleft, .ng-single-body .alignright { max-width: 50% !important; }
.ng-single-body .alignleft { float: left; margin: .3em 1.2em .8em 0; }
.ng-single-body .alignright { float: right; margin: .3em 0 .8em 1.2em; }
.ng-single-body .aligncenter { margin-left: auto; margin-right: auto; }
.ng-single-body::after { content: ''; display: table; clear: both; }
/* Galerías clásicas */
.ng-single-body .gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-left: 0 !important; margin-right: 0 !important; }
.ng-single-body .gallery-columns-1 { grid-template-columns: 1fr; }
.ng-single-body .gallery-columns-2 { grid-template-columns: repeat(2, 1fr); }
.ng-single-body .gallery-columns-4 { grid-template-columns: repeat(4, 1fr); }
.ng-single-body .gallery-item { margin: 0 !important; width: auto !important; max-width: none !important; float: none !important; }
.ng-single-body .gallery-item img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border: 0 !important; margin: 0; }
.ng-single-body .gallery-caption { font-size: 11px; color: #666; margin-top: 4px; }
.ng-single-body .gallery br { display: none; }
.ng-single-body .instagram-media, .ng-single-body .twitter-tweet { margin-left: auto !important; margin-right: auto !important; }
.ng-single-footer { margin-top: 30px; padding-top: 18px; border-top: 1px solid #e8e4dc; }
.ng-single-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.ng-tag { font-size: 11px; font-weight: 700; letter-spacing: .05em; background: #ece9e1; color: #555; padding: 5px 14px; border-radius: 20px; transition: background .15s; }
.ng-tag:hover { background: var(--g); color: #fff; }
.ng-tag--tag { background: transparent; border: 1px solid #ddd8cc; }

/* Compartir */
.ng-share { display: flex; align-items: center; gap: 10px; margin: 28px 0 20px; flex-wrap: wrap; }
.ng-share-label { font-size: 11px; font-weight: 900; letter-spacing: .1em; color: #777; text-transform: uppercase; margin-right: 4px; }
.ng-share-btn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px; border-radius: 6px; font-size: 13px; font-weight: 800; color: #fff; border: 0; transition: opacity .15s, transform .15s; }
.ng-share-btn:hover { opacity: .88; transform: translateY(-1px); color: #fff; }
.ng-share-btn .ng-i { font-size: 16px; }
.ng-share-fb { background: #1877f2; }
.ng-share-wa { background: #1da851; }
.ng-share-x { background: #1a1a1a; }
.ng-share-tg { background: #229ed9; }
.ng-share-copy, .ng-share-native { background: #ece9e1; color: #333; }
.ng-share-copy:hover, .ng-share-native:hover { color: #333; }
.ng-share-btn[hidden] { display: none; }

/* Banner del grupo de WhatsApp */
.ng-wa-wrap { margin: 28px 0; padding-top: 24px; border-top: 2px solid #e0ddd5; }
.ng-wa { display: flex; align-items: center; gap: 16px; background: linear-gradient(135deg, #1a1a1a 0%, #1f7a5c 100%); border-radius: 12px; padding: 18px 22px; box-shadow: 0 4px 16px rgba(31,122,92,.25); }
.ng-wa-logo { height: 36px; width: auto; flex-shrink: 0; }
.ng-wa-text { flex: 1; display: flex; flex-direction: column; }
.ng-wa-kicker { font-size: 10px; font-weight: 900; color: rgba(255,255,255,.7); text-transform: uppercase; letter-spacing: 1.4px; margin-bottom: 4px; }
.ng-wa-title { font-size: 16px; font-weight: 900; color: #fff; line-height: 1.25; margin-bottom: 3px; }
.ng-wa-sub { font-size: 11px; color: rgba(255,255,255,.75); font-weight: 700; }
.ng-wa-btn { margin-left: auto; background: var(--a); color: #1a1a1a; border-radius: 20px; padding: 9px 20px; font-size: 12px; font-weight: 900; white-space: nowrap; flex-shrink: 0; letter-spacing: .04em; }

/* Relacionadas */
.ng-related { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad) 44px; }
.ng-related-title { font-size: 13px; font-weight: 900; letter-spacing: .1em; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 3px solid var(--g); text-transform: uppercase; }

/* ── CLIMA ── */
.ng-clima-wrap { padding-top: 0; padding-bottom: 0; }
.ng-clima-widget { margin: 28px 0; border-radius: 14px; overflow: hidden; box-shadow: 0 2px 16px rgba(0,0,0,.06); }
.ng-clima-header { display: flex; align-items: center; gap: 8px; padding: 13px 20px; background: var(--dk); color: var(--cr); }
.ng-clima-header .ng-i { font-size: 16px; color: var(--a); }
.ng-clima-h { font-size: 11px; font-weight: 900; letter-spacing: .12em; }
.ng-clima-update { margin-left: auto; font-size: 10px; color: #8a8a8a; }
.ng-clima-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; background: rgba(0,0,0,.15); padding: 3px; }
.ng-clima-card { position: relative; padding: 18px 16px 16px; display: flex; flex-direction: column; min-height: 130px; overflow: hidden; color: #fff; border-radius: 2px; }
.ng-clima-card::before { content: ''; position: absolute; inset: 0; background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.04) 0, rgba(255,255,255,.04) 1px, transparent 0, transparent 50%); background-size: 12px 12px; pointer-events: none; }
.ng-clima-card::after { content: ''; position: absolute; right: -10px; bottom: -10px; width: 70px; height: 70px; background: rgba(255,255,255,.07); border-radius: 50%; pointer-events: none; }
.ng-clima-prov { font-size: 10px; font-weight: 900; letter-spacing: .1em; color: #fff; margin-bottom: 2px; text-transform: uppercase; }
.ng-clima-ciudad { font-size: 10px; color: rgba(255,255,255,.85); margin-bottom: 10px; }
.ng-clima-temp { font-size: 32px; font-weight: 900; line-height: 1; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; min-height: 32px; }
.ng-clima-icon { font-size: 26px; opacity: .9; }
.ng-clima-na { opacity: .5; }
.ng-clima-desc { font-size: 11px; font-weight: 700; margin-bottom: 6px; min-height: 1.4em; }
.ng-clima-extra { font-size: 10px; color: rgba(255,255,255,.9); margin-top: auto; display: flex; gap: 10px; min-height: 1.2em; }
.ng-clima-extra span { display: flex; align-items: center; gap: 3px; }

/* ── SECCIONES DE PORTADA ── */
.ng-secciones-wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad) 40px; }
.ng-seccion { margin-bottom: 40px; }
.ng-seccion-header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 10px; margin-bottom: 18px; border-bottom: 3px solid var(--seccion-color, var(--g)); }
.ng-seccion-title-wrap { display: flex; align-items: center; gap: 10px; }
.ng-seccion-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; display: inline-block; }
.ng-seccion-title { font-size: 13px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--dk); }
.ng-seccion-ver-mas { font-size: 11px; font-weight: 700; color: var(--seccion-color, var(--g)); white-space: nowrap; }
.ng-seccion-ver-mas:hover { opacity: .7; }
.ng-seccion-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ng-seccion--deportes { --seccion-color: #2e7d32; background: #2e7d32; border-radius: 12px; overflow: hidden; padding: 20px 20px 24px; }
.ng-seccion--deportes .ng-seccion-header { border-bottom-color: rgba(255,255,255,.25); }
.ng-seccion--deportes .ng-seccion-title { color: #fff; }
.ng-seccion--deportes .ng-seccion-title-wrap .ng-i { color: rgba(255,255,255,.9); font-size: 16px; }
.ng-seccion--deportes .ng-seccion-ver-mas { color: rgba(255,255,255,.85); }
.ng-seccion--deportes .ng-card { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.15); }
.ng-seccion--deportes .ng-card-title a { color: #fff; }
.ng-seccion--deportes .ng-card:hover .ng-card-title a { color: rgba(255,255,255,.8); }
.ng-seccion--deportes .ng-card-meta { color: rgba(255,255,255,.8); }

/* ── HISTORIAL ── */
.ng-historial-wrap { max-width: var(--max); margin: 0 auto; padding: 32px var(--pad) 50px; }
.ng-historial-header { margin-bottom: 28px; padding-bottom: 16px; border-bottom: 3px solid var(--g); }
.ng-historial-title { font-size: 24px; font-weight: 900; display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.ng-historial-title .ng-i { color: var(--g); }
.ng-historial-sub { font-size: 13px; color: #777; }
.ng-historial-list { display: flex; flex-direction: column; gap: 2px; }
.ng-historial-item { display: flex; align-items: center; gap: 18px; padding: 14px 12px; border-radius: 8px; }
.ng-historial-item:hover { background: #fff; }
.ng-historial-item:not(:last-child) { border-bottom: 1px solid #ece8df; }
.ng-historial-img-link { flex-shrink: 0; }
.ng-historial-img { width: 110px; height: 74px; border-radius: 6px; overflow: hidden; }
.ng-historial-img img { width: 100%; height: 100%; object-fit: cover; }
.ng-historial-body { flex: 1; min-width: 0; }
.ng-historial-item-title { font-size: 15px; font-weight: 800; line-height: 1.35; margin: 6px 0; }
.ng-historial-item:hover .ng-historial-item-title a { color: var(--g); }
.ng-historial-meta { font-size: 11px; color: #777; display: flex; align-items: center; gap: 5px; }

/* ── FOOTER ── */
.ng-footer { background: var(--dk); }
.ng-footer::before { content: ''; display: block; height: 4px; background: linear-gradient(90deg, var(--g) 0%, var(--g) 40%, var(--c) 60%, var(--a) 100%); }
.ng-footer-inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.ng-footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: 28px; padding: 36px 0 28px; border-bottom: 1px solid #272727; }
.ng-footer-logo-link { display: inline-block; margin-bottom: 16px; }
.ng-footer-logo { height: 56px; width: auto; }
.ng-footer-desc, .ng-footer-contact { color: #f6f4ee; font-size: 11px; line-height: 1.7; margin-bottom: 10px; }
.ng-footer-contact a:hover { color: var(--a); }
.ng-footer-col-title { font-size: 11px; font-weight: 900; letter-spacing: .12em; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 2px solid; }
.ng-footer-col:nth-child(2) .ng-footer-col-title { color: #3fb68c; border-color: var(--g); }
.ng-footer-col:nth-child(3) .ng-footer-col-title { color: #e07a5c; border-color: var(--c); }
.ng-footer-col:nth-child(4) .ng-footer-col-title { color: var(--a); border-color: var(--a); }
.ng-footer-col:nth-child(5) .ng-footer-col-title { color: #3fb68c; border-color: var(--g); }
.ng-footer-link { display: block; color: #f6f4ee; font-size: 11px; margin-bottom: 8px; }
.ng-footer-link:hover { color: #aaa; }
.ng-footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; gap: 12px; flex-wrap: wrap; }
.ng-footer-copy { color: #f6f4ee; font-size: 11px; }
.ng-social { display: flex; gap: 8px; }
.ng-social-btn { width: 34px; height: 34px; background: #2a2a2a; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #bbb; font-size: 16px; transition: all .15s; }
.ng-social-btn:hover { background: var(--g); color: #fff; }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) { :root { --pad: 20px; } }
@media (max-width: 900px) {
	.ng-card-feat { grid-column: 1 / -1; grid-template-columns: 1fr; }
	.ng-card-feat-img { min-height: 220px; height: 220px; }
	.ng-footer-grid { grid-template-columns: 1fr 1fr 1fr; }
	.ng-footer-col:first-child { grid-column: 1 / -1; }
	.ng-seccion-grid { grid-template-columns: repeat(2, 1fr); }
	.ng-seccion-grid .ng-card:nth-child(3) { display: none; }
}
@media (max-width: 700px) {
	.ng-single { padding: 18px 16px 36px; }
	.ng-single-title { font-size: 23px; }
	.ng-single-body { font-size: 17px; }
	.ng-single-body .alignleft, .ng-single-body .alignright { float: none; max-width: 100% !important; margin: 1em 0; }
	.ng-clima-grid { grid-template-columns: repeat(2, 1fr); }
	.ng-clima-card { min-height: 120px; padding: 14px 14px 12px; }
	.ng-clima-temp { font-size: 26px; }
	.ng-footer-grid { grid-template-columns: 1fr 1fr; }
	.ng-wa { flex-wrap: wrap; }
	.ng-wa-btn { margin-left: 0; }
	.ng-single-body .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
	.ng-seccion-grid { grid-template-columns: 1fr; }
	.ng-seccion-grid .ng-card:nth-child(3) { display: flex; }
	.ng-footer-grid { grid-template-columns: 1fr; }
	.ng-share-btn { padding: 8px 12px; }
}
