.nbs-app {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* HEADER */
.nbs-header { margin-bottom: 20px; }
.nbs-header h2 { margin: 0 0 4px 0; font-size: 26px; color: #1a1a1a; }
.nbs-subtitle { margin: 0; color: #888; font-size: 14px; }

/* BUSCADOR */
.nbs-search {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
    background: #fff;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    align-items: center;
    flex-wrap: wrap;
}
.nbs-search input[type=text] {
    flex: 1;
    padding: 11px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    min-width: 200px;
}
.nbs-search input[type=text]:focus {
    outline: none;
    border-color: #2e7d32;
    box-shadow: 0 0 0 3px rgba(46,125,50,0.1);
}
.nbs-btn {
    background: #2e7d32;
    color: #fff;
    border: none;
    padding: 11px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
}
.nbs-btn:hover { background: #1b5e20; }
.nbs-clear { color: #888; text-decoration: none; font-size: 13px; padding: 6px 10px; }
.nbs-clear:hover { color: #c62828; }

/* AVISO */
.nbs-aviso {
    background: #fff8e1;
    border-left: 4px solid #f9a825;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    color: #6a5300;
    margin-bottom: 20px;
}

/* FILTROS */
.nbs-filtros { margin-bottom: 24px; }
.nbs-filtro-grupo { margin-bottom: 12px; }
.nbs-filtro-label {
    display: block;
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 8px;
    font-weight: 600;
}
.nbs-chip {
    display: inline-block;
    background: #fff;
    border: 1px solid #e0e0e0;
    color: #555;
    padding: 6px 12px;
    border-radius: 18px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    margin: 0 4px 6px 0;
    transition: all 0.15s;
}
.nbs-chip:hover { border-color: #2e7d32; color: #2e7d32; }
.nbs-chip.activo {
    color: #fff !important;
}
.nbs-chip-ais { border-width: 2px; background: #fff; }

/* GRID */
.nbs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 14px;
}
.nbs-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-top: 4px solid #2e7d32;
    border-radius: 12px;
    padding: 18px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}
.nbs-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}
.nbs-card-cat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-weight: 600;
    margin-bottom: 8px;
}
.nbs-card-icon { font-size: 15px; }
.nbs-card h3 {
    margin: 0 0 4px 0;
    font-size: 17px;
    color: #1a1a1a;
    line-height: 1.25;
}
.nbs-card-sub { margin: 0 0 14px 0; font-size: 12px; color: #999; }
.nbs-card-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.nbs-ais-chip {
    background: #2e7d32;
    color: #fff;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
}
.nbs-ais-mini { font-size: 11px; color: #888; }
.nbs-card-more {
    margin-top: auto;
    padding-top: 8px;
    font-size: 12px;
    color: #2e7d32;
    font-weight: 700;
}

/* DETALLE */
.nbs-back {
    display: inline-block;
    color: #888;
    text-decoration: none;
    font-size: 13px;
    margin-bottom: 14px;
}
.nbs-back:hover { color: #2e7d32; }

.nbs-hero {
    background: linear-gradient(135deg, #f8fafb 0%, #fff 100%);
    border: 1px solid #e0e0e0;
    border-top: 4px solid #2e7d32;
    border-radius: 14px;
    padding: 30px 32px;
    margin-bottom: 20px;
}
.nbs-hero-cat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-weight: 600;
    margin-bottom: 10px;
}
.nbs-hero-icon { font-size: 16px; }
.nbs-hero h2 { margin: 0 0 6px 0; font-size: 30px; color: #1a1a1a; line-height: 1.2; }
.nbs-hero-sub { margin: 0 0 18px 0; color: #666; font-size: 15px; font-style: italic; }
.nbs-hero-badge { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.nbs-ais-desc { font-size: 13px; color: #555; font-weight: 500; }

/* SECCIONES DEL DETALLE */
.nbs-secciones {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}
.nbs-seccion {
    display: flex;
    gap: 14px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 18px 20px;
}
.nbs-seccion-icon {
    font-size: 28px;
    line-height: 1;
    flex-shrink: 0;
}
.nbs-seccion-body { flex: 1; }
.nbs-seccion-body h3 {
    margin: 0 0 8px 0;
    font-size: 15px;
    color: #1a1a1a;
    font-weight: 700;
}
.nbs-seccion-body p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #444;
}
.nbs-desc { border-left: 3px solid #1565c0; }
.nbs-bene { border-left: 3px solid #2e7d32; }
.nbs-quien { border-left: 3px solid #6a1b9a; }
.nbs-contra { border-left: 3px solid #c62828; background: #fffafa; }

/* LEGAL */
.nbs-legal {
    background: #f8fafb;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 18px 22px;
    font-size: 13px;
    color: #555;
    line-height: 1.6;
}
.nbs-legal p { margin: 0 0 8px 0; }
.nbs-legal p:last-child { margin-bottom: 0; }
.nbs-fuentes { font-size: 12px; color: #888; }

.nbs-empty {
    background: #fafafa;
    border-radius: 12px;
    padding: 60px 20px;
    text-align: center;
    color: #888;
    line-height: 1.6;
}
.nbs-empty a { color: #2e7d32; font-weight: 600; }

/* RESPONSIVE */
@media (max-width: 700px) {
    .nbs-hero { padding: 22px; }
    .nbs-hero h2 { font-size: 24px; }
    .nbs-secciones { grid-template-columns: 1fr; }
    .nbs-grid { grid-template-columns: 1fr; }
}
