
/* ═══════════════════════════════════════════════════════
   NEWS MODAL — AGENTS.md Compliant
   Modal ocupa 90vw × 90vh con overlay translúcido oscuro
═══════════════════════════════════════════════════════ */

.news-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0,0,0,0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: nmodal-fade-in 0.2s ease;
}
.news-modal-overlay[hidden] { display: none; }
@keyframes nmodal-fade-in { from{opacity:0} to{opacity:1} }

.news-modal-panel {
  width: 90vw;
  height: 90vh;
  max-width: 1100px;
  background: var(--surface, #0f1623);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 32px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(245,197,24,0.08);
  animation: nmodal-slide-up 0.25s cubic-bezier(0.22,1,0.36,1);
}
@keyframes nmodal-slide-up {
  from { opacity:0; transform:translateY(28px) scale(0.97); }
  to   { opacity:1; transform:translateY(0) scale(1); }
}

.nmodal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.4rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.02);
  flex-shrink: 0;
}
.nmodal-brand { display:flex; align-items:center; gap:0.6rem; }
.nmodal-brand-dot {
  width:10px; height:10px; border-radius:50%;
  background: var(--gold,#F5C518);
  box-shadow: 0 0 8px rgba(245,197,24,0.4);
  animation: nmodal-pulse 2s ease-in-out infinite;
}
@keyframes nmodal-pulse {
  0%,100% { box-shadow:0 0 8px rgba(245,197,24,0.4); }
  50%      { box-shadow:0 0 14px rgba(245,197,24,0.7); }
}
.nmodal-brand-name {
  font-size:0.78rem; font-weight:700; letter-spacing:0.09em;
  text-transform:uppercase; color:var(--gold,#F5C518);
}
.nmodal-close {
  background:none; border:none; cursor:pointer;
  width:34px; height:34px; border-radius:8px;
  display:flex; align-items:center; justify-content:center;
  font-size:1.05rem; color:var(--text-muted,#8899aa);
  transition:background 0.15s,color 0.15s;
}
.nmodal-close:hover { background:rgba(255,255,255,0.08); color:#fff; }

.nmodal-hero {
  height:200px; flex-shrink:0;
  background: var(--surface-2,#141c2b) center/cover no-repeat;
  position:relative;
}
.nmodal-hero::after {
  content:''; position:absolute; inset:0;
  background:linear-gradient(to bottom,transparent 40%,var(--surface,#0f1623) 100%);
}

.nmodal-body {
  flex:1; overflow-y:auto;
  padding:1.8rem 2.5rem 3rem;
  scroll-behavior:smooth;
}
.nmodal-body::-webkit-scrollbar { width:5px; }
.nmodal-body::-webkit-scrollbar-thumb { background:rgba(255,255,255,0.1); border-radius:3px; }

.nmodal-vpt-header {
  display:inline-flex; flex-direction:column; gap:0.25rem;
  background:linear-gradient(135deg,rgba(245,197,24,0.08),rgba(245,197,24,0.03));
  border:1px solid rgba(245,197,24,0.2); border-radius:12px;
  padding:0.7rem 1.1rem; margin-bottom:1.3rem;
}
.nmodal-vpt-tag {
  font-size:0.7rem; font-weight:700; letter-spacing:0.1em;
  text-transform:uppercase; color:var(--gold,#F5C518);
}
.nmodal-vpt-intro {
  font-size:0.82rem; color:rgba(245,197,24,0.65); margin:0; line-height:1.4;
}

.nmodal-meta {
  display:flex; align-items:center; gap:0.75rem;
  margin-bottom:0.8rem; flex-wrap:wrap;
}
.nmodal-source-badge {
  font-size:0.68rem; font-weight:700; letter-spacing:0.09em;
  text-transform:uppercase; padding:0.22rem 0.6rem; border-radius:20px;
  background:rgba(0,170,255,0.1); border:1px solid rgba(0,170,255,0.22);
  color:var(--blue,#00AAFF);
}
.nmodal-date { font-size:0.74rem; color:var(--text-muted,#6b7a8d); }

.nmodal-title {
  font-size:clamp(1.25rem,2.5vw,1.85rem); font-weight:700;
  line-height:1.3; color:var(--text-primary,#e4ecf4); margin:0 0 1.3rem; text-align:center;
}

.nmodal-summary {
  font-size:1rem; line-height:1.8; color:var(--text-secondary,#b0bec8);
  margin-bottom:0.9rem;
  border-left:3px solid rgba(0,170,255,0.3); padding-left:1.1rem;
}

.nmodal-source-link { font-size:0.8rem; color:var(--text-muted,#6b7a8d); margin-bottom:1rem; }
.nmodal-source-link a { color:var(--blue,#00AAFF); text-decoration:underline; text-underline-offset:3px; }
.nmodal-source-link--bottom {
  margin-top:0.5rem; margin-bottom:2rem;
  padding-top:0.75rem; border-top:1px solid rgba(255,255,255,0.06);
}

.nmodal-divider {
  height:1px;
  background:linear-gradient(to right,transparent,rgba(245,197,24,0.25),transparent);
  margin:1.4rem 0;
}

.nmodal-content { font-size:0.95rem; line-height:1.85; color:var(--text-secondary,#b0bec8); }
.nmodal-content p { margin-bottom:1.1rem; }
.nmodal-content p:last-child { margin-bottom:0; }

.nmodal-cta { margin-top:2.5rem; text-align:center; }
.nmodal-cta-btn {
  display:inline-flex; align-items:center; gap:0.5rem;
  padding:0.75rem 1.8rem;
  background:linear-gradient(135deg,var(--gold,#F5C518),#d4a500);
  color:#0a0e1a; font-weight:700; font-size:0.9rem;
  border-radius:12px; text-decoration:none;
  transition:opacity 0.2s,transform 0.2s;
  box-shadow:0 0 24px rgba(245,197,24,0.18);
}
.nmodal-cta-btn:hover { opacity:0.88; transform:translateY(-1px); }

.nmodal-loading {
  display:flex; flex-direction:column; align-items:center; gap:1rem;
  padding:3rem 0; opacity:0.5;
}
.nmodal-spinner {
  width:30px; height:30px;
  border:2px solid rgba(0,170,255,0.15); border-top-color:var(--blue,#00AAFF);
  border-radius:50%; animation:nmodal-spin 0.7s linear infinite;
}
@keyframes nmodal-spin { to { transform:rotate(360deg); } }

@media (max-width:640px) {
  .news-modal-panel { width:96vw; height:94vh; border-radius:14px; }
  .nmodal-body { padding:1.2rem 1.2rem 2.5rem; }
  .nmodal-hero { height:140px; }
}
