/* ══════════════════════════════════════════════════════════════════════════
   panel-pro.css — Design System Profesional para Paneles MAPITA
   Versión: 1.0 — Mayo 2026
   Compatibilidad: Sport (light/amber) · Brand (light/purple) · Business
                   (light/blue) · TRT (dark)
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Variables globales ──────────────────────────────────────────────────── */
:root {
  --pro-radius:       10px;
  --pro-radius-sm:    6px;
  --pro-radius-pill:  20px;
  --pro-shadow-soft:  0 2px 8px rgba(0,0,0,.07);
  --pro-shadow-card:  0 6px 20px rgba(0,0,0,.11);
  --pro-shadow-deep:  0 12px 40px rgba(0,0,0,.2);
  --pro-transition:   all .18s cubic-bezier(.4,0,.2,1);
  --pro-font:         -apple-system,BlinkMacSystemFont,'Segoe UI',system-ui,sans-serif;
  --pro-font-serif:   Georgia,'Times New Roman',serif;
  --pro-chip-bg:      #f1f5f9;
  --pro-chip-text:    #475569;
  --pro-section-clr:  #94a3b8;
  --pro-accent:       #667eea;
  /* Hero gradient fallbacks por categoría */
  --pro-grad-default:   linear-gradient(135deg,#1e293b 0%,#475569 100%);
  --pro-grad-local:     linear-gradient(135deg,#7c2d12 0%,#ea580c 100%);
  --pro-grad-economia:  linear-gradient(135deg,#0c4a6e 0%,#0369a1 100%);
  --pro-grad-cultura:   linear-gradient(135deg,#3b0764 0%,#7c3aed 100%);
  --pro-grad-deportes:  linear-gradient(135deg,#14532d 0%,#16a34a 100%);
  --pro-grad-tecnologia:linear-gradient(135deg,#0f172a 0%,#334155 100%);
  --pro-grad-salud:     linear-gradient(135deg,#14532d 0%,#15803d 100%);
  --pro-grad-educacion: linear-gradient(135deg,#78350f 0%,#d97706 100%);
  --pro-grad-politica:  linear-gradient(135deg,#4c0519 0%,#be123c 100%);
  --pro-grad-turismo:   linear-gradient(135deg,#164e63 0%,#0891b2 100%);
  --pro-grad-negocios:  linear-gradient(135deg,#1e3a5f 0%,#1B3B6F 100%);
  --pro-grad-marcas:    linear-gradient(135deg,#581c87 0%,#9333ea 100%);
  --pro-grad-eventos:   linear-gradient(135deg,#831843 0%,#db2777 100%);
}

/* ══════════════════════════════════════════════════════════════════════════
   PRO-CARD — tarjeta de item universal
   ══════════════════════════════════════════════════════════════════════════ */
.pro-card {
  background: #fff;
  border-radius: var(--pro-radius);
  padding: 10px 12px;
  margin-bottom: 6px;
  border: 1px solid #e8ecf0;
  box-shadow: var(--pro-shadow-soft);
  cursor: pointer;
  transition: var(--pro-transition);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  position: relative;
  overflow: hidden;
}
.pro-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--pro-accent);
  opacity: 0;
  transition: opacity .18s;
}
.pro-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--pro-shadow-card);
  border-color: rgba(0,0,0,.05);
}
.pro-card:hover::before { opacity: 1; }
.pro-card:active { transform: translateY(0); }

/* Variante oscura (TRT) */
.pro-dark .pro-card, .pro-card.dark {
  background: #1a1d27;
  border-color: #2d3148;
  color: #e2e8f0;
}
.pro-dark .pro-card:hover, .pro-card.dark:hover {
  background: #21253a;
  border-color: rgba(255,255,255,.06);
}

/* ── Avatar / logo circular ── */
.pro-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  background: var(--pro-avatar-bg, linear-gradient(135deg,#7c3aed,#a855f7));
  overflow: hidden;
  border: 2px solid rgba(255,255,255,.55);
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
  letter-spacing: -.5px;
}
.pro-avatar img { width:100%; height:100%; object-fit:cover; border-radius:50%; }
.pro-avatar-sq  { border-radius: 9px !important; border: 1px solid rgba(0,0,0,.1) !important; }

/* ── Cuerpo de card ── */
.pro-card-body  { flex:1; min-width:0; }
.pro-card-title {
  font-weight: 700; font-size: 13px; color: #1e293b;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3;
}
.pro-dark .pro-card-title { color: #f1f5f9; }
.pro-card-sub {
  font-size: 11px; color: #64748b; margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pro-dark .pro-card-sub { color: #94a3b8; }
.pro-card-foot {
  display: flex; align-items: center; gap: 7px;
  margin-top: 5px; flex-wrap: wrap;
}

/* ══════════════════════════════════════════════════════════════════════════
   PRO-BADGE — pastillas de estado
   ══════════════════════════════════════════════════════════════════════════ */
.pro-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 9px; font-weight: 800; padding: 2px 7px;
  border-radius: var(--pro-radius-pill);
  letter-spacing: .05em; text-transform: uppercase; white-space: nowrap;
}
.pro-badge-live    { background: #dc2626; color: #fff; }
.pro-badge-live::before {
  content: ''; display: inline-block;
  width: 5px; height: 5px; border-radius: 50%; background: #fff;
  animation: proPulse 1.2s infinite;
}
@keyframes proPulse { 0%,100%{opacity:1;transform:scale(1);} 50%{opacity:.35;transform:scale(.65);} }
.pro-badge-featured  { background: #f59e0b; color: #fff; }
.pro-badge-verified  { background: #2563eb; color: #fff; }
.pro-badge-open      { background: #059669; color: #fff; }
.pro-badge-closed    { background: #9ca3af; color: #fff; }
.pro-badge-new       { background: #7c3aed; color: #fff; }
.pro-badge-vigente   { background: #d1fae5; color: #065f46; }
.pro-badge-tramite   { background: #fef3c7; color: #92400e; }
.pro-badge-vencida   { background: #f1f5f9; color: #64748b; }

/* ══════════════════════════════════════════════════════════════════════════
   PRO-CHIP — etiquetas de categoría
   ══════════════════════════════════════════════════════════════════════════ */
.pro-chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 600; padding: 2px 8px;
  border-radius: var(--pro-radius-pill);
  background: var(--pro-chip-bg); color: var(--pro-chip-text);
  white-space: nowrap; border: 1px solid transparent;
}
.pro-chip .chip-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 16px; height: 16px; border-radius: 8px;
  background: rgba(0,0,0,.1); font-size: 9px; font-weight: 800; padding: 0 3px;
}
/* Colores por categoría */
.pro-chip[data-cat="local"]       { background:#fef2f2; color:#b91c1c; }
.pro-chip[data-cat="economia"]    { background:#eff6ff; color:#1d4ed8; }
.pro-chip[data-cat="cultura"]     { background:#f5f3ff; color:#6d28d9; }
.pro-chip[data-cat="deportes"]    { background:#f0fdf4; color:#166534; }
.pro-chip[data-cat="tecnologia"]  { background:#f8fafc; color:#334155; }
.pro-chip[data-cat="salud"]       { background:#f0fdf4; color:#15803d; }
.pro-chip[data-cat="educacion"]   { background:#fffbeb; color:#92400e; }
.pro-chip[data-cat="politica"]    { background:#fff1f2; color:#9f1239; }
.pro-chip[data-cat="turismo"]     { background:#ecfeff; color:#0e7490; }
.pro-chip[data-cat="negocios"]    { background:#eff6ff; color:#1e3a8a; }
.pro-chip[data-cat="marcas"]      { background:#fdf4ff; color:#7e22ce; }
.pro-chip[data-cat="eventos"]     { background:#fdf2f8; color:#9d174d; }

/* ══════════════════════════════════════════════════════════════════════════
   PRO-HERO — área hero de paneles de detalle
   ══════════════════════════════════════════════════════════════════════════ */
.pro-hero {
  position: relative; width: 100%; height: 200px;
  overflow: hidden; flex-shrink: 0;
  background: var(--pro-hero-bg, var(--pro-grad-default));
}
.pro-hero-img    { width:100%; height:100%; object-fit:cover; display:block; }
.pro-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom,rgba(0,0,0,.1) 0%,rgba(0,0,0,.6) 100%);
  pointer-events: none;
}
.pro-hero-icon {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-55%);
  font-size: 52px; filter: drop-shadow(0 4px 16px rgba(0,0,0,.45));
  line-height: 1;
}
.pro-hero-badge { position: absolute; top: 12px; right: 12px; }

/* ══════════════════════════════════════════════════════════════════════════
   PRO-SECTION-TITLE — separador con etiqueta
   ══════════════════════════════════════════════════════════════════════════ */
.pro-section-title {
  font-size: 10px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .08em; color: var(--pro-section-clr);
  margin: 14px 0 8px;
  display: flex; align-items: center; gap: 8px;
}
.pro-section-title::after {
  content: ''; flex: 1; height: 1px; background: currentColor; opacity: .2;
}

/* ══════════════════════════════════════════════════════════════════════════
   PRO-ACTION-BAR — grilla de 4 acciones en detalle
   ══════════════════════════════════════════════════════════════════════════ */
.pro-action-bar {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; margin: 10px 0 14px;
}
.pro-action-btn {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 9px 4px; border-radius: var(--pro-radius); cursor: pointer;
  background: #f8fafc; border: 1px solid #e2e8f0;
  font-size: 10px; color: #475569; font-weight: 600;
  text-decoration: none; transition: var(--pro-transition);
}
.pro-action-btn:hover { background:#e0f2fe; border-color:#bae6fd; color:#0369a1; transform:translateY(-2px); }
.pro-action-btn .pro-action-icon { font-size: 18px; line-height: 1; }
.pro-dark .pro-action-btn { background:#1a1d27; border-color:#2d3148; color:#94a3b8; }
.pro-dark .pro-action-btn:hover { background:#21253a; border-color:#3b82f6; color:#60a5fa; }

/* ══════════════════════════════════════════════════════════════════════════
   PRO-BIZ-REFS — bloque de negocios relacionados / cercanos
   ══════════════════════════════════════════════════════════════════════════ */
.pro-biz-refs   { display: flex; flex-direction: column; gap: 6px; margin-top: 2px; }
.pro-biz-card {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 10px; border-radius: 9px;
  background: #f8fafc; border: 1px solid #e2e8f0;
  cursor: pointer; transition: var(--pro-transition);
}
.pro-biz-card:hover {
  background: #f0f9ff; border-color: #7dd3fc; transform: translateX(2px);
  box-shadow: 0 2px 10px rgba(14,165,233,.12);
}
.pro-dark .pro-biz-card { background: #1a1d27; border-color: #2d3148; }
.pro-dark .pro-biz-card:hover { background:#21253a; border-color:#3b82f6; transform:translateX(2px); }
.pro-biz-avatar {
  width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg,#e0f2fe,#bae6fd);
  border: 1px solid rgba(0,0,0,.06);
  font-size: 14px; font-weight: 800; color: #0369a1; overflow: hidden;
}
.pro-biz-avatar img { width:100%; height:100%; object-fit:cover; border-radius:8px; }
.pro-dark .pro-biz-avatar { background:#21253a; border-color:#2d3148; color:#3b82f6; }
.pro-biz-info { flex:1; min-width:0; }
.pro-biz-name { font-size: 12px; font-weight: 700; color: #1e293b; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.pro-dark .pro-biz-name { color:#f1f5f9; }
.pro-biz-meta { font-size: 10px; color: #94a3b8; margin-top: 1px; }
.pro-biz-cta {
  flex-shrink: 0; font-size: 9.5px; font-weight: 700; color: #0369a1;
  background: rgba(14,165,233,.1); border: 1px solid rgba(14,165,233,.2);
  border-radius: 5px; padding: 3px 7px; cursor: pointer; white-space: nowrap;
  transition: var(--pro-transition);
}
.pro-biz-cta:hover { background: rgba(14,165,233,.18); }
.pro-dark .pro-biz-cta { color:#60a5fa; background:rgba(59,130,246,.12); border-color:rgba(59,130,246,.2); }

/* Skeleton loader */
.pro-skeleton-item {
  height: 50px; border-radius: 9px; margin-bottom: 6px;
  background: linear-gradient(90deg,#f1f5f9 25%,#e2e8f0 50%,#f1f5f9 75%);
  background-size: 200% 100%;
  animation: proShimmer 1.5s infinite;
}
.pro-dark .pro-skeleton-item {
  background: linear-gradient(90deg,#1a1d27 25%,#21253a 50%,#1a1d27 75%);
  background-size: 200% 100%;
}
@keyframes proShimmer { 0%{background-position:200% 0;} 100%{background-position:-200% 0;} }

/* ══════════════════════════════════════════════════════════════════════════
   NOTICIAS SIDEBAR CARDS — tarjetas compactas tipo diario
   ══════════════════════════════════════════════════════════════════════════ */
.np-sidebar-card {
  display: flex; align-items: flex-start; gap: 9px;
  padding: 9px 11px 9px 0; margin-bottom: 5px;
  background: #fff; border-radius: var(--pro-radius);
  border: 1px solid #e8ecf0;
  border-left: 3px solid var(--np-cat-color, #667eea);
  cursor: pointer; transition: var(--pro-transition);
  box-shadow: var(--pro-shadow-soft);
  overflow: hidden;
}
.np-sidebar-card:hover {
  transform: translateX(3px);
  box-shadow: var(--pro-shadow-card);
  border-color: rgba(0,0,0,.05);
  border-left-color: var(--np-cat-color, #667eea);
}
.np-sidebar-cat-stripe {
  width: 3px; flex-shrink: 0; align-self: stretch;
  background: var(--np-cat-color, #667eea);
  margin-right: 0; border-radius: 2px 0 0 2px;
  display: none; /* el color ya está en el border-left */
}
.np-sidebar-card-body { flex:1; min-width:0; padding-left: 10px; }
.np-sidebar-card-chip {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 9px; font-weight: 700; padding: 1px 7px;
  border-radius: 10px; margin-bottom: 3px;
  color: var(--np-cat-color, #667eea);
  background: var(--np-cat-bg, #f0f2ff);
  border: 1px solid color-mix(in srgb, var(--np-cat-color, #667eea) 20%, transparent);
}
.np-sidebar-card-title {
  font-size: 12.5px; font-weight: 700; color: #1e293b; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.np-sidebar-card-foot {
  display: flex; align-items: center; gap: 8px;
  font-size: 10px; color: #94a3b8; margin-top: 3px;
}

/* ══════════════════════════════════════════════════════════════════════════
   NEWSPAPER DARK MODAL — abrirNoticiaModal()
   ══════════════════════════════════════════════════════════════════════════ */
.np-backdrop {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,.86); backdrop-filter: blur(3px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 20px 16px 40px; overflow-y: auto;
  animation: npFadeIn .22s ease;
}
@keyframes npFadeIn { from{opacity:0;} to{opacity:1;} }

.np-modal {
  background: #0f1117; border-radius: 14px;
  width: 100%; max-width: 680px; overflow: hidden;
  box-shadow: 0 28px 80px rgba(0,0,0,.75);
  border: 1px solid #1e2235;
  animation: npSlideUp .3s cubic-bezier(.32,1.1,.7,1);
  position: relative;
}
@keyframes npSlideUp { from{transform:translateY(24px);opacity:0;} to{transform:translateY(0);opacity:1;} }

/* Header sticky */
.np-header {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 14px; border-bottom: 1px solid #1e2235;
  background: #0f1117; position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(12px);
}
.np-header-cat {
  font-size: 9.5px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .06em; padding: 3px 10px; border-radius: 20px; color: #fff;
}
.np-header-date  { font-size: 11px; color: #475569; }
.np-header-views { font-size: 11px; color: #475569; }
.np-header-close {
  margin-left: auto; background: rgba(255,255,255,.06);
  border: 1px solid #2d3148; color: #94a3b8; border-radius: 50%;
  width: 28px; height: 28px; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--pro-transition); flex-shrink: 0;
}
.np-header-close:hover { background: rgba(255,255,255,.12); color: #e2e8f0; }

/* Hero */
.np-hero {
  position: relative; height: 240px; overflow: hidden;
  background: var(--np-hero-bg, var(--pro-grad-default));
}
.np-hero img { width:100%; height:100%; object-fit:cover; display:block; }
.np-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom,rgba(0,0,0,0) 20%,rgba(0,0,0,.8) 100%);
}
.np-hero-icon {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-60%);
  font-size: 60px; filter: drop-shadow(0 4px 22px rgba(0,0,0,.55));
}

/* Cuerpo editorial */
.np-body { padding: 20px 22px 22px; }
.np-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 22px; font-weight: 700; color: #f8fafc;
  line-height: 1.32; margin: 0 0 9px;
}
.np-lead {
  font-size: 14px; color: #94a3b8; line-height: 1.62;
  font-style: italic; margin: 0 0 12px;
  border-left: 3px solid #1e3a5f; padding-left: 12px;
}
.np-byline {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-size: 11px; color: #475569;
  padding: 8px 0; margin-bottom: 16px;
  border-top: 1px solid #1e2235; border-bottom: 1px solid #1e2235;
}
.np-byline-item { display: flex; align-items: center; gap: 4px; }

/* Contenido del artículo */
.np-content {
  font-size: 14px; line-height: 1.78; color: #cbd5e1; margin-bottom: 20px;
}
.np-content p   { margin: 0 0 12px; }
.np-content h2,
.np-content h3  { color: #f1f5f9; margin: 18px 0 8px; font-size: 16px; }
.np-content a   { color: #60a5fa; text-decoration: underline; }
.np-content img { max-width:100%; border-radius:8px; margin: 8px 0; }
.np-content blockquote {
  border-left: 3px solid #3b82f6; margin: 12px 0; padding: 8px 14px;
  background: #1a1d27; border-radius: 0 8px 8px 0; color: #94a3b8; font-style: italic;
}

/* Tags */
.np-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.np-tag {
  font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 20px;
  background: #1e2235; color: #94a3b8; border: 1px solid #2d3148;
}

/* Secciones relacionadas */
.np-section { margin-bottom: 18px; padding-top: 16px; border-top: 1px solid #1e2235; }
.np-section-title {
  font-size: 10px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .08em; color: #475569; margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.np-section-title::after { content:''; flex:1; height:1px; background:#1e2235; }

/* Grid de noticias relacionadas */
.np-related-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
@media (max-width:500px) { .np-related-grid { grid-template-columns: 1fr 1fr; } }
.np-related-card {
  background: #1a1d27; border: 1px solid #2d3148; border-radius: 9px;
  overflow: hidden; cursor: pointer; transition: var(--pro-transition);
}
.np-related-card:hover {
  border-color: #3b82f6; transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(59,130,246,.22);
}
.np-related-hero {
  height: 58px; background: var(--np-rel-bg, #1e2235);
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.np-related-body { padding: 7px 8px 9px; }
.np-related-title {
  font-size: 11px; font-weight: 700; color: #e2e8f0; line-height: 1.38;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.np-related-meta { font-size: 10px; color: #475569; margin-top: 3px; }

/* Negocios cercanos dentro del modal */
.np-biz-card {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 11px; border-radius: 9px;
  background: #1a1d27; border: 1px solid #2d3148;
  margin-bottom: 6px; cursor: pointer; transition: var(--pro-transition);
}
.np-biz-card:hover { border-color: #3b82f6; background: #1e2235; transform: translateX(3px); }
.np-biz-avatar {
  width: 34px; height: 34px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: #21253a; border: 1px solid #2d3148; font-size: 16px; color: #3b82f6;
  overflow: hidden; font-weight: 800;
}
.np-biz-avatar img { width:100%; height:100%; object-fit:cover; border-radius:8px; }
.np-biz-info { flex:1; min-width:0; }
.np-biz-name { font-size: 12px; font-weight: 700; color: #f1f5f9; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.np-biz-meta { font-size: 10px; color: #475569; margin-top: 1px; }
.np-biz-cta {
  flex-shrink: 0; font-size: 9.5px; font-weight: 700; color: #3b82f6;
  background: rgba(59,130,246,.1); border: 1px solid rgba(59,130,246,.2);
  border-radius: 5px; padding: 3px 8px; cursor: pointer; white-space: nowrap;
  transition: var(--pro-transition);
}
.np-biz-cta:hover { background: rgba(59,130,246,.2); }

/* Skeleton dentro del modal */
.np-skeleton-line {
  height: 11px; border-radius: 6px; margin-bottom: 7px;
  background: linear-gradient(90deg,#1a1d27 25%,#21253a 50%,#1a1d27 75%);
  background-size: 200% 100%; animation: proShimmer 1.5s infinite;
}
.np-skeleton-block {
  height: 50px; border-radius: 9px; margin-bottom: 6px;
  background: linear-gradient(90deg,#1a1d27 25%,#21253a 50%,#1a1d27 75%);
  background-size: 200% 100%; animation: proShimmer 1.5s infinite;
}

/* Footer sticky del modal */
.np-footer {
  display: flex; gap: 8px; padding: 12px 22px;
  background: #080b12; border-top: 1px solid #1e2235;
  position: sticky; bottom: 0; z-index: 10; flex-wrap: wrap;
}
.np-btn {
  flex: 1; min-width: 100px; padding: 10px 14px;
  border: none; border-radius: 9px; font-size: 13px; font-weight: 700;
  cursor: pointer; transition: var(--pro-transition);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.np-btn-primary { background: var(--np-accent, #2563eb); color: #fff; }
.np-btn-primary:hover { filter: brightness(1.12); transform: translateY(-1px); }
.np-btn-share   { background: #1e2235; color: #94a3b8; border: 1px solid #2d3148; }
.np-btn-share:hover { background: #21253a; color: #e2e8f0; }
.np-btn-close   { background: #1e2235; color: #64748b; border: 1px solid #2d3148; flex: 0; padding: 10px 20px; }
.np-btn-close:hover { background: #21253a; color: #94a3b8; }

/* ══════════════════════════════════════════════════════════════════════════
   TRT SIDEBAR ENHANCEMENTS — result-item mejorado
   ══════════════════════════════════════════════════════════════════════════ */
.ri-enhanced {
  position: relative;
  padding-bottom: 10px !important;
}
.ri-price-badge {
  position: absolute; top: 10px; right: 12px;
  background: var(--primary, #3b82f6); color: #fff;
  font-size: 11px; font-weight: 800; padding: 2px 9px; border-radius: 20px;
  white-space: nowrap; line-height: 1.4;
}
.ri-amenities  { display: flex; gap: 5px; margin-top: 5px; flex-wrap: wrap; }
.ri-amenity    {
  display: flex; align-items: center; gap: 3px;
  font-size: 10px; color: #94a3b8; background: #1e2235;
  padding: 1px 6px; border-radius: 10px;
}

/* ══════════════════════════════════════════════════════════════════════════
   FADE-IN ANIMATION — para elementos nuevos
   ══════════════════════════════════════════════════════════════════════════ */
@keyframes proFadeUp {
  from { opacity:0; transform:translateY(10px); }
  to   { opacity:1; transform:translateY(0); }
}
.pro-fade { animation: proFadeUp .25s ease both; }

/* ══════════════════════════════════════════════════════════════════════════
   NOTICIAS WIDGET — ticker, tabs de sección, feed editorial, lector
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Ticker última hora ──────────────────────────────────────────────────── */
.nw-ticker {
    background: #1e1e2e;
    overflow: hidden;
    white-space: nowrap;
    font-size: 10.5px;
    font-weight: 700;
    color: #f8fafc;
    padding: 4px 0;
    border-bottom: 1px solid #2d2d44;
}
.nw-ticker-track {
    display: inline-block;
    animation: nw-scroll 26s linear infinite;
}
.nw-ticker:hover .nw-ticker-track { animation-play-state: paused; }
.nw-ticker-item { padding: 0 20px; cursor: pointer; }
.nw-ticker-item:hover { color: #60a5fa; }
.nw-ticker-sep { color: #475569; padding: 0 6px; }
@keyframes nw-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ── Buscador de noticias ─────────────────────────────────────────────────── */
/* Alta especificidad para ganar a components-forms.css y sidebar-enhanced.css */
#noticias-list .nw-searchbar {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 6px;
    padding: 6px 12px 6px 14px;
    border-bottom: 1px solid #eef0f4;
    background: #fafbfc;
}
#noticias-list .nw-search-icon { font-size: 11px; flex-shrink: 0; opacity: .45; }
#noticias-list .nw-search-input {
    flex: 1 1 0 !important;
    width: auto !important;       /* anula width:100% de components-forms.css */
    min-width: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    font-size: 11px !important;
    color: #334155 !important;
    background: transparent !important;
    font-family: inherit !important;
    padding: 0 !important;
    line-height: 1.5;
}
#noticias-list .nw-search-input::placeholder { color: #adb5c2; font-style: italic; }
.nw-search-clear {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 9px;
    color: #b0b8c9;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
    transition: color .12s;
}
.nw-search-clear:hover { color: #e74c3c; }

.nw-search-empty {
    padding: 8px 16px;
    font-size: 10.5px;
    color: #94a3b8;
    font-style: italic;
}
.nw-search-empty strong { color: #475569; font-style: normal; }

/* ── Feed radar: filas compactas ─────────────────────────────────────────── */
.nw-feed { margin: 0; }

#noticias-list .nw-row {
    padding: 6px 12px 6px 16px;
    border-bottom: 1px solid #f3f4f6;
    border-left: 2px solid transparent;
    cursor: pointer;
    transition: background .1s, border-color .12s;
}
#noticias-list .nw-row:last-child { border-bottom: none; }
#noticias-list .nw-row:hover {
    background: #f5f8ff;
    border-left-color: var(--nw-row-c, #0891b2);
}

/* Categoría: diminuta, coloreada, uppercase */
#noticias-list .nw-row-cat {
    font-size: 9px !important;
    font-weight: 800 !important;
    color: var(--nw-row-c, #0891b2) !important;
    text-transform: uppercase !important;
    letter-spacing: .06em;
    line-height: 1.7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: .85;
}

/* Título: protagonista, compacto, 2 líneas max */
#noticias-list .nw-row-ttl {
    font-size: 11.5px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

/* Más noticias */
.nw-feed-more { padding: 4px 12px 6px 16px; text-align: right; }
.nw-feed-more a {
    font-size: 9.5px;
    color: #0891b2;
    font-weight: 700;
    text-decoration: none;
}
.nw-feed-more a:hover { text-decoration: underline; }

/* ── Lector secuencial ───────────────────────────────────────────────────── */
.nw-reader-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 7px 10px 6px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8faff;
}
.nw-reader-prev,
.nw-reader-next {
    border: 1.5px solid #c7d2fe;
    border-radius: 6px;
    background: #fff;
    color: #4f46e5;
    font-size: 13px;
    font-weight: 700;
    width: 26px;
    height: 26px;
    cursor: pointer;
    transition: background 0.12s, color 0.12s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0;
}
.nw-reader-prev:hover:not(:disabled),
.nw-reader-next:hover:not(:disabled) { background: #4f46e5; color: #fff; }
.nw-reader-prev:disabled,
.nw-reader-next:disabled { opacity: .3; cursor: not-allowed; }
.nw-reader-pos {
    flex: 1;
    text-align: center;
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
}
.nw-reader-close {
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    padding: 0 2px;
    line-height: 1;
    transition: color 0.12s;
}
.nw-reader-close:hover { color: #ef4444; }
.nw-reader-body { padding: 11px 13px 10px; }
.nw-reader-badge {
    display: inline-block;
    font-size: 9.5px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 12px;
    margin-bottom: 7px;
    letter-spacing: .02em;
    text-transform: uppercase;
}
.nw-reader-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.38;
    margin-bottom: 5px;
}
.nw-reader-meta { font-size: 10px; color: #94a3b8; font-weight: 600; margin-bottom: 9px; }
.nw-reader-lead {
    font-size: 11.5px;
    color: #334155;
    line-height: 1.62;
    border-left: 3px solid var(--nw-accent, #0891b2);
    padding-left: 9px;
    margin-bottom: 9px;
    font-style: italic;
}
.nw-reader-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 9px; }
.nw-reader-tag {
    background: #f1f5f9;
    color: #475569;
    border-radius: 10px;
    font-size: 9.5px;
    font-weight: 600;
    padding: 2px 7px;
}
.nw-reader-full {
    border: none;
    border-radius: 7px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 7px 12px;
    cursor: pointer;
    transition: filter 0.14s;
    width: 100%;
    margin-top: 2px;
    display: block;
}
.nw-reader-full:hover { filter: brightness(1.1); }

/* ══════════════════════════════════════════════════════════════════════════
   OFERTAS WIDGET — panel de inteligencia territorial
   ══════════════════════════════════════════════════════════════════════════ */
.ob-panel { padding: 10px 12px 10px; }

.ob-stats {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 8px;
}
.ob-stat-main { display: flex; align-items: baseline; gap: 5px; }
.ob-stat-num {
    font-size: 26px;
    font-weight: 800;
    color: #e74c3c;
    line-height: 1;
}
.ob-stat-label { font-size: 11px; font-weight: 600; color: #374151; }
.ob-stat-dist { font-size: 10px; color: #64748b; font-weight: 600; }

/* Tarjeta de oferta destacada */
.ob-best {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #fff9f9, #fff0f0);
    border: 1px solid #fecaca;
    border-radius: 9px;
    padding: 9px 10px;
    cursor: pointer;
    transition: box-shadow 0.18s, transform 0.18s;
    margin-bottom: 8px;
    position: relative;
    overflow: hidden;
}
.ob-best::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2.5px;
    background: linear-gradient(90deg, #e74c3c 0%, #f97316 100%);
}
.ob-best:hover { box-shadow: 0 4px 14px rgba(231,76,60,.18); transform: translateY(-1px); }

.ob-discount {
    flex-shrink: 0;
    background: #e74c3c;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 7px;
    border-radius: 7px;
    letter-spacing: .02em;
    align-self: flex-start;
    margin-top: 2px;
}
.ob-best-body { flex: 1; min-width: 0; }
.ob-best-name {
    font-size: 12px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ob-best-store { font-size: 10px; color: #64748b; margin-bottom: 3px; }
.ob-best-meta {
    font-size: 9.5px;
    color: #94a3b8;
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
}
.ob-best-arrow {
    color: #e74c3c;
    font-size: 15px;
    font-weight: 700;
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity 0.13s, transform 0.13s;
}
.ob-best:hover .ob-best-arrow { opacity: 1; transform: translateX(2px); }

.ob-footer { text-align: center; }
.ob-cta {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 700;
    color: #e74c3c;
    text-decoration: none;
    padding: 5px 14px;
    border: 1px solid #fecaca;
    border-radius: 20px;
    background: transparent;
    transition: background 0.14s, color 0.14s;
    letter-spacing: .01em;
}
.ob-cta:hover { background: #e74c3c; color: #fff; }
