/* Base & principal */
:root { --nsp-gap:20px; --nsp-radius:10px; --nsp-border:#dfe3e8; --nsp-meta:#6b7280; --nsp-blue:#0b4a8f; --nsp-title:#0b4a8f; --nsp-bg:#ffffff; }
.nsp-wrap { font-family:"Inter","Helvetica",sans-serif; }
.nsp-empty { font-size:15px; color:#6b7280; border:1px dashed var(--nsp-border); padding:16px; border-radius:8px; text-align:center; background:#fff; }
.nsp-grid { display:grid; grid-template-columns:2fr 1fr; gap:var(--nsp-gap); background:#f9fafb; border:1px solid var(--nsp-border); border-radius:12px; padding:14px; }
.nsp-featured{ display:block; position:relative; border-radius:8px; overflow:hidden; text-decoration:none; color:#fff; min-height:420px; box-shadow:0 6px 16px rgba(0,0,0,0.06); }
.nsp-featured__media{ position:relative; margin:0; width:100%; height:100%; min-height:inherit; background-image:var(--nsp-bg); background-size:cover; background-position:center; }
.nsp-featured__media::before{ content:""; position:absolute; inset:0; background:linear-gradient(180deg, rgba(0,0,0,0.10) 0%, rgba(0,0,0,0.25) 55%, rgba(0,0,0,0.55) 100%); }
.nsp-featured__caption{ position:absolute; left:0; right:0; bottom:0; padding:20px 22px 22px; display:flex; flex-direction:column; align-items:flex-start; gap:10px; }
.nsp-featured .nsp-cat{ display:inline-block; background:var(--nsp-blue); color:#fff; border:none; padding:6px 12px; border-radius:3px; font-size:13px; font-weight:800; text-transform:uppercase; letter-spacing:.02em; }
.nsp-title{ display:inline-block; margin:0; line-height:1.2; background:var(--nsp-blue); color:#fff; padding:10px 14px; border-radius:4px; font-size:28px; font-weight:800; }
.nsp-meta{ font-size:13px; color:#e5e7eb; }
.nsp-right{ display:grid; grid-template-columns:1fr; gap:24px; }
.nsp-card{ display:block; text-decoration:none; border:1px solid #cfd6dd; border-radius:4px; padding:18px 20px; background:#fff; color:#111827; box-shadow:none; transform:none; }
.nsp-card .nsp-cat{ background:transparent; border:0; padding:0; border-radius:0; color:var(--nsp-blue); font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.02em; margin-bottom:6px; display:inline-block; }
.nsp-card__title{ margin:4px 0 10px 0; color:var(--nsp-title); font-size:19px; font-weight:800; line-height:1.25; text-decoration:none; }
@media (max-width:900px){ .nsp-grid{ grid-template-columns:1fr; padding:10px; } .nsp-featured{ min-height:320px; } .nsp-title{ font-size:24px; } }

/* Secundario: galería 3x3 con scroll */
.nsp-gallery{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; max-height:900px; overflow-y:auto; padding:6px; border:1px solid var(--nsp-border); border-radius:10px; background:#f9fafb; }
.nsp-gcard{ display:flex; flex-direction:column; text-decoration:none; border:1px solid #cfd6dd; border-radius:6px; background:#fff; overflow:hidden; color:#0f172a; }
.nsp-gcard__media{ width:100%; aspect-ratio:16/9; background-image:var(--nsp-thumb); background-size:cover; background-position:center; }
.nsp-gcard__body{ padding:14px 16px; display:flex; flex-direction:column; gap:6px; }
.nsp-gcat{ color:var(--nsp-blue); font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.02em; }
.nsp-gtitle{ margin:0; color:var(--nsp-blue); font-weight:800; font-size:18px; line-height:1.25; }
.nsp-gmeta{ font-size:12px; color:#475569; }
.nsp-gauthor{ color:#6b7280; }
@media (max-width:900px){ .nsp-gallery{ grid-template-columns:1fr 1fr; max-height:70vh; } }
@media (max-width:600px){ .nsp-gallery{ grid-template-columns:1fr; max-height:70vh; } }

/* === Search box News Showcase Plus === */
.nsp-search {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    flex-wrap: wrap;
    margin: 0 0 16px;
}

.nsp-search__field {
    position: relative;
    flex: 1;
    min-width: 240px;
}

.nsp-search__input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--nsp-border);
    border-radius: 999px;
    font-size: 14px;
}

.nsp-search__suggestions {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    padding: 6px;
    background: #fff;
    border: 1px solid var(--nsp-border);
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 10;
}

.nsp-search__suggestion {
    display: flex;
    gap: 10px;
    align-items: center;
    text-decoration: none;
    color: #0f172a;
    padding: 6px;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: background 0.1s ease, border-color 0.1s ease;
}

.nsp-search__suggestion:hover {
    background: #f8fafc;
    border-color: var(--nsp-border);
}

.nsp-search__suggestion img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
    background: #f3f4f6;
}

.nsp-search__suggestion-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nsp-search__suggestion-body strong {
    font-size: 14px;
    line-height: 1.3;
}

.nsp-search__suggestion-body small {
    color: var(--nsp-meta);
    font-size: 12px;
}

.nsp-search__empty {
    padding: 6px;
    color: var(--nsp-meta);
    font-size: 13px;
}

.nsp-search__button {
    padding: 8px 10px;
    border-radius: 999px;
    border: none;
    font-size: 14px;
    cursor: pointer;
    background: var(--nsp-blue);
    color: #fff;
    white-space: nowrap;
}

.nsp-search__button:hover {
    opacity: 0.9;
}
