/* Noticias e Instagram — mismos colores y tipografías que el resto de la web (Manual de marca v1.3) */

.nv-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .nv-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.nv-card, .nv-article { background: #fff; border: 1px solid rgba(8,64,64,.08); border-radius: 1.5rem; overflow: hidden; color: var(--petroleo); }
.nv-card { display: flex; flex-direction: column; text-decoration: none; transition: transform 250ms cubic-bezier(.23,1,.32,1), box-shadow 250ms cubic-bezier(.23,1,.32,1); }
@media (hover: hover) and (pointer: fine) {
  .nv-card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(8,64,64,.35); }
}
.nv-card:focus-visible, .nv-link:focus-visible, .nv-detail summary:focus-visible, .ig-post:focus-visible { outline: 2px solid var(--laguna); outline-offset: 3px; }

.nv-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--niebla); }
.nv-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Panel de color cuando la noticia no tiene foto */
.nv-panel { width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding: 22px 24px; background: var(--petroleo); color: #fff; position: relative; }
.nv-panel::before { content: '+'; position: absolute; right: 20px; top: 14px; font: 300 22px/1 'Instrument Sans', Arial, sans-serif; opacity: .7; }
.nv-panel-num { font: italic 400 clamp(4rem, 9vw, 5.5rem)/0.9 'Instrument Serif', Georgia, serif; letter-spacing: -0.03em; }
.nv-panel-mes { margin-top: 8px; font: 500 11px/1.4 'Instrument Sans', Arial, sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.nv-grid > :nth-child(3n+2) .nv-panel, #noticias-lista > :nth-child(3n+2) .nv-panel { background: var(--laguna); color: var(--petroleo); }
.nv-grid > :nth-child(3n+3) .nv-panel, #noticias-lista > :nth-child(3n+3) .nv-panel { background: var(--deshielo); color: var(--petroleo); }

.nv-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.nv-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 13px; color: #3D5E5E; }
.nv-cat { font-weight: 600; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--petroleo); }
.nv-title { font-family: 'Instrument Serif', Georgia, serif !important; font-weight: 400 !important; font-size: 1.65rem; line-height: 1.12; letter-spacing: -0.01em; text-wrap: balance; margin: 0; }
.nv-article .nv-title { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.nv-sum { color: #3D5E5E; line-height: 1.6; margin: 0; font-size: 17px; }
.nv-card .nv-sum { font-size: 15px; }
.nv-more { margin-top: auto; padding-top: 6px; font-weight: 600; font-size: 15px; color: var(--petroleo); text-decoration: underline; text-decoration-color: var(--laguna); text-underline-offset: 4px; }
.nv-more::after { content: ' →'; }

/* Página de noticias: foto a la izquierda, texto a la derecha */
#noticias-lista { display: grid; gap: 28px; }
@media (min-width: 900px) {
  .nv-article { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
  .nv-article .nv-media { aspect-ratio: 4 / 3; align-self: start; margin: 24px 0 24px 24px; border-radius: 1rem; }
  .nv-article .nv-body { padding: 36px 40px 40px; }
}
.nv-article { scroll-margin-top: 110px; }
.nv-article:target { box-shadow: 0 0 0 2px var(--laguna); }

.nv-detail summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; font-size: 15px; color: var(--petroleo); }
.nv-detail summary::-webkit-details-marker { display: none; }
.nv-detail summary::after { content: '+'; font-weight: 400; font-size: 20px; line-height: 1; }
.nv-detail[open] summary::after { content: '−'; }
.nv-detail .nv-close, .nv-detail[open] .nv-open { display: none; }
.nv-detail[open] .nv-close { display: inline; }
.nv-full { display: grid; gap: 14px; padding: 4px 0 8px; max-width: 65ch; }
.nv-full p { margin: 0; line-height: 1.65; color: var(--petroleo); font-size: 17px; }

.nv-link { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; background: var(--laguna); color: var(--petroleo); font-weight: 600; font-size: 14px; text-decoration: none; transition: background .2s; }
.nv-link:hover { background: var(--deshielo); }
.nv-link::after { content: '↗'; }

.nv-empty { padding: 48px 24px; text-align: center; color: #3D5E5E; background: #fff; border: 1px dashed rgba(8,64,64,.2); border-radius: 1.5rem; }

/* ---------- Instagram ---------- */
.ig-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .ig-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
.ig-post { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: 1rem; background: rgba(255,255,255,.06); }
.ig-post img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 400ms cubic-bezier(.23,1,.32,1); }
@media (hover: hover) and (pointer: fine) { .ig-post:hover img { transform: scale(1.04); } }
.ig-badge { position: absolute; top: 10px; right: 10px; padding: 3px 8px; border-radius: 999px; background: rgba(8,64,64,.75); color: #fff; font-size: 11px; font-weight: 500; }
/* Mientras no esté conectado el feed, solo se ve la invitación a seguir la cuenta */
.ig-sin-feed .ig-grid { display: none; }
.ig-skeleton { aspect-ratio: 1; border-radius: 1rem; background: rgba(255,255,255,.06); }
